1 2014-12-18 Alan Lawrence <alan.lawrence@arm.com>
3 * config/aarch64/aarch64.md (enum "unspec"): Remove UNSPEC_SSHR64.
5 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): Change shift
6 amount to 63 if was 64.
7 (aarch64_sshr_simddi): Remove.
9 2014-12-18 Wilco Dijkstra <wilco.dijkstra@arm.com>
11 * gcc/config/aarch64/aarch64.c (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL):
13 (aarch64_min_divisions_for_recip_mul): New function.
15 2014-12-18 Wilco Dijkstra <wilco.dijkstra@arm.com>
17 * config/aarch64/aarch64-protos.h (tune-params): Add code alignment
19 * gcc/config/aarch64/aarch64.c (generic_tunings): Add code alignment
21 (cortexa53_tunings): Likewise.
22 (cortexa57_tunings): Likewise.
23 (thunderx_tunings): Likewise.
24 (aarch64_override_options): Use new alignment tunings.
26 2014-12-18 Martin Liska <mliska@suse.cz>
28 PR tree-optimization/64330
29 * ipa-icf.c (sem_variable::parse): Add checking
30 for externally visible symbols and do not introduce
31 an alias for an external declaration.
33 2014-12-18 Jan Hubicka <hubicka@ucw.cz>
36 * tree-inline.c (remap_gimple_stmt): Handle gimple_call_from_thunk_p
39 2014-12-18 Martin Liska <mliska@suse.cz>
42 * ipa-icf.c (sem_function::merge): Check for
43 decl_binds_to_current_def_p is newly added to merge operation.
45 2014-12-18 Bin Cheng <bin.cheng@arm.com>
47 PR tree-optimization/62178
48 * tree-ssa-loop-ivopts.c (cheaper_cost_with_cand): New function.
49 (iv_ca_replace): New function.
50 (try_improve_iv_set): New parameter try_replace_p.
51 Break local optimal fixed-point by calling iv_ca_replace.
52 (find_optimal_iv_set_1): Pass new argument to try_improve_iv_set.
54 2014-12-17 Dehao Chen <dehao@google.com>
56 * auto-profile.c (afdo_annotate_cfg): Invoke update_ssa in the right
58 (auto_profile): Recompute inline summary after processing cgraph node.
60 2014-12-17 Oleg Endo <olegendo@gcc.gnu.org>
63 * config/sh/sh_treg_combine.cc (is_conditional_insn): New function.
64 (cbranch_trace): Add member rtx* condition_rtx_in_insn, initialize it
65 accordingly in constructor.
66 (cbranch_trace::branch_condition_rtx_ref): New function.
67 (cbranch_trace::branch_condition_rtx): Use branch_condition_rtx_ref.
68 (sh_treg_combine::try_invert_branch_condition): Invert condition rtx
69 in insn using reversed_comparison_code and validate_change instead of
71 (sh_treg_combine::execute): Look for conditional insns in basic blocks
72 in addition to conditional branches.
73 * config/sh/sh.md (*movsicc_div0s): Remove combine patterns.
75 2014-12-17 Oleg Endo <olegendo@gcc.gnu.org>
78 * config/sh/sh_treg_combine.cc (sh_treg_combine::try_optimize_cbranch):
79 Combine ccreg inversion and cbranch into inverted cbranch.
81 2014-12-17 Vladimir Makarov <vmakarov@redhat.com>
83 * lra-constraints.c (process_alt_operands): Remove non
84 allocatable hard regs when considering
85 ira_prohibited_class_mode_regs.
87 2014-12-17 Jan Hubicka <hubicka@ucw.cz>
89 * sreal.h (sreal::normalize): Implement inline.
90 (sreal::normalize_up): New function.
91 (sreal::normalize_down): New function.
92 * sreal.c (sreal::normalize): Remove.
94 2014-12-17 James Greenhalgh <james.greenhalgh@arm.com>
96 * config/aarch64/aarch64.md (generic_sched): Delete it.
98 2014-12-17 Jan-Benedict Glaw <jbglaw@lug-owl.de>
100 * config/msp430/msp430.c (msp430_asm_output_addr_const_extra): Fix
101 unused argument warning.
103 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
105 * dwarf2out.h (struct array_descr_info): Remove the base_decl field.
106 * dwarf2out.c (enum dw_scalar_form): New.
107 (struct loc_descr_context): New.
108 (add_scalar_info): New.
109 (add_bound_info): Add a context parameter. Use add_scalar_info.
110 (loc_list_from_tree): Add a context parameter. Handle PLACEHOLDER_EXPR
111 nodes for type-related expressions. Likewise for base declarations.
112 (loc_descriptor_from_tree): Add a context parameter.
113 (subrange_type_die): Update calls to add_bound_info.
114 (tls_mem_loc_descriptor): Likewise.
115 (loc_list_for_address_of_addr_expr_of_indirect_ref): Add a context
116 parameter. Update calls to loc_list_from_tree.
117 (add_subscript_info): Update calls to add_bound_info.
118 (gen_array_type_die): Update calls to loc_list_from_tree and to
120 (descr_info_loc): Remove.
121 (add_descr_info_field): Remove.
122 (gen_descr_array_type_die): Switch add_descr_info_field calls into
123 add_scalar_info/add_bound_info ones.
124 (gen_subprogram_die): Update calls to loc_list_from_tree.
125 (gen_variable_die): Likewise.
127 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
129 * dwarf2out.c (print_loc_descr): New.
131 (print_attribute): New.
132 (print_loc_descr): New.
133 (print_die): Use print_dw_val.
134 (debug_dwarf_loc_descr): New.
135 * dwarf2out.h (debug_dwarf_loc_descr): New declaration.
137 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
139 * dwarf2out.c (gen_type_die_with_usage): Enable the array lang-hook
140 even when (dwarf_version < 3 && dwarf_strict).
141 (gen_descr_array_die): Do not output DW_AT_data_locationn,
142 DW_AT_associated, DW_AT_allocated and DW_AT_byte_stride DWARF
143 attributes when (dwarf_version < 3 && dwarf_strict).
145 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
147 * dwarf2out.h (enum array_descr_ordering): New.
148 (array_descr_dimen): Add a bounds_type structure field.
149 (struct array_descr_info): Add a field to hold index type information
150 and another one to hold ordering information.
151 * dwarf2out.c (gen_type_die_with_usage): Get the main variant before
152 invoking the array descriptor language hook. Initialize the
153 array_descr_info structure before calling the lang-hook.
154 (gen_descr_array_type_die): Use gen_type_die if not processing the main
155 type variant. Replace Fortran-specific code with generic one using
156 this new field. Add a GNAT descriptive type, if any. Output type
157 information for the array bound subrange, if any.
159 2014-12-17 H.J. Lu <hongjiu.lu@intel.com>
160 Jakub Jelinek <jakub@redhat.com>
161 Uros Bizjak <ubizjak@gmail.com>
164 * config/i386/i386-opts.h (ix86_align_data): New enum.
165 * config/i386/i386.c (ix86_data_alignment): Return the ABI
166 alignment value for -malign-data=abi, the cachine line size
167 for -malign-data=cacheline and the older GCC compatible
168 alignment value for for -malign-data=compat.
169 * config/i386/i386.opt (malign-data=): New.
170 * doc/invoke.texi: Document -malign-data=.
172 2014-12-17 Marek Polacek <polacek@redhat.com>
175 * match.pd: Add (x & ~m) | (y & m) -> ((x ^ y) & m) ^ x pattern.
177 2014-12-17 Jakub Jelinek <jakub@redhat.com>
179 PR tree-optimization/64322
180 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
181 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
183 2014-12-17 Tobias Burnus <burnus@net-b.de>
186 * flag-types.h (gfc_init_local_real, gfc_fcoarray,
187 gfc_convert): New enums; moved from fortran/.
189 2014-12-16 Jan Hubicka <hubicka@ucw.cz>
191 * fibonacci_heap.h (min): Return m_data instead of non-existing data.
193 2014-12-16 Jan Hubicka <hubicka@ucw.cz>
195 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Consider
196 return values of const calls as constants.
197 (estimate_function_body_sizes): Expect calls to have false predicates.
199 2014-12-16 Jan Hubicka <hubicka@ucw.cz>
201 * hwint.c (abs_hwi, absu_hwi): Move to ...
202 * hwint.h (abs_hwi, absu_hwi): ... here; make inline.
204 2014-12-16 Marek Polacek <polacek@redhat.com>
207 * match.pd: Add ((1 << A) & 1) != 0 -> A == 0 and
208 ((1 << A) & 1) == 0 -> A != 0.
210 2014-12-16 Richard Biener <rguenther@suse.de>
212 * genmatch.c (parser::parser): Initialize capture_ids.
213 (parser::parse_pattern): Properly allocate capture_ids before
214 using them. Set capture_ids to zero when its lifetime is
216 (parser::parse_simplify): Allocate capture_ids only if
219 2014-12-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
221 * sreal.c: Include math.h later.
223 2014-12-16 Felix Yang <felix.yang@huawei.com>
225 PR rtl-optimization/64240
226 * ddg.c (mark_mem_use): Check *iter instead of *x.
228 2014-12-16 Martin Liska <mliska@suse.cz>
231 * sreal.c (sreal::operator*): Replace std::abs with absu_hwi.
233 2014-12-16 Igor Zamyatin <igor.zamyatin@intel.com>
235 * config/i386/i386.c (ix86_address_cost): Add explicit restriction
236 to RTL level for the check for PIC register.
238 2014-12-16 Uros Bizjak <ubizjak@gmail.com>
240 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Move from here ...
241 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): ... and here ...
242 * config/i386/gnu-user-common.h (TARGET_CAN_SPLIT_STACK): ... to here.
244 2014-12-16 Chung-Ju Wu <jasonwucj@gmail.com>
247 * config/nds32/nds32.md (casesi_internal): Add '=r' for clobber
250 2014-12-15 DJ Delorie <dj@redhat.com>
252 * config/rl78/rl78.h: Remove SHORT_IMMEDIATES_SIGN_EXTEND.
254 2014-12-15 Jan Hubicka <hubicka@ucw.cz>
257 * tree-streamer.c (preload_common_nodes): Skip preloading
258 of main_identifier_node, pid_type and optimization/option nodes.
260 2014-12-15 Vladimir Makarov <vmakarov@redhat.com>
262 PR rtl-optimization/63397
263 * ira-int.h (ira_overall_cost, ira_reg_cost, ira_mem_cost): Use
265 (ira_load_cost, ira_store_cost, ira_shuffle_cost): Ditto.
266 * ira.c (ira_overall_cost, ira_overall_cost_before): Ditto.
267 (ira_reg_cost, ira_mem_cost): Ditto.
268 (ira_load_cost, ira_store_cost, ira_shuffle_cost): Ditto.
269 (calculate_allocation_cost, do_reload): Use the right
270 format for int64_t values.
272 2014-12-15 Jan Hubicka <hubicka@ucw.cz>
274 * sreal.h (to_double): New method.
275 (shift): Do not ICE on 0.
276 * sreal.c: Include math.h
277 (sreal::to_double): New.
279 2014-12-15 Jakub Jelinek <jakub@redhat.com>
281 PR rtl-optimization/64316
282 * simplify-rtx.c (simplify_relational_operation_1): For
283 (eq/ne (and x y) x) and (eq/ne (and x y) y) optimizations use
284 CONST0_RTX instead of const0_rtx.
286 2014-12-15 Vladimir Makarov <vmakarov@redhat.com>
289 * ira.c (rtx_moveable_p): Prevent UNSPEC_VOLATILE moves.
291 2014-12-15 Vladimir Makarov <vmakarov@redhat.com>
293 * ira-int.h (ira_prohibited_class_mode_regs): Remove.
294 (struct target_ira_int): Move x_ira_prohibited_class_mode_regs to
296 * ira.h (struct target_ira): ... here.
297 (ira_prohibited_class_mode_regs): Define.
298 * lra-constraints.c (process_alt_operands): Add one more condition
299 to refuse alternative when reload pseudo of given class can not
300 hold value of given mode.
302 2014-12-15 Richard Biener <rguenther@suse.de>
304 PR tree-optimization/64312
305 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Use
306 vuse_ssa_val as callback to walk_non_aliased_vuses.
307 (vn_reference_lookup): Likewise.
309 2014-12-15 Segher Boessenkool <segher@kernel.crashing.org>
311 * gcc/config/rs6000/rs6000.md (*add>mode>3_imm_dot,
312 *add<mode>3_imm_dot2): Change the constraint for the second
313 alternative for operand 1 from "r" to "b".
315 2014-12-15 Richard Biener <rguenther@suse.de>
317 * vec.h (vec::safe_grow): Guard against a grow to zero size.
319 2014-12-15 Richard Biener <rguenther@suse.de>
322 * match.pd (X / CST -> X * (1 / CST): Use const_binop instead of
323 fold_binary to compute the constant to multiply with.
325 2014-12-15 Richard Biener <rguenther@suse.de>
328 * cfgloop.c (mark_loop_for_removal): Make safe against multiple
329 invocations on the same loop.
331 2014-12-15 Marek Polacek <polacek@redhat.com>
334 * fold-const.c (negate_expr_p): Add INTEGRAL_TYPE_P check.
336 2014-12-15 Renlin Li <renlin.li@arm.com>
338 * config/aarch64/aarch64.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
339 (CTZ_DEFINED_VALUE_AT_ZERO): Update to support more modes.
341 2014-12-15 Jakub Jelinek <jakub@redhat.com>
344 * tsan.c (instrument_func_entry): Insert __tsan_func_entry
345 call on edge from entry block to single succ instead
346 of after labels of single succ of entry block.
348 2014-12-15 Richard Biener <rguenther@suse.de>
350 PR tree-optimization/64284
351 * tree-ssa-threadupdate.c (duplicate_seme_region): Mark
352 the loop for removal if we copied the loop header.
354 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
357 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Return bool.
358 * ipa.c (set_writeonly_bit): Track if reference was removed.
359 (ipa_discover_readonly_nonaddressable_vars): Return true if any
360 references was removed.
361 * ipa-reference.c (propagate): Return TODO_remove_functions if
362 reference was removed.
364 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
366 * ipa.c (process_references): Fix conditoinal on flag_optimize
368 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
371 * symtab.c (symbol_table::insert_to_assembler_name_hash
372 symbol_table::unlink_from_assembler_name_hash): Do not ICE when
373 DECL_ASSEMBLER_NAME is NULL.
375 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
377 * cgraphunit.c (analyze_functions): Always analyze targets of aliases.
379 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
382 * tree.c (virtual_method_call_p): Return false when OTR type has
385 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
387 * cgraphunit.c (analyze_functions): Do not analyze extern inline
388 funtions when not optimizing; skip comdat locals.
390 2014-12-14 H.J. Lu <hongjiu.lu@intel.com>
392 PR rtl-optimization/64037
393 * combine.c (setup_incoming_promotions): Pass the argument
394 before any promotions happen to promote_function_mode.
396 2014-12-12 Thomas Schwinge <thomas@codesourcery.com>
398 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGN): Define as a C statment.
400 2014-12-12 Vladimir Makarov <vmakarov@redhat.com>
403 * lra-constraints.c (process_alt_operands): Refuse alternative
404 when reload pseudo of given class can not hold value of given
407 2014-12-12 Thomas Schwinge <thomas@codesourcery.com>
409 * gimple-walk.c (walk_gimple_op) <GIMPLE_OMP_FOR>: Also check
410 intermediate walk_tree results for for_incr.
411 <GIMPLE_OMP_TARGET>: Walk child_fn and data_arg, too.
412 <GIMPLE_OMP_CRITICAL, GIMPLE_OMP_ATOMIC_STORE>: Pretty printing.
414 2014-12-12 Richard Sandiford <richard.sandiford@arm.com>
417 * wide-int.h (wi::div_round, wi::mod_round): Fix rounding of tied
419 * double-int.c (div_and_round_double): Fix handling of unsigned
420 cases. Use same rounding approach as wide-int.h.
422 2014-12-12 Marek Polacek <polacek@redhat.com>
425 * fold-const.c (fold_binary_loc): Add ANY_INTEGRAL_TYPE_P check.
427 2014-12-12 Jakub Jelinek <jakub@redhat.com>
429 PR tree-optimization/64269
430 * tree-ssa-forwprop.c (simplify_builtin_call): Bail out if
431 len2 or diff are too large.
433 2014-12-12 Richard Biener <rguenther@suse.de>
436 * tree-cfg.c (replace_uses_by): Guard assert properly.
438 2014-12-12 Anthony Green <green@moxielogic.com>
440 * config/moxie/moxie.md: Add use of zex instruction.
442 2014-12-12 Marc Glisse <marc.glisse@inria.fr>
444 * real.h (HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
445 HONOR_SIGN_DEPENDENT_ROUNDING): Replace macros with 3 overloaded
447 * real.c (HONOR_NANS): Fix indentation.
448 (HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
449 HONOR_SIGN_DEPENDENT_ROUNDING): Define three overloads.
450 * builtins.c (fold_builtin_cproj, fold_builtin_signbit,
451 fold_builtin_fmin_fmax, fold_builtin_classify): Simplify argument
453 * fold-const.c (operand_equal_p, fold_comparison, fold_binary_loc):
455 * gimple-fold.c (gimple_val_nonnegative_real_p): Likewise.
456 * ifcvt.c (noce_try_move, noce_try_minmax, noce_try_abs): Likewise.
457 * omp-low.c (omp_reduction_init): Likewise.
458 * rtlanal.c (may_trap_p_1): Likewise.
459 * simplify-rtx.c (simplify_const_relational_operation): Likewise.
460 * tree-ssa-dom.c (record_equality, record_edge_info): Likewise.
461 * tree-ssa-phiopt.c (value_replacement, abs_replacement): Likewise.
462 * tree-ssa-reassoc.c (eliminate_using_constants): Likewise.
463 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
465 2014-12-12 Jan Hubicka <hubicka@ucw.cz>
467 * ipa-inline.c (ipa_inline): Fix condition on when
468 TODO_remove_unreachable_functions is needed.
470 2014-12-12 Jan Hubicka <hubicka@ucw.cz>
472 * ipa-devirt.c (possible_polymorphic_call_targets): Return early
473 if otr_type has no BINFO.
475 2014-12-12 Zhenqiang Chen <zhenqiang.chen@arm.com>
477 PR rtl-optimization/63917
478 * ifcvt.c (cc_in_cond): New function.
479 (end_ifcvt_sequence): Make sure new generated insns do not clobber CC.
480 (noce_process_if_block, check_cond_move_block): Check CC references.
482 2014-12-11 Andrew Pinski <apinski@cavium.com>
484 * config/aarch64/aarch64-protos.h (tune_params): Add align field.
485 * config/aarch64/aarch64.c (generic_tunings): Specify align.
486 (cortexa53_tunings): Likewise.
487 (cortexa57_tunings): Likewise.
488 (thunderx_tunings): Likewise.
489 (aarch64_override_options): Set align_loops, align_jumps,
490 align_functions based on what the tuning struct.
492 2014-12-11 Eric Botcazou <ebotcazou@adacore.com>
494 * doc/md.texi (Insn Lengths): Fix description of (pc).
496 2014-12-11 Jan Hubicka <hubicka@ucw.cz>
499 * passes.c (execute_todo): Update call of remove_unreachable_nodes.
500 * ipa-chkp.c (chkp_produce_thunks): Use TODO_remove_functions.
501 * cgraphunit.c (symbol_table::process_new_functions): Add
502 IPA_SSA_AFTER_INLINING.
503 (ipa_passes): Update call of remove_unreachable_nodes.
504 (symbol_table::compile): Remove call of remove_unreachable_nodes.
505 * ipa-inline.c (inline_small_functions): Do not ICE with
507 (ipa_inline): Update symtab->state; fix formatting
508 update call of remove_unreachable_nodes.
509 * passes.c (execute_todo): Update call of remove_unreachable_nodes.
510 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
511 * cgraph.h (enum symtab_state): Add IPA_SSA_AFTER_INLINING.
512 (remove_unreachable_nodes): Update.
513 * ipa.c (process_references): Keep external references only
515 (walk_polymorphic_call_targets): Keep possible polymorphic call
516 target only when devirtualizing.
517 (symbol_table::remove_unreachable_nodes): Remove BEFORE_INLINING_P
519 (ipa_single_use): Update comment.
520 * ipa-pure-const.c (cdtor_p): New function.
521 (propagate_pure_const): Track if some cdtor was turned pure/const.
522 (execute): Return TODO_remove_functions if needed.
523 * ipa-comdats.c (ipa_comdats): Update comment.
525 2014-12-11 Aldy Hernandez <aldyh@redhat.com>
527 * dwarf2out.c (gen_lexical_block_die): Remove unused `depth'
529 (gen_inlined_subroutine_die): Same.
530 (gen_block_die): Same.
531 (decls_for_scope): Same.
533 2014-12-11 Renlin Li <renlin.li@arm.com>
535 * config/aarch64/aarch64-cores.def: Change all AARCH64_FL_FPSIMD to
536 AARCH64_FL_FOR_ARCH8.
537 * config/aarch64/aarch64.c (all_cores): Use FLAGS from
538 aarch64-cores.def file only.
540 2014-12-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
543 * diagnostic.c (diagnostic_action_after_output): Make it extern.
544 Take diagnostic_t argument instead of diagnostic_info. Count also
545 DK_WERROR towards max_errors.
546 (diagnostic_report_diagnostic): Update call according to the above.
547 (error_recursion): Likewise.
548 * diagnostic.h (diagnostic_action_after_output): Declare.
549 * pretty-print.c (pp_formatted_text_data): Delete.
550 (pp_append_r): Call output_buffer_append_r.
551 (pp_formatted_text): Call output_buffer_formatted_text.
552 (pp_last_position_in_text): Call output_buffer_last_position_in_text.
553 * pretty-print.h (output_buffer_formatted_text): New.
554 (output_buffer_append_r): New.
555 (output_buffer_last_position_in_text): New.
557 2014-12-11 Kyrylo Tkachov kyrylo.tkachov@arm.com
559 * config/aarch64/aarch64.c (aarch64_parse_extension): Update error
560 message to say +no only when removing extension.
562 2014-12-11 Andrew MacLeod <amacleod@redhat.com>
564 * config/tilepro/gen-mul-tables.cc: Add insn-codes.h to include list
565 for generator file. Add comment indicating it is a generated file.
566 * config/tilepro/mul-tables.c: Update generated file.
567 * config/tilegx/mul-tables.c: Likewise.
569 2014-12-11 Segher Boessenkool <segher@kernel.crashing.org>
571 * combine.c (try_combine): Do not allow combining a PARALLEL I2
572 with a register move I3 if that I2 is an asm.
574 2014-12-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
576 * config/arm/arm_neon.h (vrndqn_f32): Rename to...
577 (vrndnq_f32): ... this.
578 (vrndqa_f32): Rename to...
579 (vrndaq_f32): ... this.
580 (vrndqp_f32): Rename to...
581 (vrndpq_f32): ... this.
582 (vrndqm_f32): Rename to...
583 (vrndmq_f32): ... this.
584 (vrndx_f32): New intrinsic.
585 (vrndxq_f32): Likewise.
587 2014-12-11 Marek Polacek <polacek@redhat.com>
589 * fold-const.c (fold_negate_expr): Add ANY_INTEGRAL_TYPE_P check.
590 (extract_muldiv_1): Likewise.
591 (maybe_canonicalize_comparison_1): Likewise.
592 (fold_comparison): Likewise.
593 (tree_binary_nonnegative_warnv_p): Likewise.
594 (tree_binary_nonzero_warnv_p): Likewise.
595 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Likewise.
596 * tree-scalar-evolution.c (simple_iv): Likewise.
597 (scev_const_prop): Likewise.
598 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
599 * tree-vect-generic.c (expand_vector_operation): Likewise.
600 * tree.h (ANY_INTEGRAL_TYPE_CHECK): Define.
601 (ANY_INTEGRAL_TYPE_P): Define.
602 (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED, TYPE_OVERFLOW_TRAPS):
603 Add ANY_INTEGRAL_TYPE_CHECK.
604 (any_integral_type_check): New function.
606 2014-12-11 Tobias Burnus <burnus@net-b.de>
607 Manuel López-Ibáñez <manu@gcc.gnu.org>
609 * error.c (gfc_get_terminal_width): Renamed from
610 get_terminal_width and use same-named common function.
611 (gfc_error_init_1): Update call.
613 2014-12-10 Aldy Hernandez <aldyh@redhat.com>
615 * gdbhooks.py (class DWDieRefPrinter): New class.
616 (build_pretty_printer): Register dw_die_ref's.
618 2014-12-10 Ilya Tocar <ilya.tocar@intel.com>
620 * config.gcc: Support "knl".
621 * config/i386/driver-i386.c (host_detect_local_cpu): Detect "knl".
622 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
624 * config/i386/i386.c (m_KNL): Define.
625 (processor_target_table): Add "knl".
627 (ix86_issue_rate): Add PROCESSOR_KNL.
628 (ix86_adjust_cost): Ditto.
629 (ia32_multipass_dfa_lookahead): Ditto.
630 (get_builtin_code_for_version): Handle "knl".
631 (fold_builtin_cpu): Ditto.
632 * config/i386/i386.h (TARGET_KNL): Define.
633 (processor_type): Add PROCESSOR_KNL.
634 * config/i386/i386.md (attr "cpu"): Add knl.
635 * config/i386/x86-tune.def: Add m_KNL.
637 2014-12-10 Jan Hubicka <hubicka@ucw.cz>
639 * doc/invoke.texi: (-devirtualize-at-ltrans): Document.
640 * lto-cgraph.c (lto_output_varpool_node): Mark initializer as removed
641 when it is not streamed to the given ltrans.
642 (compute_ltrans_boundary): Make code adding all polymorphic
643 call targets conditional with !flag_wpa || flag_ltrans_devirtualize.
644 * common.opt (fdevirtualize-at-ltrans): New flag.
646 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
648 * varpool.c (varpool_node::get_create): Force output of vars with
649 "omp declare target" attribute.
651 2014-12-10 Marc Glisse <marc.glisse@inria.fr>
653 * real.h (HONOR_NANS): Replace macro with 3 overloaded declarations.
654 * real.c: Include rtl.h and options.h.
655 (HONOR_NANS): Define three overloads.
656 * builtins.c (fold_builtin_classify, fold_builtin_unordered_cmp):
657 Simplify argument of HONOR_NANS.
658 * fold-const.c (combine_comparisons, fold_truth_not_expr,
659 fold_cond_expr_with_comparison, merge_truthop_with_opposite_arm,
660 fold_comparison, fold_binary_loc): Likewise.
661 * ifcvt.c (noce_try_move, noce_try_minmax): Likewise.
662 * ipa-inline-analysis.c (add_clause,
663 set_cond_stmt_execution_predicate): Likewise.
664 * match.pd: Likewise.
665 * rtlanal.c (may_trap_p_1): Likewise.
666 * simplify-rtx.c (simplify_const_relational_operation): Likewise.
667 * tree-if-conv.c (parse_predicate): Likewise.
668 * tree-ssa-ccp.c (valid_lattice_transition): Likewise.
669 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
670 * tree-ssa-phiopt.c (minmax_replacement, neg_replacement): Likewise.
671 * tree-ssa-reassoc.c (eliminate_using_constants): Likewise.
672 * tree-ssa-tail-merge.c (gimple_equal_p): Likewise.
674 2014-12-10 Jakub Jelinek <jakub@redhat.com>
676 PR tree-optimization/62021
677 * omp-low.c (simd_clone_adjust_return_type): Use
678 vector of pointer_sized_int_node types instead vector of pointer
680 (simd_clone_adjust_argument_types): Likewise.
682 2014-12-10 Jakub Jelinek <jakub@redhat.com>
683 Evgeny Stupachenko <evstupac@gmail.com>
686 * config/i386/i386.c (expand_vec_perm_pblendv): If not testing_p,
687 set dcopy.target to a new pseudo.
689 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
691 * config/rs6000/rs6000.md (*add<mode>3): Remove condition.
693 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
695 * config/rs6000/40x.md (ppc403-compare): Remove "compare".
696 config/rs6000/440.md (ppc440-compare): Remove "compare".
697 config/rs6000/476.md (ppc476-compare): Remove "compare".
698 config/rs6000/601.md (ppc601-compare): Remove "compare".
699 config/rs6000/603.md (ppc603-compare): Remove "compare".
700 config/rs6000/6xx.md (ppc604-compare): Remove "compare".
701 config/rs6000/7450.md (ppc7450-compare): Remove "compare".
702 config/rs6000/7xx.md (ppc750-compare): Remove "compare".
703 config/rs6000/8540.md (ppc8540_su): Remove "compare".
704 config/rs6000/cell.md (cell-fast-cmp, cell-cmp-microcoded): Remove
706 config/rs6000/e300c2c3.md (ppce300c3_cmp): Remove "compare".
707 config/rs6000/e500mc.md (e500mc_su): Remove "compare".
708 config/rs6000/e500mc64.md (e500mc64_su2): Remove "compare".
709 config/rs6000/e5500.md (e5500_sfx2): Remove "compare".
710 config/rs6000/e6500.md (e6500_sfx2): Remove "compare".
711 config/rs6000/mpc.md (mpccore-compare): Remove "compare".
712 config/rs6000/power4.md (power4-compare): Remove "compare".
713 config/rs6000/power5.md (power5-compare): Remove "compare".
714 config/rs6000/power6.md (power6-compare): Remove "compare".
715 config/rs6000/power7.md (power7-compare): Remove "compare".
716 config/rs6000/power8.md (power8-compare): Remove "compare". Update
718 config/rs6000/rs6000.c (rs6000_adjust_cost) <TYPE_COMPARE>: Remove
720 (is_cracked_insn): Remove TYPE_COMPARE case.
721 (insn_must_be_first_in_group) <TYPE_COMPARE>: Remove (twice).
722 config/rs6000/rs6000.md (type): Remove "compare".
723 (cell_micro): Remove "compare".
724 config/rs6000/rs64.md (rs64a-compare): Remove "compare".
726 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
728 * config/rs6000/rs6000.md (*anddi3_2rld_dot, *anddi3_rld_dot2):
729 Change type from "compare" to "two".
731 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
734 * config/rs6000/predicates.md (unsigned_comparison_operator): New.
735 (signed_comparison_operator): New.
736 * config/rs6000/rs6000-protos.h (rs6000_emit_eqne): Declare.
737 * config/rs6000/rs6000.c (rs6000_emit_eqne): New function.
738 (rs6000_emit_sCOND): Remove ISEL test (move it to the expander).
739 * config/rs6000/rs6000.md (add<mode>3 for SDI): Expand DImode
740 add to addc,adde directly, if !TARGET_POWERPC64.
741 (sub<mode>3 for SDI): Expand DImode sub to subfc,subfe directly,
742 if !TARGET_POWERPC64.
743 (neg<mode>2): Delete expander.
744 (*neg<mode>2): Rename to "neg<mode>2".
745 (addti3, subti3): Delete.
746 (addti3, subti3): New expanders.
747 (*adddi3_noppc64, *subdi3_noppc64, *negdi2_noppc64): Delete.
748 (cstore<mode>4_unsigned): New expander.
749 (cstore<mode>4): Allow GPR as output (not just SI). Rewrite.
750 (cstore<mode>4 for FP): Remove superfluous quotes.
751 (*eq<mode>, *eq<mode>_compare, *plus_eqsi and splitter,
752 *compare_plus_eqsi and splitter, *plus_eqsi_compare and splitter,
753 *neg_eq0<mode>, *neg_eq<mode>, *ne0_<mode>, plus_ne0_<mode>,
754 compare_plus_ne0_<mode> and splitter, *compare_plus_ne0_<mode>_1 and
755 splitter, *plus_ne0_<mode>_compare and splitter, *leu<mode>,
756 *leu<mode>_compare and splitter, *plus_leu<mode>, *neg_leu<mode>,
757 *and_neg_leu<mode>, *ltu<mode>, *ltu<mode>_compare, *plus_ltu<mode>,
758 *plus_ltu<mode>_1, *plus_ltu<mode>compare, *neg_ltu<mode>, *geu<mode>,
759 *geu<mode>_compare and splitter, *plus_geu<mode>, *neg_geu<mode>,
760 *and_neg_geu<mode>, *plus_gt0<mode>, *gtu<mode>, *gtu<mode>_compare,
761 *plus_gtu<mode>, *plus_gtu<mode>_1, *plus_gtu<mode>_compare,
762 *neg_gtu<mode>, 12 anonymous insns, and 12 anonymous splitters):
764 (eq<mode>3, ne<mode>3): New.
765 (*neg_eq_<mode>, *neg_ne_<mode>): New.
766 (*plus_eq_<mode>, *plus_ne_<mode>): New.
767 (*minus_eq_<mode>, *minus_ne_<mode>): New.
769 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
772 * config/rs6000/predicates.md (adde_operand): New.
773 * config/rs6000/rs6000.md (add<mode>3_carry): New.
774 (*add<mode>3_imm_carry_pos): New.
775 (*add<mode>3_imm_carry_0): New.
776 (*add<mode>3_imm_carry_m1): New.
777 (*add<mode>3_imm_carry_neg): New.
778 (add<mode>3_carry_in): New.
779 (*add<mode>3_carry_in_internal): New.
780 (add<mode>3_carry_in_0): New.
781 (add<mode>3_carry_in_m1): New.
782 (subf<mode>3_carry): New.
783 (*subf<mode>3_imm_carry_0): New.
784 (*subf<mode>3_imm_carry_m1): New.
785 (subf<mode>3_carry_in): New.
786 (*subf<mode>3_carry_in_internal): New.
787 (subf<mode>3_carry_in_0): New.
788 (subf<mode>3_carry_in_m1): New.
789 (subf<mode>3_carry_in_xx): New.
791 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
794 * config/rs6000/rs6000.md (*add<mode>3_internal1): Rename to
796 (*add<mode>3_internal2, *add<mode>3_internal3, and (their splitters):
798 (*add<mode>3_dot, *add<mode>3_dot2): New.
799 (*add<mode>3_imm_dot, *add<mode>3_imm_dot2): New.
801 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
804 * config/rs6000/rs6000.md (*add<mode>3_internal1): Remove addic
807 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
810 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
811 *ctr<mode>_internal5, *ctr<mode>_internal6): Change "r" alternatives
812 to "b". Increase length.
813 (splitters for these): Split to cmp+addi instead of addic.
815 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
818 * config/rs6000/darwin.md (macho_low_si): Remove "r" alternative.
819 (macho_low_di): Ditto.
820 * config/rs6000/rs6000.md (*largetoc_low): Ditto.
821 (tocref<mode>): Ditto.
823 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0_elf_low_be): Ditto.
824 (mov_si<mode>_e500_subreg0_elf_low_le): Ditto.
825 (mov_si<mode>_e500_subreg4_elf_low_be): Ditto. Reformat condition.
826 (mov_si<mode>_e500_subreg4_elf_low_le): Ditto.
828 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
831 * config/rs6000/rs6000.c (TARGET_MD_ASM_CLOBBERS): Define.
832 (rs6000_md_asm_clobbers): New function.
834 2014-12-10 Felix Yang <felix.yang@huawei.com>
836 * config/aarch64/aarch64-protos.h (aarch64_function_profiler): Remove
837 declaration of removed function.
839 2014-12-10 Richard Biener <rguenther@suse.de>
842 (move_computations_dom_walker::before_dom_children): Clear
843 SSA_NAME_RANGE_INFO on moved stmts.
845 2014-12-10 Martin Liska <mliska@suse.cz>
847 * sreal.c (sreal::shift_right): New implementation
848 for int64_t as m_sig.
849 (sreal::normalize): Likewise.
850 (sreal::to_int): Likewise.
851 (sreal::operator+): Likewise.
852 (sreal::operator-): Likewise.
853 (sreal::operator*): Likewise.
854 (sreal::operator/): Likewise.
855 (sreal::signedless_minus): Removed.
856 (sreal::signedless_plus): Removed.
857 (sreal::debug): const keyword is added.
858 * sreal.h (sreal::operator<): New implementation
859 for int64_t as m_sig.
860 * ipa-inline.c (recursive_inlining): LONG_MIN is replaced
863 2014-12-10 Martin Liska <mliska@suse.cz>
865 * gimple-iterator.h (gsi_start_bb_nondebug): New function.
866 * ipa-icf-gimple.c (func_checker::compare_bb): Correct iteration
867 replaces loop based on precomputed number of non-debug statements.
869 2014-12-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
871 * config/linux.c (linux_has_ifunc_p): Remove.
872 * config/linux.h (TARGET_HAS_IFUNC_P): Use default version.
874 2014-12-10 Mantas Mikaitis <mantas.mikaitis@arm.com>
876 * contrib/check_GNU_style.sh (col): Got rid of cut operation
877 from the pipe chain and instead added cut inside awk command.
879 2014-12-10 Richard Biener <rguenther@suse.de>
881 PR tree-optimization/64191
882 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not
883 mark clobbers as necessary.
884 (eliminate_unnecessary_stmts): Keep clobbers live if we can.
886 2014-12-10 Jakub Jelinek <jakub@redhat.com>
889 * config/i386/sse.md (vec_dupv4sf): Move after
890 <mask_codefor><avx512>_vec_dup_gpr<mode><mask_name> pattern.
891 (*vec_dupv4si, *vec_dupv2di): Likewise.
892 (<mask_codefor><avx512>_vec_dup_mem<mode><mask_name>): Merge into ...
893 (<mask_codefor><avx512>_vec_dup_gpr<mode><mask_name>): ... this
895 (*vec_dup<mode> AVX2_VEC_DUP_MODE splitter): Disable for
896 TARGET_AVX512VL (for QI/HI scalar modes only if TARGET_AVX512BW
898 * config/i386/i386.c (enum ix86_builtins): Remove
899 IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
900 IX86_BUILTIN_PBROADCASTQ128_MEM_MASK and
901 IX86_BUILTIN_PBROADCASTQ512_MEM.
902 (bdesc_args): Use __builtin_ia32_pbroadcastq512_gpr_mask,
903 __builtin_ia32_pbroadcastq256_gpr_mask and
904 __builtin_ia32_pbroadcastq128_gpr_mask instead of *_mem_mask
905 regardless of OPTION_MASK_ISA_64BIT.
906 * config/i386/avx512fintrin.h (_mm512_set1_epi64,
907 _mm512_mask_set1_epi64, _mm512_maskz_set1_epi64): Use *_gpr_mask
908 builtins regardless of whether TARGET_64BIT is defined or not.
909 * config/i386/avx512vlintrin.h (_mm256_mask_set1_epi64,
910 _mm256_maskz_set1_epi64, _mm_mask_set1_epi64, _mm_maskz_set1_epi64):
913 * config/i386/sse.md (*mov<mode>_internal, *avx512f_gatherdi<mode>_2):
914 Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
916 2014-12-10 Oleg Endo <olegendo@gcc.gnu.org>
919 * doc/extend.texi (__builtin_sh_set_fpscr): Fix typo.
921 2014-12-10 Marek Polacek <polacek@redhat.com>
923 PR tree-optimization/61686
924 * tree-ssa-reassoc.c (range_entry_cmp): Use q->high instead of
927 2014-12-10 Kito Cheng <kito@0xlab.org>
929 * doc/libgcc.texi: Update text to match implementation in
932 2014-12-09 Trevor Saunders <tsaunders@mozilla.com>
934 * plugin.c, plugin.def, ggc.h, ggc-common.c, gengtype.h, gengtype.c,
935 gengtype-state.c, gengtype-parse.c, gentype-lex.l, gcc-plugin.h,
936 doc/plugins.texi, doc/gty.texi: Remove support for if_marked and
939 2014-12-10 Oleg Endo <olegendo@gcc.gnu.org>
942 * doc/extend.texi (__builtin_sh_get_fpscr, __builtin_sh_get_fpscr):
945 2014-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
948 * tree-ssa-reassoc.c (acceptable_pow_call): Disable transformation
949 for BUILT_IN_POW when flag_errno_math is present.
951 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
953 * lto-wrapper.c (compile_offload_image): Start processing in_argv
955 (run_gcc): Put offload objects into offload_argv, put LTO objects and
956 possible preceding arguments into lto_argv.
957 Pass offload_argv to compile_images_for_offload_targets instead of argv.
958 Use lto_argv for LTO recompilation instead of argv.
960 2014-12-09 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
962 * doc/install.texi: Describe --with-aix-soname option.
964 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
966 * config/aarch64/aarch64-simd.md (aarch64_get_lanedi): Remove.
968 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
971 * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane):
973 * config/aarch64/aarch64-simd.md (aarch64_be_checked_get_lane<mode\>):
975 * config/aarch64/arm_neon.h (aarch64_vget_lane_any): Use GCC
976 vector extensions, __aarch64_lane, __builtin_aarch64_im_lane_boundsi.
977 (__aarch64_vget_lane_f32, __aarch64_vget_lane_f64,
978 __aarch64_vget_lane_p8, __aarch64_vget_lane_p16,
979 __aarch64_vget_lane_s8, __aarch64_vget_lane_s16,
980 __aarch64_vget_lane_s32, __aarch64_vget_lane_s64,
981 __aarch64_vget_lane_u8, __aarch64_vget_lane_u16,
982 __aarch64_vget_lane_u32, __aarch64_vget_lane_u64,
983 __aarch64_vgetq_lane_f32, __aarch64_vgetq_lane_f64,
984 __aarch64_vgetq_lane_p8, __aarch64_vgetq_lane_p16,
985 __aarch64_vgetq_lane_s8, __aarch64_vgetq_lane_s16,
986 __aarch64_vgetq_lane_s32, __aarch64_vgetq_lane_s64,
987 __aarch64_vgetq_lane_u8, __aarch64_vgetq_lane_u16,
988 __aarch64_vgetq_lane_u32, __aarch64_vgetq_lane_u64): Delete.
989 (__aarch64_vdup_lane_any): Use __aarch64_vget_lane_any, remove
991 (__aarch64_vdup_lane_f32, __aarch64_vdup_lane_f64,
992 __aarch64_vdup_lane_p8, __aarch64_vdup_lane_p16,
993 __aarch64_vdup_lane_s8, __aarch64_vdup_lane_s16,
994 __aarch64_vdup_lane_s32, __aarch64_vdup_lane_s64,
995 __aarch64_vdup_lane_u8, __aarch64_vdup_lane_u16,
996 __aarch64_vdup_lane_u32, __aarch64_vdup_lane_u64,
997 __aarch64_vdup_laneq_f32, __aarch64_vdup_laneq_f64,
998 __aarch64_vdup_laneq_p8, __aarch64_vdup_laneq_p16,
999 __aarch64_vdup_laneq_s8, __aarch64_vdup_laneq_s16,
1000 __aarch64_vdup_laneq_s32, __aarch64_vdup_laneq_s64,
1001 __aarch64_vdup_laneq_u8, __aarch64_vdup_laneq_u16,
1002 __aarch64_vdup_laneq_u32, __aarch64_vdup_laneq_u64): Remove argument
1003 to __aarch64_vdup_lane_any.
1004 (vget_lane_f32, vget_lane_f64, vget_lane_p8, vget_lane_p16,
1005 vget_lane_s8, vget_lane_s16, vget_lane_s32, vget_lane_s64,
1006 vget_lane_u8, vget_lane_u16, vget_lane_u32, vget_lane_u64,
1007 vgetq_lane_f32, vgetq_lane_f64, vgetq_lane_p8, vgetq_lane_p16,
1008 vgetq_lane_s8, vgetq_lane_s16, vgetq_lane_s32, vgetq_lane_s64,
1009 vgetq_lane_u8, vgetq_lane_u16, vgetq_lane_u32, vgetq_lane_u64,
1010 vdupb_lane_p8, vdupb_lane_s8, vdupb_lane_u8, vduph_lane_p16,
1011 vduph_lane_s16, vduph_lane_u16, vdups_lane_f32, vdups_lane_s32,
1012 vdups_lane_u32, vdupb_laneq_p8, vdupb_laneq_s8, vdupb_laneq_u8,
1013 vduph_laneq_p16, vduph_laneq_s16, vduph_laneq_u16, vdups_laneq_f32,
1014 vdups_laneq_s32, vdups_laneq_u32, vdupd_laneq_f64, vdupd_laneq_s64,
1015 vdupd_laneq_u64, vfmas_lane_f32, vfma_laneq_f64, vfmad_laneq_f64,
1016 vfmas_laneq_f32, vfmss_lane_f32, vfms_laneq_f64, vfmsd_laneq_f64,
1017 vfmss_laneq_f32, vmla_lane_f32, vmla_lane_s16, vmla_lane_s32,
1018 vmla_lane_u16, vmla_lane_u32, vmla_laneq_f32, vmla_laneq_s16,
1019 vmla_laneq_s32, vmla_laneq_u16, vmla_laneq_u32, vmlaq_lane_f32,
1020 vmlaq_lane_s16, vmlaq_lane_s32, vmlaq_lane_u16, vmlaq_lane_u32,
1021 vmlaq_laneq_f32, vmlaq_laneq_s16, vmlaq_laneq_s32, vmlaq_laneq_u16,
1022 vmlaq_laneq_u32, vmls_lane_f32, vmls_lane_s16, vmls_lane_s32,
1023 vmls_lane_u16, vmls_lane_u32, vmls_laneq_f32, vmls_laneq_s16,
1024 vmls_laneq_s32, vmls_laneq_u16, vmls_laneq_u32, vmlsq_lane_f32,
1025 vmlsq_lane_s16, vmlsq_lane_s32, vmlsq_lane_u16, vmlsq_lane_u32,
1026 vmlsq_laneq_f32, vmlsq_laneq_s16, vmlsq_laneq_s32, vmlsq_laneq_u16,
1027 vmlsq_laneq_u32, vmul_lane_f32, vmul_lane_s16, vmul_lane_s32,
1028 vmul_lane_u16, vmul_lane_u32, vmuld_lane_f64, vmuld_laneq_f64,
1029 vmuls_lane_f32, vmuls_laneq_f32, vmul_laneq_f32, vmul_laneq_f64,
1030 vmul_laneq_s16, vmul_laneq_s32, vmul_laneq_u16, vmul_laneq_u32,
1031 vmulq_lane_f32, vmulq_lane_s16, vmulq_lane_s32, vmulq_lane_u16,
1032 vmulq_lane_u32, vmulq_laneq_f32, vmulq_laneq_f64, vmulq_laneq_s16,
1033 vmulq_laneq_s32, vmulq_laneq_u16, vmulq_laneq_u32) : Use
1034 __aarch64_vget_lane_any.
1036 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1039 * gcc/config/aarch64-builtins.c (aarch64_simd_expand_args): Update error
1040 message for SIMD_ARG_CONSTANT.
1042 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1045 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
1046 TYPES_BINOPV): Delete.
1047 (enum aarch64_builtins): Add AARCH64_BUILTIN_SIMD_LANE_CHECK and
1048 AARCH64_SIMD_PATTERN_START.
1049 (aarch64_init_simd_builtins): Register
1050 __builtin_aarch64_im_lane_boundsi; use AARCH64_SIMD_PATTERN_START.
1051 (aarch64_simd_expand_builtin): Handle AARCH64_BUILTIN_LANE_CHECK; use
1052 AARCH64_SIMD_PATTERN_START.
1054 * config/aarch64/aarch64-simd.md (aarch64_im_lane_boundsi): Delete.
1055 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound): Delete.
1057 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK): New.
1058 (__aarch64_vget_lane_f64, __aarch64_vget_lane_s64,
1059 __aarch64_vget_lane_u64, __aarch64_vset_lane_any, vdupd_lane_f64,
1060 vdupd_lane_s64, vdupd_lane_u64, vext_f32, vext_f64, vext_p8, vext_p16,
1061 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
1062 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
1063 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
1064 vextq_u64, vmulq_lane_f64): Use __AARCH64_LANE_CHECK.
1066 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1069 * config/aarch64/arm_neon.h (__AARCH64_NUM_LANES, __aarch64_lane *2):
1071 (aarch64_vset_lane_any): Redefine using previous, same for BE + LE.
1072 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
1073 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
1074 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64): Remove
1076 (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8, vld1_lane_p16,
1077 vld1_lane_s8, vld1_lane_s16, vld1_lane_s32, vld1_lane_s64,
1078 vld1_lane_u8, vld1_lane_u16, vld1_lane_u32, vld1_lane_u64): Call
1079 __aarch64_vset_lane_any rather than vset_lane_xxx.
1081 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1083 * config/aarch64/aarch64.md (absdi2): Remove scratch operand by
1084 earlyclobbering result operand.
1086 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
1087 Remove final qualifier_internal.
1088 (aarch64_fold_builtin): Stop folding abs builtins, except on floats.
1090 2014-12-09 Wilco Dijkstra <wilco.dijkstra@arm.com>
1092 * gcc/config/aarch64/aarch64-protos.h (tune-params): Add reasociation
1094 * gcc/config/aarch64/aarch64.c (TARGET_SCHED_REASSOCIATION_WIDTH):
1096 (aarch64_reassociation_width): New function.
1097 (generic_tunings): Add reassociation tuning parameters.
1098 (cortexa53_tunings): Likewise.
1099 (cortexa57_tunings): Likewise.
1100 (thunderx_tunings): Likewise.
1102 2014-12-09 Andrew Pinski <apinski@cavium.com>
1103 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1105 * config/aarch64/aarch64.c (AARCH64_FUSE_CMP_BRANCH): New define.
1106 (thunderx_tunings): Add AARCH64_FUSE_CMP_BRANCH to fuseable_ops.
1107 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_CMP_BRANCH.
1109 2014-12-09 David Malcolm <dmalcolm@redhat.com>
1112 * dumpfile.c (gcc::dump_manager::get_dump_file_info_by_switch):
1114 (gcc::dump_manager::get_dump_file_name): Split out bulk of
1115 implementation into a new overloaded variant taking a
1117 * dumpfile.h (gcc::dump_manager::get_dump_file_info_by_switch):
1119 (gcc::dump_manager::get_dump_file_name): New overloaded variant of
1120 this function, taking a dump_file_info *.
1122 2014-12-09 Uros Bizjak <ubizjak@gmail.com>
1126 2014-11-28 H.J. Lu <hongjiu.lu@intel.com>
1128 PR rtl-optimization/64037
1129 * combine.c (setup_incoming_promotions): Pass the argument
1130 before any promotions happen to promote_function_mode.
1132 2014-12-09 Richard Biener <rguenther@suse.de>
1134 PR tree-optimization/64193
1135 * tree-ssa-alias.c (walk_non_aliased_vuses): Add valueize parameter
1136 and valueize the VUSE before looking up the def stmt.
1137 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
1138 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Pass vn_valueize
1139 to walk_non_aliased_vuses.
1140 (vn_reference_lookup): Likewise.
1141 * tree-ssa-dom.c (lookup_avail_expr): Pass NULL as valueize
1142 callback to walk_non_aliased_vuses.
1144 2014-12-09 Richard Biener <rguenther@suse.de>
1147 * fold-const.c (fold_binary_loc): Use TREE_OVERFLOW_P.
1149 2014-12-09 Richard Biener <rguenther@suse.de>
1151 PR tree-optimization/64191
1152 * tree-vect-stmts.c (vect_stmt_relevant_p): Clobbers are
1153 not relevant (nor are their uses).
1155 2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
1157 * lto/lto-partition.c (privatize_symbol_name): Correctly
1158 privatize instrumentation clones.
1160 2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
1162 * lto-cgraph.c (input_cgraph_1): Don't break existing
1163 instrumentation clone references.
1164 * lto/lto-symtab.c (lto_cgraph_replace_node): Redirect
1165 instrumented_version references appropriately.
1167 2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
1170 * tree-chkp.c (chkp_make_static_bounds): Share bounds var
1171 between nodes sharing assembler name.
1173 2014-12-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1176 * config/rs6000/rs6000.c (rs6000_emit_move): Do not split TFmode
1177 constant moves if -mupper-regs-df.
1179 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Optimize moving
1181 (movtd_64bit_nodm): Likewise.
1182 (mov<mode>_32bit, FMOVE128 case): Likewise.
1184 2014-12-08 Sandra Loosemore <sandra@codesourcery.com>
1186 * simplify-rtx.c (simplify_relational_operation_1): Handle
1187 simplification identities for BICS patterns.
1189 2014-12-08 Trevor Saunders <tsaunders@mozilla.com>
1191 * config/nvptx/nvptx.c: Convert htabs to hash_table.
1193 2014-12-08 David Edelsohn <dje.gcc@gmail.com>
1196 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner)
1197 [SYMBOL_REF]: Do not explicitly call create_TOC_reference for
1198 TARGET_TOC. Always use rs6000_emit_move.
1200 2014-12-08 Mark Wielaard <mjw@redhat.com>
1203 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_ATOMIC.
1205 2014-11-15 David Wohlferd <dw@LimeGreenSocks.com>
1208 * cfgexpand.c (expand_asm_operands): Count all inline asm params.
1210 2014-12-08 David Malcolm <dmalcolm@redhat.com>
1213 * cgraph.h (xstrdup_for_dump): New function.
1214 * cgraph.c (cgraph_node::get_create): Replace use of xstrdup
1215 within fprintf with xstrdup_for_dump.
1216 (cgraph_edge::make_speculative): Likewise.
1217 (cgraph_edge::resolve_speculation): Likewise.
1218 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1219 (cgraph_node::dump): Likewise.
1220 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
1221 * ipa-cp.c (perhaps_add_new_callers): Likewise.
1222 * ipa-inline.c (report_inline_failed_reason): Likewise.
1223 (want_early_inline_function_p): Likewise.
1224 (edge_badness): Likewise.
1225 (update_edge_key): Likewise.
1226 (flatten_function): Likewise.
1227 (inline_always_inline_functions): Likewise.
1228 * ipa-profile.c (ipa_profile): Likewise.
1229 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
1230 (ipa_make_edge_direct_to_target): Likewise.
1231 (remove_described_reference): Likewise.
1232 (propagate_controlled_uses): Likewise.
1233 * ipa-utils.c (ipa_merge_profiles): Likewise.
1235 2014-12-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
1238 * ipa-polymorphic-call.c
1239 (pa_polymorphic_call_context::ipa_polymorphic_call): Allow RESULT_DECL.
1241 2014-12-08 Alex Velenko <Alex.Velenko@arm.com>
1243 * config/aarch64/aarch64.md (and_one_cmpl<mode>3_compare0_no_reuse):
1245 * (and_one_cmpl_<SHIFT:optab><mode>3_compare0_no_reuse):
1248 2014-12-08 Felix Yang <felix.yang@huawei.com>
1249 Haijian Zhang <z.zhanghaijian@huawei.com>
1250 Jiji Jiang <jiangjiji@huawei.com>
1251 Pengfei Sui <suipengfei@huawei.com>
1253 * config/aarch64/arm_neon.h (vrecpe_u32, vrecpeq_u32): Rewrite using
1255 (vfma_f32, vfmaq_f32, vfmaq_f64, vfma_n_f32, vfmaq_n_f32, vfmaq_n_f64,
1256 vfms_f32, vfmsq_f32, vfmsq_f64): Likewise.
1257 (vhsub_s8, vhsub_u8, vhsub_s16, vhsub_u16, vhsub_s32, vhsub_u32,
1258 vhsubq_s8, vhsubq_u8, vhsubq_s16, vhsubq_u16, vhsubq_s32, vhsubq_u32,
1259 vsubhn_s16, vsubhn_u16, vsubhn_s32, vsubhn_u32, vsubhn_s64, vsubhn_u66,
1260 vrsubhn_s16, vrsubhn_u16, vrsubhn_s32, vrsubhn_u32, vrsubhn_s64,
1261 vrsubhn_u64, vsubhn_high_s16, vsubhn_high_u16, vsubhn_high_s32,
1262 vsubhn_high_u32, vsubhn_high_s64, vsubhn_high_u64, vrsubhn_high_s16,
1263 vrsubhn_high_u16, vrsubhn_high_s32, vrsubhn_high_u32, vrsubhn_high_s64,
1264 vrsubhn_high_u64): Likewise.
1265 * config/aarch64/iterators.md (VDQ_SI): New mode iterator.
1266 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_URECPE.
1267 * config/aarch64/aarch64-simd.md (aarch64_urecpe<mode>): New pattern.
1268 * config/aarch64/aarch64-simd-builtins.def (shsub, uhsub, subhn, rsubhn,
1269 subhn2, rsubhn2, urecpe): New builtins.
1271 2014-12-08 Ilya Tocar <ilya.tocar@intel.com>
1273 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Handle v64qi.
1274 * config/i386/sse.md (VEC_PERM_AVX2): Add v64qi.
1276 2014-12-08 Ilya Tocar <ilya.tocar@intel.com>
1278 * config/i386/i386.c (expand_vec_perm_broadcast_1): Handle v64qi.
1279 (expand_vec_perm_vpermi2_vpshub2): New.
1280 (ix86_expand_vec_perm_const_1): Use it.
1281 (ix86_vectorize_vec_perm_const_ok): Handle v64qi.
1282 * config/i386/sse.md (VEC_PERM_CONST): Add v64qi.
1284 2014-12-08 Ilya Enkovich <ilya.enkovich@intel.com>
1286 * tree-chkp.c (chkp_build_returned_bound): Don't predict
1287 return bounds for strchr calls.
1289 2014-12-08 Ilya Enkovich <ilya.enkovich@intel.com>
1291 * tree-chkp.c (chkp_call_returns_bounds_p): New.
1292 (chkp_build_returned_bound): Use zero bounds as
1293 returned by calls not returning bounds.
1295 2014-12-08 Richard Biener <rguenther@suse.de>
1297 * builtins.c (fold_builtin_0): Remove unused ignore parameter.
1298 (fold_builtin_1): Likewise.
1299 (fold_builtin_3): Likewise.
1300 (fold_builtin_varargs): Likewise.
1301 (fold_builtin_2): Likewise. Do not fold stpcpy here.
1302 (fold_builtin_n): Adjust.
1303 (fold_builtin_stpcpy): Move to gimple-fold.c.
1304 (gimple_fold_builtin_stpcpy): Moved and gimplified from builtins.c.
1305 (gimple_fold_builtin): Fold stpcpy here.
1307 2014-12-07 Trevor Saunders <tsaunders@mozilla.com>
1309 * symtab.c (symtab_node::verify): Check for section attribute before
1310 asserting something isn't in a section and a comdat group.
1312 2014-12-07 Oleg Endo <olegendo@gcc.gnu.org>
1315 * config/sh/sh.md (extendqihi2): Allow only for TARGET_SH1.
1317 2014-12-07 Eric Botcazou <ebotcazou@adacore.com>
1319 * compare-elim.c: Fix head comment.
1320 (conforming_compare): Remove redundant test.
1321 (can_eliminate_compare): New function extracted from...
1322 (before_dom_children): ...here. Use it, replace direct uses of
1323 flag_non_call_exceptions and tidy up.
1324 (maybe_select_cc_mode): Tidy up.
1326 2014-12-07 Felix Yang <felix.yang@huawei.com>
1327 Shanyao Chen <chenshanyao@huawei.com>
1329 * config/aarch64/aarch64-simd.md (clrsb<mode>2, popcount<mode>2): New
1331 * config/aarch64/aarch64-simd-builtins.def (clrsb, popcount): New
1333 * config/aarch64/arm_neon.h (vcls_s8, vcls_s16, vcls_s32, vclsq_s8,
1334 vclsq_s16, vclsq_s32, vcnt_p8, vcnt_s8, vcnt_u8, vcntq_p8, vcntq_s8,
1335 vcntq_u8): Rewrite using builtin functions.
1337 2014-12-07 Jan Hubicka <hubicka@ucw.cz>
1339 * symtab.c (symtab_node::equal_address_to): New function.
1340 * cgraph.h (symtab_node::equal_address_to): Declare.
1341 * fold-const.c (fold_comparison, fold_binary_loc): Use it.
1342 * c-family/c-common.c: Refuse weaks for symbols that can not change
1345 2014-12-07 Jonathan Wakely <jwakely@redhat.com>
1347 * doc/invoke.texi (Warning Options): Fix spelling and grammar.
1349 2014-12-06 James Greenhalgh <james.greenhalgh@arm.com>
1350 Sebastian Pop <s.pop@samsung.com>
1351 Brian Rzycki <b.rzycki@samsung.com>
1353 PR tree-optimization/54742
1354 * params.def (max-fsm-thread-path-insns, max-fsm-thread-length,
1355 max-fsm-thread-paths): New.
1357 * doc/invoke.texi (max-fsm-thread-path-insns, max-fsm-thread-length,
1358 max-fsm-thread-paths): Documented.
1360 * tree-cfg.c (split_edge_bb_loc): Export.
1361 * tree-cfg.h (split_edge_bb_loc): Declared extern.
1363 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Restore the
1364 original value of cond when simplification fails.
1365 (fsm_find_thread_path): New.
1366 (fsm_find_control_statement_thread_paths): New.
1367 (thread_through_normal_block): Call find_control_statement_thread_paths.
1369 * tree-ssa-threadupdate.c (dump_jump_thread_path): Pretty print
1372 (duplicate_seme_region): New.
1373 (thread_through_all_blocks): Generate code for EDGE_FSM_THREAD edges
1374 calling duplicate_seme_region.
1376 * tree-ssa-threadupdate.h (jump_thread_edge_type): Add EDGE_FSM_THREAD.
1378 2014-12-06 H.J. Lu <hongjiu.lu@intel.com>
1381 * config/i386/i386.c (decide_alg): Don't assert "alg != libcall"
1382 for TARGET_INLINE_STRINGOPS_DYNAMICALLY.
1384 2014-12-05 Jakub Jelinek <jakub@redhat.com>
1387 * sanopt.c (maybe_optimize_asan_check_ifn): If base_checks is
1388 non-NULL, call maybe_get_dominating_check on it even if g is
1391 2014-12-05 Jeff Law <law@redhat.com>
1393 * doc/md.texi: Note problems using function calls to determine
1394 insn lengths and point readers to a potential workaround.
1396 2014-12-05 Andreas Schwab <schwab@linux-m68k.org>
1398 * combine.c (is_parallel_of_n_reg_sets)
1399 (can_split_parallel_of_n_reg_sets): Only define if !HAVE_cc0.
1401 2014-12-05 Andrew Pinski <apinski@cavium.com>
1403 * config/aarch64/aarch64-simd-builtins.def (bswap): Use CF2 rather
1404 than CF10 so 2 is appended on the code.
1405 * config/aarch64/aarch64-simd.md (bswap<mode>): Rename to ...
1406 (bswap<mode>2): This so it matches for the optabs.
1408 2014-12-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
1410 * regrename.c (find_best_rename_reg): Rename to ...
1411 (find_rename_reg): This. Also add a parameter to skip tick check.
1412 * regrename.h: Likewise.
1413 * config/c6x/c6x.c (try_rename_operands): Adapt to above renaming.
1415 2014-12-05 Martin Jambor <mjambor@suse.cz>
1418 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Convert alignment
1419 from bits to bytes after checking they are byte-aligned.
1421 2014-12-05 Renlin Li <renlin.li@arm.com>
1423 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Rename IDENT to SCHED.
1424 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
1425 * config/aarch64/aarch64.c (AARCH64_CORE): Rename X to IDENT,
1428 2014-12-05 Bin Cheng <bin.cheng@arm.com>
1430 * config/aarch64/aarch64.md (load_pair<mode>): Split to
1431 load_pairsi, load_pairdi, load_pairsf and load_pairdf.
1432 (load_pairsi, load_pairdi, load_pairsf, load_pairdf): Split
1433 from load_pair<mode>. New alternative to support int/fp
1434 registers in fp/int mode patterns.
1435 (store_pair<mode>:): Split to store_pairsi, store_pairdi,
1436 store_pairsf and store_pairdi.
1437 (store_pairsi, store_pairdi, store_pairsf, store_pairdf): Split
1438 from store_pair<mode>. New alternative to support int/fp
1439 registers in fp/int mode patterns.
1440 (*load_pair_extendsidi2_aarch64): New pattern.
1441 (*load_pair_zero_extendsidi2_aarch64): New pattern.
1442 (aarch64-ldpstp.md): Include.
1443 * config/aarch64/aarch64-ldpstp.md: New file.
1444 * config/aarch64/aarch64-protos.h (aarch64_gen_adjusted_ldpstp):
1446 (extract_base_offset_in_addr): New.
1447 (aarch64_operands_ok_for_ldpstp): New.
1448 (aarch64_operands_adjust_ok_for_ldpstp): New.
1449 * config/aarch64/aarch64.c (enum sched_fusion_type): New enum.
1450 (TARGET_SCHED_FUSION_PRIORITY): New hook.
1451 (fusion_load_store): New functon.
1452 (extract_base_offset_in_addr): New function.
1453 (aarch64_gen_adjusted_ldpstp): New function.
1454 (aarch64_sched_fusion_priority): New function.
1455 (aarch64_operands_ok_for_ldpstp): New function.
1456 (aarch64_operands_adjust_ok_for_ldpstp): New function.
1458 2014-12-05 Olivier Hainque <hainque@adacore.com>
1460 * defaults.h: (DWARF_REG_TO_UNWIND_COLUMN): Define default.
1461 * dwarf2cfi.c (init_one_dwarf_reg_size): Honor
1462 DWARF_REG_TO_UNWIND_COLUMN.
1464 2014-12-05 Olivier Hainque <hainque@adacore.com>
1466 * dwarf2cfi.c (init_one_dwarf_reg_size): New helper, processing
1467 one particular reg for expand_builtin_init_dwarf_reg_sizes.
1468 (expand_builtin_init_dwarf_reg_sizes): Rework to use helper and
1469 account for dwarf register spans.
1471 2014-12-05 Ilya Enkovich <ilya.enkovich@intel.com>
1474 * config/i386/i386.md (*jcc_1_bnd): New.
1477 (*jcc_1): Remove bnd prefix.
1481 2014-12-05 Renlin Li <renlin.li@arm.com>
1483 * config/aarch64/aarch64.c (aarch64_parse_cpu): Don't define
1485 (aarch64_override_options): Use selected_cpu's tuning.
1487 2014-12-05 David Edelsohn <dje.gcc@gmail.com>
1489 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_LOCAL): Append
1490 alignment to section name. Increase default alignment to word.
1492 2014-12-05 Martin Jambor <mjambor@suse.cz>
1494 * cgraph.h (cgraph_node): New method expand_all_artificial_thunks.
1495 (cgraph_edge): New method redirect_callee_duplicating_thunks.
1496 * cgraphclones.c (duplicate_thunk_for_node): Donot expand newly
1498 (redirect_edge_duplicating_thunks): Turned into edge method
1499 redirect_callee_duplicating_thunks.
1500 (cgraph_node::expand_all_artificial_thunks): New method.
1501 (create_clone): Call expand_all_artificial_thunks.
1502 * ipa-cp.c (perhaps_add_new_callers): Call
1503 redirect_callee_duplicating_thunks instead of redirect_callee.
1504 Also call expand_all_artificial_thunks.
1506 2014-12-05 Ilya Enkovich <ilya.enkovich@intel.com>
1509 * doc/sourcebuild.texi: Add mempcpy and stpcpy for Effective-Target
1512 2014-12-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1514 * diagnostic.h (diagnostic_expand_location): New inline function.
1515 * diagnostic.c (diagnostic_build_prefix): Use it.
1516 (diagnostic_show_locus): Likewise.
1518 2014-12-04 H.J. Lu <hongjiu.lu@intel.com>
1521 * configure.ac (HAVE_LD_PIE_COPYRELOC): Always define.
1522 * configure: Regenerated.
1524 2014-12-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1526 * diagnostic.c (diagnostic_color_init): New.
1527 * diagnostic.h: Declare.
1528 * gcc.c (driver::global_initializations): Use it.
1529 (driver_handle_option): Handle -fdiagnostics-color_.
1530 * toplev.c: Do not include diagnostic-color.h.
1531 (process_options): Do not initialize color diagnostics here.
1532 * common.opt (fdiagnostics-color=): Add Driver.
1533 * opts-global.c (init_options_once): Initialize color here.
1534 * opts.c (common_handle_option): Use diagnostics_color_init.
1535 * diagnostic-color.h: Fix comment.
1537 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1539 * tree-pretty-print.c (INDENT): Rename "buffer" to "pp".
1541 (buffer): Rename this variable to...
1544 (do_niy): Rename param from "buffer" to "pp".
1545 (dump_decl_name): Likewise.
1546 (dump_function_name): Likewise.
1547 (dump_function_declaration): Likewise.
1548 (dump_array_domain): Likewise.
1549 (dump_omp_clause): Likewise.
1550 (dump_omp_clauses): Likewise.
1551 (dump_location): Likewise.
1552 (dump_block_node): Likewise.
1553 (dump_generic_node): Likewise.
1554 (print_declaration): Likewise.
1555 (print_struct_decl): Likewise.
1556 (print_call_name): Likewise.
1557 (pretty_print_string): Likewise.
1558 (newline_and_indent): Likewise.
1560 (print_generic_decl): Update for renaming of "buffer" to
1562 (print_generic_stmt): Likewise.
1563 (print_generic_stmt_indented): Likewise.
1564 (print_generic_expr): Likewise.
1565 (maybe_init_pretty_print): Likewise.
1567 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1570 * tree-pretty-print.c: Eliminate include of <new>.
1571 (buffer): Convert this variable from a pretty_printer to a
1573 (initialized): Eliminate this variable in favor of the NULL-ness
1575 (print_generic_decl): Update for "buffer" becoming a pointer.
1576 (print_generic_stmt): Likewise.
1577 (print_generic_stmt_indented): Likewise.
1578 (print_generic_expr): Likewise.
1579 (maybe_init_pretty_print): Likewise, allocating "buffer" on the
1580 heap and using its non-NULL-ness to ensure idempotency.
1582 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1585 * ipa-prop.c (ipa_register_cgraph_hooks): Guard insertion of
1586 ipa_add_new_function on function_insertion_hook_holder being
1588 * ipa-reference.c (ipa_reference_c_finalize): Remove
1589 node_removal_hook_holder and node_duplication_hook_holder if
1590 they've been added to symtab.
1591 * toplev.c (toplev::finalize): Call ipa_reference_c_finalize
1592 before cgraph_c_finalize so that the former can access "symtab".
1594 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1596 * doc/cfg.texi (GIMPLE statement iterators): Add note about
1597 gphi_iterator, and use one in the example.
1598 * doc/gimple.texi (Tuple specific accessors): Add missing
1599 GIMPLE_GOTO section and menu item.
1600 (gimple_build_asm, gimple gimple_build_assign_with_ops)
1601 gimple_call_mark_uninlinable, gimple_call_cannot_inline_p): Remove
1602 description of removed functions.
1603 (gimple_build_assign, gimple_build_bind, gimple_build_call,
1604 gimple_build_call_from_tree, gimple_build_call_vec,
1605 gimple_build_catch, gimple_build_cond,
1606 gimple_build_cond_from_tree, gimple_build_debug_bind,
1607 gimple_build_eh_filter, gimple_build_label, gimple_build_goto,
1608 gimple_build_omp_atomic_load, gimple_build_omp_atomic_store,
1609 gimple_build_omp_continue, gimple_build_omp_critical,
1610 gimple_build_omp_for, gimple_build_omp_parallel,
1611 gimple_build_omp_sections, gimple_build_omp_single,
1612 gimple_build_return, gimple_build_resx, gimple_build_switch,
1613 gimple_build_try): Update return type within description to
1614 reflect changes in gimple.h to using gimple subclasses.
1615 (gimple_build_asm_vec): Update return type, params and
1617 (gimple_asm_ninputs): Update param.
1618 (gimple_asm_noutputs, gimple_asm_nclobbers, gimple_asm_input_op
1619 gimple_asm_set_input_op, gimple_asm_output_op
1620 gimple_asm_set_output_op, gimple_asm_clobber_op,
1621 gimple_asm_set_clobber_op, gimple_asm_string,
1622 gimple_asm_volatile_p, gimple_asm_set_volatile, gimple_bind_vars,
1623 gimple_bind_set_vars, gimple_bind_append_vars, gimple_bind_body,
1624 gimple_bind_set_body, gimple_bind_add_stmt, gimple_bind_add_seq,
1625 gimple_bind_block, gimple_bind_set_block, gimple_call_set_fn,
1626 gimple_call_return_type, gimple_call_set_chain,
1627 gimple_call_set_tail, gimple_call_tail_p,
1628 gimple_call_copy_skip_args, gimple_catch_types,
1629 gimple_catch_types_ptr, gimple_catch_handler,
1630 gimple_catch_set_types, gimple_catch_set_handler,
1631 gimple_cond_set_code, gimple_cond_set_lhs, gimple_cond_set_rhs,
1632 gimple_cond_true_label, gimple_cond_set_true_label,
1633 gimple_cond_set_false_label, gimple_cond_false_label,
1634 gimple_cond_make_false, gimple_cond_make_true,
1635 gimple_eh_filter_set_types, gimple_eh_filter_set_failure,
1636 gimple_eh_must_not_throw_fndecl,
1637 gimple_eh_must_not_throw_set_fndecl, gimple_label_label,
1638 gimple_label_set_label, gimple_goto_set_dest,
1639 gimple_omp_atomic_load_set_lhs, gimple_omp_atomic_load_lhs,
1640 gimple_omp_atomic_load_set_rhs, gimple_omp_atomic_load_rhs,
1641 gimple_omp_atomic_store_set_val, gimple_omp_atomic_store_val,
1642 gimple_omp_continue_control_def,
1643 gimple_omp_continue_control_def_ptr,
1644 gimple_omp_continue_set_control_def,
1645 gimple_omp_continue_control_use,
1646 gimple_omp_continue_control_use_ptr,
1647 gimple_omp_continue_set_control_use, gimple_omp_critical_name,
1648 gimple_omp_critical_name_ptr, gimple_omp_critical_set_name,
1649 gimple_omp_parallel_clauses_ptr, gimple_omp_parallel_set_clauses,
1650 gimple_omp_parallel_child_fn, gimple_omp_parallel_child_fn_ptr,
1651 gimple_omp_parallel_set_child_fn, gimple_omp_parallel_data_arg,
1652 gimple_omp_parallel_data_arg_ptr,
1653 gimple_omp_parallel_set_data_arg, gimple_omp_single_set_clauses,
1654 gimple_phi_set_result, gimple_phi_set_arg, gimple_resx_region,
1655 gimple_resx_set_region, gimple_return_retval,
1656 gimple_return_set_retval, gimple_switch_num_labels,
1657 gimple_switch_set_num_labels, gimple_switch_index,
1658 gimple_switch_set_index, gimple_switch_label,
1659 gimple_switch_set_label, gimple_switch_default_label,
1660 gimple_switch_set_default_label, gimple_try_set_eval,
1661 gimple_try_set_cleanup): Update initial param within description
1662 to reflect changes in gimple.h to using gimple subclasses.
1663 (Adding a new GIMPLE statement code): Update to reflect gimple
1664 statement subclassing.
1666 2014-12-04 Sriraman Tallam <tmsriram@google.com>
1667 H.J. Lu <hongjiu.lu@intel.com>
1669 * configure.ac (HAVE_LD_PIE_COPYRELOC): Defined to 1 if
1670 Linux/x86-64 linker supports PIE with copy reloc.
1671 * config.in: Regenerated.
1672 * configure: Likewise.
1674 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
1675 pc-relative address for undefined, non-weak, non-function
1676 symbol reference in 64-bit PIE if linker supports PIE with
1679 * doc/sourcebuild.texi: Document pie_copyreloc target.
1681 2014-12-04 Marek Polacek <polacek@redhat.com>
1684 * fold-const.c (fold_unary_loc): Perform the negation in A's type
1685 when transforming ~ (A - 1) or ~ (A + -1) to -A.
1687 2014-12-04 Tobias Burnus <burnus@net-b.de>
1689 * Makefile.in: Remove CLOOGLIB and CLOOGINC.
1691 2014-12-04 Richard Biener <rguenther@suse.de>
1693 * doc/match-and-simplify.texi: Update for recent changes.
1695 2014-12-04 Martin Jambor <mjambor@suse.cz>
1697 * ipa-prop.h (ipa_alignment): New type.
1698 (ipa_jump_func): New field alignment.
1699 (ipcp_transformation_summary) New type.
1700 (ipcp_grow_transformations_if_necessary): Declare.
1701 (ipa_node_agg_replacements): Removed.
1702 (ipcp_transformations): Declare.
1703 (ipcp_get_transformation_summary): New function.
1704 (ipa_get_agg_replacements_for_node): Use it.
1705 * ipa-cp.c (ipcp_param_lattices): New field alignment.
1706 (print_all_lattices): Also print alignment.
1707 (alignment_bottom_p): New function.
1708 (set_alignment_to_bottom): Likewise.
1709 (set_all_contains_variable): Also set alignment to bottom.
1710 (initialize_node_lattices): Likewise.
1711 (propagate_alignment_accross_jump_function): New function.
1712 (propagate_constants_accross_call): Call it.
1713 (ipcp_store_alignment_results): New function.
1714 (ipcp_driver): Call it.
1715 * ipa-prop.c (ipa_node_agg_replacements): Removed.
1716 (ipcp_transformations): New.
1717 (ipa_print_node_jump_functions_for_edge): Also print alignment.
1718 (ipa_set_jf_unknown): New function.
1719 (detect_type_change_from_memory_writes): Use ipa_set_jf_unknown.
1720 (ipa_compute_jump_functions_for_edge): Also calculate alignment.
1721 (update_jump_functions_after_inlining): Use ipa_set_jf_unknown.
1722 (ipcp_grow_transformations_if_necessary): New function.
1723 (ipa_set_node_agg_value_chain): Use ipcp_transformations.
1724 (ipa_node_removal_hook): Likewise.
1725 (ipa_node_duplication_hook): Also duplicate alignment results.
1726 (ipa_write_jump_function): Also stream alignments.
1727 (ipa_read_jump_function): Use ipa_set_jf_unknown, also stream
1729 (write_agg_replacement_chain): Renamed to
1730 write_ipcp_transformation_info, also stream alignments.
1731 (read_agg_replacement_chain): Renamed to
1732 read_ipcp_transformation_info, also stream alignments.
1733 (ipa_prop_write_all_agg_replacement): Renamed to
1734 ipcp_write_transformation_summaries. Stream always.
1735 (ipa_prop_read_all_agg_replacement): Renamed to
1736 ipcp_read_transformation_summaries.
1737 (ipcp_update_alignments): New function.
1738 (ipcp_transform_function): Call it, free also alignments.
1740 2014-12-04 Richard Biener <rguenther@suse.de>
1742 * gimple-fold.c (replace_stmt_with_simplification): Properly
1743 fail when maybe_push_res_to_seq fails.
1745 2014-12-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1747 * config/aarch64/aarch64.md (define_insn "prefetch"): New.
1749 2014-12-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1751 * doc/install.texi: Remove mentions of cloog and ppl.
1752 * doc/invoke.texi: Likewise
1754 2014-12-04 Jakub Jelinek <jakub@redhat.com>
1757 * convert.c (convert_to_real, convert_to_expr, convert_to_complex):
1758 Handle COMPOUND_EXPR.
1760 2014-12-04 Richard Biener <rguenther@suse.de>
1762 * builtins.c (target_newline): Export.
1763 (target_percent_s_newline): Likewise.
1764 (fold_builtin_1): Do not fold printf functions here.
1765 (fold_builtin_2): Likewise.
1766 (fold_builtin_3): Likewise, do not fold strncat.
1767 (fold_builtin_strncat): Move to gimple-fold.c.
1768 (fold_builtin_printf): Likewise.
1769 * builtins.h (target_newline): Declare.
1770 (target_percent_s_newline): Likewise.
1771 * gimple-fold.c (gimple_fold_builtin_strncat): Move from
1772 builtins.c and gimplify.
1773 (gimple_fold_builtin_printf): Likewise.
1774 (gimple_fold_builtin): Fold strncat, printf, printf_unlocked,
1775 vprintf, printf_chk and vprintf_chk here.
1777 2014-12-03 David Edelsohn <dje.gcc@gmail.com>
1779 * config/rs6000/rs6000.md (floatsidf2_internal): Use std::swap.
1780 (floatunssidf2_internal): Same.
1781 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Same.
1782 (rs6000_emit_int_cmove): Same.
1783 (rs6000_sched_reorder): Same.
1784 (altivec_expand_vec_perm_const): Same.
1785 (rs6000_expand_vec_perm_const_1): Same.
1787 2014-12-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1789 PR rtl-optimization/64010
1790 * reload.c (push_reload): Before reusing a register contained
1791 in an operand as input reload register, ensure that it is not
1792 used in CALL_INSN_FUNCTION_USAGE.
1794 2014-12-03 Ulrich Drepper <drepper@gmail.com>
1796 * Makefile.in: Use $(LN_S) instead of $(LN) -s and remove file first
1799 2014-12-03 Jakub Jelinek <jakub@redhat.com>
1801 * expmed.c (expand_mult): Use std::swap.
1804 * expmed.c (expand_widening_mult): Return const0_rtx if
1807 * doc/gimple.texi (gimple_build_assign_with_ops): Remove.
1808 (gimple_build_assign): Document the new overloads.
1810 2014-12-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1813 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
1814 not create LO_SUM address for constant addresses if the type can
1815 go in Altivec registers.
1817 2014-12-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1820 * pretty-print.c (output_buffer::output_buffer): Init flush_p to true.
1821 (pp_flush): Flush only if flush_p.
1822 (pp_really_flush): New.
1823 * pretty-print.h (struct output_buffer): Add flush_p.
1824 (pp_really_flush): Declare.
1826 2014-12-03 Jakub Jelinek <jakub@redhat.com>
1828 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add $(GENGTYPE_OBJS),
1829 gcc-ar.o, gcc-nm.o and gcc-ranlib.o.
1830 (GENGTYPE_OBJS): New.
1831 (gengtype-lex.o, gengtype-parse.o, gengtype-state.o, gengtype.o):
1832 Remove explicit dependencies.
1833 (CFLAGS-gengtype-lex.o, CFLAGS-gengtype-parse.o,
1834 CFLAGS-gengtype-state.o, CFLAGS-gengtype.o): Add -DHOST_GENERATOR_FILE
1835 instead of -DGENERATOR_FILE.
1836 (CFLAGS-errors.o): New.
1837 * gengtype.c: Instead of testing GENERATOR_FILE define, test
1838 HOST_GENERATOR_FILE. If defined, include config.h and define
1839 GENERATOR_FILE afterwards, otherwise include bconfig.h.
1840 * gengtype-parse.c: Likewise.
1841 * gengtype-state.c: Likewise.
1842 * gengtype-lex.l: Likewise.
1843 * errors.c: Likewise.
1845 2014-12-03 Joern Rennecke <joern.rennecke@embecosm.com>
1847 * config/epiphany/epiphany.c (epiphany_override_options):
1848 If TARGET_SOFT_CMPSF is not enabled, set flag_finite_math_only.
1849 * config/epiphany/epiphany.md (mov<mode>cc): Don't use
1850 reverse_condition_maybe_unordered if flag_finite_math_only is set.
1852 2014-12-03 Andrew Stubbs <ams@codesourcery.com>
1856 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
1857 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
1858 when architecture is older than ARMv7.
1860 2014-12-03 Richard Biener <rguenther@suse.de>
1862 * builtins.c (target_percent_c): Export.
1863 (fold_builtin_fprintf): Move to gimple-fold.c.
1864 (fold_builtin_2): Do not fold fprintf functions.
1865 (fold_builtin_3): Likewise.
1866 (fold_builtin_4): Remove.
1867 (fold_builtin_n): Do not call fold_builtin_4.
1868 * builtins.h (target_percent_c): Declare.
1869 * gimple-fold.c (gimple_fold_builtin_fprintf): Move from
1870 builtins.c and gimplify.
1871 (gimple_fold_builtin): Fold fprintf, fprintf_unlocked, vfprintf,
1872 fprintf_chk and vfprintf_chk here.
1874 2014-12-03 Martin Jambor <mjambor@suse.cz>
1877 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Check
1878 type sizes before view_converting.
1880 2014-12-03 H.J. Lu <hongjiu.lu@intel.com>
1882 PR rtl-optimization/64151
1883 PR rtl-optimization/64156
1884 * ira-costs.c (scan_one_insn): Revert r218266.
1886 2014-12-03 Richard Biener <rguenther@suse.de>
1888 * builtins.c (fold_builtin_fpclassify): Change to take
1889 array of arguments instead of CALL_EXPR tree.
1890 (MAX_ARGS_TO_FOLD_BUILTIN): Remove.
1891 (fold_builtin_n): Dispatch to fold_builtin_varargs.
1892 (fold_call_expr): Always use fold_builtin_n.
1893 (fold_builtin_call_array): Change to not build the unfolded call,
1894 always use fold_builtin_n.
1895 (fold_builtin_varargs): Change to take array of arguments instead
1897 (fold_call_stmt): Always use fold_builtin_n.
1898 * tree.c (build_call_expr_loc_array): Use fold_build_call_array_loc.
1899 * fold-const.c (fold_build_call_array_loc): Build the call
1900 if fold_builtin_call_array returned NULL_TREE.
1901 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Do not build
1902 a CALL_EXPR and use fold_builtin_call_array instead of
1905 2014-12-03 Alan Lawrence <alan.lawrence@arm.com>
1907 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>, orn<mode>3,
1908 bic<mode>3, add<mode>3, sub<mode>3, neg<mode>2, abs<mode>2, and<mode>3,
1909 ior<mode>3, xor<mode>3, one_cmpl<mode>2,
1910 aarch64_simd_lshr<mode> ,arch64_simd_ashr<mode>,
1911 aarch64_simd_imm_shl<mode>, aarch64_simd_reg_sshl<mode>,
1912 aarch64_simd_reg_shl<mode>_unsigned, aarch64_simd_reg_shr<mode>_signed,
1913 ashl<mode>3, lshr<mode>3, ashr<mode>3, vashl<mode>3,
1914 reduc_plus_scal_<mode>, aarch64_vcond_internal<mode><mode>,
1915 vcondu<mode><mode>, aarch64_cm<optab><mode>, aarch64_cmtst<mode>):
1916 Change VDQ to VDQ_I.
1918 (mul<mode>3): Change VDQM to VDQ_BHSI.
1919 (aarch64_simd_vec_set<mode>,vashr<mode>3, vlshr<mode>3, vec_set<mode>,
1920 aarch64_mla<mode>, aarch64_mls<mode>, <su><maxmin><mode>3,
1921 aarch64_<sur>h<addsub><mode>): Change VQ_S to VDQ_BHSI.
1923 (*aarch64_<su>mlal<mode>, *aarch64_<su>mlsl<mode>,
1924 aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>,
1925 aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>, aarch64_<sur>shll_n<mode>):
1926 Change VDW to VD_BHSI.
1927 (*aarch64_combinez<mode>, *aarch64_combinez_be<mode>):
1928 Change VDIC to VD_BHSI.
1930 * config/aarch64/aarch64-simd-builtins.def (saddl, uaddl, ssubl, usubl,
1931 saddw, uaddw, ssubw, usubw, shadd, uhadd, srhadd, urhadd, sshll_n,
1932 ushll_n): Change BUILTIN_VDW to BUILTIN_VD_BHSI.
1934 * config/aarch64/iterators.md (SDQ_I, VDQ, VQ_S, VSDQ_I_BHSI, VDQM, VDW,
1935 VDIC, VDQQHS): Remove.
1936 (Vwtype): Update comment (changing VDW to VD_BHSI).
1938 2014-12-03 Richard Biener <rguenther@suse.de>
1941 * builtins.c (fold_builtin_logarithm): Implement simplifications ...
1942 * match.pd: ... here as patterns.
1944 2014-12-03 Prachi Godbole <prachi.godbole@imgtec.com>
1946 * config/mips/p5600.md (define_automaton, define_cpu_unit): Replace
1947 p5600_agen_pipe and p5600_alu_pipe with p5600_agen_alq_pipe.
1948 (p5600_int_arith_1, p5600_int_arith_2, p5600_int_arith_4): Change
1951 2014-12-03 Tom de Vries <tom@codesourcery.com>
1953 PR rtl-optimization/63957
1954 * doc/invoke.texi: Replace -fuse-caller-save with -fipa-ra.
1955 * final.c (rest_of_handle_final): Replace flag_use_caller_save with
1957 (get_call_reg_set_usage): Same.
1958 * lra-assigns.c (lra_assign): Same.
1959 * lra-constraints.c (need_for_call_save_p): Same.
1960 * lra-lives.c (process_bb_lives): Same.
1961 * lra.c (lra): Same.
1962 * calls.c (expand_call): Same.
1963 (emit_library_call_value_1): Same.
1964 * config/arm/arm.c (arm_option_override): Same.
1965 * opts.c (default_options_table): Replace OPT_fuse_caller_save with
1967 * target.def (call_fusage_contains_non_callee_clobbers): Replace
1968 fuse-caller-save with fipa-ra.
1969 * doc/tm.texi (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Same.
1972 2014-12-03 Yury Gribov <y.gribov@samsung.com>
1974 * sanopt.c (maybe_get_single_definition): New function.
1975 (maybe_get_dominating_check): Ditto.
1976 (can_remove_asan_check): Ditto.
1977 (struct tree_map_traits): New struct.
1978 (struct sanopt_ctx): Use custom traits for asan_check_map.
1979 (maybe_optimize_ubsan_null_ifn): Move code to
1980 maybe_get_dominating_check.
1981 (maybe_optimize_asan_check_ifn): Move code and take non-SSA expressions
1982 into account when optimizing.
1983 (sanopt_optimize_walker): Optimize ASan checks even when
1986 2014-12-03 Ilya Enkovich <ilya.enkovich@intel.com>
1988 * config/i386/constraints.md (Yr): New.
1989 * config/i386/i386.h (reg_class): Add NO_REX_SSE_REGS.
1990 (REG_CLASS_NAMES): Likewise.
1991 (REG_CLASS_CONTENTS): Likewise.
1992 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add alternatives
1993 which use only NO_REX_SSE_REGS.
1994 (vec_set<mode>_0): Likewise.
1995 (*vec_setv4sf_sse4_1): Likewise.
1996 (sse4_1_insertps): Likewise.
1997 (*sse4_1_extractps): Likewise.
1998 (*sse4_1_mulv2siv2di3<mask_name>): Likewise.
1999 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Likewise.
2000 (*sse4_1_<code><mode>3<mask_name>): Likewise.
2001 (*sse4_1_<code><mode>3): Likewise.
2002 (*sse4_1_eqv2di3): Likewise.
2003 (sse4_2_gtv2di3): Likewise.
2004 (*vec_extractv4si): Likewise.
2005 (*vec_concatv2si_sse4_1): Likewise.
2006 (vec_concatv2di): Likewise.
2007 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Likewise.
2008 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Likewise.
2009 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Likewise.
2010 (<vi8_sse4_1_avx2_avx512>_movntdqa): Likewise.
2011 (<sse4_1_avx2>_mpsadbw): Likewise.
2012 (<sse4_1_avx2>packusdw<mask_name>): Likewise.
2013 (<sse4_1_avx2>_pblendvb): Likewise.
2014 (sse4_1_pblendw): Likewise.
2015 (sse4_1_phminposuw): Likewise.
2016 (sse4_1_<code>v8qiv8hi2<mask_name>): Likewise.
2017 (sse4_1_<code>v4qiv4si2<mask_name>): Likewise.
2018 (sse4_1_<code>v4hiv4si2<mask_name>): Likewise.
2019 (sse4_1_<code>v2qiv2di2<mask_name>): Likewise.
2020 (sse4_1_<code>v2hiv2di2<mask_name>): Likewise.
2021 (sse4_1_<code>v2siv2di2<mask_name>): Likewise.
2022 (sse4_1_ptest): Likewise.
2023 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Likewise.
2024 (sse4_1_round<ssescalarmodesuffix>): Likewise.
2025 * config/i386/subst.md (mask_prefix4): New.
2026 * config/i386/x86-tune.def (X86_TUNE_AVOID_4BYTE_PREFIXES): New.
2028 2014-12-03 Segher Boessenkool <segher@kernel.crashing.org>
2030 PR rtl-optimization/52714
2031 * combine.c (try_combine): Allow combining two insns into two
2032 new insns if at least one of those is a noop.
2034 2014-12-03 Bin Cheng <bin.cheng@arm.com>
2036 * target.def (fusion_priority): Wrap code with @smallexample.
2037 * doc/tm.texi: Regenerated.
2039 2014-12-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2041 * diagnostic.c (diagnostic_show_locus): Honor override_column when
2044 2014-12-02 Dmitry Vyukov <dvyukov@google.com>
2046 * asan.c: (asan_finish_file): Use default priority for constructors
2049 2014-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2052 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove
2053 invalid UNSPEC_TOCREL sanity check under ENABLE_CHECKING.
2055 2014-12-02 H.J. Lu <hongjiu.lu@intel.com>
2058 * config/i386/i386.c (decide_alg): Stop only if there aren't
2059 any usable algorithms.
2061 2014-12-02 Tom de Vries <tom@codesourcery.com>
2063 PR rtl-optimization/63718
2064 * config/arm/arm.c (arm_option_override): Disable fuse-caller-save for
2067 2014-12-02 Richard Biener <rguenther@suse.de>
2069 * match.pd: When combining divisions exclude the degenerate
2070 case involving INT_MIN from overflow handling.
2072 2014-12-02 Wilco Dijkstra <wilco.dijkstra@arm.com>
2074 * ira-costs.c (scan_one_insn): Improve spill cost adjustment.
2076 2014-12-02 Martin Jambor <mjambor@suse.cz>
2079 * ipa-cp.c (same_node_or_its_all_contexts_clone_p): New function.
2080 (cgraph_edge_brings_value_p): New parameter dest, use
2081 same_node_or_its_all_contexts_clone_p and check availability.
2082 (cgraph_edge_brings_value_p): Likewise.
2083 (get_info_about_necessary_edges): New parameter dest, pass it to
2084 cgraph_edge_brings_value_p. Update caller.
2085 (gather_edges_for_value): Likewise.
2086 (perhaps_add_new_callers): Use cgraph_edge_brings_value_p to check
2087 both the destination and availability.
2089 2014-12-02 Uros Bizjak <ubizjak@gmail.com>
2092 * config/alpha/alpha.md (call_value_osf_tlsgd): Do not split insn
2093 using post-reload splitter. Use peephole2 pass instead.
2094 (call_value_osf_tlsldm): Ditto.
2095 (TLS_CALL): New int iterator.
2096 (tls): New int attribute.
2097 (call_value_osf_<tls>): Merge insn pattern from call_value_osf_tlsgd
2098 and call_value_tlsldm using TLS_CALL int iterator.
2100 2014-12-02 Richard Biener <rguenther@suse.de>
2101 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
2103 * genmatch.c: Include hash-set.h.
2104 (fatal_at): Add source_location overload.
2105 (parser::record_operlist): New method.
2106 (parser::push_simplify): Likewise.
2107 (parser::oper_lists_set): New member.
2108 (parser::oper_lists): Likewise.
2109 (parser::parse_operation): Record seen operator list references.
2110 (parser::parse_c_expr): Likewise.
2111 (parser::parse_simplify): Init oper_lists_set and oper_lists
2112 and use push_simplify.
2113 (parser::parser): Init oper_lists_set and oper_lists.
2115 2014-12-02 Richard Biener <rguenther@suse.de>
2117 * match.pd: Restrict division combining to trunc_div and
2120 2014-12-02 Jakub Jelinek <jakub@redhat.com>
2122 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv):
2123 Remove NULL last argument from create_tmp_var calls.
2124 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Likewise.
2125 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv): Likewise.
2126 * config/i386/i386.c (add_condition_to_bb,
2127 ix86_atomic_assign_expand_fenv): Likewise.
2128 * config/mep/mep.c (mep_gimplify_va_arg_expr): Likewise.
2129 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
2130 * config/aarch64/aarch64-builtins.c
2131 (aarch64_atomic_assign_expand_fenv): Likewise.
2132 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
2134 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): Likewise.
2135 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Likewise.
2136 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
2138 * config/alpha/alpha.c (alpha_gimple_fold_builtin): Use
2139 gimple_build_assign instead of gimple_build_assign_with_ops and swap
2140 the order of first two arguments.
2141 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
2142 Likewise. Remove last NULL_TREE argument.
2144 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2146 PR rtl-optimization/59278
2147 * combine (reg_dead_at_p): Consider REG_UNUSED notes.
2149 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2151 * combine.c (try_combine): Use is_parallel_of_n_reg_sets some more.
2153 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2155 * combine.c (is_parallel_of_n_reg_sets): New function.
2156 (can_split_parallel_of_n_reg_sets): New function.
2157 (try_combine): If I2 is a PARALLEL of two SETs, split it into
2158 two insns if possible.
2160 2014-12-01 Tobias Burnus <burnus@net-b.de>
2161 Jack Howarth <howarth@bromo.med.uc.edu>
2164 * configure.ac (ac_has_isl_schedule_constraints_compute_schedule):
2166 * doc/install.texi (ISL): Permit ISL 0.14.
2167 * graphite-optimize-isl.c (getScheduleForBandList, optimize_isl):
2168 Conditionally use ISL 0.13+ functions.
2169 * graphite-interchange.c: Make 'extern "C"' conditional.
2170 * graphite-isl-ast-to-gimple.c: Ditto.
2171 * graphite-poly.c: Ditto.
2172 * graphite-sese-to-poly.c: Ditto.
2173 * config.in: Regenerate.
2174 * gcc/configure: Regenerate.
2176 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2178 * combine.c (distribute_links): Handle multiple SETs.
2180 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2182 * combine.c (struct insn_link): New field `regno'.
2183 (alloc_insn_link): New parameter `regno'. Use it.
2184 (find_single_use): Check the new field.
2185 (can_combine_def_p, can_combine_use_p): New functions. Split
2187 (create_log_links): ... here. Correct data type of `regno'.
2188 Adjust call to alloc_insn_link.
2189 (adjust_for_new_dest): Find regno, use it in call to
2191 (try_combine): Check reg_used_between_p when combining a PARALLEL
2192 as earlier insn. Adjust call to alloc_insn_link.
2193 (distribute_links): Check the new field.
2195 2014-12-01 David Malcolm <dmalcolm@redhat.com>
2198 * real.c (real_from_string): Add missing mpfr_clear.
2200 2014-12-01 David Malcolm <dmalcolm@redhat.com>
2203 * tree-ssa-math-opts.c (execute_cse_sincos_1): Fix a missing
2204 release of stmts by converting it to an auto_vec.
2206 2014-12-01 Richard Biener <rguenther@suse.de>
2208 * Makefile.in (gimple-match.o-warn): Use -Wno-unused instead of
2209 -Wno-unused-variable and -Wno-unused-but-set-variable to restore
2210 bootstrap with old GCC.
2211 (generic-match.o-warn): Likewise.
2213 2014-12-01 Richard Biener <rguenther@suse.de>
2215 * fold-const.c (const_binop): Handle POINTER_PLUS_EXPR.
2216 Properly handle FIXED_CST shifts by INTEGER_CST.
2217 (const_binop): Move COMPLEX_EXPR, VEC_PACK_TRUNC_EXPR,
2218 VEC_PACK_FIX_TRUNC_EXPR, VEC_WIDEN_MULT_LO_EXPR,
2219 VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_EVEN_EXPR and
2220 VEC_WIDEN_MULT_ODD_EXPR handling here from ...
2221 (fold_binary_loc): ... here. Call const_binop overload
2224 2014-12-01 Marek Polacek <polacek@redhat.com>
2225 Jakub Jelinek <jakub@redhat.com>
2228 * ubsan.c (instrument_object_size): Stop searching if the base
2229 occurs in abnormal phi.
2231 2014-12-01 Marek Polacek <polacek@redhat.com>
2234 * ubsan.c (is_ubsan_builtin_p): Check also built-in class.
2236 2014-12-01 Jakub Jelinek <jakub@redhat.com>
2238 * gimple.h (gimple_build_assign_stat): Remove prototype.
2239 (gimple_build_assign): Remove define. Add overload prototypes
2240 with tree lhs and either a tree rhs, or enum tree_code and
2241 1, 2 or 3 tree operands.
2242 * gimple.c (gimple_build_assign_stat): Renamed to...
2243 (gimple_build_assign): ... this. Add overloads with
2244 enum tree_code and 1, 2 or 3 tree operands.
2245 (gimple_build_assign_with_ops): Remove 1 and 2 operand overloads.
2246 Rename the 3 operand overload to ...
2247 (gimple_build_assign_1): ... this. Make it static inline.
2248 * tree-ssa-strlen.c (get_string_length): Use gimple_build_assign
2249 instead of gimple_build_assign_with_ops, swap the order of first
2250 two arguments and adjust formatting where necessary.
2251 * tree-vect-slp.c (vect_get_constant_vectors,
2252 vect_create_mask_and_perm): Likewise.
2253 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
2254 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
2255 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
2256 * tsan.c (instrument_builtin_call): Likewise.
2257 * tree-chkp.c (chkp_compute_bounds_for_assignment,
2258 chkp_generate_extern_var_bounds): Likewise.
2259 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
2260 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
2261 * gimple-builder.c (build_assign, build_type_cast): Likewise.
2262 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
2263 * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
2264 gimple_mod_subtract): Likewise.
2265 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
2266 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
2267 vect_recog_sad_pattern, vect_handle_widen_op_by_const,
2268 vect_recog_widen_mult_pattern, vect_recog_pow_pattern,
2269 vect_recog_widen_sum_pattern, vect_operation_fits_smaller_type,
2270 vect_recog_over_widening_pattern, vect_recog_widen_shift_pattern,
2271 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
2272 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
2273 adjust_bool_pattern_cast, adjust_bool_pattern,
2274 vect_recog_bool_pattern): Likewise.
2275 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
2276 insert_initializers, introduce_cast_before_cand,
2277 replace_one_candidate): Likewise.
2278 * tree-ssa-math-opts.c (insert_reciprocals, powi_as_mults_1,
2279 powi_as_mults, build_and_insert_binop, build_and_insert_cast,
2280 pass_cse_sincos::execute, bswap_replace, convert_mult_to_fma):
2282 * tree-tailcall.c (adjust_return_value_with_ops,
2283 update_accumulator_with_ops): Likewise.
2284 * tree-predcom.c (reassociate_to_the_same_stmt): Likewise.
2285 * tree-ssa-reassoc.c (build_and_add_sum,
2286 optimize_range_tests_to_bit_test, update_ops,
2287 maybe_optimize_range_tests, rewrite_expr_tree, linearize_expr,
2288 negate_value, repropagate_negates, attempt_builtin_powi,
2289 reassociate_bb): Likewise.
2290 * tree-vect-loop.c (vect_is_simple_reduction_1,
2291 get_initial_def_for_induction, vect_create_epilog_for_reduction):
2293 * ipa-split.c (split_function): Likewise.
2294 * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
2295 abs_replacement, neg_replacement): Likewise.
2296 * tree-profile.c (gimple_gen_edge_profiler): Likewise.
2297 * tree-vrp.c (simplify_truth_ops_using_ranges,
2298 simplify_float_conversion_using_ranges,
2299 simplify_internal_call_using_ranges): Likewise.
2300 * gimple-fold.c (rewrite_to_defined_overflow, gimple_build): Likewise.
2301 * tree-vect-generic.c (expand_vector_divmod,
2302 optimize_vector_constructor): Likewise.
2303 * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn,
2304 instrument_bool_enum_load): Likewise.
2305 * tree-ssa-loop-manip.c (create_iv): Likewise.
2306 * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
2307 expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
2308 expand_cilk_for, simd_clone_adjust): Likewise.
2309 * trans-mem.c (expand_transaction): Likewise.
2310 * tree-vect-data-refs.c (bump_vector_ptr, vect_permute_store_chain,
2311 vect_setup_realignment, vect_permute_load_chain,
2312 vect_shift_permute_load_chain): Likewise.
2313 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
2314 vectorizable_simd_clone_call, vect_gen_widened_results_half,
2315 vect_create_vectorized_demotion_stmts, vectorizable_conversion,
2316 vectorizable_shift, vectorizable_operation, vectorizable_store,
2317 permute_vec_elements, vectorizable_load): Likewise.
2319 2014-12-01 Richard Biener <rguenther@suse.de>
2322 * tree.c (int_cst_hasher::hash): Use TYPE_UID instead of
2323 htab_hash_pointer to not break PCH.
2325 2014-12-01 Richard Biener <rguenther@suse.de>
2327 PR tree-optimization/15346
2328 * Makefile.in (gimple-match.o-warn): Remove -Wno-unused-parameter,
2329 add -Wno-unused-but-set-variable.
2330 * match.pd: Combine two successive divisions.
2332 2014-12-01 Richard Biener <rguenther@suse.de>
2335 * match.pd: Allow conversions in ~A + 1 -> -A, add -A - 1 -> ~A
2337 * fold-const.c (fold_binary_loc): Remove transforms here.
2339 2014-12-01 Maciej W. Rozycki <macro@codesourcery.com>
2341 * config/mips/mips.c (mips16_build_call_stub): Move the save of
2342 the return address in $18 ahead of passing arguments to FPRs.
2344 2014-12-01 Ilya Enkovich <ilya.enkovich@intel.com>
2347 * tree-chkp.c (chkp_find_bound_slots_1): Allow non constant
2348 values in array domain.
2350 2014-12-01 Yuri Rumyantsev <ysrumyan@gmail.com>
2352 PR tree-optimization/63941
2353 * tree-if-conv.c (add_to_predicate_list): Delete wrong assertion that
2354 DOM_BB has non-true predicate, conditionally set non-true predicate
2357 2014-12-01 Martin Jambor <mjambor@suse.cz>
2360 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Convert
2361 value of the argument to the type of the value in the condition.
2363 2014-12-01 Oleg Endo <olegendo@gcc.gnu.org>
2367 * config/sh/sh.c (sh_unspec_insn_p,
2368 sh_insn_operands_modified_between_p): New functions.
2369 (sh_split_movrt_negc_to_movt_xor): Do not delete insn if its operands
2370 are modified or if it has side effects, may trap or is volatile.
2372 2014-11-29 Jakub Jelinek <jakub@redhat.com>
2374 * gimple-expr.h (create_tmp_var_raw, create_tmp_var,
2375 create_tmp_reg): Add default NULL value to last argument.
2376 * tree-ssanames.h (make_ssa_name, copy_ssa_name): Likewise.
2377 * gimple-low.c (lower_builtin_posix_memalign): Remove NULL
2378 last argument from create_tmp_var_raw, create_tmp_var,
2379 create_tmp_reg, make_ssa_name and copy_ssa_name calls.
2380 * tree-ssa-strlen.c (get_string_length): Likewise.
2381 * tree-emutls.c (gen_emutls_addr, lower_emutls_1): Likewise.
2382 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
2383 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2384 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2385 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
2386 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2387 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
2388 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
2389 * tsan.c (instrument_expr, instrument_builtin_call,
2390 instrument_func_entry): Likewise.
2391 * varpool.c (add_new_static_var): Likewise.
2392 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
2393 * gimplify.c (internal_get_tmp_var, gimplify_return_expr,
2394 gimplify_modify_expr_to_memcpy, gimplify_modify_expr_to_memset,
2395 gimplify_init_ctor_eval_range, gimplify_init_constructor,
2396 gimplify_omp_atomic, gimplify_expr): Likewise.
2397 * gimple-builder.c (build_assign, build_type_cast): Likewise.
2398 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1,
2399 slpeel_update_phi_nodes_for_guard2, slpeel_tree_peel_loop_to_edge,
2400 vect_loop_versioning): Likewise.
2401 * tree-if-conv.c (version_loop_for_if_conversion): Likewise.
2402 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
2403 * tree-vect-patterns.c (vect_handle_widen_op_by_const,
2404 vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
2405 vect_recog_over_widening_pattern): Likewise.
2406 * tree-sra.c (build_ref_for_offset, create_access_replacement):
2408 * tree-cfg.c (make_blocks): Likewise.
2409 * tree-eh.c (lower_eh_constructs_2, lower_resx, lower_eh_dispatch):
2411 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
2412 * tree-complex.c (get_component_ssa_name, expand_complex_div_wide):
2414 * tree-ssa-math-opts.c (build_and_insert_cast): Likewise.
2415 * tree-tailcall.c (update_accumulator_with_ops): Likewise.
2416 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm,
2417 execute_load_motion, reassociate_to_the_same_stmt): Likewise.
2418 * tree-ssa-reassoc.c (build_and_add_sum,
2419 optimize_range_tests_to_bit_test, update_ops,
2420 maybe_optimize_range_tests, rewrite_expr_tree, linearize_expr,
2421 negate_value, repropagate_negates): Likewise.
2422 * tree-vect-loop.c (vect_is_simple_reduction_1,
2423 vect_create_epilog_for_reduction): Likewise.
2424 * ipa-split.c (split_function): Likewise.
2425 * tree-inline.c (remap_ssa_name, setup_one_parameter,
2426 declare_return_variable, tree_function_versioning): Likewise.
2427 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
2428 * cfgexpand.c (update_alias_info_with_stack_vars, expand_used_vars):
2430 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
2431 neg_replacement): Likewise.
2432 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
2434 * tree-vrp.c (simplify_truth_ops_using_ranges,
2435 simplify_float_conversion_using_ranges,
2436 simplify_internal_call_using_ranges): Likewise.
2437 * tree-switch-conversion.c (emit_case_bit_tests,
2438 build_one_array, build_arrays, gen_def_assigns): Likewise.
2439 * gimple-fold.c (gimple_fold_builtin_memory_op,
2440 gimple_fold_builtin_strcat, gimple_fold_call, gimple_build): Likewise.
2441 * tree-vect-generic.c (expand_vector_divmod,
2442 optimize_vector_constructor): Likewise.
2443 * ubsan.c (ubsan_encode_value, ubsan_expand_null_ifn,
2444 ubsan_expand_objsize_ifn, instrument_si_overflow,
2445 instrument_bool_enum_load, instrument_nonnull_arg): Likewise.
2446 * tree-outof-ssa.c (insert_backedge_copies): Likewise.
2447 * tree-ssa-loop-manip.c (create_iv,
2448 tree_transform_and_unroll_loop): Likewise.
2449 * omp-low.c (scan_omp_parallel, lower_rec_simd_input_clauses,
2450 lower_rec_input_clauses, lower_lastprivate_clauses,
2451 expand_parallel_call, expand_omp_for_static_chunk,
2452 expand_omp_atomic_pipeline, expand_omp_target,
2453 maybe_add_implicit_barrier_cancel, lower_omp_single_simple,
2454 lower_omp_critical, lower_omp_for, task_copyfn_copy_decl,
2455 lower_depend_clauses, lower_omp_target, lower_omp_1,
2456 ipa_simd_modify_stmt_ops, simd_clone_adjust): Likewise.
2457 * tree-parloops.c (take_address_of, create_phi_for_local_result,
2458 create_call_for_reduction_1, separate_decls_in_region,
2459 create_parallel_loop): Likewise.
2460 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence,
2461 handle_scalar_deps_crossing_scop_limits): Likewise.
2462 * trans-mem.c (lower_transaction, build_tm_load, build_tm_store,
2463 expand_assign_tm, expand_call_tm, expand_transaction,
2464 ipa_tm_insert_gettmclone_call): Likewise.
2465 * tree-vect-data-refs.c (bump_vector_ptr, vect_setup_realignment):
2467 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
2468 vectorizable_call, vectorizable_simd_clone_call,
2469 vectorizable_conversion, vectorizable_store, permute_vec_elements,
2470 vectorizable_load): Likewise.
2472 2014-11-29 Tobias Burnus <burnus@net-b.de>
2473 Manuel López-Ibáñez <manu@gcc.gnu.org>
2475 * opt-functions.awk (lang_enabled_by): Support || for
2477 * optc-gen.awk: Ditto.
2478 * doc/options.texi (LangEnabledBy, EnabledBy): Document the
2481 2014-11-28 Mike Stump <mikestump@comcast.net>
2483 * bitmap.c (bitmap_ior): Zap current as it could be deleted.
2484 (bitmap_ior_and_compl): Likewise.
2486 2014-11-28 Vladimir Makarov <vmakarov@redhat.com>
2489 * lra.c (lra_substitute_pseudo): Ignore constant with int mode for
2492 2014-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2495 * config/rs6000/rs6000.md (and<mode>3): Don't generate
2496 and<mode>3_imm unless rs6000_gen_cell_microcode is true.
2498 2014-11-28 Vladimir Makarov <vmakarov@redhat.com>
2500 PR rtl-optimization/64087
2501 * lra-lives.c (process_bb_lives): Add debug output.
2502 (lra_create_live_ranges): Don't remove dead insn on the second
2503 call of lra_create_live_ranges_1.
2505 2014-11-28 H.J. Lu <hongjiu.lu@intel.com>
2507 PR rtl-optimization/64037
2508 * combine.c (setup_incoming_promotions): Pass the argument
2509 before any promotions happen to promote_function_mode.
2511 2014-11-28 Evgeny Stupachenko <evstupac@gmail.com>
2513 * tree-vect-data-refs.c (vect_transform_grouped_load): Limit shift
2514 permutations to loads group of size 3.
2516 2014-11-28 Jiong Wang <jiong.wang@arm.com>
2518 * config/arm/arm.md (copysignsf3): New pattern.
2519 (copysigndf3): Likewise.
2521 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
2522 Ilya Verbin <ilya.verbin@intel.com>
2524 * omp-low.c (lower_omp_critical): Mark critical sections
2525 inside target functions as offloadable.
2527 2014-11-28 Ilya Verbin <ilya.verbin@intel.com>
2529 * lto-wrapper.c (run_gcc): Set have_lto and have_offload if at least one
2530 file contains sections with LTO and offload IR, respectively.
2532 2014-11-28 Ilya Verbin <ilya.verbin@intel.com>
2534 * cgraphunit.c (ipa_passes): Handle flag_generate_offload.
2535 (symbol_table::compile): Set flag_generate_offload if there is something
2537 * common.opt (flag_generate_offload): New Variable declaration.
2538 * dwarf2out.c (dwarf2out_finish): Handle flag_generate_offload.
2539 * ipa-inline-analysis.c (inline_generate_summary): Do not skip if
2540 flag_generate_offload is set.
2541 * lto-streamer.c (gate_lto_out): Handle flag_generate_offload.
2542 * passes.c (ipa_write_summaries): Do not skip if flag_generate_offload
2544 * toplev.c (compile_file): Emit LTO marker if offload info has been
2545 previously emitted. Do not emit lto_slim marker if
2546 flag_generate_offload is without flag_generate_lto.
2547 * tree.c (free_lang_data): Do not skip if flag_generate_offload is set.
2549 2014-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2551 * config/arm/arm-cores.def (cortex-a17.cortex-a7): New entry.
2552 * config/arm/arm-tables.opt: Regenerate.
2553 * config/arm/arm-tune.md: Regenerate.
2554 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a17.cortex-a7.
2555 * config/arm/t-aprofile: Add cortex-a17.cortex-a7 entry to
2558 2014-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2560 * config/arm/arm.md (generic_sched): Specify cortexa17 in 'no' list.
2561 Include cortex-a17.md.
2562 * config/arm/arm.c (arm_issue_rate): Specify 2 for cortexa17.
2563 * config/arm/arm-cores.def (cortex-a17): New entry.
2564 * config/arm/arm-tables.opt: Regenerate.
2565 * config/arm/arm-tune.md: Regenerate.
2566 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=cortex-a17.
2567 * config/arm/cortex-a17.md: New file.
2568 * config/arm/cortex-a17-neon.md: New file.
2569 * config/arm/driver-arm.c (arm_cpu_table): Add entry for cortex-a17.
2570 * config/arm/t-aprofile: Add cortex-a17 entries to MULTILIB_MATCHES.
2572 2014-11-28 Richard Biener <rguenther@suse.de>
2575 * genmatch.c (dt_node::gen_kids_1): New function, split out
2576 from dt_node::gen_kids.
2577 (decision_tree::cmp_node): DT_TRUE are generally not equal.
2578 (decision_tree::find_node): Treat DT_TRUE as barrier for
2579 node CSE on the same level.
2580 (dt_node::append_node): Do not keep DT_TRUE last.
2581 (dt_node::gen_kids): Emit code after each DT_TRUE node seen.
2583 2014-11-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2585 * config/arm/t-aprofile (MULTILIB_MATCHES): New entry for
2588 2014-11-27 Uros Bizjak <ubizjak@gmail.com>
2590 * config/i386/i386.md (preferred_for_size): New attribute
2591 (*pushxf): Split Yx*r constraints to r,*r. Use preferred_for_size
2592 attribute to conditionally disable alternative 1.
2593 (*pushdf): Split Yd*r constraints to r,*r. Use preferred_for_size
2594 and prefered_for_speed attributes to conditionally disable
2596 (*movxf_internal): Split Yx*r constraints to r,*r. Use
2597 preferred_for_size attribute to conditionally disable
2598 alternatives 3 and 4.
2599 (*movdf_internal): Split Yd*r constraints to r,*r. Use
2600 preferred_for_size and prefered_for_speed attributes to conditionally
2601 disable alternatives 3 and 4.
2602 * config/i386/constraints.md (Yd, Yx): Remove register constraints.
2604 2014-11-27 Eric Botcazou <ebotcazou@adacore.com>
2606 * dwarf2out.c (set_block_origin_self): Skip nested functions.
2608 2014-11-27 H.J. Lu <hongjiu.lu@intel.com>
2611 * config/i386/i386.h (REAL_PIC_OFFSET_TABLE_REGNUM): Use
2613 * config/i386/rdos64.h (REAL_PIC_OFFSET_TABLE_REGNUM): Removed.
2615 2014-11-27 Martin Liska <mliska@suse.cz>
2616 David Malcolm <dmalcolm@redhat.com>
2618 * ipa-icf.c (sem_function::equals_private): int* is replaced with
2620 (sem_function::bb_dict_test): Likewise.
2621 * ipa-icf.h: Likewise.
2623 2014-11-27 Richard Biener <rguenther@suse.de>
2626 * fold-const.c (const_unop): Re-instantiate missing condition
2627 before calling fold_abs_const.
2629 PR tree-optimization/64088
2630 * tree-ssa-tail-merge.c (update_debug_stmt): After resetting
2631 the stmt break from the loop over use operands.
2633 2014-11-27 Ilya Tocar <ilya.tocar@intel.com>
2635 * config/i386/cpuid.h (bit_MPX, bit_BNDREGS, bit_BNDCSR):
2637 * config/i386/i386.c (get_builtin_code_for_version): Add avx512f.
2638 (fold_builtin_cpu): Ditto.
2639 * doc/extend.texi: Documment it.
2641 2014-11-27 Jakub Jelinek <jakub@redhat.com>
2644 * expr.c (expand_expr_addr_expr_1) <case COMPOUND_LITERAL_EXPR>:
2645 Handle it by returning address of COMPOUND_LITERAL_EXPR_DECL
2646 not only if modifier is EXPAND_INITIALIZER, but whenever
2647 COMPOUND_LITERAL_EXPR_DECL is non-NULL and TREE_STATIC.
2649 PR tree-optimization/64024
2650 * tree-vectorizer.h (struct _stmt_vec_info): Remove simd_clone_fndecl
2651 field. Add simd_clone_info field.
2652 (STMT_VINFO_SIMD_CLONE_FNDECL): Remove.
2653 (STMT_VINFO_SIMD_CLONE_INFO): Define.
2654 * tree-vect-stmts.c (vectorizable_simd_clone_call): Adjust for
2655 STMT_VINFO_SIMD_CLONE_FNDECL becoming first element of
2656 STMT_VINFO_SIMD_CLONE_INFO vector. For linear arguments, remember
2657 base and linear_step from analysis phase and use it during transform
2658 phase, biased by the difference between LOOP_VINFO_NITERS{_UNCHANGED,}
2659 multiplied by linear_step.
2660 (free_stmt_vec_info): Release STMT_VINFO_SIMD_CLONE_INFO.
2663 * alias.c (find_base_term): Use std::swap. Prefer tmp2
2664 if it is CONSTANT_P other than CONST_INT.
2666 2014-11-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
2669 * config/arm/arm.c (dump_minipool): dispatch to consttable pattern
2671 * config/arm/arm.md (consttable_1): Move from config/arm/thumb1.md and
2672 make it TARGET_EITHER.
2673 (consttable_2): Move from config/arm/thumb1.md, make it TARGET_EITHER
2674 and move HFmode handling from consttable_4 to it.
2675 (consttable_4): Move HFmode handling to consttable_2 pattern.
2676 * config/arm/thumb1.md (consttable_1): Move to config/arm/arm.md.
2677 (consttable_2): Ditto.
2679 2014-11-27 Richard Biener <rguenther@suse.de>
2681 * tree-ssa-sccvn.c (try_to_simplify): Allow
2682 gimple_fold_stmt_to_constant_1 to follow SSA edges.
2684 2014-11-27 Richard Biener <rguenther@suse.de>
2686 PR tree-optimization/64083
2687 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
2688 forcibly mark loop for removal the wrong way.
2690 2014-11-27 Richard Biener <rguenther@suse.de>
2693 * alias.c (mems_in_disjoint_alias_sets_p): Remove assert
2694 and instead return false when !fstrict-aliasing.
2696 2014-11-27 Richard Biener <rguenther@suse.de>
2698 PR tree-optimization/61634
2699 * tree-vect-slp.c: Include gimple-walk.h.
2700 (vect_detect_hybrid_slp_stmts): Rewrite to propagate hybrid
2701 down the SLP tree for one scalar statement.
2702 (vect_detect_hybrid_slp_1): New walker function.
2703 (vect_detect_hybrid_slp_2): Likewise.
2704 (vect_detect_hybrid_slp): Properly handle pattern statements
2705 in a pre-scan over all loop stmts.
2707 2014-11-27 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2710 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2711 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
2712 aarch64_convert_mode, aarch64_gen_ccmp_first,
2713 aarch64_gen_ccmp_next): New functions.
2714 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
2716 2014-11-26 Jakub Jelinek <jakub@redhat.com>
2718 * gcc.c (SANITIZER_SPEC): Don't error on -fsanitize=thread
2719 without -pie or -shared, error on -fsanitize=thread -static instead.
2721 2014-11-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
2724 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Fix comment.
2725 (cgraph_node::function_or_virtual_thunk_symbol): New function.
2726 (cgraph_node::call_for_symbol_and_aliases): Fix comment.
2727 (cgraph_node::call_for_symbol_thunks_and_aliases): Adjust comment.
2728 Add new optional parameter exclude_virtual_thunks.
2729 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Add new
2730 optional parameter exclude_virtual_thunks.
2731 (cgraph_node::set_const_flag): Don't propagate to virtual thunks.
2732 (cgraph_node::set_pure_flag): Likewise.
2733 (cgraph_node::function_symbol): Simplified.
2734 (cgraph_node::function_or_virtual_thunk_symbol): New function.
2735 * ipa-pure-const.c (analyze_function): For virtual thunks set
2736 pure_const_state to IPA_NEITHER.
2737 (propagate_pure_const): Use function_or_virtual_thunk_symbol.
2739 2014-11-26 Richard Biener <rguenther@suse.de>
2742 * tree-data-ref.c (split_constant_offset_1): Do not follow
2743 SSA edges for SSA names with SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2745 2014-11-26 Richard Biener <rguenther@suse.de>
2747 * fold-const.h (const_unop): Declare.
2748 (const_binop): Likewise.
2749 * fold-const.c (const_binop): Export overload that expects
2750 a type parameter and dispatches to fold_relational_const as well.
2751 Check both operand kinds for guarding the transforms.
2752 (const_unop): New function, with constant folding from fold_unary_loc.
2753 (fold_unary_loc): Dispatch to const_unop for tcc_constant operand.
2754 Remove constant folding done there from the simplifications.
2755 (fold_binary_loc): Check for constants using CONSTANT_CLASS_P.
2756 (fold_negate_expr): Remove dead code from the REAL_CST case.
2757 Avoid building garbage in the COMPLEX_CST case.
2758 * gimple-match-head.c (gimple_resimplify1): Dispatch to
2760 (gimple_resimplify2): Dispatch to const_binop.
2761 (gimple_simplify): Likewise.
2763 2014-11-26 Ilya Enkovich <ilya.enkovich@intel.com>
2766 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Ignore
2767 debug statement when searching for a new position for
2768 bounds load/creation statement.
2770 2014-11-26 Marek Polacek <polacek@redhat.com>
2773 * asan.c (initialize_sanitizer_builtins): Add BT_FN_SIZE_CONST_PTR_INT
2774 var. Conditionally build BUILT_IN_OBJECT_SIZE decl.
2775 (ATTR_PURE_NOTHROW_LEAF_LIST): Define.
2777 2014-11-26 Ilya Enkovich <ilya.enkovich@intel.com>
2780 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Use
2781 proper size for function_code bitfield.
2782 (pack_ts_function_decl_value_fields): Likewise.
2784 2014-11-21 Mark Wielaard <mjw@redhat.com>
2786 * doc/invoke.texi (-gdwarf-@{version}): Mention experimental DWARFv5.
2787 * opts.c (common_handle_option): Accept -gdwarf-5.
2788 * dwarf2out.c (is_cxx): Add DW_LANG_C_plus_plus_11 and
2789 DW_LANG_C_plus_plus_14.
2790 (lower_bound_default): Likewise. Plus DW_LANG_C11.
2791 (gen_compile_unit_die): Output DW_LANG_C_plus_plus_11,
2792 DW_LANG_C_plus_plus_14 or DW_LANG_C11.
2793 (output_compilation_unit_header): Output at most a DWARFv4 header.
2794 (output_skeleton_debug_sections): Likewise.
2795 (output_line_info): Likewise.
2796 (output_aranges): Document header version number.
2798 2014-11-26 Richard Biener <rguenther@suse.de>
2800 * gimple-fold.c (get_symbol_constant_value): Allow all
2801 GIMPLE register type zero-constants.
2803 2014-11-26 Mark Wielaard <mjw@redhat.com>
2805 * dwarf2out.c (gen_subprogram_die): Add DW_AT_noreturn when the
2806 function decl has TREE_THIS_VOLATILE.
2808 2014-11-26 Richard Biener <rguenther@suse.de>
2810 PR tree-optimization/62238
2811 * tree-predcom.c (ref_at_iteration): Unshare the expression
2812 before gimplifying it.
2813 (prepare_initializers_chain): Discard unused seq.
2815 2014-11-26 Prachi Godbole <prachi.godbole@imgtec.com>
2817 * config/mips/mips.c (mips_rtx_cost_data): Fix memory_latency cost
2820 2014-11-25 Vladimir Makarov <vmakarov@redhat.com>
2822 * ira-lives.c (process_bb_node_lives): Make code with conditional
2823 REAL_PIC_OFFSET_TABLE_REGNUM.
2825 2014-11-25 Vladimir Makarov <vmakarov@redhat.com>
2828 * ira-lives.c (process_bb_node_lives): Check and remove conflict
2829 of pic pseudo with pic hard reg.
2831 2014-11-25 Rohit <rohitarulraj@freescale.com>
2834 * config/rs6000/darwin.h (REGISTER_NAMES): Update based on 32 newly
2835 added GCC hard register numbers for SPE high registers.
2837 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2839 * bt-load.c (migrate_btr_defs): Get the key of a heap entry
2840 before removing it, not after.
2842 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2844 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Remove
2847 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2849 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_POP): Use addi instead
2852 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2854 * config/rs6000/rs6000.md (iorxor, IORXOR): Delete code_attrs.
2855 (rest of file): Replace those with code resp. CODE.
2857 2014-11-25 Tom de Vries <tom@codesourcery.com>
2859 * tree-cfg.c (verify_sese): New function.
2860 (move_sese_region_to_fn): Call verify_sese.
2861 * tree-cfg.h (verify_sese): Declare.
2863 2014-11-25 Richard Biener <rguenther@suse.de>
2866 * lto-streamer-out.c (output_struct_function_base): Stream
2868 * lto-streamer-in.c (input_struct_function_base): Likewise.
2870 2014-11-25 Martin Liska <mliska@suse.cz>
2874 * sreal.c (sreal::operator+): Addition fixed.
2875 (sreal::signedless_plus): Negative numbers are
2877 (sreal::operator-): Subtraction is fixed.
2878 (sreal::signedless_minus): Negative numbers are
2880 * sreal.h (sreal::operator<): Equal negative numbers
2881 are compared correctly.
2882 (sreal::shift): New checking asserts are introduced.
2885 2014-11-25 Richard Biener <rguenther@suse.de>
2887 PR tree-optimization/61927
2888 * tree-vect-loop.c (vect_analyze_loop_2): Revert ordering
2889 of group and pattern analysis to the one in GCC 4.8.
2891 2014-11-25 Ilya Tocar <ilya.tocar@intel.com>
2892 Jakub Jelinek <jakub@redhat.com>
2894 * gcc.c (handle_foffload_option): Remove unnecessary calls to strchr,
2896 * lto-wrapper.c (append_offload_options): Likewise.
2898 2014-11-25 Eric Botcazou <ebotcazou@adacore.com>
2900 * config/rs6000/rs6000.c (rs6000_call_aix): For the AIX ABI, do not
2901 load the static chain if the call was originally direct.
2903 2014-11-25 Jan Hubicka <hubicka@ucw.cz>
2906 * ipa-prop.c (ipa_analyze_call_uses): Don't call get_dynamic_type when
2907 devirtualization is disabled.
2909 2014-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2912 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
2913 Altivec & -16 mask if the type is not valid for Altivec registers.
2914 (rs6000_secondary_reload_memory): Add support for ((reg + const) +
2915 reg) that occurs during push_reload processing.
2917 * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
2918 alternative for moving constant vectors which are easy altivec
2919 constants to GPRs. Set the length attribute each of the
2922 * config/rs6000/rs6000-cpus.def: Undo November 21st changes, a
2923 work in progress patch was committed instead of the fixes for
2925 * config/rs6000/rs6000.c: Likewise.
2927 2014-11-22 Jan Hubicka <hubicka@ucw.cz>
2930 * ipa-inline-transform.c (can_remove_node_now_p_1): Handle alises
2931 and -fno-devirtualize more carefully.
2932 (can_remove_node_now_p): Update.
2934 2014-11-24 Andrew Pinski <apinski@cavium.com>
2937 * shrink-wrap.c (move_insn_for_shrink_wrap): Allow LO_SUM also.
2939 2014-11-24 Alan Lawrence <alan.lawrence@arm.com>
2941 * config/aarch64/aarch64-simd.md (vec_shr<mode>): New.
2943 2014-11-24 Alan Lawrence <alan.lawrence@arm.com>
2945 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
2946 Refactor by combining switch statements and make arrays into scalars.
2948 2014-11-24 David Edelsohn <dje.gcc@gmail.com>
2951 * dbxout.c: Include stringpool.h
2952 (dbxout_type) [default]: Ignore auto type.
2954 2014-11-24 Richard Biener <rguenther@suse.de>
2956 PR tree-optimization/63679
2957 * tree-ssa-sccvn.c: Include ipa-ref.h, plugin-api.h and cgraph.h.
2958 (copy_reference_ops_from_ref): Fix non-constant ADDR_EXPR case
2959 to properly leave off at -1.
2960 (fully_constant_vn_reference_p): Generalize folding from
2961 constant initializers.
2962 (vn_reference_lookup_3): When looking through aggregate copies
2963 handle offsetted reads and try simplifying the result to
2965 * gimple-fold.h (fold_ctor_reference): Export.
2966 * gimple-fold.c (fold_ctor_reference): Likewise.
2968 2014-11-24 Petr Murzin <petr.murzin@intel.com>
2970 * simplify-rtx.c (simplify_ternary_operation): Simplify
2971 vec_merge (vec_duplicate (vec_select)).
2973 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2975 * config/aarch64/aarch64.c (AARCH64_FUSE_ADRP_LDR): Define.
2976 (cortexa53_tunings): Specify AARCH64_FUSE_ADRP_LDR in fuseable_ops.
2977 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_LDR.
2979 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2981 * config/aarch64/aarch64.c (AARCH64_FUSE_MOVK_MOVK): Define.
2982 (cortexa53_tunings): Specify AARCH64_FUSE_MOVK_MOVK in fuseable_ops.
2983 (cortexa57_tunings): Likewise.
2984 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_MOVK_MOVK.
2986 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2988 * sched-deps.c (sched_macro_fuse_insns): Do not check modified_in_p
2989 in the not conditional jump case.
2990 * doc/tm.texi (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
2991 * target.def (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
2993 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2995 * config/aarch64/aarch64.c: Include tm-constrs.h
2996 (AARCH64_FUSE_ADRP_ADD): Define.
2997 (cortexa57_tunings): Add AARCH64_FUSE_ADRP_ADD to fuseable_ops.
2998 (cortexa53_tunings): Likewise.
2999 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_ADD.
3001 2014-11-24 Martin Liska <mliska@suse.cz>
3003 * ipa-inline.c (edge_badness): long is replaced by sreal
3004 as fibonacci_heap template type.
3005 (update_edge_key): Likewise.
3006 (inline_small_functions): Likewise.
3008 2014-11-24 Martin Liska <mliska@suse.cz>
3010 * predict.c (propagate_freq): More elegant sreal API is used.
3011 (estimate_bb_frequencies): Precomputed constants replaced by integer
3013 * sreal.c (sreal::normalize): New function.
3014 (sreal::to_int): Likewise.
3015 (sreal::operator+): Likewise.
3016 (sreal::operator-): Likewise.
3017 (sreal::signedless_plus): Likewise.
3018 (sreal::signedless_minus): Likewise.
3019 (sreal::operator/): Negative number support is added.
3020 * sreal.h: Definition of new functions added.
3021 (inline sreal operator<<): New function.
3022 (inline sreal operator>>): Likewise.
3024 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3026 * config/aarch64/aarch64-protos.h (struct tune_params): Add
3028 * config/aarch64/aarch64.c (generic_tunings): Specify fuseable_ops.
3029 (cortexa53_tunings): Likewise.
3030 (cortexa57_tunings): Likewise.
3031 (thunderx_tunings): Likewise.
3032 (aarch64_macro_fusion_p): New function.
3033 (aarch_macro_fusion_pair_p): Likewise.
3034 (TARGET_SCHED_MACRO_FUSION_P): Define.
3035 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
3036 (AARCH64_FUSE_MOV_MOVK): Likewise.
3037 (AARCH64_FUSE_NOTHING): Likewise.
3039 2014-11-24 Martin Liska <mliska@suse.cz>
3042 * bb-reorder.c (find_traces_1_round): decreate_key is replaced
3043 with replace_key method.
3044 * fibonacci_heap.h (fibonacci_heap::insert): New argument.
3045 (fibonacci_heap::replace_key_data): Likewise.
3046 (fibonacci_heap::replace_key): New method that can even increment key,
3047 this operation costs O(log N).
3048 (fibonacci_heap::extract_min): New argument.
3049 (fibonacci_heap::delete_node): Likewise.
3051 2014-11-24 Richard Biener <rguenther@suse.de>
3053 PR tree-optimization/55334
3054 * function.h (struct function): Add last_clique member.
3055 * tree-inline.c (remap_dependence_clique): New function.
3056 (remap_gimple_op_r): Remap dependence cliques in MEM_REFs.
3057 (copy_tree_body_r): Likewise.
3058 (copy_cfg_body): Free dependence map.
3059 (copy_gimple_seq_and_replace_locals): Likewise.
3060 * tree-pretty-print.c (dump_generic_node): Dump
3062 * tree-ssa-alias.c (refs_may_alias_p_1): Use dependence info
3063 to answer alias query.
3064 * tree-ssa-structalias.c: Include tree-phinodes.h, ssa-iterators.h,
3065 tree-pretty-print.h and gimple-walk.h.
3066 (struct variable_info): Add is_restrict_var flag and ruid
3068 (new_var_info): Initialize is_restrict_var.
3069 (make_constraint_from_restrict): Likewise.
3070 (create_variable_info_for): Exclude restricts from global vars
3072 (intra_create_variable_infos): But not those from parameters.
3073 (visit_loadstore): New function.
3074 (maybe_set_dependence_info): Likewise.
3075 (compute_dependence_clique): Likewise.
3076 (compute_may_aliases): Call compute_dependence_clique.
3077 * tree-data-ref.c (dr_analyze_indices): Copy dependence info
3079 (dr_may_alias_p): Use recorded dependence info to answer
3081 * tree-core.h (struct tree_base): Add clique, base struct in
3083 * tree.h (MR_DEPENDENCE_CLIQUE): New macro.
3084 (MR_DEPENDENCE_BASE): Likewise.
3085 * tree-inline.h (dependence_hasher): New hash-map kind.
3086 (struct copy_body_data): Add dependence_map pointer.
3087 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Avoid
3088 throwing away dependence info.
3089 * tree-streamer-in.c (unpack_value_fields): Stream dependence info.
3090 * tree-streamer-out.c (streamer_pack_tree_bitfields): Likewise.
3092 2014-11-23 Oleg Endo <olegendo@gcc.gnu.org>
3095 * config/sh/sh_optimize_sett_clrt.cc
3096 (sh_optimize_sett_clrt::find_last_ccreg_values): Return bool instead
3097 of void. Abort at complex edges.
3098 (sh_optimize_sett_clrt::execute): Do nothing if find_last_ccreg_values
3101 2014-11-22 John David Anglin <danglin@gcc.gnu.org>
3104 * configure.ac: Check for strtol, strtoul, strtoll and strtoull
3106 * configure: Regenerated.
3107 * config.in: Regenerated.
3109 2014-11-22 Jan Hubicka <hubicka@ucw.cz>
3111 * ipa.c (symbol_table::remove_unreachable_nodes): Mark all inline
3112 clones as having abstract origin used.
3113 * ipa-inline-transform.c (can_remove_node_now_p_1): Drop abstract
3115 (clone_inlined_nodes): Copy abstract originflag.
3116 * lto-cgraph.c (compute_ltrans_boundary): Use get_create to get
3117 abstract origin node.
3119 2014-11-22 Uros Bizjak <ubizjak@gmail.com>
3121 * params.def (PARAM_MAX_COMPLETELY_PEELED_INSNS): Increase to 200.
3122 * config/i386/i386.c (ix86_option_override_internal): Do not increase
3123 PARAM_MAX_COMPLETELY_PEELED_INSNS.
3125 2014-11-22 Oleg Endo <olegendo@gcc.gnu.org>
3129 * config/sh/sh_treg_combine.cc (sh_treg_combine::make_not_reg_insn):
3130 Do not emit bitwise not insn. Emit logical not insn sequence instead.
3131 Adjust related comments throughout the file.
3133 2014-11-22 Oleg Endo <olegendo@gcc.gnu.org>
3137 * config/sh/sh.c (sh_is_logical_t_store_expr,
3138 sh_try_omit_signzero_extend): Use rtx_insn* for insn argument.
3139 (sh_split_movrt_negc_to_movt_xor): New function.
3140 (sh_find_set_of_reg): Move to ...
3141 * config/sh/sh-protos.h (sh_find_set_of_reg): ... here and convert
3142 to template function.
3143 (set_of_reg): Use rtx_insn* for insn member.
3144 (sh_is_logical_t_store_expr, sh_try_omit_signzero_extend): Use
3145 rtx_insn* for insn argument.
3146 * config/sh/sh.md (movrt_negc, *movrt_negc): Split into movt-xor
3147 sequence using new sh_split_movrt_negc_to_movt_xor function.
3148 (movrt_xor): Allow also for SH2A.
3149 (*movt_movrt): Delete insns and splits.
3151 2014-11-22 Marc Glisse <marc.glisse@inria.fr>
3153 PR tree-optimization/60770
3154 * tree-sra.c (clobber_subtree): New function.
3155 (sra_modify_constructor_assign): Call it.
3157 2014-11-21 Vladimir Makarov <vmakarov@redhat.com>
3160 * lra-lives.c (mark_regno_live, mark_regno_dead): Remove last
3162 (process_bb_lives): Rename dead_insn_p on remove_p
3163 and global_live_info_p on dead_insn_p. Calculate local live info
3164 unconditionally. Remove last argument in calls mark_regno_live and
3165 mark_regno_dead. Reorganize body of EXECUTE_IF_SET_IN_BITMAP.
3166 (lra_create_live_ranges): Rename to lra_create_live_ranges_1.
3167 Return bool. Rename global_live_info_p on dead_insn_p. Return
3168 flag of live info change.
3169 (lra_create_live_ranges): New.
3171 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3175 * internal-fn.c (expand_arith_overflow_result_store,
3176 expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow): Use
3177 do_compare_rtx_and_jump instead of emit_cmp_and_jump_insns everywhere,
3178 adjust arguments to those functions. Use unsignedp = true for
3179 EQ, NE, GEU, LEU, LTU and GTU comparisons.
3181 PR tree-optimization/64006
3182 * tree-vrp.c (stmt_interesting_for_vrp): Return true
3183 for {ADD,SUB,MUL}_OVERFLOW internal calls.
3184 (vrp_visit_assignment_or_call): For {ADD,SUB,MUL}_OVERFLOW
3185 internal calls, check if any REALPART_EXPR/IMAGPART_EXPR
3186 immediate uses would change their value ranges and return
3187 SSA_PROP_INTERESTING if so, or SSA_PROP_NOT_INTERESTING
3188 if there are some REALPART_EXPR/IMAGPART_EXPR immediate uses
3189 interesting for vrp.
3191 2014-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3194 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
3195 Altivec & -16 mask if the type is not valid for Altivec registers.
3196 (rs6000_secondary_reload_memory): Add support for ((reg + const) +
3197 reg) that occurs during push_reload processing.
3199 * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
3200 alternative for moving constant vectors which are easy altivec
3201 constants to GPRs. Set the length attribute each of the
3204 2014-11-21 Matthew Fortune <matthew.fortune@imgtec.com>
3206 * configure.ac: When checking for MIPS .module support ensure that
3207 o32 FPXX is supported to avoid a second configure check.
3208 * configure: Regenerate.
3210 2014-11-21 Jiong Wang <jiong.wang@arm.com>
3212 * config/aarch64/iterators.md (VS): New mode iterator.
3213 (vsi2qi): New mode attribute.
3215 * config/aarch64/aarch64-simd-builtins.def: New entry for ctz.
3216 * config/aarch64/aarch64-simd.md (ctz<mode>2): New pattern for ctz.
3217 * config/aarch64/aarch64-builtins.c
3218 (aarch64_builtin_vectorized_function): Support BUILT_IN_CTZ.
3220 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
3223 * configure: Regenerated.
3225 2014-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3227 * config/aarch64/arm_neon.h (vsqrt_f64): New intrinsic.
3229 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3231 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
3232 OPTION_MASK_ISA_PCOMMIT_SET): New.
3233 (ix86_handle_option): Handle OPT_mpcommit.
3234 * config.gcc: Add pcommitintrin.h
3235 * config/i386/pcommitintrin.h: New file.
3236 * config/i386/cpuid.h (bit_PCOMMIT): Define.
3237 * config/i386/driver-i386.c (host_detect_local_cpu): Detect pcommit.
3238 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3240 * config/i386/i386.c (ix86_target_string): Add -mpcommit.
3241 (PTA_PCOMMIT): Define.
3242 (ix86_option_override_internal): Handle new option.
3243 (ix86_valid_target_attribute_inner_p): Add pcommit.
3244 (ix86_builtins): Add IX86_BUILTIN_PCOMMIT.
3245 (bdesc_special_args): Add __builtin_ia32_pcommit.
3246 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Define.
3247 * config/i386/i386.md (unspecv): Add UNSPECV_PCOMMIT.
3248 (pcommit): New instruction.
3249 * config/i386/i386.opt: Add mpcommit.
3250 * config/i386/x86intrin.h: Include pcommitintrin.h.
3252 2014-11-20 Mark Wielaard <mjw@redhat.com>
3255 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use lang_GNU_C.
3256 * config/darwin.c (darwin_file_end): Use lang_GNU_CXX.
3257 (darwin_override_options): Likewise.
3258 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
3260 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3262 * dbxout.c (get_lang_number): Likewise.
3263 (dbxout_type): Likewise.
3264 (dbxout_symbol_location): Likewise.
3265 * dwarf2out.c (add_prototyped_attribute): Add DW_AT_prototype
3266 also for DW_LANG_{C,C99,ObjC}.
3267 (highest_c_language): New function.
3268 (gen_compile_unit_die): Call highest_c_language to merge LTO
3269 TRANSLATION_UNIT_LANGUAGE. Use strncmp language_string to
3270 determine if DW_LANG_C99 or DW_LANG_C89 should be returned.
3271 * fold-const.c (fold_cond_expr_with_comparison): Use lang_GNU_CXX.
3272 * langhooks.h (struct lang_hooks): Add version comment to name.
3273 (lang_GNU_C): New function declaration.
3274 (lang_GNU_CXX): Likewise.
3275 * langhooks.c (lang_GNU_C): New function.
3276 (lang_GNU_CXX): Likewise.
3277 * vmsdbgout.c (vmsdbgout_init): Use lang_GNU_C and lang_GNU_CXX.
3279 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3281 * common/config/i386/i386-common.c (OPTION_MASK_ISA_CLWB_UNSET,
3282 OPTION_MASK_ISA_CLWB_SET): New.
3283 (ix86_handle_option): Handle OPT_mclwb.
3284 * config.gcc: Add clwbintrin.h.
3285 * config/i386/clwbintrin.h: New file.
3286 * config/i386/cpuid.h (bit_CLWB): Define.
3287 * config/i386/driver-i386.c (host_detect_local_cpu): Detect clwb.
3288 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3290 * config/i386/i386.c (ix86_target_string): Add -mclwb.
3292 (ix86_option_override_internal): Handle new option.
3293 (ix86_valid_target_attribute_inner_p): Add clwb.
3294 (ix86_builtins): Add IX86_BUILTIN_CLWB.
3295 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clwb.
3296 (ix86_expand_builtin): Handle IX86_BUILTIN_CLWB.
3297 * config/i386/i386.h (TARGET_CLWB, TARGET_CLWB_P): Define.
3298 * config/i386/i386.md (unspecv): Add UNSPECV_CLWB.
3299 (clwb): New instruction.
3300 * config/i386/i386.opt: Add mclwb.
3301 * config/i386/x86intrin.h: Include clwbintrin.h.
3303 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3305 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET
3306 OPTION_MASK_ISA_AVX512VBMI_UNSET): New.
3307 (ix86_handle_option): Handle OPT_mavx512vbmi.
3308 * config.gcc: Add avx512vbmiintrin.h, avx512vbmivlintrin.h.
3309 * config/i386/avx512vbmiintrin.h: New file.
3310 * config/i386/avx512vbmivlintrin.h: Ditto.
3311 * config/i386/cpuid.h (bit_AVX512VBMI): New.
3312 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vbmi.
3313 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3315 * config/i386/i386.c (ix86_target_string): Add -mavx512vbmi.
3316 (PTA_AVX512VBMI): Define.
3317 (ix86_option_override_internal): Handle new options.
3318 (ix86_valid_target_attribute_inner_p): Add avx512vbmi,
3319 (ix86_builtins): Add IX86_BUILTIN_VPMULTISHIFTQB512,
3320 IX86_BUILTIN_VPMULTISHIFTQB256, IX86_BUILTIN_VPMULTISHIFTQB128,
3321 IX86_BUILTIN_VPERMVARQI512_MASK, IX86_BUILTIN_VPERMT2VARQI512,
3322 IX86_BUILTIN_VPERMT2VARQI512_MASKZ, IX86_BUILTIN_VPERMI2VARQI512,
3323 IX86_BUILTIN_VPERMVARQI256_MASK, IX86_BUILTIN_VPERMVARQI128_MASK,
3324 IX86_BUILTIN_VPERMT2VARQI256, IX86_BUILTIN_VPERMT2VARQI256_MASKZ,
3325 IX86_BUILTIN_VPERMT2VARQI128, IX86_BUILTIN_VPERMI2VARQI256,
3326 IX86_BUILTIN_VPERMI2VARQI128.
3327 (bdesc_special_args): Add __builtin_ia32_vpmultishiftqb512_mask,
3328 __builtin_ia32_vpmultishiftqb256_mask,
3329 __builtin_ia32_vpmultishiftqb128_mask,
3330 __builtin_ia32_permvarqi512_mask, __builtin_ia32_vpermt2varqi512_mask,
3331 __builtin_ia32_vpermt2varqi512_maskz,
3332 __builtin_ia32_vpermi2varqi512_mask, __builtin_ia32_permvarqi256_mask,
3333 __builtin_ia32_permvarqi128_mask, __builtin_ia32_vpermt2varqi256_mask,
3334 __builtin_ia32_vpermt2varqi256_maskz,
3335 __builtin_ia32_vpermt2varqi128_mask,
3336 __builtin_ia32_vpermt2varqi128_maskz,
3337 __builtin_ia32_vpermi2varqi256_mask,
3338 __builtin_ia32_vpermi2varqi128_mask.
3339 (ix86_hard_regno_mode_ok): Allow big masks for AVX512VBMI.
3340 * config/i386/i386.h (TARGET_AVX512VBMI, TARGET_AVX512VBMI_P): Define.
3341 * config/i386/i386.opt: Add mavx512vbmi.
3342 * config/i386/immintrin.h: Include avx512vbmiintrin.h,
3343 avx512vbmivlintrin.h.
3344 * config/i386/sse.md (unspec): Add UNSPEC_VPMULTISHIFT.
3345 (VI1_AVX512VL): New iterator.
3346 (<avx512>_permvar<mode><mask_name>): Use it.
3347 (<avx512>_vpermi2var<mode>3_maskz): Ditto.
3348 (<avx512>_vpermi2var<mode>3<sd_maskz_name>): Ditto.
3349 (<avx512>_vpermi2var<mode>3_mask): Ditto.
3350 (<avx512>_vpermt2var<mode>3_maskz): Ditto.
3351 (<avx512>_vpermt2var<mode>3<sd_maskz_name>): Ditto.
3352 (<avx512>_vpermt2var<mode>3_mask): Ditto.
3353 (vpmultishiftqb<mode><mask_name>): Ditto.
3355 2014-11-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3357 PR rtl-optimization/63952
3358 * optabs.c (prepare_cmp_insn): Do not call can_compare_p for CCmode.
3359 * config/s390/s390.md ("cbranchcc4"): Accept any s390_comparison.
3360 Remove incorrect TARGET_HARD_FLOAT check and no-op expander code.
3362 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3364 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512IFMA_SET,
3365 OPTION_MASK_ISA_AVX512IFMA_UNSET): New.
3366 (ix86_handle_option): Handle OPT_mavx512ifma.
3367 * config.gcc: Add avx512ifmaintrin.h, avx512ifmavlintrin.h.
3368 * config/i386/avx512ifmaintrin.h: New file.
3369 * config/i386/avx512ifmaivlntrin.h: Ditto.
3370 * config/i386/cpuid.h (bit_AVX512IFMA): New.
3371 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3373 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3375 * config/i386/i386.c (ix86_target_string): Add -mavx512ifma.
3376 (PTA_AVX512IFMA): Define.
3377 (ix86_option_override_internal): Handle new options.
3378 (ix86_valid_target_attribute_inner_p): Add avx512ifma.
3379 (ix86_builtins): Add IX86_BUILTIN_VPMADD52LUQ512,
3380 IX86_BUILTIN_VPMADD52HUQ512, IX86_BUILTIN_VPMADD52LUQ256,
3381 IX86_BUILTIN_VPMADD52HUQ256, IX86_BUILTIN_VPMADD52LUQ128,
3382 IX86_BUILTIN_VPMADD52HUQ128, IX86_BUILTIN_VPMADD52LUQ512_MASKZ,
3383 IX86_BUILTIN_VPMADD52HUQ512_MASKZ, IX86_BUILTIN_VPMADD52LUQ256_MASKZ,
3384 IX86_BUILTIN_VPMADD52HUQ256_MASKZ, IX86_BUILTIN_VPMADD52LUQ128_MASKZ,
3385 IX86_BUILTIN_VPMADD52HUQ128_MASKZ.
3386 (bdesc_special_args): Add __builtin_ia32_vpmadd52luq512_mask,
3387 __builtin_ia32_vpmadd52luq512_maskz,
3388 __builtin_ia32_vpmadd52huq512_mask,
3389 __builtin_ia32_vpmadd52huq512_maskx,
3390 __builtin_ia32_vpmadd52luq256_mask,
3391 __builtin_ia32_vpmadd52luq256_maskz,
3392 __builtin_ia32_vpmadd52huq256_mask,
3393 __builtin_ia32_vpmadd52huq256_maskz,
3394 __builtin_ia32_vpmadd52luq128_mask,
3395 __builtin_ia32_vpmadd52luq128_maskz,
3396 __builtin_ia32_vpmadd52huq128_mask,
3397 __builtin_ia32_vpmadd52huq128_maskz,
3398 * config/i386/i386.h (TARGET_AVX512IFMA, TARGET_AVX512IFMA_P): Define.
3399 * config/i386/i386.opt: Add mavx512ifma.
3400 * config/i386/immintrin.h: Include avx512ifmaintrin.h,
3401 avx512ifmavlintrin.h.
3402 * config/i386/sse.md (unspec): Add UNSPEC_VPMADD52LUQ,
3404 (VPMADD52): New iterator.
3405 (vpmadd52type): New attribute.
3406 (vpamdd52huq<mode>_maskz): New.
3407 (vpamdd52luq<mode>_maskz): Ditto.
3408 (vpamdd52<vpmadd52type><mode><sd_maskz_name>): Ditto.
3409 (vpamdd52<vpmadd52type><mode>_mask): Ditto.
3411 2014-11-21 Alan Lawrence <alan.lawrence@arm.com>
3414 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
3415 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
3417 2014-11-21 Andrew Bennett <andrew.bennett@imgtec.com>
3419 * config/mips/mips.c (mips_process_sync_loop): Place a
3420 nop in the delay slot of the branch likely instruction.
3421 (mips_output_sync_loop): Ensure mips_branch_likely is
3422 set before calling mips_output_sync_loop.
3423 (mips_sync_loop_insns): Likewise.
3425 2014-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3428 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Allow
3429 the base pointer of vec_vsx_ld and vec_vsx_st to take a pointer to
3432 2014-11-21 Georg-Johann Lay <avr@gjlay.de>
3434 Forward-port from 2014-10-30 4_9-branch r216934
3437 * config/avr/avr-protos.h (regmask): New inline function.
3438 (avr_fix_inputs, avr_emit3_fix_outputs): New protos.
3439 * config/avr/avr.c (avr_fix_operands, avr_move_fixed_operands)
3440 (avr_fix_inputs, avr_emit3_fix_outputs): New functions.
3441 * config/avr/avr-fixed.md (mulqq3_nomul, muluqq3_nomul)
3442 (mul<ALL2QA>3, mul<ALL4A>3, <usdiv><ALL1Q>3, <usdiv><ALL2QA>3)
3443 (<usdiv><ALL4A>3, round<ALL124QA>3): Fix input operands.
3444 * config/avr/avr-dimode.md (add<ALL8>3, sub<ALL8>3)
3445 (<ss_addsub><ALL8S>3, <us_addsub><ALL8U>3, cbranch<ALL8>4)
3446 (<di_shifts><ALL8>3, <any_extend>mulsidi3): Fix input operands.
3447 * config/avr/avr.md (mulqi3_call, mulhi3_call, mulsi3, mulpsi3)
3448 (mulu<QIHI>si3, muls<QIHI>si3, mulohisi3, <any_extend>mulhisi3)
3449 (usmulhisi3, <any_extend>mulhi3_highpart, mulsqipsi3)
3450 (fmul, fmuls, fmulsu): Fix operands. Turn insn into expander as
3453 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3456 * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
3457 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
3459 2014-11-21 James Greenhalgh <james.greenhalgh@arm.com>
3461 * config/aarch64/aarch64-simd.md
3462 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Add a tab between
3463 output mnemonic and operands.
3464 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
3465 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
3467 2014-11-21 Evgeny Stupachenko <evstupac@gmail.com>
3469 * config/i386/i386.c (ix86_option_override_internal): Increase
3470 PARAM_MAX_COMPLETELY_PEELED_INSNS.
3472 2014-11-21 Evgeny Stupachenko <evstupac@gmail.com>
3475 * config/i386/i386.c (expand_vec_perm_even_odd_pack): New.
3476 (expand_vec_perm_even_odd_1): Add new expand for V8HI mode,
3477 replace for V16QI, V16HI and V32QI modes.
3478 (ix86_expand_vec_perm_const_1): Add new expand.
3480 2014-11-21 Nick Clifton <nickc@redhat.com>
3482 * config/rl78/rl78-real.md (movqi_from_es): New pattern.
3483 * config/rl78/rl78.c (struct machine_function): Add uses_es field.
3484 (rl78_expand_prologue): Save the ES register in interrupt handlers
3486 (rl78_expand_epilogue): Restore the ES register if necessary.
3487 (rl78_start_function): Mention if the function uses the ES
3489 (rl78_lo16): Record the use of the ES register.
3490 (transcode_memory_rtx): Likewise.
3492 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3494 PR tree-optimization/61773
3495 * tree-ssa-strlen.c (get_string_length): Don't assert
3496 stpcpy has been prototyped if si->stmt is BUILT_IN_MALLOC.
3499 * simplify-rtx.c (simplify_immed_subreg): Return NULL for integer
3500 modes wider than MAX_BITSIZE_MODE_ANY_INT. If not using
3501 CONST_WIDE_INT, make sure r fits into CONST_DOUBLE.
3503 2014-11-21 Markus Trippelsdorf <markus@trippelsdorf.de>
3505 * config/rs6000/rs6000.c (includes_rldic_lshift_p): Use
3506 HOST_WIDE_INT_M1U instead of ~0.
3507 (includes_rldicr_lshift_p): Likewise.
3509 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3511 * config/nds32/nds32.c (nds32_legitimate_address_p): For LO_SUM,
3512 we need to look into its operand to determine if it is a valid
3515 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3517 * config/nds32/nds32.c (nds32_emit_stack_push_multiple): Add new
3518 vaarg_p argument and create correct CFI info.
3519 (nds32_expand_prologue): Pass true or false to
3520 nds32_emit_stack_push_multiple function.
3522 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3524 * config/nds32/nds32.c (nds32_expand_prologue): Set fp_adjust_insn
3525 as RTX_FRAME_RELATED_P rtx.
3527 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3529 * config/nds32/nds32.opt (march): Add help message.
3531 2014-11-20 Patrick Palka <ppalka@gcc.gnu.org>
3533 * tree-vrp.c (test_for_singularity): New parameter
3534 strict_overflow_p. Set *strict_overflow_p to true if signed
3535 overflow must be undefined for the return value to satisfy the
3537 (simplify_cond_using_ranges): Don't perform the simplification
3538 if it violates overflow rules.
3540 2014-11-20 Marek Polacek <polacek@redhat.com>
3542 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Fix typo.
3544 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
3546 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
3547 condition would be removed due to undefined behaviour.
3549 2014-11-20 Andrew Pinski <apinski@cavium.com>
3553 * ipa-polymorphic-call.c (possible_placement_new):
3554 Use POINTER_SIZE instead of GET_MODE_BITSIZE (Pmode).
3555 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
3556 (extr_type_from_vtbl_ptr_store): Likewise.
3558 2014-11-20 Markus Trippelsdorf <markus@trippelsdorf.de>
3560 * config/rs6000/constraints.md: Avoid signed integer overflows.
3561 * config/rs6000/predicates.md: Likewise.
3562 * config/rs6000/rs6000.c (num_insns_constant_wide): Likewise.
3563 (includes_rldic_lshift_p): Likewise.
3564 (includes_rldicr_lshift_p): Likewise.
3565 * emit-rtl.c (const_wide_int_htab_hash): Likewise.
3566 * loop-iv.c (determine_max_iter): Likewise.
3567 (iv_number_of_iterations): Likewise.
3568 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Likewise.
3569 * varasm.c (get_section_anchor): Likewise.
3571 2014-11-20 Charles Baylis <charles.baylis@linaro.org>
3574 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Pass
3575 expression to aarch64_simd_lane_bounds.
3576 * config/aarch64/aarch64-protos.h (aarch64_simd_lane_bounds): Update
3578 * config/aarch64/aarch64-simd.md: (aarch64_combinez<mode>): Update
3579 call to aarch64_simd_lane_bounds.
3580 (aarch64_get_lanedi): Likewise.
3581 (aarch64_ld2_lane<mode>): Likewise.
3582 (aarch64_ld3_lane<mode>): Likewise.
3583 (aarch64_ld4_lane<mode>): Likewise.
3584 (aarch64_im_lane_boundsi): Likewise.
3585 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Add exp
3586 parameter. Report calling function in error message if exp is non-NULL.
3588 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3591 * config/sh/sh.c: Use signed char for signed field.
3593 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3595 * cfgexpand.c, gimple-ssa.h, trans-mem.c: Replace htab with
3598 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3600 * ipa-utils.c, lto-section-in.c, lto-streamer.h,
3601 tree-scalar-evolution.c: Replace htab with hash_table.
3603 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3605 * lto-section-in.c (lto_delete_in_decl_state): Adjust.
3606 (lto_free_function_in_decl_state): Likewise.
3607 * lto-streamer-out.c (copy_function_or_variable): Likewise.
3608 * lto-streamer.h (lto_file_decl_data_get_ ## name): Likewise.
3609 (lto_file_decl_data_num_ ## name ## s): Likewise.
3610 (struct lto_tree_ref_table): Remove.
3611 (struct lto_in_decl_state): Replace lto_tree_ref_table with vec<tree>.
3613 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3615 * hash-map.h (hash_map::iterator): New class.
3616 (hash_map::begin): New method.
3617 (hash_map::end): Likewise.
3618 * alias.c, config/alpha/alpha.c, dwarf2asm.c, omp-low.c, tree.h:
3619 replace splay_tree with hash_map.
3621 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3623 * hash-table.h (hash_table::hash_table): Call alloc_entries.
3624 (hash_table::alloc_entries): new method.
3625 (hash_table::expand): Call alloc_entries.
3626 (hash_table::empty): Likewise.
3628 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3630 * config/i386/i386.c, function.c, trans-mem.c, tree-core.h,
3631 tree.c, tree.h, ubsan.c, varasm.c: Use hash_table instead of htab.
3633 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3635 * doc/gty.texi: Document the new cache gty attribute.
3636 * gengtype.c (finish_cache_funcs): New function.
3637 (write_roots): Call gt_clear_cache on global variables with the cache
3639 * ggc-common.c (ggc_mark_roots): Call gt_clear_caches.
3640 * ggc.h (gt_clear_caches): New declaration.
3641 * hash-table.h (struct ggc_cache_hasher): New hasher for caches in gc
3643 (gt_cleare_cache): New function.
3644 * emit-rtl.c, rtl.h, tree.c: Use hash_table instead of htab.
3646 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3648 * combine.c (try_combine): Prefer to delete dead SETs inside
3649 a PARALLEL over keeping them.
3651 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3653 * combine.c (combine_validate_cost): Always print the insn costs
3656 2014-11-20 Richard Henderson <rth@redhat.com>
3659 * config/i386/i386.c (ix86_static_chain): Reinstate the check
3660 for DECL_STATIC_CHAIN.
3662 2014-11-20 Tejas Belagod <tejas.belagod@arm.com>
3664 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol):
3666 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate,
3667 aarch64_cannot_force_const_mem, aarch64_classify_address,
3668 aarch64_classify_symbolic_expression): Fixup call to
3669 aarch64_classify_symbol.
3670 (aarch64_classify_symbol): Add range-checking for
3671 symbol + offset addressing for tiny and small models.
3673 2014-11-20 Richard Biener <rguenther@suse.de>
3676 * match.pd ((p +p off1) +p off2 -> (p +p (off1 + off2))):
3677 Guard with single-use operand 0.
3679 2014-11-20 Richard Biener <rguenther@suse.de>
3681 PR tree-optimization/63677
3682 * tree-ssa-dom.c: Include gimplify.h for unshare_expr.
3683 (avail_exprs_stack): Make a vector of pairs.
3684 (struct hash_expr_elt): Replace stmt member with vop member.
3685 (expr_elt_hasher::equal): Simplify.
3686 (initialize_hash_element): Adjust.
3687 (initialize_hash_element_from_expr): Likewise.
3688 (dom_opt_dom_walker::thread_across_edge): Likewise.
3689 (record_cond): Likewise.
3690 (dom_opt_dom_walker::before_dom_children): Likewise.
3691 (print_expr_hash_elt): Likewise.
3692 (remove_local_expressions_from_table): Restore previous state
3694 (record_equivalences_from_stmt): Record &x + CST as constant
3695 &MEM[&x, CST] for further propagation.
3696 (vuse_eq): New function.
3697 (lookup_avail_expr): For loads use the alias oracle to see
3698 whether a candidate from the expr hash is usable.
3699 (avail_expr_hash): Do not hash VUSEs.
3701 2014-11-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3704 * config/arm/arm.md (*movhi_insn): Use right formatting
3707 2014-11-20 Igor Zamyatin <igor.zamyatin@intel.com>
3710 * function.c (assign_parms): Move init of pic_offset_table_rtx
3712 * cfgexpand.c (expand_used_vars): ...here.
3714 2014-11-19 Jan Hubicka <hubicka@ucw.cz>
3716 * tree.c (free_lang_data_in_type): If BINFO has no important
3717 information in it, set it to NULL.
3718 (get_binfo_at_offset): Do not walk fields, only bases.
3719 * ipa-utils.h (polymorphic_type_binfo_p): Be ready for BINFO_TYPE
3721 * ipa-polymorphic-call.c (record_known_type): Likewise.
3723 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3726 * ipa-icf.c (sem_item_optimizer::~sem_item_optimizer): Free each
3727 congruence_class_group *.
3729 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
3732 * config/i386/i386.c (put_condition_code) <case LTU, case GEU>:
3733 Output "b" and "nb" suffix for FP mode.
3735 2014-11-19 Jan Hubicka <hubicka@ucw.cz>
3738 * tree-streamer-out.c (write_ts_function_decl_tree_pointers): Stream
3739 out DECL_FUNCTION_SPECIFIC_TARGET
3740 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): Stream
3741 in DECL_FUNCTION_SPECIFIC_TARGET.
3743 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3746 * pass_manager.h (GCC_PASS_LISTS): Add all_late_ipa_passes.
3748 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3751 * lra.c (lra): After creating live ranges in preparation for call
3752 to lra_inheritance, set live_p to true.
3754 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3757 * tree-ssa-threadedge.c (thread_across_edge): Don't just release
3759 * tree-ssa-threadupdate.c (delete_jump_thread_path): Likewise.
3761 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3764 * tree-ssa-pre.c (do_regular_insertion): Convert "avail" from
3765 vec<> to auto_vec<> to fix a leak.
3767 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3770 * dwarf2out.c (dwarf2out_c_finalize): Free producer_string.
3772 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3775 * ira-costs.c (ira_costs_c_finalize): New function.
3776 * ira.h (ira_costs_c_finalize): New prototype.
3777 * toplev.c (toplev::finalize): Call ira_costs_c_finalize.
3779 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3782 * ipa-reference.c (ipa_reference_c_finalize): Release
3783 optimization_summary_obstack.
3785 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3788 * toplev.c (toplev::finalize): Free opts_obstack.
3790 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3793 * toplev.c (toplev::finalize): Clean up save_decoded_options.
3795 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3799 (find_rarely_executed_basic_blocks_and_crossing_edges): Convert
3800 local bbs_in_hot_partition from vec<> to auto_vec<>.
3802 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3805 * config/alpha/alpha.c (alpha_option_override): Remove static from
3806 "handle_trap_shadows_info" and "align_insns_info".
3807 * config/i386/i386.c (ix86_option_override): Likewise for
3808 "insert_vzeroupper_info".
3809 * config/rl78/rl78.c (rl78_asm_file_start): Likewise for
3810 "rl78_devirt_info" and "rl78_move_elim_info".
3811 * config/rs6000/rs6000.c (rs6000_option_override): Likewise for
3812 "analyze_swaps_info".
3813 * context.c (gcc::context::~context): New.
3814 * context.h (gcc::context::~context): New.
3815 * dumpfile.c (dump_files): Add "false" initializers for new field
3817 (gcc::dump_manager::~dump_manager): New.
3818 (gcc::dump_manager::dump_register): Add param "take_ownership".
3819 * dumpfile.h (struct dump_file_info): Add field "owns_strings".
3820 (gcc::dump_manager::~dump_manager): New.
3821 (gcc::dump_manager::dump_register): Add param "take_ownership".
3822 * pass_manager.h (gcc::pass_manager::operator delete): New.
3823 (gcc::pass_manager::~pass_manager): New.
3824 * passes.c (pass_manager::register_one_dump_file): Pass "true" to
3825 new "owns_strings" argument to dump_register.
3826 (pass_manager::operator delete): New.
3827 (delete_pass_tree): New function.
3828 (pass_manager::~pass_manager): New.
3829 * statistics.c (statistics_early_init): Pass "false" to
3830 new "owns_strings" argument to dump_register.
3831 * toplev.c (toplev::finalize): Clean up the context and thus the
3834 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3837 * reginfo.c (finish_subregs_of_mode): Replace obstack_finish with
3838 obstack_free when cleaning up valid_mode_changes_obstack.
3840 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3843 * opts.c (finalize_options_struct): New.
3844 * opts.h (finalize_options_struct): New.
3845 * toplev.c (toplev::finalize): Call finalize_options_struct
3846 on global_options and global_options_set.
3848 2014-11-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
3849 Jakub Jelinek <jakub@redhat.com>
3853 * gcc.c (process_command): Don't check for input/output
3854 filename equality if output is HOST_BIT_BUCKET.
3855 * toplev.c (init_asm_output): Likewise.
3857 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3859 Merger of git branch "gimple-classes-v2-option-3".
3861 * ChangeLog.gimple-classes: New.
3863 * coretypes.h (struct gcond): Add forward decl.
3864 (struct gdebug): Likewise.
3865 (struct ggoto): Likewise.
3866 (struct glabel): Likewise.
3867 (struct gswitch): Likewise.
3868 (struct gassign): Likewise.
3869 (struct gasm): Likewise.
3870 (struct gcall): Likewise.
3871 (struct gtransaction): Likewise.
3872 (struct greturn): Likewise.
3873 (struct gbind): Likewise.
3874 (struct gcatch): Likewise.
3875 (struct geh_filter): Likewise.
3876 (struct geh_mnt): Likewise.
3877 (struct geh_else): Likewise.
3878 (struct gresx): Likewise.
3879 (struct geh_dispatch): Likewise.
3880 (struct gphi): Likewise.
3881 (struct gtry): Likewise.
3882 (struct gomp_atomic_load): Likewise.
3883 (struct gomp_atomic_store): Likewise.
3884 (struct gomp_continue): Likewise.
3885 (struct gomp_critical): Likewise.
3886 (struct gomp_for): Likewise.
3887 (struct gomp_parallel): Likewise.
3888 (struct gomp_task): Likewise.
3889 (struct gomp_sections): Likewise.
3890 (struct gomp_single): Likewise.
3891 (struct gomp_target): Likewise.
3892 (struct gomp_teams): Likewise.
3894 * doc/gimple.texi (Class hierarchy of GIMPLE statements): Update
3895 for renaming of gimple subclasses.
3897 * gdbhooks.py: Update.
3899 * gimple-iterator.c (gsi_for_phi): New.
3900 (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
3902 * gimple-iterator.h (struct gphi_iterator): New subclass of
3903 gimple_stmt_iterator.
3904 (gsi_for_phi): New prototype.
3905 (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
3907 (gsi_next_nonvirtual_phi): Strengthen param from
3908 gimple_stmt_iterator * to gphi_iterator *, and local "phi" from
3911 * gsstruct.def: Update for renamings of classes.
3913 * gimple.c (gimple_build_return): Strengthen return type from
3914 gimple to greturn *.
3915 (gimple_call_reset_alias_info): Strengthen param to gcall *.
3916 (gimple_build_call_1): Strengthen return type from gimple to
3918 (gimple_build_call_vec): Likewise.
3919 (gimple_build_call): Likewise.
3920 (gimple_build_call_valist): Likewise.
3921 (gimple_build_call_internal_1): Likewise.
3922 (gimple_build_call_internal): Likewise.
3923 (gimple_build_call_internal_vec): Likewise.
3924 (gimple_build_call_from_tree): Likewise.
3925 (gimple_build_assign_stat): Strengthen return type from gimple to
3927 (gimple_build_assign_with_ops): Likewise.
3928 (gimple_build_assign_with_ops): Likewise.
3929 (gimple_build_cond): Strengthen return type from gimple to
3931 (gimple_build_cond_from_tree): Likewise.
3932 (gimple_cond_set_condition_from_tree): Require a gcond *.
3933 (gimple_build_label): Strengthen return type from gimple to
3935 (gimple_build_goto): Strengthen return type from gimple to
3937 (gimple_build_bind): Strengthen return type from gimple to
3939 (gimple_build_asm_1): Strengthen return type from gimple to
3941 (gimple_build_asm_vec): Likewise.
3942 (gimple_build_catch): Strengthen return type from gimple to
3944 (gimple_build_eh_filter): Strengthen return type from gimple to
3946 (gimple_build_eh_must_not_throw): Strengthen return type from
3947 gimple to geh_mnt *.
3948 (gimple_build_eh_else): Strengthen return type from gimple to
3950 (gimple_build_try): Update for renaming of gimple_statement_try to
3952 (gimple_build_resx): Strengthen return type from gimple to
3954 (gimple_build_switch_nlabels): Strengthen return type from gimple
3956 (gimple_build_switch): Likewise.
3957 (gimple_build_eh_dispatch): Strengthen return type from gimple to
3959 (gimple_build_debug_bind_stat): Strengthen return type from gimple
3961 (gimple_build_debug_source_bind_stat): Strengthen return type from
3963 (gimple_build_omp_critical): Strengthen return type from gimple to
3965 (gimple_build_omp_for): Strengthen return type from gimple to
3967 (gimple_build_omp_parallel): Strengthen return type from gimple to
3969 (gimple_build_omp_task): Strengthen return type from gimple to
3971 (gimple_build_omp_continue): Strengthen return type from gimple to
3973 (gimple_build_omp_sections): Strengthen return type from gimple to
3975 (gimple_build_omp_single): Strengthen return type from gimple to
3977 (gimple_build_omp_target): Strengthen return type from gimple to
3979 (gimple_build_omp_teams): Strengthen return type from gimple to
3981 (gimple_build_omp_atomic_load): Strengthen return type from gimple
3982 to gomp_atomic_load *.
3983 (gimple_build_omp_atomic_store): Strengthen return type from gimple
3984 to gomp_atomic_store *.
3985 (gimple_build_transaction): Strengthen return type from gimple
3987 (empty_stmt_p): Replace check for GIMPLE_BIND with a dyn_cast.
3988 (gimple_call_fnspec): Require a const gcall *.
3989 (gimple_call_arg_flags): Likewise.
3990 (gimple_call_return_flags): Likewise.
3991 (gimple_set_bb): Add a checked cast.
3992 (gimple_copy): Within the cases, add locals of the appropriate
3993 subclass and use in place of "stmt" and "copy" for typesafety.
3994 (gimple_has_side_effects): Add a checked cast.
3995 (gimple_could_trap_p_1): Likewise.
3996 (gimple_call_copy_skip_args): Require a gcall *, and return one.
3997 (gimple_asm_clobbers_memory_p): Require a const gasm *.
3998 (infer_nonnull_range): Replace a check for GIMPLE_RETURN with a
3999 dyn_cast, introducing local "return_stmt" and using ti in place
4002 * gimple.h (gimple_vec): Eliminate this typedef.
4003 (struct gimple_statement_call): Rename to...
4004 (struct gcall): ...this.
4005 (struct gimple_statement_bind): Rename to...
4006 (struct gbind): ...this.
4007 (struct gimple_statement_catch): Rename to...
4008 (struct gcatch): ...this.
4009 (struct gimple_statement_eh_filter): Rename to...
4010 (struct geh_filter): ...this.
4011 (struct gimple_statement_eh_else): Rename to...
4012 (struct geh_else): ...this.
4013 (struct gimple_statement_eh_mnt): Rename to...
4014 (struct geh_mnt): ...this.
4015 (struct gimple_statement_phi): Rename to...
4016 (struct gphi): ...this.
4017 (struct gimple_statement_resx): Rename to...
4018 (struct gresx): ...this.
4019 (struct gimple_statement_eh_dispatch): Rename to...
4020 (struct geh_dispatch): ...this.
4021 (struct gimple_statement_try): Rename to...
4022 (struct gtry): ...this.
4023 (struct gimple_statement_asm): Rename to...
4024 (struct gasm): ...this.
4025 (struct gimple_statement_omp_critical): Rename to...
4026 (struct gomp_critical): ...this.
4027 (struct gimple_statement_omp_for): Rename to...
4028 (struct gomp_for): ...this.
4029 (struct gimple_statement_omp_parallel): Rename to...
4030 (struct gomp_parallel): ...this.
4031 (struct gimple_statement_omp_target): Rename to...
4032 (struct gomp_target): ...this.
4033 (struct gimple_statement_omp_task): Rename to...
4034 (struct gomp_task): ...this.
4035 (struct gimple_statement_omp_sections): Rename to...
4036 (struct gomp_sections): ...this.
4037 (struct gimple_statement_omp_continue): Rename to...
4038 (struct gomp_continue): ...this.
4039 (struct gimple_statement_omp_single): Rename to...
4040 (struct gomp_single): ...this.
4041 (struct gimple_statement_omp_teams): Rename to...
4042 (struct gomp_teams): ...this.
4043 (struct gimple_statement_omp_atomic_load): Rename to...
4044 (struct gomp_atomic_load): ...this.
4045 (struct gimple_statement_omp_atomic_store :): Rename to...
4046 (struct gomp_atomic_store :): ...this.
4047 (struct gimple_statement_transaction): Rename to...
4048 (struct gtransaction): ...this.
4049 (struct gcond): New subclass.
4050 (struct gdebug): New subclass.
4051 (struct ggoto): New subclass.
4052 (struct glabel): New subclass.
4053 (struct gswitch): New subclass.
4054 (struct gassign): New subclass.
4055 (struct greturn): New subclass.
4056 (is_a_helper <gimple_statement_asm *>::test): Rename to...
4057 (is_a_helper <gasm *>::test): ...this.
4058 (is_a_helper <gimple_statement_bind *>::test): Rename to...
4059 (is_a_helper <gbind *>::test): ...this.
4060 (is_a_helper <gassign *>::test): New.
4061 (is_a_helper <gimple_statement_call *>::test): Rename to...
4062 (is_a_helper <gcall *>::test): ...this.
4063 (is_a_helper <gimple_statement_catch *>::test): Rename to...
4064 (is_a_helper <gcatch *>::test): ...this.
4065 (is_a_helper <gimple_statement_resx *>::test): Rename to...
4066 (is_a_helper <gresx *>::test): ...this.
4067 (is_a_helper <gcond *>::test): New.
4068 (is_a_helper <gdebug *>::test): New.
4069 (is_a_helper <ggoto *>::test): New.
4070 (is_a_helper <glabel *>::test): New.
4071 (is_a_helper <gimple_statement_eh_dispatch *>::test): Rename to...
4072 (is_a_helper <geh_dispatch *>::test): ...this.
4073 (is_a_helper <gimple_statement_eh_else *>::test): Rename to...
4074 (is_a_helper <geh_else *>::test): ...this.
4075 (is_a_helper <gimple_statement_eh_filter *>::test): Rename to...
4076 (is_a_helper <geh_filter *>::test): ...this.
4077 (is_a_helper <gimple_statement_eh_mnt *>::test): Rename to...
4078 (is_a_helper <geh_mnt *>::test): ...this.
4079 (is_a_helper <gimple_statement_omp_atomic_load *>::test): Rename to...
4080 (is_a_helper <gomp_atomic_load *>::test): ...this.
4081 (is_a_helper <gimple_statement_omp_atomic_store *>::test): Rename to...
4082 (is_a_helper <gomp_atomic_store *>::test): ...this.
4083 (is_a_helper <gimple_statement_omp_continue *>::test): Rename to...
4084 (is_a_helper <gomp_continue *>::test): ...this.
4085 (is_a_helper <gimple_statement_omp_critical *>::test): Rename to...
4086 (is_a_helper <gomp_critical *>::test): ...this.
4087 (is_a_helper <gimple_statement_omp_for *>::test): Rename to...
4088 (is_a_helper <gomp_for *>::test): ...this.
4089 (is_a_helper <gimple_statement_omp_parallel *>::test): Rename to...
4090 (is_a_helper <gomp_parallel *>::test): ...this.
4091 (is_a_helper <gimple_statement_omp_target *>::test): Rename to...
4092 (is_a_helper <gomp_target *>::test): ...this.
4093 (is_a_helper <gimple_statement_omp_sections *>::test): Rename to...
4094 (is_a_helper <gomp_sections *>::test): ...this.
4095 (is_a_helper <gimple_statement_omp_single *>::test): Rename to...
4096 (is_a_helper <gomp_single *>::test): ...this.
4097 (is_a_helper <gimple_statement_omp_teams *>::test): Rename to...
4098 (is_a_helper <gomp_teams *>::test): ...this.
4099 (is_a_helper <gimple_statement_omp_task *>::test): Rename to...
4100 (is_a_helper <gomp_task *>::test): ...this.
4101 (is_a_helper <gimple_statement_phi *>::test): Rename to...
4102 (is_a_helper <gphi *>::test): ...this.
4103 (is_a_helper <gimple_statement_transaction *>::test): Rename to...
4104 (is_a_helper <gtransaction *>::test): ...this.
4105 (is_a_helper <greturn *>::test): New.
4106 (is_a_helper <gswitch *>::test): New.
4107 (is_a_helper <gimple_statement_try *>::test): Rename to...
4108 (is_a_helper <gtry *>::test): ...this.
4109 (is_a_helper <const gimple_statement_asm *>::test): Rename to...
4110 (is_a_helper <const gasm *>::test): ...this.
4111 (is_a_helper <const gimple_statement_bind *>::test): Rename to...
4112 (is_a_helper <const gbind *>::test): ...this.
4113 (is_a_helper <const gimple_statement_call *>::test): Rename to...
4114 (is_a_helper <const gcall *>::test): ...this.
4115 (is_a_helper <const gimple_statement_catch *>::test): Rename to...
4116 (is_a_helper <const gcatch *>::test): ...this.
4117 (is_a_helper <const gimple_statement_resx *>::test): Rename to...
4118 (is_a_helper <const gresx *>::test): ...this.
4119 (is_a_helper <const gimple_statement_eh_dispatch *>::test): Rename to...
4120 (is_a_helper <const geh_dispatch *>::test): ...this.
4121 (is_a_helper <const gimple_statement_eh_filter *>::test): Rename to...
4122 (is_a_helper <const geh_filter *>::test): ...this.
4123 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
4125 (is_a_helper <const gomp_atomic_load *>::test): ...this.
4126 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
4128 (is_a_helper <const gomp_atomic_store *>::test): ...this.
4129 (is_a_helper <const gimple_statement_omp_continue *>::test):
4131 (is_a_helper <const gomp_continue *>::test): ...this.
4132 (is_a_helper <const gimple_statement_omp_critical *>::test):
4134 (is_a_helper <const gomp_critical *>::test): ...this.
4135 (is_a_helper <const gimple_statement_omp_for *>::test): Rename to...
4136 (is_a_helper <const gomp_for *>::test): ...this.
4137 (is_a_helper <const gimple_statement_omp_parallel *>::test):
4139 (is_a_helper <const gomp_parallel *>::test): ...this.
4140 (is_a_helper <const gimple_statement_omp_target *>::test): Rename to...
4141 (is_a_helper <const gomp_target *>::test): ...this.
4142 (is_a_helper <const gimple_statement_omp_sections *>::test):
4144 (is_a_helper <const gomp_sections *>::test): ...this.
4145 (is_a_helper <const gimple_statement_omp_single *>::test): Rename to...
4146 (is_a_helper <const gomp_single *>::test): ...this.
4147 (is_a_helper <const gimple_statement_omp_teams *>::test): Rename to...
4148 (is_a_helper <const gomp_teams *>::test): ...this.
4149 (is_a_helper <const gimple_statement_omp_task *>::test): Rename to...
4150 (is_a_helper <const gomp_task *>::test): ...this.
4151 (is_a_helper <const gimple_statement_phi *>::test): Rename to...
4152 (is_a_helper <const gphi *>::test): ...this.
4153 (is_a_helper <const gimple_statement_transaction *>::test): Rename to...
4154 (is_a_helper <const gtransaction *>::test): ...this.
4155 (gimple_build_return): Strengthen return type to greturn *.
4156 (gimple_call_reset_alias_info): Require a gcall *.
4157 (gimple_build_call_vec): Return a gcall *.
4158 (gimple_build_call): Likewise.
4159 (gimple_build_call_valist): Likewise.
4160 (gimple_build_call_internal): Likewise.
4161 (gimple_build_call_internal_vec): Likewise.
4162 (gimple_build_call_from_tree): Likewise.
4163 (gimple_build_assign_stat): Return a gassign *.
4164 (gimple_build_assign_with_ops): Likewise.
4165 (gimple_build_cond): Return a gcond *.
4166 (gimple_build_cond_from_tree): Likewise.
4167 (gimple_cond_set_condition_from_tree): Require a gcond *.
4168 (gimple_build_label): Return a glabel *.
4169 (gimple_build_goto): Return a ggoto *.
4170 (gimple_build_bind): Return a gbind *.
4171 (gimple_build_asm_vec): Return a gasm *.
4172 (gimple_build_catch): Return a gcatch *.
4173 (gimple_build_eh_filter): Return a geh_filter *.
4174 (gimple_build_eh_must_not_throw): Return a geh_mnt *.
4175 (gimple_build_eh_else): Return a geh_else *.
4176 (gimple_build_try): Return a gtry *.
4177 (gimple_build_resx): Return a gresx *.
4178 (gimple_build_switch_nlabels): Return a gswitch *.
4179 (gimple_build_switch): Return a gswitch *.
4180 (gimple_build_eh_dispatch): Return a geh_dispatch *.
4181 (gimple_build_debug_bind_stat): Return a gdebug *.
4182 (gimple_build_debug_source_bind_stat): Return a gdebug *.
4183 (gimple_build_omp_critical): Return a gomp_critical *.
4184 (gimple_build_omp_for): Return a gomp_for *.
4185 (gimple_build_omp_parallel): Return a gomp_parallel *.
4186 (gimple_build_omp_task): Return a gomp_task *.
4187 (gimple_build_omp_continue): Return a gomp_continue *.
4188 (gimple_build_omp_sections): Return a gomp_sections *.
4189 (gimple_build_omp_single): Return a gomp_single *.
4190 (gimple_build_omp_target): Return a gomp_target *.
4191 (gimple_build_omp_teams): Return a gomp_teams *.
4192 (gimple_build_omp_atomic_load): Return a gomp_atomic_load *.
4193 (gimple_build_omp_atomic_store): Return a gomp_atomic_store *.
4194 (gimple_build_transaction): Return a gtransaction *.
4195 (gimple_call_arg_flags): Require a const gcall *.
4196 (gimple_call_return_flags): Likewise.
4197 (gimple_call_copy_skip_args): Require and return a gcall *.
4198 (gimple_asm_clobbers_memory_p): Require a const gasm *.
4199 (gimple_seq_first_stmt_as_a_bind): New.
4200 (gimple_assign_nontemporal_move_p): Require a const gassign *
4201 rather than a const_gimple.
4202 (gimple_call_internal_fn): Update for renaming to gcall.
4203 (gimple_call_fntype): Likewise.
4204 (gimple_call_set_fntype): Require a gcall * rather than a gimple.
4205 (gimple_call_set_fn): Likewise.
4206 (gimple_call_set_internal_fn): Likewise.
4207 (gimple_call_set_chain): Likewise.
4208 (gimple_call_set_tail): Likewise.
4209 (gimple_call_tail_p): Likewise.
4210 (gimple_call_set_return_slot_opt): Likewise.
4211 (gimple_call_return_slot_opt_p): Likewise.
4212 (gimple_call_set_from_thunk): Likewise.
4213 (gimple_call_from_thunk_p): Likewise.
4214 (gimple_call_set_va_arg_pack): Likewise.
4215 (gimple_call_va_arg_pack_p): Likewise.
4216 (gimple_call_set_nothrow): Likewise.
4217 (gimple_call_nothrow_p): Likewise.
4218 (gimple_call_set_alloca_for_var): Likewise.
4219 (gimple_call_alloca_for_var_p): Likewise.
4220 (gimple_call_use_set): Likewise.
4221 (gimple_call_clobber_set): Likewise.
4222 (gimple_call_return_type): Require a const gcall * rather than a
4224 (gimple_call_chain_ptr): Likewise.
4225 (gimple_call_copy_flags): Require a pair of gcall *.
4226 (gimple_cond_set_code): Require a gcond * rather than a gimple
4227 (gimple_cond_set_lhs): Likewise.
4228 (gimple_cond_set_rhs): Likewise.
4229 (gimple_cond_set_true_label): Likewise.
4230 (gimple_cond_set_false_label): Likewise.
4231 (gimple_cond_make_false): Likewise.
4232 (gimple_cond_make_true): Likewise.
4233 (gimple_cond_lhs_ptr): Require a const gcond * rather than a
4235 (gimple_cond_rhs_ptr): Likewise.
4236 (gimple_cond_true_label): Likewise.
4237 (gimple_cond_false_label): Likewise.
4238 (gimple_cond_true_p): Likewise.
4239 (gimple_cond_false_p): Likewise.
4240 (gimple_cond_set_condition): Likewise.
4241 (gimple_label_label): Require a const glabel *.
4242 (gimple_label_set_label): Require a glabel *.
4243 (gimple_goto_set_dest): Require a ggoto *.
4244 (gimple_bind_vars): Require a const gbind *.
4245 (gimple_bind_block): Likewise.
4246 (gimple_bind_set_vars): Require a gbind *.
4247 (gimple_bind_append_vars): Likewise.
4248 (gimple_bind_body_ptr): Likewise.
4249 (gimple_bind_body): Likewise.
4250 (gimple_bind_set_body): Likewise.
4251 (gimple_bind_add_stmt): Likewise.
4252 (gimple_bind_add_seq): Likewise.
4253 (gimple_bind_set_block): Likewise.
4254 (gimple_asm_ninputs): Require a const gasm *.
4255 (gimple_asm_noutputs): Likewise.
4256 (gimple_asm_nclobbers): Likewise.
4257 (gimple_asm_nlabels): Likewise.
4258 (gimple_asm_input_op): Likewise.
4259 (gimple_asm_input_op_ptr): Likewise.
4260 (gimple_asm_output_op): Likewise.
4261 (gimple_asm_output_op_ptr): Likewise.
4262 (gimple_asm_clobber_op): Likewise.
4263 (gimple_asm_label_op): Likewise.
4264 (gimple_asm_string): Likewise.
4265 (gimple_asm_volatile_p): Likewise.
4266 (gimple_asm_input_p): Likewise.
4267 (gimple_asm_set_input_op): Require a gasm *.
4268 (gimple_asm_set_output_op): Likewise.
4269 (gimple_asm_set_clobber_op): Likewise.
4270 (gimple_asm_set_label_op): Likewise.
4271 (gimple_asm_set_volatile): Likewise.
4272 (gimple_asm_set_input): Likewise.
4273 (gimple_catch_types): Require a const gcatch *.
4274 (gimple_catch_types_ptr): Require a gcatch *.
4275 (gimple_catch_handler_ptr): Likewise.
4276 (gimple_catch_handler): Likewise.
4277 (gimple_catch_set_types): Likewise.
4278 (gimple_catch_set_handler): Likewise.
4279 (gimple_eh_filter_types): Update for renaming of subclass to
4281 (gimple_eh_filter_types_ptr): Likewise.
4282 (gimple_eh_filter_failure_ptr): Likewise.
4283 (gimple_eh_filter_set_types): Require a geh_filter *.
4284 (gimple_eh_filter_set_failure): Likewise.
4285 (gimple_eh_must_not_throw_fndecl): Require a geh_mnt *.
4286 (gimple_eh_must_not_throw_set_fndecl): Likewise.
4287 (gimple_eh_else_n_body_ptr): Require a geh_else *.
4288 (gimple_eh_else_n_body): Likewise.
4289 (gimple_eh_else_e_body_ptr): Likewise.
4290 (gimple_eh_else_e_body): Likewise.
4291 (gimple_eh_else_set_n_body): Likewise.
4292 (gimple_eh_else_set_e_body): Likewise.
4293 (gimple_try_set_kind): Require a gtry *.
4294 (gimple_try_set_catch_is_cleanup): Likewise.
4295 (gimple_try_set_eval): Likewise.
4296 (gimple_try_set_cleanup): Likewise.
4297 (gimple_try_eval_ptr): Update for renaming of subclass to gtry.
4298 (gimple_try_cleanup_ptr): Likewise.
4299 (gimple_phi_capacity): Update for renaming of subclass to gphi.
4300 (gimple_phi_num_args): Likewise.
4301 (gimple_phi_result): Likewise.
4302 (gimple_phi_result_ptr): Likewise.
4303 (gimple_phi_arg): Likewise.
4304 (gimple_phi_set_result): Require a gphi *.
4305 (gimple_phi_set_arg): Likewise.
4306 (gimple_phi_arg_def_ptr): Likewise.
4307 (gimple_phi_arg_edge): Likewise.
4308 (gimple_phi_arg_location): Likewise.
4309 (gimple_phi_arg_location_from_edge): Likewise.
4310 (gimple_phi_arg_set_location): Likewise.
4311 (gimple_phi_arg_has_location): Likewise.
4312 (gimple_resx_region): Require a const gresx *.
4313 (gimple_resx_set_region): Require a gresx *.
4314 (gimple_eh_dispatch_region): Require a const geh_dispatch *.
4315 (gimple_eh_dispatch_set_region): Require a geh_dispatch *.
4316 (gimple_switch_num_labels): Require a const gswitch *.
4317 (gimple_switch_set_num_labels): Likewise.
4318 (gimple_switch_index): Likewise.
4319 (gimple_switch_index_ptr): Likewise.
4320 (gimple_switch_label): Likewise.
4321 (gimple_switch_default_label): Likewise.
4322 (gimple_switch_set_index): Require a gswitch *.
4323 (gimple_switch_set_label): Likewise.
4324 (gimple_switch_set_default_label): Likewise.
4325 (gimple_omp_critical_name): Require a const gomp_critical *.
4326 (gimple_omp_critical_name_ptr): Require a gomp_critical *.
4327 (gimple_omp_critical_set_name): Likewise.
4328 (gimple_omp_for_set_kind): Require a gomp_for *.
4329 (gimple_omp_for_set_combined_p): Likewise.
4330 (gimple_omp_for_set_combined_into_p): Likewise.
4331 (gimple_omp_for_clauses): Update for renaming of subclass to
4333 (gimple_omp_for_clauses_ptr): Likewise.
4334 (gimple_omp_for_set_clauses): Likewise.
4335 (gimple_omp_for_collapse): Likewise.
4336 (gimple_omp_for_index): Likewise.
4337 (gimple_omp_for_index_ptr): Likewise.
4338 (gimple_omp_for_set_index): Likewise.
4339 (gimple_omp_for_initial): Likewise.
4340 (gimple_omp_for_initial_ptr): Likewise.
4341 (gimple_omp_for_set_initial): Likewise.
4342 (gimple_omp_for_final): Likewise.
4343 (gimple_omp_for_final_ptr): Likewise.
4344 (gimple_omp_for_set_final): Likewise.
4345 (gimple_omp_for_incr): Likewise.
4346 (gimple_omp_for_incr_ptr): Likewise.
4347 (gimple_omp_for_set_incr): Likewise.
4348 (gimple_omp_for_pre_body): Likewise.
4349 (gimple_omp_for_set_pre_body): Likewise.
4350 (gimple_omp_parallel_clauses): Update for renaming of subclass to
4352 (gimple_omp_parallel_clauses_ptr): Require a gomp_parallel *.
4353 (gimple_omp_parallel_set_clauses): Likewise.
4354 (gimple_omp_parallel_child_fn_ptr): Likewise.
4355 (gimple_omp_parallel_set_child_fn): Likewise.
4356 (gimple_omp_parallel_data_arg_ptr): Likewise.
4357 (gimple_omp_parallel_set_data_arg): Likewise.
4358 (gimple_omp_parallel_child_fn): Require a const gomp_parallel *.
4359 (gimple_omp_parallel_data_arg): Likewise.
4360 (gimple_omp_task_clauses): Update for renaming of subclass to
4362 (gimple_omp_task_clauses_ptr): Likewise.
4363 (gimple_omp_task_set_clauses): Likewise.
4364 (gimple_omp_task_child_fn): Likewise.
4365 (gimple_omp_task_child_fn_ptr): Likewise.
4366 (gimple_omp_task_set_child_fn): Likewise.
4367 (gimple_omp_task_data_arg): Likewise.
4368 (gimple_omp_task_data_arg_ptr): Likewise.
4369 (gimple_omp_task_set_data_arg): Likewise.
4370 (gimple_omp_taskreg_clauses): Whitespace fixes.
4371 (gimple_omp_taskreg_clauses_ptr): Likewise.
4372 (gimple_omp_taskreg_set_clauses): Likewise.
4373 (gimple_omp_taskreg_child_fn): Likewise.
4374 (gimple_omp_taskreg_child_fn_ptr): Likewise.
4375 (gimple_omp_taskreg_set_child_fn): Likewise.
4376 (gimple_omp_taskreg_data_arg): Likewise.
4377 (gimple_omp_taskreg_data_arg_ptr): Likewise.
4378 (gimple_omp_taskreg_set_data_arg): Likewise.
4379 (gimple_omp_task_copy_fn): Update for renaming of subclass to
4381 (gimple_omp_task_copy_fn_ptr): Likewise.
4382 (gimple_omp_task_set_copy_fn): Likewise.
4383 (gimple_omp_task_arg_size): Likewise.
4384 (gimple_omp_task_arg_size_ptr): Likewise.
4385 (gimple_omp_task_set_arg_size): Likewise.
4386 (gimple_omp_task_arg_align): Likewise.
4387 (gimple_omp_task_arg_align_ptr): Likewise.
4388 (gimple_omp_task_set_arg_align): Likewise.
4389 (gimple_omp_single_clauses): Update for renaming of subclass to
4391 (gimple_omp_single_clauses_ptr): Likewise.
4392 (gimple_omp_single_set_clauses): Likewise.
4393 (gimple_omp_target_clauses): Update for renaming of subclass to
4395 (gimple_omp_target_clauses_ptr): Likewise.
4396 (gimple_omp_target_set_clauses): Require a gomp_target *.
4397 (gimple_omp_target_set_kind): Likewise.
4398 (gimple_omp_target_child_fn_ptr): Likewise.
4399 (gimple_omp_target_set_child_fn): Likewise.
4400 (gimple_omp_target_data_arg_ptr): Likewise.
4401 (gimple_omp_target_set_data_arg): Likewise.
4402 (gimple_omp_target_child_fn): Require a const gomp_target *.
4403 (gimple_omp_target_data_arg): Likewise.
4404 (gimple_omp_teams_clauses): Update for renaming of subclass to
4406 (gimple_omp_teams_clauses_ptr): Likewise.
4407 (gimple_omp_teams_set_clauses): Require a gomp_teams *.
4408 (gimple_omp_sections_clauses): Update for renaming of subclass to
4410 (gimple_omp_sections_clauses_ptr): Likewise.
4411 (gimple_omp_sections_set_clauses): Likewise.
4412 (gimple_omp_sections_control): Likewise.
4413 (gimple_omp_sections_control_ptr): Likewise.
4414 (gimple_omp_sections_set_control): Likewise.
4415 (gimple_omp_for_set_cond): Likewise.
4416 (gimple_omp_for_cond): Likewise.
4417 (gimple_omp_atomic_store_set_val): Require a gomp_atomic_store *.
4418 (gimple_omp_atomic_store_val_ptr): Likewise.
4419 (gimple_omp_atomic_load_set_lhs): Likewise.
4420 (gimple_omp_atomic_store_val): Require a const gomp_atomic_store *.
4421 (gimple_omp_atomic_load_lhs): Likewise.
4422 (gimple_omp_atomic_load_rhs): Likewise.
4423 (gimple_omp_atomic_load_lhs_ptr): Require a gomp_atomic_load *.
4424 (gimple_omp_atomic_load_set_rhs): Likewise.
4425 (gimple_omp_atomic_load_rhs_ptr): Likewise.
4426 (gimple_omp_continue_control_def): Require a const gomp_continue *.
4427 (gimple_omp_continue_control_use): Likewise.
4428 (gimple_omp_continue_control_def_ptr): Require a gomp_continue *.
4429 (gimple_omp_continue_set_control_def): Likewise.
4430 (gimple_omp_continue_control_use_ptr): Likewise.
4431 (gimple_omp_continue_set_control_use): Likewise.
4432 (gimple_transaction_body_ptr): Require a gtransaction *.
4433 (gimple_transaction_body): Likewise.
4434 (gimple_transaction_label_ptr): Likewise.
4435 (gimple_transaction_label): Require a const gtransaction *.
4436 (gimple_transaction_subcode): Likewise.
4437 (gimple_transaction_set_body): Require a gtransaction *.
4438 (gimple_transaction_set_label): Likewise.
4439 (gimple_transaction_set_subcode): Likewise.
4440 (gimple_return_retval_ptr): Require a const greturn *.
4441 (gimple_return_retval): Likewise.
4442 (gimple_return_set_retval): Require a greturn *.
4443 (gimple_expr_type): Introduce local "call_stmt" and use in place of
4444 "stmt" for typesafety.
4446 * asan.c: Use gimple subclasses.
4447 * auto-profile.c: Likewise.
4448 * builtins.c: Likewise.
4449 * builtins.h: Likewise.
4450 * cfgexpand.c: Likewise.
4451 * cfgloop.c: Likewise.
4452 * cfgloopmanip.c: Likewise.
4453 * cgraph.c: Likewise.
4454 * cgraph.h: Likewise.
4455 * cgraphbuild.c: Likewise.
4456 * cgraphclones.c: Likewise.
4457 * cgraphunit.c: Likewise.
4459 * gimple-builder.c: Likewise.
4460 * gimple-builder.h: Likewise.
4461 * gimple-fold.c: Likewise.
4462 * gimple-low.c: Likewise.
4463 * gimple-pretty-print.c: Likewise.
4464 * gimple-ssa-isolate-paths.c: Likewise.
4465 * gimple-ssa-strength-reduction.c: Likewise.
4466 * gimple-streamer-in.c: Likewise.
4467 * gimple-streamer-out.c: Likewise.
4468 * gimple-walk.c: Likewise.
4469 * gimplify-me.c: Likewise.
4470 * gimplify.c: Likewise.
4471 * gimplify.h: Likewise.
4472 * graphite-scop-detection.c: Likewise.
4473 * graphite-sese-to-poly.c: Likewise.
4474 * internal-fn.c: Likewise.
4475 * internal-fn.def:: Likewise.
4476 * internal-fn.h: Likewise.
4477 * ipa-icf-gimple.c: Likewise.
4478 * ipa-icf-gimple.h: Likewise.
4479 * ipa-icf.c: Likewise.
4480 * ipa-inline-analysis.c: Likewise.
4481 * ipa-prop.c: Likewise.
4482 * ipa-prop.h: Likewise.
4483 * ipa-pure-const.c: Likewise.
4484 * ipa-split.c: Likewise.
4485 * lto-streamer-in.c: Likewise.
4486 * lto-streamer-out.c: Likewise.
4487 * omp-low.c: Likewise.
4488 * predict.c: Likewise.
4489 * sanopt.c: Likewise.
4491 * ssa-iterators.h: Likewise.
4493 * trans-mem.c: Likewise.
4494 * tree-call-cdce.c: Likewise.
4495 * tree-cfg.c: Likewise.
4496 * tree-cfg.h: Likewise.
4497 * tree-cfgcleanup.c: Likewise.
4498 * tree-chkp.c: Likewise.
4499 * tree-chkp.h: Likewise.
4500 * tree-complex.c: Likewise.
4501 * tree-data-ref.c: Likewise.
4502 * tree-dfa.c: Likewise.
4503 * tree-eh.c: Likewise.
4504 * tree-eh.h: Likewise.
4505 * tree-emutls.c: Likewise.
4506 * tree-if-conv.c: Likewise.
4507 * tree-inline.c: Likewise.
4508 * tree-inline.h: Likewise.
4509 * tree-into-ssa.c: Likewise.
4510 * tree-into-ssa.h: Likewise.
4511 * tree-loop-distribution.c: Likewise.
4512 * tree-nrv.c: Likewise.
4513 * tree-object-size.c: Likewise.
4514 * tree-outof-ssa.c: Likewise.
4515 * tree-parloops.c: Likewise.
4516 * tree-phinodes.c: Likewise.
4517 * tree-phinodes.h: Likewise.
4518 * tree-predcom.c: Likewise.
4519 * tree-profile.c: Likewise.
4520 * tree-scalar-evolution.c: Likewise.
4521 * tree-scalar-evolution.h
4522 * tree-sra.cn_function):
4523 * tree-ssa-alias.c: Likewise.
4524 * tree-ssa-alias.h: Likewise.
4525 * tree-ssa-ccp.c: Likewise.
4526 * tree-ssa-coalesce.c: Likewise.
4527 * tree-ssa-copy.c: Likewise.
4528 * tree-ssa-copyrename.c: Likewise.
4529 * tree-ssa-dce.c: Likewise.
4530 * tree-ssa-dom.c: Likewise.
4531 * tree-ssa-forwprop.c: Likewise.
4532 * tree-ssa-ifcombine.c: Likewise.
4533 * tree-ssa-live.c: Likewise.
4534 * tree-ssa-loop-im.c: Likewise.
4535 * tree-ssa-loop-ivcanon.c: Likewise.
4536 * tree-ssa-loop-ivopts.c: Likewise.
4537 * tree-ssa-loop-manip.c: Likewise.
4538 * tree-ssa-loop-niter.c: Likewise.
4539 * tree-ssa-loop-prefetch.c: Likewise.
4540 * tree-ssa-loop-unswitch.c: Likewise.
4541 * tree-ssa-math-opts.c: Likewise.
4542 * tree-ssa-operands.c: Likewise.
4543 * tree-ssa-phiopt.c: Likewise.
4544 * tree-ssa-phiprop.c: Likewise.
4545 * tree-ssa-pre.c: Likewise.
4546 * tree-ssa-propagate.c: Likewise.
4547 * tree-ssa-propagate.h: Likewise.
4548 * tree-ssa-reassoc.c: Likewise.
4549 * tree-ssa-sccvn.c: Likewise.
4550 * tree-ssa-sccvn.h: Likewise.
4551 * tree-ssa-sink.c: Likewise.
4553 * tree-ssa-structalias.c
4554 * tree-ssa-tail-merge.c: Likewise.
4555 * tree-ssa-ter.c: Likewise.
4556 * tree-ssa-threadedge.c: Likewise.
4557 * tree-ssa-threadedge.h: Likewise.
4558 * tree-ssa-threadupdate.c: Likewise.
4559 * tree-ssa-uncprop.c: Likewise.
4560 * tree-ssa-uninit.c: Likewise.
4561 * tree-ssa.c: Likewise.
4562 * tree-stdarg.c: Likewise.
4563 * tree-switch-conversion.c: Likewise.
4564 * tree-tailcall.c: Likewise.
4565 * tree-vect-data-refs.c: Likewise.
4566 * tree-vect-generic.c: Likewise.
4567 * tree-vect-loop-manip.c: Likewise.
4568 * tree-vect-loop.c: Likewise.
4569 * tree-vect-patterns.c: Likewise.
4570 * tree-vect-slp.c: Likewise.
4571 * tree-vect-stmts.c: Likewise.
4572 * tree-vectorizer.h: Likewise.
4573 * tree-vrp.c: Likewise.
4575 * ubsan.c: Likewise.
4576 * value-prof.c: Likewise.
4577 * value-prof.h: Likewise.
4578 * vtable-verify.c: Likewise.
4580 2014-11-19 Markus Trippelsdorf <markus@trippelsdorf.de>
4582 * config/rs6000/constraints.md: Avoid signed integer overflows.
4583 * config/rs6000/predicates.md: Likewise.
4585 2014-11-19 Renlin Li <Renlin.Li@arm.com>
4588 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): New.
4590 2014-11-19 Renlin Li <Renlin.Li@arm.com>
4593 * ira.c (ira): Update preferred class.
4595 2014-11-19 Jakub Jelinek <jakub@redhat.com>
4597 * gimple.h (gimple_build_assign_with_ops): Add unary arg overload.
4598 (gimple_assign_set_rhs_with_ops_1): Renamed to ...
4599 (gimple_assign_set_rhs_with_ops): ... this. Adjust binary arg
4600 inline overload to use it. Add unary arg overload.
4601 * gimple.c (gimple_build_assign_with_ops): New unary arg overload.
4602 (gimple_assign_set_rhs_from_tree): Use
4603 gimple_assign_set_rhs_with_ops instead of
4604 gimple_assign_set_rhs_with_ops_1.
4605 (gimple_assign_set_rhs_with_ops_1): Renamed to ...
4606 (gimple_assign_set_rhs_with_ops): ... this.
4607 * ipa-split.c (split_function): Remove last NULL argument
4608 from gimple_build_assign_with_ops call.
4609 * tree-ssa-loop-im.c
4610 (move_computations_dom_walker::before_dom_children): Likewise.
4611 * tsan.c (instrument_builtin_call): Likewise.
4612 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
4613 vectorizable_conversion, vectorizable_load): Likewise.
4614 * tree-vect-loop.c (vect_is_simple_reduction_1,
4615 get_initial_def_for_induction): Likewise.
4616 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
4617 * tree-vect-patterns.c (vect_handle_widen_op_by_const,
4618 vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
4619 vect_recog_over_widening_pattern, vect_recog_rotate_pattern,
4620 vect_recog_vector_vector_shift_pattern, vect_recog_divmod_pattern,
4621 vect_recog_mixed_size_cond_pattern, adjust_bool_pattern_cast,
4622 adjust_bool_pattern, vect_recog_bool_pattern): Likewise.
4623 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
4624 neg_replacement): Likewise.
4625 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
4626 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
4627 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4628 * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
4629 expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
4630 simd_clone_adjust): Likewise.
4631 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
4632 * gimple-ssa-strength-reduction.c (introduce_cast_before_cand,
4633 replace_one_candidate): Likewise.
4634 * gimple-builder.c (build_type_cast): Likewise.
4635 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
4636 (forward_propagate_addr_expr_1): Remove last NULL argument
4637 from gimple_assign_set_rhs_with_ops call.
4638 (simplify_vector_constructor): Use gimple_assign_set_rhs_with_ops
4639 instead of gimple_assign_set_rhs_with_ops_1.
4640 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Remove last NULL
4641 argument from gimple_build_assign_with_ops call.
4642 (repropagate_negates): Remove last NULL argument from
4643 gimple_assign_set_rhs_with_ops call.
4644 * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn): Remove
4645 last NULL argument from gimple_build_assign_with_ops call.
4646 (instrument_bool_enum_load): Likewise. Remove last NULL argument
4647 from gimple_assign_set_rhs_with_ops call.
4648 * tree-ssa-math-opts.c (build_and_insert_cast, convert_mult_to_fma):
4649 Remove last NULL argument from gimple_build_assign_with_ops call.
4650 (bswap_replace): Likewise. Use gimple_assign_set_rhs_with_ops instead
4651 of gimple_assign_set_rhs_with_ops_1.
4652 (convert_plusminus_to_widen): Use gimple_assign_set_rhs_with_ops
4653 instead of gimple_assign_set_rhs_with_ops_1.
4654 * gimple-fold.c (replace_stmt_with_simplification): Likewise.
4655 (rewrite_to_defined_overflow, gimple_build): Remove last NULL argument
4656 from gimple_build_assign_with_ops call.
4657 * tree-ssa-strlen.c (handle_pointer_plus): Remove last NULL argument
4658 from gimple_assign_set_rhs_with_ops call.
4659 * tree-vrp.c (simplify_truth_ops_using_ranges,
4660 simplify_bit_ops_using_ranges): Remove last NULL argument from
4661 gimple_assign_set_rhs_with_ops call.
4662 (simplify_float_conversion_using_ranges,
4663 simplify_internal_call_using_ranges): Remove last NULL argument from
4664 gimple_build_assign_with_ops call.
4666 2014-11-19 Wilco Dijkstra <wdijkstr@arm.com>
4669 * config/aarch64/aarch64.c (generic_regmove_cost): Increase FP move
4672 2014-11-19 Marek Polacek <polacek@redhat.com>
4675 * ubsan.c (instrument_object_size): Check for MEM_REF.
4677 2014-11-19 Ilya Verbin <ilya.verbin@intel.com>
4680 * cgraph.c (cgraph_node::create): Guard g->have_offload with
4681 ifdef ENABLE_OFFLOADING.
4682 * omp-low.c (create_omp_child_function): Likewise.
4683 (expand_omp_target): Guard node->mark_force_output and offload_funcs
4684 with ifdef ENABLE_OFFLOADING.
4685 * varpool.c (varpool_node::get_create): Guard g->have_offload and
4686 offload_vars with ifdef ENABLE_OFFLOADING.
4688 2014-11-19 Felix Yang <felix.yang@huawei.com>
4689 Shanyao Chen <chenshanyao@huawei.com>
4692 * config/arm/arm.md (define_attr "arch"): Add v6t2.
4693 (define_attr "arch_enabled"): Add test for the above.
4694 (*movhi_insn_arch4): Add new alternative.
4696 2014-11-19 Richard Henderson <rth@redhat.com>
4698 * c-family/c-common.c (c_common_reswords): Add
4699 __builtin_call_with_static_chain.
4700 * c-family/c-common.h (RID_BUILTIN_CALL_WITH_STATIC_CHAIN): New.
4701 * c/c-parser.c (c_parser_postfix_expression): Handle it.
4702 * doc/extend.texi (__builtin_call_with_static_chain): Document it.
4704 * calls.c (prepare_call_address): Allow decl or type for first arg.
4705 (expand_call): Pass type to prepare_call_address if no decl.
4706 * gimple-fold.c (gimple_fold_call): Eliminate the static chain if
4707 the function doesn't use it; fold it otherwise.
4708 * gimplify.c (gimplify_call_expr): Gimplify the static chain.
4709 * tree-cfg.c (verify_gimple_call): Allow a static chain on indirect
4712 * targhooks.c (default_static_chain): Remove check for
4714 * config/moxie/moxie.c (moxie_static_chain): Likewise.
4715 * config/i386/i386.c (ix86_static_chain): Allow decl or type
4716 as the first argument.
4717 * config/xtensa/xtensa.c (xtensa_static_chain): Change the name
4718 of the unused first parameter.
4719 * doc/tm.texi (TARGET_STATIC_CHAIN): Document the first parameter
4721 * target.def (static_chain): Likewise.
4723 2014-11-19 Renlin Li <renlin.li@arm.com>
4725 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
4726 __ARM_FP_FAST, __ARM_FEATURE_FMA, __ARM_FP,
4727 __ARM_FEATURE_NUMERIC_MAXMIN, __ARM_NEON_FP.
4729 2014-11-19 Marek Polacek <polacek@redhat.com>
4732 * fold-const.c (negate_expr_p) <case NEGATE_EXPR>: Return
4733 !TYPE_OVERFLOW_SANITIZED.
4734 (fold_negate_expr) <case INTEGER_CST>: Fold when overflow
4735 does not trap and when overflow wraps, or when SANITIZE_SI_OVERFLOW
4738 2014-11-19 Ilya Tocar <ilya.tocar@intel.com>
4740 * collect2.c (main): Don't call fatal_error before
4741 diagnostic_initialize.
4742 * lto-wrapper.c (main): Likewise.
4744 2014-11-19 Tom de Vries <tom@codesourcery.com>
4746 PR tree-optimization/62167
4747 * tree-ssa-tail-merge.c (stmt_local_def): Handle statements with vuse
4749 (gimple_equal_p): Don't use vn_valueize to compare for lhs equality of
4752 2014-11-19 Jakub Jelinek <jakub@redhat.com>
4754 PR tree-optimization/63915
4755 * tree-vect-stmts.c (vectorizable_simd_clone_call): Pass
4756 true instead of false as last argument to gsi_replace.
4759 * internal-fn.c (expand_ubsan_result_store): New function.
4760 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
4761 Use it instead of just emit_move_insn.
4763 2014-11-19 Richard Biener <rguenther@suse.de>
4765 PR tree-optimization/63844
4766 * omp-low.c (fixup_child_record_type): Use a restrict qualified
4767 referece type for the receiver parameter.
4769 2014-11-19 Jakub Jelinek <jakub@redhat.com>
4772 * ubsan.c: Include tree-eh.h.
4773 (instrument_bool_enum_load): Handle loads that can throw.
4775 PR rtl-optimization/63843
4776 * simplify-rtx.c (simplify_binary_operation_1) <case ASHIFTRT>: For
4777 optimization of ashiftrt of subreg of lshiftrt, check that code
4780 2014-11-18 Andrew MacLeod <amacleod@redhat.com>
4782 * attribs.c (decl_attributes): Remove always true condition,
4783 TREE_TYPE(x) will never compare equal to a TYPE_DECL.
4785 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
4788 * target.def (use_by_pieces_infrastructure_p): Take unsigned
4789 HOST_WIDE_INT as the size parameter.
4790 * targhooks.c (default_use_by_pieces_infrastructure_p): Likewise.
4791 * targhooks.h (default_use_by_pieces_infrastructure_p): Likewise.
4792 * config/arc/arc.c (arc_use_by_pieces_infrastructure_p)): Likewise.
4793 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p)): Likewise.
4794 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p)): Likewise.
4795 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p)): Likewise.
4796 * config/aarch64/aarch64.c
4797 (aarch64_use_by_pieces_infrastructure_p)): Likewise.
4798 * doc/tm.texi: Regenerate.
4800 2014-11-18 Jan Hubicka <hubicka@ucw.cz>
4802 * ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn.
4803 (ipa_value_from_jfunc, ipa_context_from_jfunc): Skip sanity check.
4804 (ipa_get_indirect_edge_target_1): Use opt_for_fn.
4805 (good_cloning_opportunity_p): Likewise.
4806 (ipa-cp gate): Enable ipa-cp with LTO.
4807 * ipa-profile.c (ipa_propagate_frequency): Use opt_for_fn.
4808 * ipa.c (symbol_table::remove_unreachable_nodes): Always build type
4810 * ipa-inline-transform.c (inline_transform): Check if there are inlines
4811 to apply even at -O0.
4812 * cgraphunit.c (cgraph_node::finalize_function): Use opt_for_fn.
4813 (analyze_functions): Build type inheritance graph.
4814 * ipa-inline.c (can_inline_edge_p): Use opt_for_fn.
4815 (want_early_inline_function_p, want_inline_small_function_p):
4817 (check_callers): Likewise.
4818 (edge_badness): Likewise.
4819 (inline_small_functions): Always be ready for indirect inlining
4821 (ipa_inline): Always use want_inline_function_to_all_callers_p.
4822 (early_inline_small_functions): Use opt_for_fn.
4823 * ipa-inline-analysis.c (estimate_function_body_sizes): use opt_for_fn.
4824 (estimate_function_body_sizes): Likewise.
4825 (compute_inline_parameters): Likewise.
4826 (estimate_edge_devirt_benefit): Likewise.
4827 (inline_analyze_function): Likewise.
4828 * ipa-devirt.c (ipa_devirt): Likewise.
4829 (gate): Use in_lto_p.
4830 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): Use opt_for_fn.
4831 (try_make_edge_direct_virtual_call): Likewise.
4832 (update_indirect_edges_after_inlining): Likewise.
4833 (ipa_free_all_structures_after_ipa_cp): Add in_lto_p check.
4834 * common.opt (findirect-inlining): Turn into optimization.
4835 * ipa-pure-const.c (add_new_function): Use opt_for_fn.
4836 (pure_const_generate_summary): Likewise.
4837 (gate_pure_const): Always enable with in_lto_p.
4839 2014-11-18 Maciej W. Rozycki <macro@codesourcery.com>
4841 * config/mips/mips.md (compression): Add `micromips32' setting.
4842 (enabled, length): Handle it.
4843 (shift_compression): Replace `micromips' with `micromips32' in
4844 the `compression' attribute.
4845 (*add<mode>3, sub<mode>3): Likewise.
4847 2014-11-18 Maciej W. Rozycki <macro@codesourcery.com>
4849 * gcc/config/mips/mips.md (*jump_absolute): Use a branch when in
4850 range, a jump otherwise.
4852 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4854 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_to_from_gp):
4856 (cortex_a15_gp_to_vfp): ...This.
4857 (cortex_a15_fp_to_gp): ...And this.
4858 Define and comment bypass from vfp operations to fp->gp moves.
4860 2014-11-18 Martin Liska <mliska@suse.cz>
4862 * var-tracking.c (vt_find_locations): New fibonacci_node is used.
4864 2014-11-18 Martin Liska <mliska@suse.cz>
4866 * bt-load.c (add_btr_def): New fibonacci_heap is used.
4867 (migrate_btr_defs): Likewise.
4869 2014-11-18 Martin Liska <mliska@suse.cz>
4871 * tracer.c (tail_duplicate): New fibonacci_heap class is used.
4873 2014-11-18 Martin Liska <mliska@suse.cz>
4875 * bb-reorder.c (mark_bb_visited): New fibonacci_heap is used.
4876 (find_traces): Likewise.
4877 (find_traces_1_round): Likewise.
4879 2014-11-18 Martin Liska <mliska@suse.cz>
4881 * fibonacci_heap.h: New file.
4882 (fibonacci_heap::insert): Created from fibheap_insert.
4883 (fibonacci_heap::empty): Created from fibheap_empty.
4884 (fibonacci_heap::nodes): Created from fibheap_nodes.
4885 (fibonacci_heap::min_key): Created from fibheap_min_key.
4886 (fibonacci_heap::decrease_key): Created from fibheap_replace_key.
4887 (fibonacci_heap::replace_key_data): Created from fibheap_replace_key_data.
4888 (fibonacci_heap::extract_min): Created from fibheap_extract_min.
4889 (fibonacci_heap::min): Created from fibheap_min.
4890 (fibonacci_heap::replace_data): Created from fibheap_replace_data.
4891 (fibonacci_heap::delete_node): Created from fibheap_delete_node.
4892 (fibonacci_heap::union_with): Created from fibheap_union.
4893 * ipa-inline.c (update_edge_key): New heap API is used.
4894 (update_caller_keys): Likewise.
4895 (update_callee_keys): Likewise.
4896 (lookup_recursive_calls): Likewise.
4897 (recursive_inlining): Likewise.
4898 (add_new_edges_to_heap): Likewise.
4899 (heap_edge_removal_hook): Likewise.
4900 (inline_small_functions): Likewise.
4902 2014-11-18 Marek Polacek <polacek@redhat.com>
4905 * asan.c (asan_global_struct): Create a TYPE_DECL for "__asan_global",
4906 put it into TYPE_NAME and TYPE_STUB_DECL.
4907 * ubsan.c (ubsan_type_descriptor_type): New variable.
4908 Function renamed to ...
4909 (ubsan_get_type_descriptor_type): ... this. Cache
4910 return value in ubsan_type_descriptor_type variable.
4911 Create a TYPE_DECL for "__ubsan_type_descriptor", put it into
4912 TYPE_NAME and TYPE_STUB_DECL.
4913 (ubsan_get_source_location_type): Create a TYPE_DECL for
4914 "__ubsan_source_location", put it into TYPE_NAME and TYPE_STUB_DECL.
4915 (ubsan_type_descriptor, ubsan_create_data): Call
4916 ubsan_get_type_descriptor_type instead of ubsan_type_descriptor_type.
4917 Create a TYPE_DECL for name, put it into TYPE_NAME and TYPE_STUB_DECL.
4919 2014-11-18 Felix Yang <felix.yang@huawei.com>
4921 * config/aarch64/aarch64.c (doloop_end): New pattern.
4922 * config/aarch64/aarch64.md (TARGET_CAN_USE_DOLOOP_P): Implement.
4924 2014-11-18 Jason Merrill <jason@redhat.com>
4926 * tree.c (warn_deprecated_use): Show declaration with inform.
4928 2014-11-18 Richard Biener <rguenther@suse.de>
4930 PR tree-optimization/63914
4931 * tree-ssa-ccp.c (canonicalize_value): Remove float value
4933 (valid_lattice_transition): Allow (partial) transition
4934 from NaN to non-NaN if !HONOR_NANS.
4935 (set_lattice_value): Check for valid lattice transitions
4936 only when checking is enabled.
4938 2014-11-18 Bernd Schmidt <bernds@codesourcery.com>
4940 * config/nvptx/nvptx.c: Include <sstream> directly after "config.h".
4942 2014-11-18 Christophe Lyon <christophe.lyon@linaro.org>
4944 * config/arm/neon-testgen.ml (emit_prologue): Handle new
4945 compile_test_optim argument.
4946 (emit_automatics): Rename to emit_variables. Support variable
4947 indentation of its output.
4948 (compile_test_optim): New function.
4949 (test_intrinsic): Call compile_test_optim.
4950 * config/arm/neon.ml (features): Add Compiler_optim.
4951 (ops): Add Compiler_optim feature to Vbic and Vorn.
4952 (type_in_crypto_only): Replace 'or' by '||'.
4953 (reinterp): Likewise.
4954 (reinterpq): Likewise.
4956 2014-11-18 Alan Lawrence <alan.lawrence@arm.com>
4958 * config/aarch64/arm_neon.h (vld1_dup_f32, vld1_dup_f64, vld1_dup_p8,
4959 vld1_dup_p16, vld1_dup_s8, vld1_dup_s16, vld1_dup_s32, vld1_dup_s64,
4960 vld1_dup_u8, vld1_dup_u16, vld1_dup_u32, vld1_dup_u64, vld1q_dup_f32,
4961 vld1q_dup_f64, vld1q_dup_p8, vld1q_dup_p16, vld1q_dup_s8, vld1q_dup_s16,
4962 vld1q_dup_s32, vld1q_dup_s64, vld1q_dup_u8, vld1q_dup_u16,
4963 vld1q_dup_u32, vld1q_dup_u64): Replace inline asm with vdup_n_ and
4964 pointer dereference.
4966 2014-11-18 Marc Glisse <marc.glisse@inria.fr>
4968 * tree.c (element_mode, integer_truep): New functions.
4969 * tree.h (element_mode, integer_truep): Declare them.
4970 * fold-const.c (negate_expr_p, fold_negate_expr, combine_comparisons,
4971 fold_cond_expr_with_comparison, fold_real_zero_addition_p,
4972 fold_comparison, fold_ternary_loc, tree_call_nonnegative_warnv_p,
4973 fold_strip_sign_ops): Use element_mode.
4974 (fold_binary_loc): Use element_mode and element_precision.
4975 * match.pd: Use integer_truep, element_mode, element_precision,
4976 VECTOR_TYPE_P and build_one_cst. Extend some transformations to
4977 vectors. Simplify A/-A.
4979 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4981 * config/arm/arm.md (unaligned_loaddi): Use std::swap instead of
4982 manual swapping implementation.
4983 (movcond_addsi): Likewise.
4984 * config/arm/arm.c (arm_canonicalize_comparison): Likewise.
4985 (arm_select_dominance_cc_mode): Likewise.
4986 (arm_reload_out_hi): Likewise.
4987 (gen_operands_ldrd_strd): Likewise.
4988 (output_move_double): Likewise.
4989 (arm_print_operand_address): Likewise.
4990 (thumb_output_move_mem_multiple): Likewise.
4993 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
4995 * config/arm/arm-builtins.c (CONVERT_QUALIFIERS): Delete.
4996 (COPYSIGNF_QUALIFIERS): Likewise.
4997 (CREATE_QUALIFIERS): Likewise.
4998 (DUP_QUALIFIERS): Likewise.
4999 (FLOAT_WIDEN_QUALIFIERS): Likewise.
5000 (FLOAT_NARROW_QUALIFIERS): Likewise.
5001 (REINTERP_QUALIFIERS): Likewise.
5002 (RINT_QUALIFIERS): Likewise.
5003 (SPLIT_QUALIFIERS): Likewise.
5004 (FIXCONV_QUALIFIERS): Likewise.
5005 (SCALARMUL_QUALIFIERS): Likewise.
5006 (SCALARMULL_QUALIFIERS): Likewise.
5007 (SCALARMULH_QUALIFIERS): Likewise.
5008 (SELECT_QUALIFIERS): Likewise.
5009 (VTBX_QUALIFIERS): Likewise.
5010 (SHIFTIMM_QUALIFIERS): Likewise.
5011 (SCALARMAC_QUALIFIERS): Likewise.
5012 (LANEMUL_QUALIFIERS): Likewise.
5013 (LANEMULH_QUALIFIERS): Likewise.
5014 (LANEMULL_QUALIFIERS): Likewise.
5015 (SHIFTACC_QUALIFIERS): Likewise.
5016 (SHIFTINSERT_QUALIFIERS): Likewise.
5017 (VTBL_QUALIFIERS): Likewise.
5018 (LOADSTRUCT_QUALIFIERS): Likewise.
5019 (LOADSTRUCTLANE_QUALIFIERS): Likewise.
5020 (STORESTRUCT_QUALIFIERS): Likewise.
5021 (STORESTRUCTLANE_QUALIFIERS): Likewise.
5022 (neon_builtin_type_mode): Delete.
5023 (v8qi_UP): Map to V8QImode.
5024 (v8qi_UP): Map to V8QImode.
5025 (v4hi_UP): Map to V4HImode.
5026 (v4hf_UP): Map to V4HFmode.
5027 (v2si_UP): Map to V2SImode.
5028 (v2sf_UP): Map to V2SFmode.
5029 (di_UP): Map to DImode.
5030 (v16qi_UP): Map to V16QImode.
5031 (v8hi_UP): Map to V8HImode.
5032 (v4si_UP): Map to V4SImode.
5033 (v4sf_UP): Map to V4SFmode.
5034 (v2di_UP): Map to V2DImode.
5035 (ti_UP): Map to TImode.
5036 (ei_UP): Map to EImode.
5037 (oi_UP): Map to OImode.
5038 (neon_itype): Delete.
5039 (neon_builtin_datum): Remove itype, make mode a machine_mode.
5040 (VAR1): Update accordingly.
5041 (arm_init_neon_builtins): Use machine_mode directly.
5042 (neon_dereference_pointer): Likewise.
5043 (arm_expand_neon_args): Use qualifiers to decide operand types.
5044 (arm_expand_neon_builtin): Likewise.
5045 * config/arm/arm_neon_builtins.def: Remap operation type for
5048 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5050 * config/arm/arm-builtins.c (arm_scalar_builtin_types): New.
5051 (enum arm_simd_type): Likewise.
5052 (struct arm_simd_type_info): Likewise
5053 (arm_mangle_builtin_scalar_type): Likewise.
5054 (arm_mangle_builtin_vector_type): Likewise.
5055 (arm_mangle_builtin_type): Likewise.
5056 (arm_simd_builtin_std_type): Likewise.
5057 (arm_lookup_simd_builtin_type): Likewise.
5058 (arm_simd_builtin_type): Likewise.
5059 (arm_init_simd_builtin_types): Likewise.
5060 (arm_init_simd_builtin_scalar_types): Likewise.
5061 (arm_init_neon_builtins): Rewrite using qualifiers.
5062 * config/arm/arm-protos.h (arm_mangle_builtin_type): New.
5063 * config/arm/arm-simd-builtin-types.def: New file.
5064 * config/arm/t-arm (arm-builtins.o): Depend on it.
5065 * config/arm/arm.c (arm_mangle_type): Call arm_mangle_builtin_type.
5066 * config/arm/arm_neon.h (int8x8_t): Use new internal type.
5067 (int16x4_t): Likewise.
5068 (int32x2_t): Likewise.
5069 (float16x4_t): Likewise.
5070 (float32x2_t): Likewise.
5071 (poly8x8_t): Likewise.
5072 (poly16x4_t): Likewise.
5073 (uint8x8_t): Likewise.
5074 (uint16x4_t): Likewise.
5075 (uint32x2_t): Likewise.
5076 (int8x16_t): Likewise.
5077 (int16x8_t): Likewise.
5078 (int32x4_t): Likewise.
5079 (int64x2_t): Likewise.
5080 (float32x4_t): Likewise.
5081 (poly8x16_t): Likewise.
5082 (poly16x8_t): Likewise.
5083 (uint8x16_t): Likewise.
5084 (uint16x8_t): Likewise.
5085 (uint32x4_t): Likewise.
5086 (uint64x2_t): Likewise.
5088 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5090 * gcc/config/arm/arm-builtins.c (arm_type_qualifiers): New.
5091 (neon_itype): Add new types corresponding to the types used in
5093 (arm_unop_qualifiers): New.
5094 (arm_bswap_qualifiers): Likewise.
5095 (arm_binop_qualifiers): Likewise.
5096 (arm_ternop_qualifiers): Likewise.
5097 (arm_getlane_qualifiers): Likewise.
5098 (arm_lanemac_qualifiers): Likewise.
5099 (arm_setlane_qualifiers): Likewise.
5100 (arm_combine_qualifiers): Likewise.
5101 (arm_load1_qualifiers): Likewise.
5102 (arm_load1_lane_qualifiers): Likewise.
5103 (arm_store1_qualifiers): Likewise.
5104 (arm_storestruct_lane_qualifiers): Likewise.
5105 (UNOP_QUALIFIERS): Likewise.
5106 (DUP_QUALIFIERS): Likewise.
5107 (SPLIT_QUALIFIERS): Likewise.
5108 (CONVERT_QUALIFIERS): Likewise.
5109 (FLOAT_WIDEN_QUALIFIERS): Likewise.
5110 (FLOAT_NARROW_QUALIFIERS): Likewise.
5111 (RINT_QUALIFIERS): Likewise.
5112 (COPYSIGNF_QUALIFIERS): Likewise.
5113 (CREATE_QUALIFIERS): Likewise.
5114 (REINTERP_QUALIFIERS): Likewise.
5115 (BSWAP_QUALIFIERS): Likewise.
5116 (BINOP_QUALIFIERS): Likewise.
5117 (FIXCONV_QUALIFIERS): Likewise.
5118 (SCALARMUL_QUALIFIERS): Likewise.
5119 (SCALARMULL_QUALIFIERS): Likewise.
5120 (SCALARMULH_QUALIFIERS): Likewise.
5121 (TERNOP_QUALIFIERS): Likewise.
5122 (SELECT_QUALIFIERS): Likewise.
5123 (VTBX_QUALIFIERS): Likewise.
5124 (GETLANE_QUALIFIERS): Likewise.
5125 (SHIFTIMM_QUALIFIERS): Likewise.
5126 (LANEMAC_QUALIFIERS): Likewise.
5127 (SCALARMAC_QUALIFIERS): Likewise.
5128 (SETLANE_QUALIFIERS): Likewise.
5129 (SHIFTINSERT_QUALIFIERS): Likewise.
5130 (SHIFTACC_QUALIFIERS): Likewise.
5131 (LANEMUL_QUALIFIERS): Likewise.
5132 (LANEMULL_QUALIFIERS): Likewise.
5133 (LANEMULH_QUALIFIERS): Likewise.
5134 (COMBINE_QUALIFIERS): Likewise.
5135 (VTBL_QUALIFIERS): Likewise.
5136 (LOAD1_QUALIFIERS): Likewise.
5137 (LOADSTRUCT_QUALIFIERS): Likewise.
5138 (LOAD1LANE_QUALIFIERS): Likewise.
5139 (LOADSTRUCTLANE_QUALIFIERS): Likewise.
5140 (STORE1_QUALIFIERS): Likewise.
5141 (STORESTRUCT_QUALIFIERS): Likewise.
5142 (STORE1LANE_QUALIFIERS): Likewise.
5143 (STORESTRUCTLANE_QUALIFIERS): Likewise.
5144 (neon_builtin_datum): Keep track of qualifiers.
5147 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5149 * config/arm/arm-builtins.c (VAR1): Add a comma.
5150 (VAR2): Rewrite in terms of VAR1.
5151 (VAR3-10): Likewise.
5152 (arm_builtins): Remove leading comma before ARM_BUILTIN_MAX.
5153 * config/arm/arm_neon_builtins.def: Remove trailing commas.
5155 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5157 * config.gcc (extra_objs): Add arm-builtins.o for arm*-*-*.
5158 (target_gtfiles): Add config/arm/arm-builtins.c for arm*-*-*.
5159 * config/arm/arm-builtins.c: New.
5160 * config/arm/t-arm (arm_builtins.o): New.
5161 * config/arm/arm-protos.h (arm_expand_builtin): New.
5162 (arm_builtin_decl): Likewise.
5163 (arm_init_builtins): Likewise.
5164 (arm_atomic_assign_expand_fenv): Likewise.
5165 * config/arm/arm.c (arm_atomic_assign_expand_fenv): Remove prototype.
5166 (arm_init_builtins): Likewise.
5167 (arm_init_iwmmxt_builtins): Likewise
5168 (safe_vector_operand): Likewise
5169 (arm_expand_binop_builtin): Likewise
5170 (arm_expand_unop_builtin): Likewise
5171 (arm_expand_builtin): Likewise
5172 (arm_builtin_decl): Likewise
5173 (insn_flags): Remove static.
5174 (tune_flags): Likewise.
5175 (enum arm_builtins): Move to config/arm/arm-builtins.c.
5176 (arm_init_neon_builtins): Likewise.
5177 (struct builtin_description): Likewise.
5178 (arm_init_iwmmxt_builtins): Likewise.
5179 (arm_init_fp16_builtins): Likewise.
5180 (arm_init_crc32_builtins): Likewise.
5181 (arm_init_builtins): Likewise.
5182 (arm_builtin_decl): Likewise.
5183 (safe_vector_operand): Likewise.
5184 (arm_expand_ternop_builtin): Likewise.
5185 (arm_expand_binop_builtin): Likewise.
5186 (arm_expand_unop_builtin): Likewise.
5187 (neon_dereference_pointer): Likewise.
5188 (arm_expand_neon_args): Likewise.
5189 (arm_expand_neon_builtin): Likewise.
5190 (neon_split_vcombine): Likewise.
5191 (arm_expand_builtin): Likewise.
5192 (arm_builtin_vectorized_function): Likewise.
5193 (arm_atomic_assign_expand_fenv): Likewise.
5195 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5197 * config/arm/t-arm (arm.o): Include arm-protos.h in the recipe.
5198 * config/arm/arm.c (FL_CO_PROC): Move to arm-protos.h.
5199 (FL_ARCH3M): Likewise.
5200 (FL_MODE26): Likewise.
5201 (FL_MODE32): Likewise.
5202 (FL_ARCH4): Likewise.
5203 (FL_ARCH5): Likewise.
5204 (FL_THUMB): Likewise.
5205 (FL_LDSCHED): Likewise.
5206 (FL_STRONG): Likewise.
5207 (FL_ARCH5E): Likewise.
5208 (FL_XSCALE): Likewise.
5209 (FL_ARCH6): Likewise.
5210 (FL_VFPV2): Likewise.
5211 (FL_WBUF): Likewise.
5212 (FL_ARCH6K): Likewise.
5213 (FL_THUMB2): Likewise.
5214 (FL_NOTM): Likewise.
5215 (FL_THUMB_DIV): Likewise.
5216 (FL_VFPV3): Likewise.
5217 (FL_NEON): Likewise.
5218 (FL_ARCH7EM): Likewise.
5219 (FL_ARCH7): Likewise.
5220 (FL_ARM_DIV): Likewise.
5221 (FL_ARCH8): Likewise.
5222 (FL_CRC32): Likewise.
5223 (FL_SMALLMUL): Likewise.
5224 (FL_IWMMXT): Likewise.
5225 (FL_IWMMXT2): Likewise.
5226 (FL_TUNE): Likewise.
5227 (FL_FOR_ARCH2): Likewise.
5228 (FL_FOR_ARCH3): Likewise.
5229 (FL_FOR_ARCH3M): Likewise.
5230 (FL_FOR_ARCH4): Likewise.
5231 (FL_FOR_ARCH4T): Likewise.
5232 (FL_FOR_ARCH5): Likewise.
5233 (FL_FOR_ARCH5T): Likewise.
5234 (FL_FOR_ARCH5E): Likewise.
5235 (FL_FOR_ARCH5TE): Likewise.
5236 (FL_FOR_ARCH5TEJ): Likewise.
5237 (FL_FOR_ARCH6): Likewise.
5238 (FL_FOR_ARCH6J): Likewise.
5239 (FL_FOR_ARCH6K): Likewise.
5240 (FL_FOR_ARCH6Z): Likewise.
5241 (FL_FOR_ARCH6ZK): Likewise.
5242 (FL_FOR_ARCH6T2): Likewise.
5243 (FL_FOR_ARCH6M): Likewise.
5244 (FL_FOR_ARCH7): Likewise.
5245 (FL_FOR_ARCH7A): Likewise.
5246 (FL_FOR_ARCH7VE): Likewise.
5247 (FL_FOR_ARCH7R): Likewise.
5248 (FL_FOR_ARCH7M): Likewise.
5249 (FL_FOR_ARCH7EM): Likewise.
5250 (FL_FOR_ARCH8A): Likewise.
5251 * config/arm/arm-protos.h: Take definitions moved from arm.c.
5253 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5255 * config/arm/arm.c (arm_expand_neon_builtin): Remove "Magic Word"
5256 parameter, rearrange switch statement accordingly.
5257 (arm_evpc_neon_vrev): Remove "Magic Word".
5258 * config/arm/unspecs.md (unspec): Split many UNSPECs to
5259 rounding, or signed/unsigned variants.
5260 * config/arm/neon.md (vcond<mode><mode>): Remove "Magic Word" code.
5261 (vcondu<mode><mode>): Likewise.
5262 (neon_vadd): Remove "Magic Word" operand.
5263 (neon_vaddl): Remove "Magic Word" operand, convert to use
5264 signed/unsigned iterator.
5265 (neon_vaddw): Likewise.
5266 (neon_vhadd): Likewise, also iterate over "rounding" forms.
5267 (neon_vqadd): Remove "Magic Word" operand, convert to use
5268 signed/unsigned iterator.
5269 (neon_v<r>addhn): Remove "Magic Word" operand, convert to iterate
5270 over "rounding" forms.
5271 (neon_vmul): Remove "Magic Word" operand, iterate over
5272 polynomial/float instruction forms.
5273 (neon_vmla): Remove "Magic Word" operand.
5274 (neon_vfma): Likewise.
5275 (neon_vfms): Likewise.
5276 (neon_vmls): Likewise.
5277 (neon_vmlal): Remove "Magic Word" operand, iterate over
5278 signed/unsigned forms.
5279 (neon_vmlsl): Likewise.
5280 (neon_vqdmulh): Remove "Magic Word" operand, iterate over "rounding"
5282 (neon_vqdmlal): Remove "Magic Word" operand, iterate over
5283 signed/unsigned forms.
5284 (neon_vqdmlsl): Likewise.
5285 (neon_vmull): Likewise.
5286 (neon_vqdmull): Remove "Magic Word" operand.
5287 (neon_vsub): Remove "Magic Word" operand.
5288 (neon_vsubl): Remove "Magic Word" operand, convert to use
5289 signed/unsigned iterator.
5290 (neon_vsubw): Likewise.
5291 (neon_vhsub): Likewise.
5292 (neon_vqsub): Likewise.
5293 (neon_v<r>subhn): Remove "Magic Word" operand, convert to iterate
5294 over "rounding" forms.
5295 (neon_vceq): Remove "Magic Word" operand.
5296 (neon_vcge): Likewise.
5297 (neon_vcgeu): Likewise.
5298 (neon_vcgt): Likewise.
5299 (neon_vcgtu): Likewise.
5300 (neon_vcle): Likewise.
5301 (neon_vclt): Likewise.
5302 (neon_vcage): Likewise.
5303 (neon_vcagt): Likewise.
5304 (neon_vabd): Remove "Magic Word" operand, iterate over
5305 signed/unsigned forms, and split out...
5306 (neon_vabdf): ...this as new.
5307 (neon_vabdl): Remove "Magic Word" operand, iterate over
5308 signed/unsigned forms.
5309 (neon_vaba): Likewise.
5310 (neon_vmax): Remove "Magic Word" operand, iterate over
5311 signed/unsigned and max/min forms, and split out...
5312 (neon_v<maxmin>f): ...this as new.
5313 (neon_vmin): Delete.
5314 (neon_vpadd): Remove "Magic Word" operand.
5315 (neon_vpaddl): Remove "Magic Word" operand, iterate over
5316 signed/unsigned variants.
5317 (neon_vpadal): Likewise.
5318 (neon_vpmax): Remove "Magic Word" operand, iterate over
5319 signed/unsigned and max/min forms, and split out...
5320 (neon_vp<maxmin>f): ...this as new.
5321 (neon_vpmin): Delete.
5322 (neon_vrecps): Remove "Magic Word" operand.
5323 (neon_vrsqrts): Likewise.
5324 (neon_vabs): Likewise.
5325 (neon_vqabs): Likewise.
5326 (neon_vneg): Likewise.
5327 (neon_vqneg): Likewise.
5328 (neon_vcls): Likewise.
5329 (neon_vcnt): Likewise.
5330 (neon_vrecpe): Likewise.
5331 (neon_vrsqrte): Likewise.
5332 (neon_vmvn): Likewise.
5333 (neon_vget_lane): Likewise.
5334 (neon_vget_laneu): New.
5335 (neon_vget_lanedi): Remove "Magic Word" operand.
5336 (neon_vget_lanev2di): Likewise.
5337 (neon_vcvt): Remove "Magic Word" operand, iterate over
5338 signed/unsigned variants.
5339 (neon_vcvt_n): Likewise.
5340 (neon_vmovn): Remove "Magic Word" operand.
5341 (neon_vqmovn): Remove "Magic Word" operand, iterate over
5342 signed/unsigned variants.
5343 (neon_vmovun): Remove "Magic Word" operand.
5344 (neon_vmovl): Remove "Magic Word" operand, iterate over
5345 signed/unsigned variants.
5346 (neon_vmul_lane): Remove "Magic Word" operand.
5347 (neon_vmull_lane): Remove "Magic Word" operand, iterate over
5348 signed/unsigned variants.
5349 (neon_vqdmull_lane): Remove "Magic Word" operand.
5350 (neon_vqdmulh_lane): Remove "Magic Word" operand, iterate over
5352 (neon_vmla_lane): Remove "Magic Word" operand.
5353 (neon_vmlal_lane): Remove "Magic Word" operand, iterate over
5354 signed/unsigned variants.
5355 (neon_vqdmlal_lane): Remove "Magic Word" operand.
5356 (neon_vmls_lane): Likewise.
5357 (neon_vmlsl_lane): Remove "Magic Word" operand, iterate over
5358 signed/unsigned variants.
5359 (neon_vqdmlsl_lane): Remove "Magic Word" operand.
5360 (neon_vmul_n): Remove "Magic Word" operand.
5361 (neon_vmull_n): Rename to...
5362 (neon_vmulls_n): ...this, remove "Magic Word" operand.
5363 (neon_vmullu_n): New.
5364 (neon_vqdmull_n): Remove "Magic Word" operand.
5365 (neon_vqdmulh_n): Likewise.
5366 (neon_vqrdmulh_n): New.
5367 (neon_vmla_n): Remove "Magic Word" operand.
5368 (neon_vmls_n): Likewise.
5369 (neon_vmlal_n): Rename to...
5370 (neon_vmlals_n): ...this, remove "Magic Word" operand.
5371 (neon_vmlalu_n): New.
5372 (neon_vqdmlal_n): Remove "Magic Word" operand.
5373 (neon_vmlsl_n): Rename to...
5374 (neon_vmlsls_n): ...this, remove "Magic Word" operand.
5375 (neon_vmlslu_n): New.
5376 (neon_vqdmlsl_n): Remove "Magic Word" operand.
5377 (neon_vrev64): Remove "Magic Word" operand.
5378 (neon_vrev32): Likewise.
5379 (neon_vrev16): Likewise.
5380 (neon_vshl): Remove "Magic Word" operand, iterate over
5381 signed/unsigned and "rounding" forms.
5382 (neon_vqshl): Likewise.
5383 (neon_vshr_n): Likewise.
5384 (neon_vshrn_n): Remove "Magic Word" operand, iterate over
5386 (neon_vqshrn_n): Remove "Magic Word" operand, iterate over
5387 signed/unsigned and "rounding" forms.
5388 (neon_vqshrun_n): Remove "Magic Word" operand, iterate over
5390 (neon_vshl_n): Remove "Magic Word" operand.
5391 (neon_vqshl_n): Remove "Magic Word" operand, iterate over
5392 signed/unsigned variants.
5393 (neon_vqshlu_n): Remove "Magic Word" operand.
5394 (neon_vshll_n): Remove "Magic Word" operand, iterate over
5395 signed/unsigned variants.
5396 (neon_vsra_n): Remove "Magic Word" operand, iterate over
5397 signed/unsigned and "rounding" forms.
5398 * config/arm/iterators.md (VPF): New.
5405 (VMLAL_LANE): Likewise.
5407 (VMLSL_LANE): Likewise.
5408 (VQDMULH): Likewise,
5409 (VQDMULH_LANE): Likewise.
5411 (VMULL_LANE): Likewise.
5419 (VMAXMIN): Likewise.
5420 (VMAXMINF): Likewise.
5423 (VPMAXMIN): Likewise.
5424 (VPMAXMINF): Likewise.
5425 (VCVT_US): Likewise.
5426 (VCVT_US_N): Likewise.
5432 (VSHRN_N): Likewise.
5433 (VQSHRN_N): Likewise.
5434 (VQSHRUN_N): Likewise.
5435 (VQSHL_N): Likewise.
5436 (VSHLL_N): Likewise.
5442 (shift_op): Likewise.
5443 * config/arm/arm_neon_builtins.def (vaddl): Split to...
5444 (vaddls): ...this and...
5446 (vaddw): Split to...
5447 (vaddws): ...this and...
5449 (vhadd): Split to...
5450 (vhadds): ...this and...
5451 (vhaddu): ...this and...
5452 (vrhadds): ...this and...
5454 (vqadd): Split to...
5455 (vqadds): ...this and...
5457 (vaddhn): Split to itself and...
5460 (vmulf): ...this and...
5462 (vmlal): Split to...
5463 (vmlals): ...this and...
5465 (vmlsl): Split to...
5466 (vmlsls): ...this and...
5468 (vqdmulh): Split to itself and...
5469 (vqrdmulh): ...this.
5470 (vmull): Split to...
5471 (vmullp): ...this and...
5472 (vmulls): ...this and...
5474 (vmull_n): Split to...
5475 (vmulls_n): ...this and...
5476 (vmullu_n): ...this.
5477 (vmull_lane): Split to...
5478 (vmulls_lane): ...this and...
5479 (vmullu_lane): ...this.
5480 (vqdmulh_n): Split to itself and...
5481 (vqrdmulh_n): ...this.
5482 (vqdmulh_lane): Split to itself and...
5483 (vqrdmulh_lane): ...this.
5485 (vshls): ...this and...
5486 (vshlu): ...this and...
5487 (vrshls): ...this and...
5489 (vqshl): Split to...
5490 (vqshls): ...this and...
5491 (vqrshlu): ...this and...
5492 (vqrshls): ...this and...
5494 (vshr_n): Split to...
5495 (vshrs_n): ...this and...
5496 (vshru_n): ...this and...
5497 (vrshrs_n): ...this and...
5498 (vrshru_n): ...this.
5499 (vshrn_n): Split to itself and...
5500 (vrshrn_n): ...this.
5501 (vqshrn_n): Split to...
5502 (vqshrns_n): ...this and...
5503 (vqshrnu_n): ...this and...
5504 (vqrshrns_n): ...this and...
5505 (vqrshrnu_n): ...this.
5506 (vqshrun_n): Split to itself and...
5507 (vqrshrun_n): ...this.
5508 (vqshl_n): Split to...
5509 (vqshl_s_n): ...this and...
5510 (vqshl_u_n): ...this.
5511 (vshll_n): Split to...
5512 (vshlls_n): ...this and...
5513 (vshllu_n): ...this.
5514 (vsra_n): Split to...
5515 (vsras_n): ...this and...
5516 (vsrau_n): ...this and.
5517 (vrsras_n): ...this and...
5518 (vrsrau_n): ...this and.
5519 (vsubl): Split to...
5520 (vsubls): ...this and...
5522 (vsubw): Split to...
5523 (vsubws): ...this and...
5525 (vqsub): Split to...
5526 (vqsubs): ...this and...
5528 (vhsub): Split to...
5529 (vhsubs): ...this and...
5531 (vsubhn): Split to itself and...
5534 (vabds): ...this and...
5535 (vabdu): ...this and...
5537 (vabdl): Split to...
5538 (vabdls): ...this and...
5541 (vabas): ...this and...
5542 (vabau): ...this and...
5543 (vabal): Split to...
5544 (vabals): ...this and...
5547 (vmaxs): ...this and...
5548 (vmaxu): ...this and...
5551 (vmins): ...this and...
5552 (vminu): ...this and...
5554 (vpmax): Split to...
5555 (vpmaxs): ...this and...
5556 (vpmaxu): ...this and...
5558 (vpmin): Split to...
5559 (vpmins): ...this and...
5560 (vpminu): ...this and...
5562 (vpaddl): Split to...
5563 (vpaddls): ...this and...
5565 (vpadal): Split to...
5566 (vpadals): ...this and...
5569 (vqmovn): Split to...
5570 (vqmovns): ...this and...
5572 (vmovl): Split to...
5573 (vmovls): ...this and...
5575 (vmlal_lane): Split to...
5576 (vmlals_lane): ...this and...
5577 (vmlalu_lane): ...this.
5578 (vmlsl_lane): Split to...
5579 (vmlsls_lane): ...this and...
5580 (vmlslu_lane): ...this.
5581 (vmlal_n): Split to...
5582 (vmlals_n): ...this and...
5583 (vmlalu_n): ...this.
5584 (vmlsl_n): Split to...
5585 (vmlsls_n): ...this and...
5586 (vmlslu_n): ...this.
5587 (vext): Make type "SHIFTINSERT".
5589 (vcvts): ...this and...
5591 (vcvt_n): Split to...
5592 (vcvts_n): ...this and...
5594 * config/arm/arm_neon.h (vaddl_s8): Remove "Magic Word".
5595 (vaddl_s16): Likewise.
5596 (vaddl_s32): Likewise.
5597 (vaddl_u8): Likewise.
5598 (vaddl_u16): Likewise.
5599 (vaddl_u32): Likewise.
5600 (vaddw_s8): Likewise.
5601 (vaddw_s16): Likewise.
5602 (vaddw_s32): Likewise.
5603 (vaddw_u8): Likewise.
5604 (vaddw_u16): Likewise.
5605 (vaddw_u32): Likewise.
5606 (vhadd_s8): Likewise.
5607 (vhadd_s16): Likewise.
5608 (vhadd_s32): Likewise.
5609 (vhadd_u8): Likewise.
5610 (vhadd_u16): Likewise.
5611 (vhadd_u32): Likewise.
5612 (vhaddq_s8): Likewise.
5613 (vhaddq_s16): Likewise.
5614 (vhaddq_s32): Likewise.
5615 (vhaddq_u8): Likewise.
5616 (vhaddq_u16): Likewise.
5617 (vrhadd_s8): Likewise.
5618 (vrhadd_s16): Likewise.
5619 (vrhadd_s32): Likewise.
5620 (vrhadd_u8): Likewise.
5621 (vrhadd_u16): Likewise.
5622 (vrhadd_u32): Likewise.
5623 (vrhaddq_s8): Likewise.
5624 (vrhaddq_s16): Likewise.
5625 (vrhaddq_s32): Likewise.
5626 (vrhaddq_u8): Likewise.
5627 (vrhaddq_u16): Likewise.
5628 (vrhaddq_u32): Likewise.
5629 (vqadd_s8): Likewise.
5630 (vqadd_s16): Likewise.
5631 (vqadd_s32): Likewise.
5632 (vqadd_s64): Likewise.
5633 (vqadd_u8): Likewise.
5634 (vqadd_u16): Likewise.
5635 (vqadd_u32): Likewise.
5636 (vqadd_u64): Likewise.
5637 (vqaddq_s8): Likewise.
5638 (vqaddq_s16): Likewise.
5639 (vqaddq_s32): Likewise.
5640 (vqaddq_s64): Likewise.
5641 (vqaddq_u8): Likewise.
5642 (vqaddq_u16): Likewise.
5643 (vqaddq_u32): Likewise.
5644 (vqaddq_u64): Likewise.
5645 (vaddhn_s16): Likewise.
5646 (vaddhn_s32): Likewise.
5647 (vaddhn_s64): Likewise.
5648 (vaddhn_u16): Likewise.
5649 (vaddhn_u32): Likewise.
5650 (vaddhn_u64): Likewise.
5651 (vraddhn_s16): Likewise.
5652 (vraddhn_s32): Likewise.
5653 (vraddhn_s64): Likewise.
5654 (vraddhn_u16): Likewise.
5655 (vraddhn_u32): Likewise.
5656 (vraddhn_u64): Likewise.
5657 (vmul_p8): Likewise.
5658 (vmulq_p8): Likewise.
5659 (vqdmulh_s16): Likewise.
5660 (vqdmulh_s32): Likewise.
5661 (vqdmulhq_s16): Likewise.
5662 (vqdmulhq_s32): Likewise.
5663 (vqrdmulh_s16): Likewise.
5664 (vqrdmulh_s32): Likewise.
5665 (vqrdmulhq_s16): Likewise.
5666 (vqrdmulhq_s32): Likewise.
5667 (vmull_s8): Likewise.
5668 (vmull_s16): Likewise.
5669 (vmull_s32): Likewise.
5670 (vmull_u8): Likewise.
5671 (vmull_u16): Likewise.
5672 (vmull_u32): Likewise.
5673 (vmull_p8): Likewise.
5674 (vqdmull_s16): Likewise.
5675 (vqdmull_s32): Likewise.
5676 (vmla_s8): Likewise.
5677 (vmla_s16): Likewise.
5678 (vmla_s32): Likewise.
5679 (vmla_f32): Likewise.
5680 (vmla_u8): Likewise.
5681 (vmla_u16): Likewise.
5682 (vmla_u32): Likewise.
5683 (vmlaq_s8): Likewise.
5684 (vmlaq_s16): Likewise.
5685 (vmlaq_s32): Likewise.
5686 (vmlaq_f32): Likewise.
5687 (vmlaq_u8): Likewise.
5688 (vmlaq_u16): Likewise.
5689 (vmlaq_u32): Likewise.
5690 (vmlal_s8): Likewise.
5691 (vmlal_s16): Likewise.
5692 (vmlal_s32): Likewise.
5693 (vmlal_u8): Likewise.
5694 (vmlal_u16): Likewise.
5695 (vmlal_u32): Likewise.
5696 (vqdmlal_s16): Likewise.
5697 (vqdmlal_s32): Likewise.
5698 (vmls_s8): Likewise.
5699 (vmls_s16): Likewise.
5700 (vmls_s32): Likewise.
5701 (vmls_f32): Likewise.
5702 (vmls_u8): Likewise.
5703 (vmls_u16): Likewise.
5704 (vmls_u32): Likewise.
5705 (vmlsq_s8): Likewise.
5706 (vmlsq_s16): Likewise.
5707 (vmlsq_s32): Likewise.
5708 (vmlsq_f32): Likewise.
5709 (vmlsq_u8): Likewise.
5710 (vmlsq_u16): Likewise.
5711 (vmlsq_u32): Likewise.
5712 (vmlsl_s8): Likewise.
5713 (vmlsl_s16): Likewise.
5714 (vmlsl_s32): Likewise.
5715 (vmlsl_u8): Likewise.
5716 (vmlsl_u16): Likewise.
5717 (vmlsl_u32): Likewise.
5718 (vqdmlsl_s16): Likewise.
5719 (vqdmlsl_s32): Likewise.
5720 (vfma_f32): Likewise.
5721 (vfmaq_f32): Likewise.
5722 (vfms_f32): Likewise.
5723 (vfmsq_f32): Likewise.
5724 (vsubl_s8): Likewise.
5725 (vsubl_s16): Likewise.
5726 (vsubl_s32): Likewise.
5727 (vsubl_u8): Likewise.
5728 (vsubl_u16): Likewise.
5729 (vsubl_u32): Likewise.
5730 (vsubw_s8): Likewise.
5731 (vsubw_s16): Likewise.
5732 (vsubw_s32): Likewise.
5733 (vsubw_u8): Likewise.
5734 (vsubw_u16): Likewise.
5735 (vsubw_u32): Likewise.
5736 (vhsub_s8): Likewise.
5737 (vhsub_s16): Likewise.
5738 (vhsub_s32): Likewise.
5739 (vhsub_u8): Likewise.
5740 (vhsub_u16): Likewise.
5741 (vhsub_u32): Likewise.
5742 (vhsubq_s8): Likewise.
5743 (vhsubq_s16): Likewise.
5744 (vhsubq_s32): Likewise.
5745 (vhsubq_u8): Likewise.
5746 (vhsubq_u16): Likewise.
5747 (vhsubq_u32): Likewise.
5748 (vqsub_s8): Likewise.
5749 (vqsub_s16): Likewise.
5750 (vqsub_s32): Likewise.
5751 (vqsub_s64): Likewise.
5752 (vqsub_u8): Likewise.
5753 (vqsub_u16): Likewise.
5754 (vqsub_u32): Likewise.
5755 (vqsub_u64): Likewise.
5756 (vqsubq_s8): Likewise.
5757 (vqsubq_s16): Likewise.
5758 (vqsubq_s32): Likewise.
5759 (vqsubq_s64): Likewise.
5760 (vqsubq_u8): Likewise.
5761 (vqsubq_u16): Likewise.
5762 (vqsubq_u32): Likewise.
5763 (vqsubq_u64): Likewise.
5764 (vsubhn_s16): Likewise.
5765 (vsubhn_s32): Likewise.
5766 (vsubhn_s64): Likewise.
5767 (vsubhn_u16): Likewise.
5768 (vsubhn_u32): Likewise.
5769 (vsubhn_u64): Likewise.
5770 (vrsubhn_s16): Likewise.
5771 (vrsubhn_s32): Likewise.
5772 (vrsubhn_s64): Likewise.
5773 (vrsubhn_u16): Likewise.
5774 (vrsubhn_u32): Likewise.
5775 (vrsubhn_u64): Likewise.
5776 (vceq_s8): Likewise.
5777 (vceq_s16): Likewise.
5778 (vceq_s32): Likewise.
5779 (vceq_f32): Likewise.
5780 (vceq_u8): Likewise.
5781 (vceq_u16): Likewise.
5782 (vceq_u32): Likewise.
5783 (vceq_p8): Likewise.
5784 (vceqq_s8): Likewise.
5785 (vceqq_s16): Likewise.
5786 (vceqq_s32): Likewise.
5787 (vceqq_f32): Likewise.
5788 (vceqq_u8): Likewise.
5789 (vceqq_u16): Likewise.
5790 (vceqq_u32): Likewise.
5791 (vceqq_p8): Likewise.
5792 (vcge_s8): Likewise.
5793 (vcge_s16): Likewise.
5794 (vcge_s32): Likewise.
5795 (vcge_f32): Likewise.
5796 (vcge_u8): Likewise.
5797 (vcge_u16): Likewise.
5798 (vcge_u32): Likewise.
5799 (vcgeq_s8): Likewise.
5800 (vcgeq_s16): Likewise.
5801 (vcgeq_s32): Likewise.
5802 (vcgeq_f32): Likewise.
5803 (vcgeq_u8): Likewise.
5804 (vcgeq_u16): Likewise.
5805 (vcgeq_u32): Likewise.
5806 (vcle_s8): Likewise.
5807 (vcle_s16): Likewise.
5808 (vcle_s32): Likewise.
5809 (vcle_f32): Likewise.
5810 (vcle_u8): Likewise.
5811 (vcle_u16): Likewise.
5812 (vcle_u32): Likewise.
5813 (vcleq_s8): Likewise.
5814 (vcleq_s16): Likewise.
5815 (vcleq_s32): Likewise.
5816 (vcleq_f32): Likewise.
5817 (vcleq_u8): Likewise.
5818 (vcleq_u16): Likewise.
5819 (vcleq_u32): Likewise.
5820 (vcgt_s8): Likewise.
5821 (vcgt_s16): Likewise.
5822 (vcgt_s32): Likewise.
5823 (vcgt_f32): Likewise.
5824 (vcgt_u8): Likewise.
5825 (vcgt_u16): Likewise.
5826 (vcgt_u32): Likewise.
5827 (vcgtq_s8): Likewise.
5828 (vcgtq_s16): Likewise.
5829 (vcgtq_s32): Likewise.
5830 (vcgtq_f32): Likewise.
5831 (vcgtq_u8): Likewise.
5832 (vcgtq_u16): Likewise.
5833 (vcgtq_u32): Likewise.
5834 (vclt_s8): Likewise.
5835 (vclt_s16): Likewise.
5836 (vclt_s32): Likewise.
5837 (vclt_f32): Likewise.
5838 (vclt_u8): Likewise.
5839 (vclt_u16): Likewise.
5840 (vclt_u32): Likewise.
5841 (vcltq_s8): Likewise.
5842 (vcltq_s16): Likewise.
5843 (vcltq_s32): Likewise.
5844 (vcltq_f32): Likewise.
5845 (vcltq_u8): Likewise.
5846 (vcltq_u16): Likewise.
5847 (vcltq_u32): Likewise.
5848 (vcage_f32): Likewise.
5849 (vcageq_f32): Likewise.
5850 (vcale_f32): Likewise.
5851 (vcaleq_f32): Likewise.
5852 (vcagt_f32): Likewise.
5853 (vcagtq_f32): Likewise.
5854 (vcalt_f32): Likewise.
5855 (vcaltq_f32): Likewise.
5856 (vtst_s8): Likewise.
5857 (vtst_s16): Likewise.
5858 (vtst_s32): Likewise.
5859 (vtst_u8): Likewise.
5860 (vtst_u16): Likewise.
5861 (vtst_u32): Likewise.
5862 (vtst_p8): Likewise.
5863 (vtstq_s8): Likewise.
5864 (vtstq_s16): Likewise.
5865 (vtstq_s32): Likewise.
5866 (vtstq_u8): Likewise.
5867 (vtstq_u16): Likewise.
5868 (vtstq_u32): Likewise.
5869 (vtstq_p8): Likewise.
5870 (vabd_s8): Likewise.
5871 (vabd_s16): Likewise.
5872 (vabd_s32): Likewise.
5873 (vabd_f32): Likewise.
5874 (vabd_u8): Likewise.
5875 (vabd_u16): Likewise.
5876 (vabd_u32): Likewise.
5877 (vabdq_s8): Likewise.
5878 (vabdq_s16): Likewise.
5879 (vabdq_s32): Likewise.
5880 (vabdq_f32): Likewise.
5881 (vabdq_u8): Likewise.
5882 (vabdq_u16): Likewise.
5883 (vabdq_u32): Likewise.
5884 (vabdl_s8): Likewise.
5885 (vabdl_s16): Likewise.
5886 (vabdl_s32): Likewise.
5887 (vabdl_u8): Likewise.
5888 (vabdl_u16): Likewise.
5889 (vabdl_u32): Likewise.
5890 (vaba_s8): Likewise.
5891 (vaba_s16): Likewise.
5892 (vaba_s32): Likewise.
5893 (vaba_u8): Likewise.
5894 (vaba_u16): Likewise.
5895 (vaba_u32): Likewise.
5896 (vabaq_s8): Likewise.
5897 (vabaq_s16): Likewise.
5898 (vabaq_s32): Likewise.
5899 (vabaq_u8): Likewise.
5900 (vabaq_u16): Likewise.
5901 (vabaq_u32): Likewise.
5902 (vabal_s8): Likewise.
5903 (vabal_s16): Likewise.
5904 (vabal_s32): Likewise.
5905 (vabal_u8): Likewise.
5906 (vabal_u16): Likewise.
5907 (vabal_u32): Likewise.
5908 (vmax_s8): Likewise.
5909 (vmax_s16): Likewise.
5910 (vmax_s32): Likewise.
5911 (vmax_f32): Likewise.
5912 (vmax_u8): Likewise.
5913 (vmax_u16): Likewise.
5914 (vmax_u32): Likewise.
5915 (vmaxq_s8): Likewise.
5916 (vmaxq_s16): Likewise.
5917 (vmaxq_s32): Likewise.
5918 (vmaxq_f32): Likewise.
5919 (vmaxq_u8): Likewise.
5920 (vmaxq_u16): Likewise.
5921 (vmaxq_u32): Likewise.
5922 (vmin_s8): Likewise.
5923 (vmin_s16): Likewise.
5924 (vmin_s32): Likewise.
5925 (vmin_f32): Likewise.
5926 (vmin_u8): Likewise.
5927 (vmin_u16): Likewise.
5928 (vmin_u32): Likewise.
5929 (vminq_s8): Likewise.
5930 (vminq_s16): Likewise.
5931 (vminq_s32): Likewise.
5932 (vminq_f32): Likewise.
5933 (vminq_u8): Likewise.
5934 (vminq_u16): Likewise.
5935 (vminq_u32): Likewise.
5936 (vpadd_s8): Likewise.
5937 (vpadd_s16): Likewise.
5938 (vpadd_s32): Likewise.
5939 (vpadd_f32): Likewise.
5940 (vpadd_u8): Likewise.
5941 (vpadd_u16): Likewise.
5942 (vpadd_u32): Likewise.
5943 (vpaddl_s8): Likewise.
5944 (vpaddl_s16): Likewise.
5945 (vpaddl_s32): Likewise.
5946 (vpaddl_u8): Likewise.
5947 (vpaddl_u16): Likewise.
5948 (vpaddl_u32): Likewise.
5949 (vpaddlq_s8): Likewise.
5950 (vpaddlq_s16): Likewise.
5951 (vpaddlq_s32): Likewise.
5952 (vpaddlq_u8): Likewise.
5953 (vpaddlq_u16): Likewise.
5954 (vpaddlq_u32): Likewise.
5955 (vpadal_s8): Likewise.
5956 (vpadal_s16): Likewise.
5957 (vpadal_s32): Likewise.
5958 (vpadal_u8): Likewise.
5959 (vpadal_u16): Likewise.
5960 (vpadal_u32): Likewise.
5961 (vpadalq_s8): Likewise.
5962 (vpadalq_s16): Likewise.
5963 (vpadalq_s32): Likewise.
5964 (vpadalq_u8): Likewise.
5965 (vpadalq_u16): Likewise.
5966 (vpadalq_u32): Likewise.
5967 (vpmax_s8): Likewise.
5968 (vpmax_s16): Likewise.
5969 (vpmax_s32): Likewise.
5970 (vpmax_f32): Likewise.
5971 (vpmax_u8): Likewise.
5972 (vpmax_u16): Likewise.
5973 (vpmax_u32): Likewise.
5974 (vpmin_s8): Likewise.
5975 (vpmin_s16): Likewise.
5976 (vpmin_s32): Likewise.
5977 (vpmin_f32): Likewise.
5978 (vpmin_u8): Likewise.
5979 (vpmin_u16): Likewise.
5980 (vpmin_u32): Likewise.
5981 (vrecps_f32): Likewise.
5982 (vrecpsq_f32): Likewise.
5983 (vrsqrts_f32): Likewise.
5984 (vrsqrtsq_f32): Likewise.
5985 (vshl_s8): Likewise.
5986 (vshl_s16): Likewise.
5987 (vshl_s32): Likewise.
5988 (vshl_s64): Likewise.
5989 (vshl_u8): Likewise.
5990 (vshl_u16): Likewise.
5991 (vshl_u32): Likewise.
5992 (vshl_u64): Likewise.
5993 (vshlq_s8): Likewise.
5994 (vshlq_s16): Likewise.
5995 (vshlq_s32): Likewise.
5996 (vshlq_s64): Likewise.
5997 (vshlq_u8): Likewise.
5998 (vshlq_u16): Likewise.
5999 (vshlq_u32): Likewise.
6000 (vshlq_u64): Likewise.
6001 (vrshl_s8): Likewise.
6002 (vrshl_s16): Likewise.
6003 (vrshl_s32): Likewise.
6004 (vrshl_s64): Likewise.
6005 (vrshl_u8): Likewise.
6006 (vrshl_u16): Likewise.
6007 (vrshl_u32): Likewise.
6008 (vrshl_u64): Likewise.
6009 (vrshlq_s8): Likewise.
6010 (vrshlq_s16): Likewise.
6011 (vrshlq_s32): Likewise.
6012 (vrshlq_s64): Likewise.
6013 (vrshlq_u8): Likewise.
6014 (vrshlq_u16): Likewise.
6015 (vrshlq_u32): Likewise.
6016 (vrshlq_u64): Likewise.
6017 (vqshl_s8): Likewise.
6018 (vqshl_s16): Likewise.
6019 (vqshl_s32): Likewise.
6020 (vqshl_s64): Likewise.
6021 (vqshl_u8): Likewise.
6022 (vqshl_u16): Likewise.
6023 (vqshl_u32): Likewise.
6024 (vqshl_u64): Likewise.
6025 (vqshlq_s8): Likewise.
6026 (vqshlq_s16): Likewise.
6027 (vqshlq_s32): Likewise.
6028 (vqshlq_s64): Likewise.
6029 (vqshlq_u8): Likewise.
6030 (vqshlq_u16): Likewise.
6031 (vqshlq_u32): Likewise.
6032 (vqshlq_u64): Likewise.
6033 (vqrshl_s8): Likewise.
6034 (vqrshl_s16): Likewise.
6035 (vqrshl_s32): Likewise.
6036 (vqrshl_s64): Likewise.
6037 (vqrshl_u8): Likewise.
6038 (vqrshl_u16): Likewise.
6039 (vqrshl_u32): Likewise.
6040 (vqrshl_u64): Likewise.
6041 (vqrshlq_s8): Likewise.
6042 (vqrshlq_s16): Likewise.
6043 (vqrshlq_s32): Likewise.
6044 (vqrshlq_s64): Likewise.
6045 (vqrshlq_u8): Likewise.
6046 (vqrshlq_u16): Likewise.
6047 (vqrshlq_u32): Likewise.
6048 (vqrshlq_u64): Likewise.
6049 (vshr_n_s8): Likewise.
6050 (vshr_n_s16): Likewise.
6051 (vshr_n_s32): Likewise.
6052 (vshr_n_s64): Likewise.
6053 (vshr_n_u8): Likewise.
6054 (vshr_n_u16): Likewise.
6055 (vshr_n_u32): Likewise.
6056 (vshr_n_u64): Likewise.
6057 (vshrq_n_s8): Likewise.
6058 (vshrq_n_s16): Likewise.
6059 (vshrq_n_s32): Likewise.
6060 (vshrq_n_s64): Likewise.
6061 (vshrq_n_u8): Likewise.
6062 (vshrq_n_u16): Likewise.
6063 (vshrq_n_u32): Likewise.
6064 (vshrq_n_u64): Likewise.
6065 (vrshr_n_s8): Likewise.
6066 (vrshr_n_s16): Likewise.
6067 (vrshr_n_s32): Likewise.
6068 (vrshr_n_s64): Likewise.
6069 (vrshr_n_u8): Likewise.
6070 (vrshr_n_u16): Likewise.
6071 (vrshr_n_u32): Likewise.
6072 (vrshr_n_u64): Likewise.
6073 (vrshrq_n_s8): Likewise.
6074 (vrshrq_n_s16): Likewise.
6075 (vrshrq_n_s32): Likewise.
6076 (vrshrq_n_s64): Likewise.
6077 (vrshrq_n_u8): Likewise.
6078 (vrshrq_n_u16): Likewise.
6079 (vrshrq_n_u32): Likewise.
6080 (vrshrq_n_u64): Likewise.
6081 (vshrn_n_s16): Likewise.
6082 (vshrn_n_s32): Likewise.
6083 (vshrn_n_s64): Likewise.
6084 (vshrn_n_u16): Likewise.
6085 (vshrn_n_u32): Likewise.
6086 (vshrn_n_u64): Likewise.
6087 (vrshrn_n_s16): Likewise.
6088 (vrshrn_n_s32): Likewise.
6089 (vrshrn_n_s64): Likewise.
6090 (vrshrn_n_u16): Likewise.
6091 (vrshrn_n_u32): Likewise.
6092 (vrshrn_n_u64): Likewise.
6093 (vqshrn_n_s16): Likewise.
6094 (vqshrn_n_s32): Likewise.
6095 (vqshrn_n_s64): Likewise.
6096 (vqshrn_n_u16): Likewise.
6097 (vqshrn_n_u32): Likewise.
6098 (vqshrn_n_u64): Likewise.
6099 (vqrshrn_n_s16): Likewise.
6100 (vqrshrn_n_s32): Likewise.
6101 (vqrshrn_n_s64): Likewise.
6102 (vqrshrn_n_u16): Likewise.
6103 (vqrshrn_n_u32): Likewise.
6104 (vqrshrn_n_u64): Likewise.
6105 (vqshrun_n_s16): Likewise.
6106 (vqshrun_n_s32): Likewise.
6107 (vqshrun_n_s64): Likewise.
6108 (vqrshrun_n_s16): Likewise.
6109 (vqrshrun_n_s32): Likewise.
6110 (vqrshrun_n_s64): Likewise.
6111 (vshl_n_s8): Likewise.
6112 (vshl_n_s16): Likewise.
6113 (vshl_n_s32): Likewise.
6114 (vshl_n_s64): Likewise.
6115 (vshl_n_u8): Likewise.
6116 (vshl_n_u16): Likewise.
6117 (vshl_n_u32): Likewise.
6118 (vshl_n_u64): Likewise.
6119 (vshlq_n_s8): Likewise.
6120 (vshlq_n_s16): Likewise.
6121 (vshlq_n_s32): Likewise.
6122 (vshlq_n_s64): Likewise.
6123 (vshlq_n_u8): Likewise.
6124 (vshlq_n_u16): Likewise.
6125 (vshlq_n_u32): Likewise.
6126 (vshlq_n_u64): Likewise.
6127 (vqshl_n_s8): Likewise.
6128 (vqshl_n_s16): Likewise.
6129 (vqshl_n_s32): Likewise.
6130 (vqshl_n_s64): Likewise.
6131 (vqshl_n_u8): Likewise.
6132 (vqshl_n_u16): Likewise.
6133 (vqshl_n_u32): Likewise.
6134 (vqshl_n_u64): Likewise.
6135 (vqshlq_n_s8): Likewise.
6136 (vqshlq_n_s16): Likewise.
6137 (vqshlq_n_s32): Likewise.
6138 (vqshlq_n_s64): Likewise.
6139 (vqshlq_n_u8): Likewise.
6140 (vqshlq_n_u16): Likewise.
6141 (vqshlq_n_u32): Likewise.
6142 (vqshlq_n_u64): Likewise.
6143 (vqshlu_n_s8): Likewise.
6144 (vqshlu_n_s16): Likewise.
6145 (vqshlu_n_s32): Likewise.
6146 (vqshlu_n_s64): Likewise.
6147 (vqshluq_n_s8): Likewise.
6148 (vqshluq_n_s16): Likewise.
6149 (vqshluq_n_s32): Likewise.
6150 (vqshluq_n_s64): Likewise.
6151 (vshll_n_s8): Likewise.
6152 (vshll_n_s16): Likewise.
6153 (vshll_n_s32): Likewise.
6154 (vshll_n_u8): Likewise.
6155 (vshll_n_u16): Likewise.
6156 (vshll_n_u32): Likewise.
6157 (vsra_n_s8): Likewise.
6158 (vsra_n_s16): Likewise.
6159 (vsra_n_s32): Likewise.
6160 (vsra_n_s64): Likewise.
6161 (vsra_n_u8): Likewise.
6162 (vsra_n_u16): Likewise.
6163 (vsra_n_u32): Likewise.
6164 (vsra_n_u64): Likewise.
6165 (vsraq_n_s8): Likewise.
6166 (vsraq_n_s16): Likewise.
6167 (vsraq_n_s32): Likewise.
6168 (vsraq_n_s64): Likewise.
6169 (vsraq_n_u8): Likewise.
6170 (vsraq_n_u16): Likewise.
6171 (vsraq_n_u32): Likewise.
6172 (vsraq_n_u64): Likewise.
6173 (vrsra_n_s8): Likewise.
6174 (vrsra_n_s16): Likewise.
6175 (vrsra_n_s32): Likewise.
6176 (vrsra_n_s64): Likewise.
6177 (vrsra_n_u8): Likewise.
6178 (vrsra_n_u16): Likewise.
6179 (vrsra_n_u32): Likewise.
6180 (vrsra_n_u64): Likewise.
6181 (vrsraq_n_s8): Likewise.
6182 (vrsraq_n_s16): Likewise.
6183 (vrsraq_n_s32): Likewise.
6184 (vrsraq_n_s64): Likewise.
6185 (vrsraq_n_u8): Likewise.
6186 (vrsraq_n_u16): Likewise.
6187 (vrsraq_n_u32): Likewise.
6188 (vrsraq_n_u64): Likewise.
6189 (vabs_s8): Likewise.
6190 (vabs_s16): Likewise.
6191 (vabs_s32): Likewise.
6192 (vabs_f32): Likewise.
6193 (vabsq_s8): Likewise.
6194 (vabsq_s16): Likewise.
6195 (vabsq_s32): Likewise.
6196 (vabsq_f32): Likewise.
6197 (vqabs_s8): Likewise.
6198 (vqabs_s16): Likewise.
6199 (vqabs_s32): Likewise.
6200 (vqabsq_s8): Likewise.
6201 (vqabsq_s16): Likewise.
6202 (vqabsq_s32): Likewise.
6203 (vneg_s8): Likewise.
6204 (vneg_s16): Likewise.
6205 (vneg_s32): Likewise.
6206 (vneg_f32): Likewise.
6207 (vnegq_s8): Likewise.
6208 (vnegq_s16): Likewise.
6209 (vnegq_s32): Likewise.
6210 (vnegq_f32): Likewise.
6211 (vqneg_s8): Likewise.
6212 (vqneg_s16): Likewise.
6213 (vqneg_s32): Likewise.
6214 (vqnegq_s8): Likewise.
6215 (vqnegq_s16): Likewise.
6216 (vqnegq_s32): Likewise.
6217 (vmvn_s8): Likewise.
6218 (vmvn_s16): Likewise.
6219 (vmvn_s32): Likewise.
6220 (vmvn_u8): Likewise.
6221 (vmvn_u16): Likewise.
6222 (vmvn_u32): Likewise.
6223 (vmvn_p8): Likewise.
6224 (vmvnq_s8): Likewise.
6225 (vmvnq_s16): Likewise.
6226 (vmvnq_s32): Likewise.
6227 (vmvnq_u8): Likewise.
6228 (vmvnq_u16): Likewise.
6229 (vmvnq_u32): Likewise.
6230 (vmvnq_p8): Likewise.
6231 (vcls_s8): Likewise.
6232 (vcls_s16): Likewise.
6233 (vcls_s32): Likewise.
6234 (vclsq_s8): Likewise.
6235 (vclsq_s16): Likewise.
6236 (vclsq_s32): Likewise.
6237 (vclz_s8): Likewise.
6238 (vclz_s16): Likewise.
6239 (vclz_s32): Likewise.
6240 (vclz_u8): Likewise.
6241 (vclz_u16): Likewise.
6242 (vclz_u32): Likewise.
6243 (vclzq_s8): Likewise.
6244 (vclzq_s16): Likewise.
6245 (vclzq_s32): Likewise.
6246 (vclzq_u8): Likewise.
6247 (vclzq_u16): Likewise.
6248 (vclzq_u32): Likewise.
6249 (vcnt_s8): Likewise.
6250 (vcnt_u8): Likewise.
6251 (vcnt_p8): Likewise.
6252 (vcntq_s8): Likewise.
6253 (vcntq_u8): Likewise.
6254 (vcntq_p8): Likewise.
6255 (vrecpe_f32): Likewise.
6256 (vrecpe_u32): Likewise.
6257 (vrecpeq_f32): Likewise.
6258 (vrecpeq_u32): Likewise.
6259 (vrsqrte_f32): Likewise.
6260 (vrsqrte_u32): Likewise.
6261 (vrsqrteq_f32): Likewise.
6262 (vrsqrteq_u32): Likewise.
6263 (vget_lane_s8): Likewise.
6264 (vget_lane_s16): Likewise.
6265 (vget_lane_s32): Likewise.
6266 (vget_lane_f32): Likewise.
6267 (vget_lane_u8): Likewise.
6268 (vget_lane_u16): Likewise.
6269 (vget_lane_u32): Likewise.
6270 (vget_lane_p8): Likewise.
6271 (vget_lane_p16): Likewise.
6272 (vget_lane_s64): Likewise.
6273 (vget_lane_u64): Likewise.
6274 (vgetq_lane_s8): Likewise.
6275 (vgetq_lane_s16): Likewise.
6276 (vgetq_lane_s32): Likewise.
6277 (vgetq_lane_f32): Likewise.
6278 (vgetq_lane_u8): Likewise.
6279 (vgetq_lane_u16): Likewise.
6280 (vgetq_lane_u32): Likewise.
6281 (vgetq_lane_p8): Likewise.
6282 (vgetq_lane_p16): Likewise.
6283 (vgetq_lane_s64): Likewise.
6284 (vgetq_lane_u64): Likewise.
6285 (vcvt_s32_f32): Likewise.
6286 (vcvt_f32_s32): Likewise.
6287 (vcvt_f32_u32): Likewise.
6288 (vcvt_u32_f32): Likewise.
6289 (vcvtq_s32_f32): Likewise.
6290 (vcvtq_f32_s32): Likewise.
6291 (vcvtq_f32_u32): Likewise.
6292 (vcvtq_u32_f32): Likewise.
6293 (vcvt_n_s32_f32): Likewise.
6294 (vcvt_n_f32_s32): Likewise.
6295 (vcvt_n_f32_u32): Likewise.
6296 (vcvt_n_u32_f32): Likewise.
6297 (vcvtq_n_s32_f32): Likewise.
6298 (vcvtq_n_f32_s32): Likewise.
6299 (vcvtq_n_f32_u32): Likewise.
6300 (vcvtq_n_u32_f32): Likewise.
6301 (vmovn_s16): Likewise.
6302 (vmovn_s32): Likewise.
6303 (vmovn_s64): Likewise.
6304 (vmovn_u16): Likewise.
6305 (vmovn_u32): Likewise.
6306 (vmovn_u64): Likewise.
6307 (vqmovn_s16): Likewise.
6308 (vqmovn_s32): Likewise.
6309 (vqmovn_s64): Likewise.
6310 (vqmovn_u16): Likewise.
6311 (vqmovn_u32): Likewise.
6312 (vqmovn_u64): Likewise.
6313 (vqmovun_s16): Likewise.
6314 (vqmovun_s32): Likewise.
6315 (vqmovun_s64): Likewise.
6316 (vmovl_s8): Likewise.
6317 (vmovl_s16): Likewise.
6318 (vmovl_s32): Likewise.
6319 (vmovl_u8): Likewise.
6320 (vmovl_u16): Likewise.
6321 (vmovl_u32): Likewise.
6322 (vmul_lane_s16): Likewise.
6323 (vmul_lane_s32): Likewise.
6324 (vmul_lane_f32): Likewise.
6325 (vmul_lane_u16): Likewise.
6326 (vmul_lane_u32): Likewise.
6327 (vmulq_lane_s16): Likewise.
6328 (vmulq_lane_s32): Likewise.
6329 (vmulq_lane_f32): Likewise.
6330 (vmulq_lane_u16): Likewise.
6331 (vmulq_lane_u32): Likewise.
6332 (vmla_lane_s16): Likewise.
6333 (vmla_lane_s32): Likewise.
6334 (vmla_lane_f32): Likewise.
6335 (vmla_lane_u16): Likewise.
6336 (vmla_lane_u32): Likewise.
6337 (vmlaq_lane_s16): Likewise.
6338 (vmlaq_lane_s32): Likewise.
6339 (vmlaq_lane_f32): Likewise.
6340 (vmlaq_lane_u16): Likewise.
6341 (vmlaq_lane_u32): Likewise.
6342 (vmlal_lane_s16): Likewise.
6343 (vmlal_lane_s32): Likewise.
6344 (vmlal_lane_u16): Likewise.
6345 (vmlal_lane_u32): Likewise.
6346 (vqdmlal_lane_s16): Likewise.
6347 (vqdmlal_lane_s32): Likewise.
6348 (vmls_lane_s16): Likewise.
6349 (vmls_lane_s32): Likewise.
6350 (vmls_lane_f32): Likewise.
6351 (vmls_lane_u16): Likewise.
6352 (vmls_lane_u32): Likewise.
6353 (vmlsq_lane_s16): Likewise.
6354 (vmlsq_lane_s32): Likewise.
6355 (vmlsq_lane_f32): Likewise.
6356 (vmlsq_lane_u16): Likewise.
6357 (vmlsq_lane_u32): Likewise.
6358 (vmlsl_lane_s16): Likewise.
6359 (vmlsl_lane_s32): Likewise.
6360 (vmlsl_lane_u16): Likewise.
6361 (vmlsl_lane_u32): Likewise.
6362 (vqdmlsl_lane_s16): Likewise.
6363 (vqdmlsl_lane_s32): Likewise.
6364 (vmull_lane_s16): Likewise.
6365 (vmull_lane_s32): Likewise.
6366 (vmull_lane_u16): Likewise.
6367 (vmull_lane_u32): Likewise.
6368 (vqdmull_lane_s16): Likewise.
6369 (vqdmull_lane_s32): Likewise.
6370 (vqdmulhq_lane_s16): Likewise.
6371 (vqdmulhq_lane_s32): Likewise.
6372 (vqdmulh_lane_s16): Likewise.
6373 (vqdmulh_lane_s32): Likewise.
6374 (vqrdmulhq_lane_s16): Likewise.
6375 (vqrdmulhq_lane_s32): Likewise.
6376 (vqrdmulh_lane_s16): Likewise.
6377 (vqrdmulh_lane_s32): Likewise.
6378 (vmul_n_s16): Likewise.
6379 (vmul_n_s32): Likewise.
6380 (vmul_n_f32): Likewise.
6381 (vmul_n_u16): Likewise.
6382 (vmul_n_u32): Likewise.
6383 (vmulq_n_s16): Likewise.
6384 (vmulq_n_s32): Likewise.
6385 (vmulq_n_f32): Likewise.
6386 (vmulq_n_u16): Likewise.
6387 (vmulq_n_u32): Likewise.
6388 (vmull_n_s16): Likewise.
6389 (vmull_n_s32): Likewise.
6390 (vmull_n_u16): Likewise.
6391 (vmull_n_u32): Likewise.
6392 (vqdmull_n_s16): Likewise.
6393 (vqdmull_n_s32): Likewise.
6394 (vqdmulhq_n_s16): Likewise.
6395 (vqdmulhq_n_s32): Likewise.
6396 (vqdmulh_n_s16): Likewise.
6397 (vqdmulh_n_s32): Likewise.
6398 (vqrdmulhq_n_s16): Likewise.
6399 (vqrdmulhq_n_s32): Likewise.
6400 (vqrdmulh_n_s16): Likewise.
6401 (vqrdmulh_n_s32): Likewise.
6402 (vmla_n_s16): Likewise.
6403 (vmla_n_s32): Likewise.
6404 (vmla_n_f32): Likewise.
6405 (vmla_n_u16): Likewise.
6406 (vmla_n_u32): Likewise.
6407 (vmlaq_n_s16): Likewise.
6408 (vmlaq_n_s32): Likewise.
6409 (vmlaq_n_f32): Likewise.
6410 (vmlaq_n_u16): Likewise.
6411 (vmlaq_n_u32): Likewise.
6412 (vmlal_n_s16): Likewise.
6413 (vmlal_n_s32): Likewise.
6414 (vmlal_n_u16): Likewise.
6415 (vmlal_n_u32): Likewise.
6416 (vqdmlal_n_s16): Likewise.
6417 (vqdmlal_n_s32): Likewise.
6418 (vmls_n_s16): Likewise.
6419 (vmls_n_s32): Likewise.
6420 (vmls_n_f32): Likewise.
6421 (vmls_n_u16): Likewise.
6422 (vmls_n_u32): Likewise.
6423 (vmlsq_n_s16): Likewise.
6424 (vmlsq_n_s32): Likewise.
6425 (vmlsq_n_f32): Likewise.
6426 (vmlsq_n_u16): Likewise.
6427 (vmlsq_n_u32): Likewise.
6428 (vmlsl_n_s16): Likewise.
6429 (vmlsl_n_s32): Likewise.
6430 (vmlsl_n_u16): Likewise.
6431 (vmlsl_n_u32): Likewise.
6432 (vqdmlsl_n_s16): Likewise.
6433 (vqdmlsl_n_s32): Likewise.
6435 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6437 * config/arm/arm.c (arm_new_rtx_costs, case PLUS, MINUS):
6438 Add cost of alu.arith in simple SImode case.
6440 2014-11-18 Jiong Wang <jiong.wang@arm.com>
6442 * lra-eliminations.c (update_reg_eliminate): Relax gcc_assert for fixed
6445 2014-11-18 Marat Zakirov <m.zakirov@samsung.com>
6447 * opts.c (finish_options): Disable aggressive opts for sanitizer.
6448 (common_handle_option): Move code to finish_options.
6450 2014-11-18 Yury Gribov <y.gribov@samsung.com>
6453 * stor-layout.c (min_align_of_type): Respect user alignment
6456 2014-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
6458 * passes.c (remove_cgraph_node_from_order): New.
6459 (do_per_function_toporder): Register cgraph removal
6462 2014-11-17 Terry Guo <terry.guo@arm.com>
6464 * config/arm/arm.c (arm_issue_rate): Return 2 for cortex-m7.
6465 * config/arm/arm.md (generic_sched): Exclude cortex-m7.
6466 (generic_vfp): Likewise.
6467 * config/arm/cortex-m7.md: Pipeline description for cortex-m7.
6469 2014-11-17 Vladimir Makarov <vmakarov@redhat.com>
6471 PR rtl-optimization/63906
6472 * lra-remat.c (operand_to_remat): Check SP and
6473 frame_pointer_required.
6475 2014-11-17 Mircea Namolaru <mircea.namolaru@inria.fr>
6477 * doc/invoke.texi (floop-unroll-and-jam): Document
6478 (loop-unroll-jam-size): Likewise.
6479 (loop-unroll-jam-depth): Likewise.
6480 * graphite-optimize-isl.c (getPrevectorMap_full): Modify comment.
6481 (getScheduleForBandList): Replaced unsafe union_map reuse.
6483 2014-11-17 Andrew Pinski <apinski@cavium.com>
6485 * config/aarch64/thunderx.md: Remove copyright which should not
6488 2014-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
6489 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6491 * config/rs6000/rs6000.c (RELOAD_REG_AND_M16): Add support for
6492 Altivec style vector loads that ignore the bottom 3 bits of the
6494 (rs6000_debug_addr_mask): New function to print the addr_mask
6495 values if debugging.
6496 (rs6000_debug_print_mode): Call rs6000_debug_addr_mask to print
6498 (rs6000_setup_reg_addr_masks): Add support for Altivec style
6499 vector loads that ignore the bottom 3 bits of the address. Allow
6500 pre-increment and pre-decrement on floating point, even if the
6501 -mupper-regs-{sf,df} options were used.
6502 (rs6000_init_hard_regno_mode_ok): Rework DFmode support if
6503 -mupper-regs-df. Add support for -mupper-regs-sf. Rearrange code
6504 placement for direct move support.
6505 (rs6000_option_override_internal): Add checks for -mupper-regs-df
6506 requiring -mvsx, and -mupper-regs-sf requiring -mpower8-vector.
6507 If -mupper-regs, set both -mupper-regs-sf and -mupper-regs-df,
6508 depending on the underlying cpu.
6509 (rs6000_secondary_reload_fail): Add ATTRIBUTE_NORETURN.
6510 (rs6000_secondary_reload_toc_costs): Helper function to identify
6511 costs of a TOC load for secondary reload support.
6512 (rs6000_secondary_reload_memory): Helper function for secondary
6513 reload, to determine if a particular memory operation is directly
6514 handled by the hardware, or if it needs support from secondary
6515 reload to create a valid address.
6516 (rs6000_secondary_reload): Rework code, to be clearer. If the
6517 appropriate -mupper-regs-{sf,df} is used, use FPR registers to
6518 reload scalar values, since the FPR registers have D-form
6519 addressing. Move most of the code handling memory to the function
6520 rs6000_secondary_reload_memory, and use the reg_addr structure to
6521 determine what type of address modes are supported. Print more
6522 debug information if -mdebug=addr.
6523 (rs6000_secondary_reload_inner): Rework entire function to be more
6524 general. Use the reg_addr bits to determine what type of
6525 addressing is supported.
6526 (rs6000_preferred_reload_class): Rework. Move constant handling
6527 into a single place. Prefer using FLOAT_REGS for scalar floating
6529 (rs6000_secondary_reload_class): Use a FPR register to move a
6530 value from an Altivec register to a GPR, and vice versa. Move VSX
6531 handling above traditional floating point.
6533 * config/rs6000/rs6000.md (mov<mode>_hardfloat, FMOVE32 case):
6534 Delete some spaces in the constraints.
6535 (DF->DF move peephole2): Disable if -mupper-regs-{sf,df} to
6536 allow using FPR registers to load/store an Altivec register for
6537 scalar floating point types.
6538 (SF->SF move peephole2): Likewise.
6539 (DFmode splitter): Add a define_split to move floating point
6540 constants to the constant pool before register allocation.
6541 Normally constants are put into the pool immediately, but
6542 -ffast-math delays putting them into the constant pool for the
6543 reciprocal approximation support.
6544 (SFmode splitter): Likewise.
6546 * config/rs6000/rs6000.opt (-mupper-regs-df): Make option public.
6547 (-mupper-regs-sf): Likewise.
6549 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6550 __UPPER_REGS_DF__ if -mupper-regs-df. Define __UPPER_REGS_SF__ if
6552 (-mupper-regs): New combination option that sets -mupper-regs-sf
6553 and -mupper-regs-df by default if the cpu supports the instructions.
6555 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6556 -mupper-regs, -mupper-regs-sf, and -mupper-regs-df.
6558 * config/rs6000/predicates.md (memory_fp_constant): New predicate
6559 to return true if the operand is a floating point constant that
6560 must be put into the constant pool, before register allocation
6563 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Enable
6564 -mupper-regs-df by default.
6565 (ISA_2_7_MASKS_SERVER): Enable -mupper-regs-sf by default.
6566 (POWERPC_MASKS): Add -mupper-regs-{sf,df} as options set by the
6567 various -mcpu=... options.
6568 (power7 cpu): Enable -mupper-regs-df by default.
6570 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6573 2014-11-17 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6575 * ira-conflicts.c (build_conflict_bit_table): Add the current
6576 object to OBJECTS_LIVE after traversing OBJECTS_LIVE.
6578 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6580 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
6581 (ipa_get_indirect_edge_target): Add SPECULATIVE argument.
6582 (devirtualization_time_bonus): Use it.
6583 (ipcp_discover_new_direct_edges): Likewise.
6584 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Update.
6585 * ipa-prop.h (ipa_get_indirect_edge_target): Update prototype.
6587 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6589 * tree.c (free_lang_data_in_decl): Set
6590 DECL_FUNCTION_SPECIFIC_OPTIMIZATION to optimization_default_node.
6592 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6594 * cgraphunit.c (analyze_functions): Use opt_for_fn.
6595 * cgraph.h (cgraph_node::optimize_for_size_p): Likewise.
6597 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6599 * cgraph.c (symbol_table::create_edge): Use opt_for_fn.
6600 (cgraph_node::cannot_return_p): Likewise.
6601 (cgraph_edge::cannot_lead_to_return_p): Likewise.
6602 (cgraph_edge::maybe_hot_p): Likewise.
6604 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6606 * predict.c (maybe_hot_frequency_p): Use opt_for_fn.
6607 (optimize_function_for_size_p): Likewise.
6608 (probably_never_executed): Likewise; replace cfun by fun.
6610 2014-11-17 Alan Lawrence <alan.lawrence@arm.com>
6612 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Add
6613 variant reading from memory and assembling to ld1.
6615 * config/aarch64/arm_neon.h (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8,
6616 vld1_lane_p16, vld1_lane_s8, vld1_lane_s16, vld1_lane_s32,
6617 vld1_lane_s64, vld1_lane_u8, vld1_lane_u16, vld1_lane_u32,
6618 vld1_lane_u64, vld1q_lane_f32, vld1q_lane_f64, vld1q_lane_p8,
6619 vld1q_lane_p16, vld1q_lane_s8, vld1q_lane_s16, vld1q_lane_s32,
6620 vld1q_lane_s64, vld1q_lane_u8, vld1q_lane_u16, vld1q_lane_u32,
6621 vld1q_lane_u64): Replace asm with vset_lane and pointer dereference.
6623 2014-11-17 Jason Merrill <jason@redhat.com>
6625 * tree-inline.c (copy_fn): New.
6626 * tree-inline.h: Declare it.
6628 2014-11-17 Alan Lawrence <alan.lawrence@arm.com>
6630 * config/aarch64/aarch64-builtins.c (TYPES_CREATE): Remove.
6631 * config/aarch64/aarch64-simd-builtins.def (create): Remove.
6632 * config/aarch64/aarch64-simd.md (aarch64_create<mode>): Remove.
6633 * config/aarch64/arm_neon.h (vcreate_f64, vreinterpret_f64_s64,
6634 vreinterpret_f64_u64): Replace __builtin_aarch64_createv1df with C casts.
6635 * config/aarch64/iterators.md (VD1): Remove.
6637 2014-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6639 * config/aarch64/aarch64-cores.def (cortex-a53): Remove
6640 AARCH64_FL_CRYPTO from feature flags.
6641 (cortex-a57): Likewise.
6642 (cortex-a57.cortex-a53): Likewise.
6644 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6646 * tree.c (free_lang_data_in_decl): Annotate all functio nbodies with
6647 DECL_FUNCTION_SPECIFIC_TARGET.
6648 * i386.c (ix86_set_current_function): Handle explicit default options.
6650 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6652 * builtins.c (expand_builtin_memcpy_with_bounds): Use target hook
6654 (expand_builtin_mempcpy_with_bounds): Likewise.
6655 (expand_builtin_memset_with_bounds): Likewise.
6657 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6659 * tree-ssa-strlen.c: include ipa-chkp.h, cgraph.h,
6660 ipa-ref.h, plugin-api.h.
6661 (get_string_length): Handle calls with bounds.
6662 (adjust_last_stmt): Likewise.
6663 (handle_builtin_strchr): Likewise.
6664 (handle_builtin_strcpy): Likewise.
6665 (handle_builtin_memcpy): Likewise.
6666 (handle_builtin_strcat): Likewise.
6668 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6670 * tree-chkp-opt.c (chkp_get_nobnd_fndecl): New.
6671 (chkp_get_nochk_fndecl): New.
6672 (chkp_optimize_string_function_calls): New.
6673 (chkp_opt_execute): Call chkp_optimize_string_function_calls.
6674 * tree-cfg.h (insert_cond_bb): New.
6675 * tree-cfg.c (insert_cond_bb): New.
6677 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6679 * tree-core.h (built_in_class): Add builtin codes to be used
6680 by Pointer Bounds Checker for instrumented builtin functions.
6681 * tree-streamer-in.c: Include ipa-chkp.h.
6682 (streamer_get_builtin_tree): Created instrumented decl if
6684 * ipa-chkp.h (chkp_maybe_clone_builtin_fndecl): New.
6685 * ipa-chkp.c (chkp_build_instrumented_fndecl): Support builtin
6687 (chkp_maybe_clone_builtin_fndecl): New.
6688 (chkp_maybe_create_clone): Support builtin function decls.
6689 (chkp_versioning): Clone builtin functions.
6690 * tree-chkp.c (chkp_instrument_normal_builtin): New.
6691 (chkp_add_bounds_to_call_stmt): Support builtin functions.
6692 (chkp_replace_function_pointer): Likewise.
6693 * builtins.c (expand_builtin_memcpy_args): New.
6694 (expand_builtin_memcpy): Call expand_builtin_memcpy_args.
6695 (expand_builtin_memcpy_with_bounds): New.
6696 (expand_builtin_mempcpy_with_bounds): New.
6697 (expand_builtin_mempcpy_args): Add orig_exp arg. Support
6698 BUILT_IN_CHKP_MEMCPY_NOBND_NOCHK
6699 (expand_builtin_memset_with_bounds): New.
6700 (expand_builtin_memset_args): Support BUILT_IN_CHKP_MEMSET_NOBND_NOCHK.
6701 (expand_builtin_with_bounds): New.
6702 * builtins.h (expand_builtin_with_bounds): New.
6703 * expr.c (expand_expr_real_1): Support instrumented builtin calls.
6705 2014-11-17 Dodji Seketeli <dodji@redhat.com>
6707 * gimple.h (gimple_set_visited, gimple_visited_p)
6708 (gimple_set_plf, gimple_plf, gimple_set_uid, gimple_uid): Add more
6709 comments to these accessors.
6711 2014-11-17 Georg-Johann Lay <avr@gjlay.de>
6713 * config/avr/avr-log.c (avr_log_set_avr_log) [TARGET_ALL_DEBUG]:
6714 Set avr_log_details to "all".
6716 2014-11-17 Richard Biener <rguenther@suse.de>
6719 * match.pd: Guard X / CST -> X * CST' transform against
6722 2014-11-17 Terry Guo <terry.guo@arm.com>
6724 * config/arm/thumb1.md (*addsi3_cbranch_scratch): Updated to UAL
6727 2014-11-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
6729 * ifcvt.c (HAVE_cbranchcc4): Define.
6730 (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
6731 Use HAVE_cbranchcc4.
6733 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6735 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
6736 aarch64_convert_mode, aarch64_gen_ccmp_first,
6737 aarch64_gen_ccmp_next): New functions.
6738 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
6740 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6742 * config/aarch64/aarch64-protos.h (aarch64_ccmp_mode_to_code): New.
6743 * aarch64.c (aarch64_nzcv_codes): New data.
6744 (aarch64_ccmp_mode_to_code): New.
6745 (aarch64_print_operand): Output nzcv.
6746 config/aarch64/aarch64.md (cbranchcc4, *ccmp_and, *ccmp_ior, cstorecc4):
6748 (cstore<mode>4): Handle ccmp_cc_register.
6749 * config/aarch64/predicates.md (const0_operand): New.
6751 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6753 * config/aarch64/aarch64-modes.def: Define ccmp CC mode.
6754 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): New function
6755 extacted from aarch64_get_condition_code.
6756 (aarch64_get_condition_code): Call aarch64_get_condition_code_1.
6757 config/aarch64/predicates.md (ccmp_cc_register): New predicate.
6759 014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6761 * config/aarch64/constraints.md (Usn, aarch64_ccmp_immediate,
6762 aarch64_ccmp_operand): New constraints.
6764 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6766 * Makefile.in: Add ccmp.o.
6769 * expr.c: include "ccmp.h"
6770 (expand_cond_expr_using_cmove): Handle VOIDmode.
6771 (expand_expr_real_1): Try to expand ccmp.
6773 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6775 * cfgexpand.c (expand_gimple_cond): Check ccmp.
6776 * expmed.c (emit_cstore): Make it global.
6777 * expmed.h: #include "insn-codes.h"
6778 (emit_cstore): New prototype.
6779 * expr.c (expand_operands): Make it global.
6780 * expr.h (expand_operands): New prototype.
6781 * optabs.c (get_rtx_code): Make it global.
6782 * optabs.h (get_rtx_code): New prototype.
6784 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6786 * target.def (gen_ccmp_first, gen_ccmp_first): Add two new hooks.
6787 * doc/tm.texi.in (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
6788 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
6790 2014-11-16 Patrick Palka <ppalka@gcc.gnu.org>
6793 * tree-ssa-forwprop.c (forward_propagate_into_comparison_1):
6794 Always combine comparisons or conversions from booleans.
6796 2014-11-16 Jan Hubicka <hubicka@ucw.cz>
6798 * ipa-polymorphic-call.c
6799 (ipa_polymorphic_call_context::speculation_consistent_p): Constify.
6800 (ipa_polymorphic_call_context::meet_speculation_with): New function.
6801 (ipa_polymorphic_call_context::combine_with): Handle types in
6802 construction better.
6803 (ipa_polymorphic_call_context::equal_to): Do not bother about useless
6805 (ipa_polymorphic_call_context::meet_with): New function.
6806 * cgraph.h (class ipa_polymorphic_call_context): Add
6807 meet_width, meet_speculation_with; constify speculation_consistent_p.
6808 * ipa-cp.c (ipa_context_from_jfunc): Handle speculation; combine
6809 with incomming context.
6810 (propagate_context_accross_jump_function): Likewise; be more cureful.
6811 about set_contains_variable.
6812 (ipa_get_indirect_edge_target_1): Fix handling of dynamic type changes.
6813 (find_more_scalar_values_for_callers_subset): Fix.
6814 (find_more_contexts_for_caller_subset): Perform meet operation.
6816 2014-11-16 Jan Hubicka <hubicka@ucw.cz>
6818 * passes.c (execute_one_pass): Do not apply all transforms prior
6819 every simple IPA pass.
6820 * cgraphunit.c: Do not include fibheap.h
6821 (expand_thunk): Use get_untransformed_body.
6822 (cgraph_node::expand): Likewise.
6823 * tree-ssa-structalias.c (ipa_pta_execute): Skip inline clones.
6824 * cgraph.c (release_function_body): Do not push cfun when CFG
6826 (cgraph_node::get_untransformed_body): Break out from ...
6827 (cgraph_node::get_body): ... here; add code to apply all transforms.
6828 * cgraph.h (cgraph_node): Add get_untransformed_body.
6829 * ipa-icf.c (sem_function::init): Use get_untransformed_body.
6830 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
6831 * tree-inline.c (expand_call_inline): LIkewise.
6832 * i386.c (ix86_reset_to_default_globals): Break out from ...
6833 (ix86_set_current_function): ... here;
6834 (ix86_reset_previous_fndecl): Use it.
6835 (ix86_simd_clone_adjust): Use ix86_reset_previous_fndecl.
6837 2014-11-16 Eric Botcazou <ebotcazou@adacore.com>
6839 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Move around.
6840 * doc/tm.texi: Regenerate.
6842 2014-11-16 Uros Bizjak <ubizjak@gmail.com>
6844 * config/sh/sh.c: Do not include algorithm.
6845 (sh_emit_scc_to_t): Replace open-coded swap with std::swap
6847 (sh_emit_compare_and_branch): Ditto.
6848 (sh_emit_compare_and_set): Ditto.
6849 * config/sh/sh.md (replacement peephole2): Ditto.
6850 (cstore4_media): Ditto.
6853 2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
6855 * lra-remat.c (cand_transf_func): Process regno for
6856 rematerialization too.
6857 * lra.c (lra): Switch on rematerialization pass.
6859 2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
6861 * lra.c (lra): Switch off rematerialization pass.
6863 2014-11-15 Marc Glisse <marc.glisse@inria.fr>
6865 * config/i386/xmmintrin.h (_mm_add_ps, _mm_sub_ps, _mm_mul_ps,
6866 _mm_div_ps, _mm_store_ss, _mm_cvtss_f32): Use vector extensions
6867 instead of builtins.
6868 * config/i386/emmintrin.h (__v2du, __v4su, __v8hu, __v16qu): New
6870 (_mm_sqrt_sd): Fix comment.
6871 (_mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
6872 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
6873 _mm_mullo_epi16, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
6874 _mm_cmplt_epi8, _mm_cmplt_epi16, _mm_cmplt_epi32, _mm_cmpgt_epi8,
6875 _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_and_si128, _mm_or_si128,
6876 _mm_xor_si128, _mm_store_sd, _mm_cvtsd_f64, _mm_storeh_pd,
6877 _mm_cvtsi128_si64, _mm_cvtsi128_si64x, _mm_add_pd, _mm_sub_pd,
6878 _mm_mul_pd, _mm_div_pd, _mm_storel_epi64, _mm_movepi64_pi64):
6879 Use vector extensions instead of builtins.
6880 * config/i386/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
6881 _mm_mullo_epi32): Likewise.
6882 * config/i386/avxintrin.h (__v4du, __v8su, __v16hu, __v32qu):
6884 (_mm256_add_pd, _mm256_add_ps, _mm256_div_pd, _mm256_div_ps,
6885 _mm256_mul_pd, _mm256_mul_ps, _mm256_sub_pd, _mm256_sub_ps):
6886 Use vector extensions instead of builtins.
6887 * config/i386/avx2intrin.h (_mm256_cmpeq_epi8, _mm256_cmpeq_epi16,
6888 _mm256_cmpeq_epi32, _mm256_cmpeq_epi64, _mm256_cmpgt_epi8,
6889 _mm256_cmpgt_epi16, _mm256_cmpgt_epi32, _mm256_cmpgt_epi64,
6890 _mm256_and_si256, _mm256_or_si256, _mm256_xor_si256, _mm256_add_epi8,
6891 _mm256_add_epi16, _mm256_add_epi32, _mm256_add_epi64,
6892 _mm256_mullo_epi16, _mm256_mullo_epi32, _mm256_sub_epi8,
6893 _mm256_sub_epi16, _mm256_sub_epi32, _mm256_sub_epi64): Likewise.
6894 * config/i386/avx512fintrin.h (__v8du, __v16su, __v32hu, __v64qu):
6896 (_mm512_or_si512, _mm512_or_epi32, _mm512_or_epi64, _mm512_xor_si512,
6897 _mm512_xor_epi32, _mm512_xor_epi64, _mm512_and_si512,
6898 _mm512_and_epi32, _mm512_and_epi64, _mm512_mullo_epi32,
6899 _mm512_add_epi64, _mm512_sub_epi64, _mm512_add_epi32,
6900 _mm512_sub_epi32, _mm512_add_pd, _mm512_add_ps, _mm512_sub_pd,
6901 _mm512_sub_ps, _mm512_mul_pd, _mm512_mul_ps, _mm512_div_pd,
6902 _mm512_div_ps): Use vector extensions instead of builtins.
6903 * config/i386/avx512bwintrin.h (_mm512_mullo_epi16, _mm512_add_epi8,
6904 _mm512_sub_epi8, _mm512_sub_epi16, _mm512_add_epi16): Likewise.
6905 * config/i386/avx512dqintrin.h (_mm512_mullo_epi64): Likewise.
6906 * config/i386/avx512vldqintrin.h (_mm256_mullo_epi64, _mm_mullo_epi64):
6909 2014-11-15 Jan Hubicka <hubicka@ucw.cz>
6911 * lto-streamer-out.c (hash_tree): Use cl_optimization_hash.
6912 * lto-streamer.h (cl_optimization_stream_out,
6913 cl_optimization_stream_in): Declare.
6914 * optc-save-gen.awk: Generate cl_optimization LTO streaming
6915 and hashing routines.
6916 * opth-gen.awk: Add prototype of cl_optimization_hash.
6917 * tree-streamer-in.c (unpack_ts_optimization): Remove.
6918 (streamer_unpack_tree_bitfields): Use cl_optimization_stream_in.
6919 * tree-streamer-out.c (pack_ts_optimization): Remove.
6920 (streamer_pack_tree_bitfields): Use cl_optimization_stream_out.
6922 2014-11-15 Mircea Namolaru <mircea.namolaru@inria.fr>
6924 * common.opt (flag_loop_unroll_and_jam): New flag.
6925 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE): Parameter for unroll and
6927 (PARAM_LOOP_UNROLL_JAM_DEPTH): Likewise.
6928 * graphite-poly.h (struct poly_bb:map_sepclass): New field
6929 * graphite-poly.c (new_poly_bb): Initialization for new field.
6930 (apply_poly_transforms): Support for unroll and jam flag.
6931 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass): Compute the
6933 (generate_luj_sepclass_opt): Build the separation class option.
6934 (generate_luj_options): Set unroll and jam options.
6935 (set_options): Support for unroll and jam options.
6936 (scop_to_isl_ast): Likewise
6937 * graphite-optimize-isl.c (getPrevectorMap_full): New function for
6938 computing the separating class map.
6939 (optimize_isl): Support for the separating class map.
6940 (apply_schedule_map_to_scop): Likewise.
6941 (getScheduleMap): Likewise.
6942 (getScheduleForBand): Likewise.
6943 (getScheduleForBandList): Likewise.
6944 * graphite.c (gate_graphite_transforms): Add unroll and jam flag.
6945 * toplev.c (process_options) Likewise.
6947 2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
6949 * tree-cfg.c (replace_loop_annotate_in_block): New function extracted
6951 (replace_loop_annotate): ...here. Call it on the header and on the
6952 latch block, if any. Restore proper behavior of final cleanup.
6954 2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
6956 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add log message
6957 for max-completely-peeled-insns limit.
6959 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
6961 * ipa-prop.h (ipa_known_type_data): Remove.
6962 (ipa_binfo_from_known_type_jfunc): Remove.
6964 2014-11-14 Andrew Pinski <apinski@cavium.com>
6966 * config/aarch64/aarch64-cores.def (thunderx): Change the scheduler
6968 * config/aarch64/aarch64.md: Include thunderx.md.
6969 (generic_sched): Set to no for thunderx.
6970 * config/aarch64/thunderx.md: New file.
6972 2014-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6974 * config/rs6000/predicates.md (easy_fp_constant): Delete redunant
6977 * config/rs6000/vector.md (VEC_R): Move secondary reload support
6978 insns to rs6000.md from vector.md.
6979 (reload_<VEC_R:mode>_<P:mptrsize>_store): Likewise.
6980 (reload_<VEC_R:mode>_<P:mptrsize>_load): Likewise.
6981 (vec_reload_and_plus_<mptrsize>): Likewise.
6983 * config/rs6000/rs6000.md (Fa): New mode attribute to give
6984 constraint for the Altivec registers for a type.
6985 (RELOAD): New mode iterator for all of the types that have
6986 secondary reload address support to load up a base register.
6987 (extendsfdf2_fpr): Use correct constraint.
6988 (copysign<mode>3_fcpsgn): For SFmode, use correct xscpsgndp
6990 (floatsi<mode>2_lfiwax): Add support for -mupper-regs-{sf,df}.
6991 Generate the non-VSX instruction if all registers were FPRs. Do
6992 not use the patterns in vsx.md for scalar operations.
6993 (floatsi<mode>2_lfiwax_mem): Likewise.
6994 (floatunssi<mode>2_lfiwzx): Likewise.
6995 (floatunssi<mode>2_lfiwzx_mem): Likewise.
6996 (fix_trunc<mode>di2_fctidz): Likewise.
6997 (fixuns_trunc<mode>di2_fctiduz): Likewise.
6998 (fctiwz_<mode>): Likewise.
6999 (fctiwuz_<mode>): Likewise.
7001 (floatdidf2_fpr): Likewise.
7002 (floatdidf2_mem): Likewise.
7003 (floatunsdidf2): Likewise.
7004 (floatunsdidf2_fcfidu): Likewise.
7005 (floatunsdidf2_mem): Likewise.
7006 (floatdisf2_fcfids): Likewise.
7007 (floatdisf2_mem): Likewise.
7008 (floatdisf2_internal1): Add explicit test for not FCFIDS to make
7009 it more obvious that the code is for pre-ISA 2.06 machines.
7010 (floatdisf2_internal2): Likewise.
7011 (floatunsdisf2_fcfidus): Add support for -mupper-regs-{sf,df}.
7012 Generate the non-VSX instruction if all registers were FPRs. Do
7013 not use the patterns in vsx.md for scalar operations.
7014 (floatunsdisf2_mem): Likewise.
7015 (reload_<RELOAD:mode>_<P:mptrsize>_store): Move the reload
7016 handlers here from vector.md, and expand the types we generate
7017 reload handlers for.
7018 (reload_<RELOAD:mode>_<P:mptrsize>_load): Likewise.
7019 (vec_reload_and_plus_<mptrsize>): Likewise.
7021 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Only provide the
7022 vector forms of the instructions. Move VSX scalar forms to
7023 rs6000.md, and add support for -mupper-regs-sf.
7024 (vsx_floatuns<VSi><mode>2): Likewise.
7025 (vsx_fix_trunc<mode><VSi>2): Likewise.
7026 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7027 (vsx_float_fix_<mode>2): Delete DF version, rename to
7028 vsx_float_fix_v2df2.
7029 (vsx_float_fix_v2df2): Likewise.
7031 2014-11-14 Martin Jambor <mjambor@suse.cz>
7033 * ipa-prop.h (jump_func_type): Removed value IPA_JF_KNOWN_TYPE.
7034 (ipa_pass_through_data): Removed field type_preserved.
7035 (ipa_ancestor_jf_data): removed fields type and type_preserved.
7036 (ipa_jump_func): Removed field known_type.
7037 (ipa_get_jf_known_type_offset): Removed.
7038 (ipa_get_jf_known_type_base_type): Likewise.
7039 (ipa_get_jf_known_type_component_type): Likewise.
7040 (ipa_get_jf_ancestor_type): Likewise.
7041 * ipa-cp.c (print_ipcp_constant_value): Removed BINFO handling.
7042 (ipa_get_jf_pass_through_result): Likewise.
7043 (ipa_get_jf_ancestor_result): Always build ptr_node_type accesses.
7044 (values_equal_for_ipcp_p): Removed BINFO handling.
7045 (ipa_get_indirect_edge_target_1): Updated comment.
7046 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Removed handling
7047 of IPA_JF_KNOWN_TYPE jump functions. Do not print removed fields.
7048 (ipa_set_jf_known_type): Removed.
7049 (ipa_set_jf_simple_pass_through): Do not set removed fields. Update
7051 (ipa_set_jf_arith_pass_through): Likewise.
7052 (ipa_set_ancestor_jf): Likewise.
7053 (ipa_binfo_from_known_type_jfunc): Removed.
7054 (prop_type_change_info): Removed fields known_current_type and
7055 multiple_types_encountered.
7056 (extr_type_from_vtbl_ptr_store): Removed.
7057 (check_stmt_for_type_change): Do not attempt to identify changed type.
7058 (detect_type_change_from_memory_writes): Do not set the removed fields,
7059 always set jfunc to unknown.
7060 (compute_complex_assign_jump_func): Do not detect dynamic type change.
7061 (compute_complex_ancestor_jump_func): Likewise.
7062 (compute_known_type_jump_func): Removed.
7063 (ipa_compute_jump_functions_for_edge): Do not detect dynamic type
7064 change. Do not comute known type jump functions.
7065 (combine_known_type_and_ancestor_jfs): Removed.
7066 (update_jump_functions_after_inlining): Removed handling of
7067 IPA_JF_KNOWN_TYPE jump functions. Do not set removed fields.
7068 (ipa_write_jump_function): Do not stream removed fields or known type
7070 (ipa_read_jump_function): Likewise.
7072 2014-11-14 Vladimir Makarov <vmakarov@redhat.com>
7074 * lra-int.h (lra_create_live_ranges): Add parameter.
7075 * lra-lives.c (temp_bitmap): Move higher.
7076 (initiate_live_solver): Move temp_bitmap initialization into
7077 lra_live_ranges_init.
7078 (finish_live_solver): Move temp_bitmap clearing into
7080 (process_bb_lives): Add parameter. Use it to control live info
7081 update and dead insn elimination. Pass it to mark_regno_live and
7083 (lra_create_live_ranges): Add parameter. Pass it to
7085 (lra_live_ranges_init, lra_live_ranges_finish): See changes in
7086 initiate_live_solver and finish_live_solver.
7087 * lra-remat.c (do_remat): Process insn non-operand hard regs too.
7088 Use temp_bitmap to update avail_cands.
7089 * lra.c (lra): Pass new parameter to lra_create_live_ranges. Move
7090 check with lra_need_for_spill_p after live range pass. Switch on
7091 rematerialization pass.
7093 2014-11-14 Martin Jambor <mjambor@suse.cz>
7095 * ipa-prop.h (ipa_get_jf_pass_through_type_preserved): use
7096 agg_preserved flag instead.
7097 (ipa_get_jf_ancestor_type_preserved): Likewise.
7098 (ipa_node_params): Rename known_vals to known_csts, update all users.
7099 New field known_contexts.
7100 (ipa_get_indirect_edge_target): Update prototype.
7101 (ipcp_poly_ctx_values_pool): Declare.
7102 (ipa_context_from_jfunc): Likewise.
7103 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Updated prototype.
7104 * cgraph.h (ipa_polymorphic_call_context): New method equal_to. New
7105 parameter newline of method dump.
7106 * ipa-cp.c (ctxlat): New field.
7107 (ipcp_values_pool): Renamed to ipcp_cst_values_pool, updated all users.
7108 (ipcp_poly_ctx_values_pool):New variable.
7109 (ipa_get_poly_ctx_lat): New function.
7110 (print_ipcp_constant_value): New overloaded function for contexts.
7111 (print_all_lattices): Also print contexts.
7112 (ipa_topo_info): New field contexts;
7113 (set_all_contains_variable): Also set the flag in the context lattice.
7114 (initialize_node_lattices): Likewise for flag bottom.
7115 (ipa_get_jf_ancestor_result): Removed BINFO handling.
7116 (ipa_value_from_jfunc): Likewise.
7117 (ipa_context_from_jfunc): New function.
7118 (values_equal_for_ipcp_p): New overloaded function for contexts.
7119 (allocate_and_init_ipcp_value): Construct the value.
7120 (allocate_and_init_ipcp_value): New overloaded function for contexts.
7121 (propagate_scalar_accross_jump_function): Removed handling of
7122 KNOWN_TYPE jump functions.
7123 (propagate_context_accross_jump_function): New function.
7124 (propagate_constants_accross_call): Also propagate contexts.
7125 (ipa_get_indirect_edge_target_1): Work on contexts rather than BINFOs.
7126 (ipa_get_indirect_edge_target): Likewise.
7127 (devirtualization_time_bonus): Likewise.
7128 (gather_context_independent_values): Create and populate known_contexts
7129 vector rather than known_binfos.
7130 (perform_estimation_of_a_value): Work on contexts rather than BINFOs.
7131 (estimate_local_effects): Likewise.
7132 (add_all_node_vals_to_toposort): Also add contexts to teir topological
7134 (ipcp_propagate_stage): Also propagate effects of contexts.
7135 (ipcp_discover_new_direct_edges): Receive and pass known_contexts to
7136 ipa_get_indirect_edge_target_1.
7137 (cgraph_edge_brings_value_p): New overloaded function for contexts.
7138 (create_specialized_node): Work on contexts rather than BINFOs.
7139 (find_more_contexts_for_caller_subset): New function.
7140 (known_contexts_useful_p): New function.
7141 (copy_useful_known_contexts): Likewise.
7142 (modify_known_vectors_with_val): Likewise.
7143 (ipcp_val_in_agg_replacements_p): Renamed to
7144 ipcp_val_agg_replacement_ok_p, return true for all offset indicating
7146 (ipcp_val_agg_replacement_ok_p): New overloaded function for contexts.
7147 (decide_about_value): Work on contexts rather than BINFOs.
7148 (decide_whether_version_node): Likewise.
7149 (ipcp_driver): Initialize the new alloc pool.
7150 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Prettify
7151 printing of edge contexts.
7152 (ipa_set_ancestor_jf): Replace assert with conditional setting of
7153 type_preserved to false.
7154 (update_jump_functions_after_inlining): Use access function instead of
7155 reading agg_preserved directly. Store combined context in the ancestor
7157 (try_make_edge_direct_virtual_call): Work on contexts rather than
7159 (update_indirect_edges_after_inlining): Get context from
7160 ipa_context_from_jfunc.
7161 (ipa_free_node_params_substructures): Free also known_contexts.
7162 (ipa_free_all_structures_after_ipa_cp): Free the new alloc pool.
7163 (ipa_free_all_structures_after_iinln): Likewise.
7164 * ipa-inline-analysis.c (evaluate_properties_for_edge): Work on
7165 contexts rather than BINFOs.
7166 (estimate_edge_devirt_benefit): Likewise.
7167 (estimate_edge_size_and_time): Likewise.
7168 (estimate_calls_size_and_time): Likewise.
7169 (estimate_node_size_and_time): Likewise.
7170 (estimate_ipcp_clone_size_and_time): Likewise.
7171 (do_estimate_edge_time): Likewise.
7172 (do_estimate_edge_size): Likewise.
7173 (do_estimate_edge_hints): Likewise.
7174 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::dump): New
7175 parameter newline, ouput newline only when it is set.
7176 (ipa_polymorphic_call_context::equal_to): New method.
7178 2014-11-14 Martin Jambor <mjambor@suse.cz>
7180 * ipa-cp.c (ipcp_value_source): Converted to a template class. All
7181 users converted to the same specialization as the using class/function
7182 or specialization on tree.
7183 (ipcp_value): Likewise.
7184 (ipcp_lattice): Likewise.
7185 (ipcp_agg_lattice): Now derived from tree specialization of
7187 (values_topo): Moved to new class value_topo_info.
7188 (ipa_lat_is_single_const): Turned into ipcp_lattice::is_single_const.
7189 Updated all callers.
7190 (print_lattice): Turned into ipcp_lattice::print. Updated all
7192 (value_topo_info): New class template.
7193 (ipa_topo_info): New field constants. New constructor.
7194 (build_toporder_info): Do not clear stack_top, only checkign assert
7196 (set_lattice_to_bottom): Turned into ipcp_lattice::set_to_bottom.
7197 Updated all callers.
7198 (set_lattice_contains_variable): Turned into
7199 ipcp_lattice::set_contains_variable. Updated all callers.
7200 (add_value_source): Turned into ipcp_value::add_source. Updated all
7202 (allocate_and_init_ipcp_value): New function.
7203 (add_value_to_lattice): Turned into ipcp_lattice::add_value. Last
7204 parameter got default a value. Updated all callers.
7205 (add_scalar_value_to_lattice): Removed, users converted to using
7206 ipcp_lattice::add_value with default value of the last parameter.
7207 (add_val_to_toposort): Turned to value_topo_info::add_val. Updated
7209 (propagate_effects): Made method of value_topo_info.
7210 (cgraph_edge_brings_value_p): Now a template function.
7211 (get_info_about_necessary_edges): Likewise.
7212 (gather_edges_for_value): Likewise.
7213 (perhaps_add_new_callers): Likewise.
7214 (decide_about_value): Likewise.
7215 * ipa-prop.h (ipcp_lattice): Remove fowrward declaration.
7217 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7219 * doc/install.texi (--with-diagnostics-color=): Document.
7221 * tree-ssa.dce.c (eliminate_unnecessary_stmts): Eliminate
7222 IFN_GOMP_SIMD_LANE without lhs as useless.
7224 * ipa-pure-const.c (struct funct_state_d): Add can_free field.
7225 (varying_state): Add true for can_free.
7226 (check_call): For builtin or internal !nonfreeing_call_p set
7228 (check_stmt): For asm volatile and asm with "memory" set
7230 (analyze_function): Clear local->can_free initially, continue
7231 calling check_stmt until all flags are computed, dump can_free
7233 (pure_const_write_summary): Write can_free flag.
7234 (pure_const_read_summary): Read it back.
7235 (propagate_pure_const): Propagate also can_free flag, set
7236 w->nonfreeing_fn if it is false after propagation.
7237 * cgraph.h (cgraph_node): Add nonfreeing_fn member.
7238 * gimple.c: Include ipa-ref.h, lto-streamer.h and cgraph.h.
7239 (nonfreeing_call_p): Return cgraph nonfreeing_fn flag if set.
7240 Also return true for IFN_ABNORMAL_DISPATCHER.
7241 * cgraph.c (cgraph_node::dump): Dump nonfreeing_fn flag.
7242 * lto-cgraph.c (lto_output_node): Write nonfreeing_fn flag.
7243 (input_overwrite_node): Read it back.
7245 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7246 Marek Polacek <polacek@redhat.com>
7248 * sanopt.c: Include tree-ssa-operands.h.
7249 (struct sanopt_info): Add has_freeing_call_p,
7250 has_freeing_call_computed_p, imm_dom_path_with_freeing_call_p,
7251 imm_dom_path_with_freeing_call_computed_p, freeing_call_events,
7252 being_visited_p fields.
7253 (struct sanopt_ctx): Add asan_check_map field.
7254 (imm_dom_path_with_freeing_call, maybe_optimize_ubsan_null_ifn,
7255 maybe_optimize_asan_check_ifn): New functions.
7256 (sanopt_optimize_walker): Use them, optimize even ASAN_CHECK
7258 (pass_sanopt::execute): Call sanopt_optimize even for
7260 * gimple.c (nonfreeing_call_p): Return true for non-ECF_LEAF
7263 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
7265 * tree-vect-loop.c (vect_create_epilog_for_reduction): Move code for
7266 'if (extract_scalar_result)' to the only place that it is true.
7268 2014-11-14 H.J. Lu <hongjiu.lu@intel.com>
7270 * config.gcc (default_gnu_indirect_function): Set to yes
7271 for i[34567]86-*-linux* and x86_64-*-linux* if not targeting
7274 2014-11-14 Felix Yang <felix.yang@huawei.com>
7275 Jiji Jiang <jiangjiji@huawei.com>
7277 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): Use
7278 VALL mode iterator instead of VALLDI.
7280 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
7282 * optc-save-gen.awk: Output cl_target_option_eq,
7283 cl_target_option_hash, cl_target_option_stream_out,
7284 cl_target_option_stream_in functions.
7285 * opth-gen.awk: Output prototypes for
7286 cl_target_option_eq and cl_target_option_hash.
7287 * lto-streamer.h (cl_target_option_stream_out,
7288 cl_target_option_stream_in): Declare.
7289 * tree.c (cl_option_hash_hash): Use cl_target_option_hash.
7290 (cl_option_hash_eq): Use cl_target_option_eq.
7291 * tree-streamer-in.c (unpack_value_fields): Stream in
7293 * lto-streamer-out.c (DFS::DFS_write_tree_body): Follow
7294 DECL_FUNCTION_SPECIFIC_TARGET.
7295 (hash_tree): Hash TREE_TARGET_OPTION; visit
7296 DECL_FUNCTION_SPECIFIC_TARGET.
7297 * tree-streamer-out.c (streamer_pack_tree_bitfields): Skip
7299 (streamer_write_tree_body): Output TS_TARGET_OPTION.
7301 2014-11-14 Richard Biener <rguenther@suse.de>
7303 * gimple-fold.h (gimple_fold_stmt_to_constant_1): Add 2nd
7304 valueization hook defaulted to no_follow_ssa_edges.
7305 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Pass
7306 2nd valueization hook to gimple_simplify.
7307 * tree-ssa-ccp.c (valueize_op_1): New function to be
7308 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
7310 * tree-vrp.c (vrp_valueize_1): New function to be
7311 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
7312 (vrp_visit_assignment_or_call): Adjust.
7314 2014-11-14 Marek Polacek <polacek@redhat.com>
7316 * fold-const.c (fold_negate_expr): Don't fold INTEGER_CST if
7317 that overflows when SANITIZE_SI_OVERFLOW is on. Guard -(-A)
7318 folding with TYPE_OVERFLOW_SANITIZED.
7320 2014-11-14 Marek Polacek <polacek@redhat.com>
7323 * asan.c (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST,
7324 ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
7325 * builtin-attrs.def (ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST):
7327 * builtins.c (fold_builtin_0): Don't include ubsan.h. Don't
7328 instrument BUILT_IN_UNREACHABLE here.
7329 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Make
7331 * sanopt.c (pass_sanopt::execute): Instrument BUILT_IN_UNREACHABLE.
7332 * tree-ssa-ccp.c (optimize_unreachable): Bail out if
7333 SANITIZE_UNREACHABLE.
7334 * ubsan.c (ubsan_instrument_unreachable): Rewrite for GIMPLE.
7335 * ubsan.h (ubsan_instrument_unreachable): Adjust declaration.
7337 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
7339 * config/rs6000/vector.md (vec_shl_<mode>): Remove.
7340 (vec_shr_<mode>): Reverse shift if BYTES_BIG_ENDIAN.
7342 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
7344 * optabs.c (shift_amt_for_vec_perm_mask): Remove code conditional on
7346 * tree-vect-loop.c (calc_vec_perm_mask_for_shift,
7347 vect_create_epilog_for_reduction): Likewise.
7348 * doc/md.texi (vec_shr_m): Clarify direction of shifting.
7350 2014-11-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7353 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Split out
7354 numerical immediate handling to...
7355 (aarch64_internal_mov_immediate): ...this. New.
7356 (aarch64_rtx_costs): Use aarch64_internal_mov_immediate.
7357 (aarch64_mov_operand_p): Relax predicate.
7358 * config/aarch64/aarch64.md (mov<mode>:GPI): Do not expand CONST_INTs.
7359 (*movsi_aarch64): Turn into define_insn_and_split and new alternative
7361 (*movdi_aarch64): Likewise.
7363 2014-11-14 Richard Biener <rguenther@suse.de>
7365 * match.pd: Implement more binary patterns exercised by
7367 * fold-const.c (sing_bit_p): Export.
7368 (exact_inverse): Likewise.
7369 (fold_binary_loc): Remove patterns here.
7370 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
7371 * fold-const.h (sing_bit_p): Declare.
7372 (exact_inverse): Likewise.
7374 2014-11-14 Marek Polacek <polacek@redhat.com>
7376 * tree.c (build_common_builtin_nodes): Remove doubled ECF_LEAF.
7378 2014-11-14 Richard Biener <rguenther@suse.de>
7380 * genmatch.c (add_operator): Allow CONSTRUCTOR.
7381 (dt_node::gen_kids): Handle CONSTRUCTOR not as GENERIC.
7382 (parser::parse_op): Allow to iterate over predicates.
7384 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7386 * configure.ac (--with-diagnostics-color): New configure
7387 option, default to --with-diagnostics-color=auto.
7388 * toplev.c (process_options): Use DIAGNOSTICS_COLOR_DEFAULT
7389 to determine -fdiagnostics-color= option default.
7390 * doc/invoke.texi (-fdiagnostics-color=): Document new
7392 * configure: Regenerated.
7393 * config.in: Regenerated.
7395 2014-11-13 Teresa Johnson <tejohnson@google.com>
7397 PR tree-optimization/63841
7398 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
7400 2014-11-14 Bin Cheng <bin.cheng@arm.com>
7402 * timevar.def (TV_SCHED_FUSION): New time var.
7403 * passes.def (pass_sched_fusion): New pass.
7404 * config/arm/arm.c (TARGET_SCHED_FUSION_PRIORITY): New.
7405 (extract_base_offset_in_addr, fusion_load_store): New.
7406 (arm_sched_fusion_priority): New.
7407 (arm_option_override): Disable scheduling fusion by default
7408 on non-armv7 processors or ldrd/strd isn't preferred.
7409 * sched-int.h (struct _haifa_insn_data): New field.
7410 (INSN_FUSION_PRIORITY, FUSION_MAX_PRIORITY, sched_fusion): New.
7411 * sched-rgn.c (rest_of_handle_sched_fusion): New.
7412 (pass_data_sched_fusion, pass_sched_fusion): New.
7413 (make_pass_sched_fusion): New.
7414 * haifa-sched.c (sched_fusion): New.
7415 (insn_cost): Handle sched_fusion.
7416 (priority): Handle sched_fusion by calling target hook.
7417 (enum rfs_decision): New enum value.
7418 (rfs_str): New element for RFS_FUSION.
7419 (rank_for_schedule): Support sched_fusion.
7420 (schedule_insn, max_issue, prune_ready_list): Handle sched_fusion.
7421 (schedule_block, fix_tick_ready): Handle sched_fusion.
7422 * common.opt (flag_schedule_fusion): New.
7423 * tree-pass.h (make_pass_sched_fusion): New.
7424 * target.def (fusion_priority): New.
7425 * doc/tm.texi.in (TARGET_SCHED_FUSION_PRIORITY): New.
7426 * doc/tm.texi: Regenerated.
7427 * doc/invoke.texi (-fschedule-fusion): New.
7429 2014-11-13 Rong Xu <xur@google.com>
7432 * cfgrtl.c (emit_barrier_after_bb): Append the barrier to the
7433 footer, instead of unconditionally overwritten.
7435 2014-11-14 Martin Jambor <mjambor@suse.cz>
7437 * cgraph.h (clear_outer_type): Make public. Fix comment.
7438 * ipa-devirt.c (possible_polymorphic_call_targets): Use
7439 clear_outer_type when resetting the context.
7441 2014-11-13 Dominique Dhumieres <dominiq@lps.ens.fr>
7444 * gcc.c (handle_foffload_option): Replace strchrnul with strchr.
7445 * lto-wrapper.c (parse_env_var, append_offload_options): Likewise.
7447 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
7449 * fold-const.c (const_binop): Remove code handling VEC_RSHIFT_EXPR.
7450 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
7451 * tree-inline.c (estimate_operator_cost): Likewise.
7452 * tree-pretty-print.c (dump_generic_node, op_code_prio, op_symbol_code):
7455 * tree-vect-generic.c (expand_vector_operations_1): Remove assertion
7456 against VEC_RSHIFT_EXPR.
7458 * optabs.h (expand_vec_shift_expr): Remove.
7459 * optabs.c (optab_for_tree_code): Remove case VEC_RSHIFT_EXPR.
7460 (expand_vec_shift_expr): Remove.
7461 * tree.def (VEC_RSHIFT_EXPR): Remove
7463 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
7465 * optabs.c (can_vec_perm_p): Update comment, does not consider vec_shr.
7466 (shift_amt_for_vec_perm_mask): New.
7467 (expand_vec_perm_1): Use vec_shr_optab if second vector is const0_rtx
7468 and mask appropriate.
7470 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): New.
7471 (have_whole_vector_shift): New.
7472 (vect_model_reduction_cost): Call have_whole_vector_shift instead of
7473 looking for vec_shr_optab.
7474 (vect_create_epilog_for_reduction): Likewise; also rename local variable
7475 have_whole_vector_shift to reduce_with_shift; output VEC_PERM_EXPRs
7476 instead of VEC_RSHIFT_EXPRs.
7478 * tree-vect-stmts.c (vect_gen_perm_mask_checked): Extend comment.
7480 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
7482 * tree-vectorizer.h (vect_gen_perm_mask): Remove.
7483 (vect_gen_perm_mask_checked, vect_gen_perm_mask_any): New.
7485 * tree_vec_data_refs.c (vect_permute_load_chain,
7486 vec_permute_store_chain, vec_shift_permute_load_chain): Replace
7487 vect_gen_perm_mask & assert with vect_gen_perm_mask_checked.
7489 * tree-vect-stmts.c (vectorizable_mask_load_store, vectorizable_load):
7491 (vect_gen_perm_mask_checked): New.
7492 (vect_gen_perm_mask): Remove can_vec_perm_p check, rename to...
7493 (vect_gen_perm_mask_any): ...this.
7494 (perm_mask_for_reverse): Call can_vec_perm_p and
7495 vect_gen_perm_mask_checked.
7497 2014-11-13 Felix Yang <felix.yang@huawei.com>
7499 * ipa-utils.h: Fix typo in comments.
7500 * ipa-profile.c: Likewise.
7501 * tree-ssa-loop-ivcanon.c: Fix typo in comments and debugging dumps.
7503 2014-11-13 Teresa Johnson <tejohnson@google.com>
7505 PR tree-optimization/63841
7506 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
7508 2014-11-13 Teresa Johnson <tejohnson@google.com>
7510 PR tree-optimization/63841
7511 * tree.c (initializer_zerop): A clobber does not zero initialize.
7513 2014-11-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7515 * optabs.c (prepare_operand): Gracefully fail if the mode of X
7516 does not match the operand mode expected by the insn pattern.
7518 2014-11-13 Richard Biener <rguenther@suse.de>
7520 * match.pd: Add tcc_comparison, inverted_tcc_comparison
7521 and inverted_tcc_comparison_with_nans operator lists.
7522 Use tcc_comparison in the truth_valued_p predicate definition.
7523 Restrict logical_inverted_value with bit_xor to integral types.
7524 Build a boolean true for simplifying x |^ !x because of
7525 vector types. Implement patterns from forward_propagate_comparison
7526 * tree-ssa-forwprop.c (forward_propagate_comparison): Remove.
7527 (get_prop_dest_stmt): Likewise.
7528 (pass_forwprop::execute): Do not call it.
7529 * fold-const.c (fold_unary_loc): Remove the pattern here.
7531 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7532 Andrey Turetskiy <andrey.turetskiy@intel.com>
7534 * config.gcc (*-intelmic-* | *-intelmicemul-*): Add i386/t-intelmic to
7536 (i[34567]86-*-* | x86_64-*-*): Build mkoffload$(exeext) with the
7537 accelerator compiler.
7538 * config/i386/intelmic-mkoffload.c: New file.
7539 * config/i386/t-intelmic: Ditto.
7541 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7542 Andrey Turetskiy <andrey.turetskiy@intel.com>
7543 Ilya Verbin <ilya.verbin@intel.com>
7545 * common.opt (foffload, foffload-abi): New options.
7546 * config/i386/i386.c (ix86_offload_options): New static function.
7547 (TARGET_OFFLOAD_OPTIONS): Define.
7548 * coretypes.h (enum offload_abi): New enum.
7549 * doc/tm.texi: Regenerate.
7550 * doc/tm.texi.in (TARGET_OFFLOAD_OPTIONS): Document.
7551 * gcc.c (offload_targets): New static variable.
7552 (handle_foffload_option): New static function.
7553 (driver_handle_option): Handle OPT_foffload_.
7554 (driver::maybe_putenv_OFFLOAD_TARGETS): Set OFFLOAD_TARGET_NAMES
7555 according to offload_targets.
7556 * hooks.c (hook_charptr_void_null): New hook.
7557 * hooks.h (hook_charptr_void_null): Declare.
7558 * lto-opts.c: Include lto-section-names.h.
7559 (lto_write_options): Append options from target offload_options hook and
7560 store them to offload_lto section. Do not store target-specific,
7561 driver and diagnostic options in offload_lto section.
7562 * lto-wrapper.c (merge_and_complain): Handle OPT_foffload_ and
7564 (append_compiler_options, append_linker_options)
7565 (append_offload_options): New static functions.
7566 (compile_offload_image): Add new arguments with options.
7567 Call append_compiler_options and append_offload_options.
7568 (compile_images_for_offload_targets): Add new arguments with options.
7569 (find_and_merge_options): New static function.
7570 (run_gcc): Outline options handling into the new functions:
7571 find_and_merge_options, append_compiler_options, append_linker_options.
7572 * opts.c (common_handle_option): Don't handle OPT_foffload_.
7573 Forbid OPT_foffload_abi_ for non-offload compiler.
7574 * target.def (offload_options): New target hook.
7576 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7577 Bernd Schmidt <bernds@codesourcery.com>
7578 Andrey Turetskiy <andrey.turetskiy@intel.com>
7579 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7581 * gcc.c (spec_host_machine, accel_dir_suffix): New variables.
7582 (process_command): Tweak path construction for the possibility
7583 of being configured as an offload compiler.
7584 (driver::maybe_putenv_OFFLOAD_TARGETS): New function.
7585 (driver::main): Call maybe_putenv_OFFLOAD_TARGETS.
7586 (driver::set_up_specs): Tweak path construction for the possibility of
7587 being configured as an offload compiler.
7588 * lto-wrapper.c (OFFLOAD_TARGET_NAMES_ENV): Define.
7589 (offload_names, offloadbegin, offloadend): New static variables.
7590 (free_array_of_ptrs, parse_env_var, access_check, compile_offload_image)
7591 (compile_images_for_offload_targets, copy_file, find_offloadbeginend):
7592 New static functions.
7593 (run_gcc): Determine whether offload sections are present. If so, run
7594 compile_images_for_offload_targets and return the names of new generated
7595 objects to linker. If there are offload sections, but no LTO sections,
7596 then return the copies of input objects without link-time recompilation.
7598 2014-11-13 Richard Biener <rguenther@suse.de>
7600 * genmatch.c (dt_node::gen_kids): Fix placement of break statement.
7602 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7603 Bernd Schmidt <bernds@codesourcery.com>
7604 Andrey Turetskiy <andrey.turetskiy@intel.com>
7605 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7607 * Makefile.in (GTFILES): Add omp-low.h to list of GC files.
7608 * cgraphunit.c: Include omp-low.h.
7609 * doc/tm.texi: Regenerate.
7610 * doc/tm.texi.in (TARGET_RECORD_OFFLOAD_SYMBOL): Document.
7611 * gengtype.c (open_base_files): Add omp-low.h to ifiles.
7612 * lto-cgraph.c (output_offload_tables): New function.
7613 (input_offload_tables): Likewise.
7614 * lto-section-in.c (lto_section_name): Add "offload_table".
7615 * lto-section-names.h (OFFLOAD_VAR_TABLE_SECTION_NAME): Define.
7616 (OFFLOAD_FUNC_TABLE_SECTION_NAME): Likewise.
7617 * lto-streamer-out.c (lto_output): Call output_offload_tables.
7618 * lto-streamer.h (lto_section_type): Add LTO_section_offload_table.
7619 (output_offload_tables, input_offload_tables): Declare.
7620 * omp-low.c: Include common/common-target.h and lto-section-names.h.
7621 (offload_funcs, offload_vars): New global <tree, va_gc> vectors.
7622 (expand_omp_target): Add child_fn into offload_funcs vector.
7623 (add_decls_addresses_to_decl_constructor): New function.
7624 (omp_finish_file): Likewise.
7625 * omp-low.h (omp_finish_file, offload_funcs, offload_vars): Declare.
7626 * target.def (record_offload_symbol): New DEFHOOK.
7627 * toplev.c: Include omp-low.h.
7628 (compile_file): Call omp_finish_file.
7629 * varpool.c: Include omp-low.h.
7630 (varpool_node::get_create): Add decl into offload_vars vector.
7632 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7633 Ilya Tocar <ilya.tocar@intel.com>
7634 Andrey Turetskiy <andrey.turetskiy@intel.com>
7635 Bernd Schmidt <bernds@codesourcery.com>
7637 * cgraph.c: Include context.h.
7638 (cgraph_node::create): Set node->offloadable and g->have_offload if
7639 decl have "omp declare target" attribute.
7640 * cgraph.h (symtab_node): Add need_lto_streaming and offloadable flags.
7641 * cgraphunit.c: Include lto-section-names.h.
7642 (ipa_passes): Call ipa_write_summaries if there is something to write to
7643 OFFLOAD_SECTION_NAME_PREFIX sections.
7644 (symbol_table::compile): Set flag_generate_lto if there is something to
7646 Replace flag_lto with flag_generate_lto before lto_streamer_hooks_init.
7647 * context.c (gcc::context::context): Initialize have_offload with false.
7648 * context.h (class context): Add have_offload flag.
7649 * ipa-inline-analysis.c (inline_generate_summary): Do not exit under
7651 (inline_free_summary): Always remove hooks.
7652 * lto-cgraph.c (referenced_from_other_partition_p): Ignore references
7653 from non-offloadable nodes while streaming a node into offload section.
7654 (reachable_from_other_partition_p): Likewise.
7655 (select_what_to_stream): New function.
7656 (compute_ltrans_boundary): Do not call
7657 lto_set_symtab_encoder_in_partition if the node should not be streamed.
7658 * lto-section-names.h (OFFLOAD_SECTION_NAME_PREFIX): Define.
7659 (section_name_prefix): Declare.
7660 * lto-streamer.c (section_name_prefix): New variable.
7661 (lto_get_section_name): Use section_name_prefix instead of
7662 LTO_SECTION_NAME_PREFIX.
7663 * lto-streamer.h (select_what_to_stream): Declare.
7664 * omp-low.c: Include context.h.
7665 (is_targetreg_ctx): New function.
7666 (scan_sharing_clauses): Use offloadable flag, instead of an attribute.
7667 (create_omp_child_function, check_omp_nesting_restrictions): Use new
7668 is_targetreg_ctx function. Replace usage of "omp declare target"
7669 attribute with a cgraph_node flag offloadable.
7670 (expand_omp_target): Set mark_force_output for offloadable functions.
7671 (lower_omp_critical): Set offloadable flag for omp critical symbol.
7672 * passes.c (ipa_write_summaries): New argument offload_lto_mode. Call
7673 select_what_to_stream. Do not call lto_set_symtab_encoder_in_partition
7674 if the node should not be streamed out.
7675 * tree-pass.h (ipa_write_summaries): New bool argument.
7676 * varpool.c: Include context.h.
7677 (varpool_node::get_create): Set node->offloadable and g->have_offload if
7678 decl have "omp declare target" attribute.
7680 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7681 Thomas Schwinge <thomas@codesourcery.com>
7682 Ilya Verbin <ilya.verbin@intel.com>
7683 Andrey Turetskiy <andrey.turetskiy@intel.com>
7685 * Makefile.in (real_target_noncanonical, accel_dir_suffix)
7686 (enable_as_accelerator): New variables substituted by configure.
7687 (libsubdir, libexecsubdir, unlibsubdir): Tweak for the possibility of
7688 being configured as an offload compiler.
7689 (DRIVER_DEFINES): Pass new defines DEFAULT_REAL_TARGET_MACHINE and
7691 (install-cpp, install-common, install_driver, install-gcc-ar): Do not
7692 install for the offload compiler.
7693 * config.in: Regenerate.
7694 * configure: Regenerate.
7695 * configure.ac (real_target_noncanonical, accel_dir_suffix)
7696 (enable_as_accelerator): Compute new variables.
7697 (ACCEL_COMPILER): Define if the compiler is built as the accel compiler.
7698 (OFFLOAD_TARGETS): List of target names suitable for offloading.
7699 (ENABLE_OFFLOADING): Define if list of offload targets is not empty.
7700 * doc/install.texi (Options specification): Document
7701 --enable-as-accelerator-for and --enable-offload-targets.
7703 2014-11-13 H.J. Lu <hongjiu.lu@intel.com>
7705 PR tree-optimization/63828
7706 * ipa-polymorphic-call.c (possible_placement_new): Check
7707 POINTER_SIZE, instead of BITS_PER_WORD, for pointer size.
7709 2014-11-13 Eric Botcazou <ebotcazou@adacore.com>
7711 * doc/tm.texi.in (SELECT_CC_MODE): Update example.
7712 (REVERSIBLE_CC_MODE): Fix example.
7713 (REVERSE_CONDITION): Fix typo.
7714 * doc/tm.texi: Regenerate.
7716 2014-11-13 Tom de Vries <tom@codesourcery.com>
7718 * omp-low.c (pass_data_expand_omp): Set properties_provided to
7720 (pass_expand_omp::gate): Remove function. Move gate expression to ...
7721 (pass_expand_omp::execute): ... here, as new variable gate. Add early
7722 exit if gate is false.
7723 (pass_data pass_data_expand_omp_ssa): New pass_data.
7724 (class pass_expand_omp_ssa): New pass.
7725 (make_pass_expand_omp_ssa): New function.
7726 * passes.def (pass_parallelize_loops): Use PUSH_INSERT_PASSES_WITHIN
7727 instead of NEXT_PASS.
7728 (pass_expand_omp_ssa): Add after pass_parallelize_loops.
7729 * tree-parloops.c (gen_parallel_loop): Remove call to omp_expand_local.
7730 (pass_parallelize_loops::execute): Don't do cleanups TODO_cleanup_cfg
7731 and TODO_rebuild_alias yet. Add TODO_update_ssa. Set
7732 cfun->omp_expand_needed.
7733 * tree-pass.h: Add define PROP_gimple_eomp.
7734 (make_pass_expand_omp_ssa): Declare.
7736 2014-11-13 Marek Polacek <polacek@redhat.com>
7738 * tree.h (TYPE_OVERFLOW_SANITIZED): Define.
7739 * fold-const.c (fold_binary_loc): Use it.
7740 * match.pd: Likewise.
7742 2014-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
7744 * lra-lives.c (struct bb_data): Rename to ...
7745 (struct bb_data_pseudos): ... this.
7746 (initiate_live_solver): Update struct name.
7748 2014-11-13 Richard Biener <rguenther@suse.de>
7750 * match.pd: Implement conditional expression patterns.
7751 * tree-ssa-forwprop.c (forward_propagate_into_cond): Remove
7753 (combine_cond_exprs): Remove.
7754 (pass_forwprop::execute): Do not call combine_cond_exprs.
7755 * fold-const.c (fold_ternary_loc): Remove patterns here.
7756 (pedantic_omit_one_operand_loc): Remove.
7758 2014-12-13 Richard Biener <rguenther@suse.de>
7761 * match.pd: Implement bswap patterns for transforms checked by
7762 gcc.dg/builtin-bswap-8.c.
7764 2014-11-13 Vladimir Makarov <vmakarov@redhat.com>
7766 * lra.c (lra): Switch off rematerialization pass.
7768 2014-11-12 Vladimir Makarov <vmakarov@redhat.com>
7770 * common.opt (flra-remat): New.
7771 * opts.c (default_options_table): Add entry for flra_remat.
7772 * timevar_def (TV_LRA_REMAT): New.
7773 * doc/invoke.texi (-flra-remat): Add description of the new
7775 * doc/passes.texi (-flra-remat): Remove lra-equivs.c and
7776 lra-saves.c. Add lra-remat.c.
7777 * Makefile.in (OBJS): Add lra-remat.o.
7778 * lra-remat.c: New file.
7779 * lra.c: Add info about the rematerialization pass in the top
7781 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info):
7782 Process unallocatable regs too.
7783 (lra_constraint_new_insn_uid_start): Remove.
7784 (lra): Add code for calling rematerialization sub-pass.
7785 * lra-int.h (lra_constraint_new_insn_uid_start): Remove.
7786 (lra_constrain_insn, lra_remat): New prototypes.
7787 (lra_eliminate_regs_1): Add parameter.
7788 * lra-lives.c (make_hard_regno_born, make_hard_regno_dead):
7789 Process unallocatable hard regs too.
7790 (process_bb_lives): Ditto.
7791 * lra-spills.c (remove_pseudos): Add argument to
7792 lra_eliminate_regs_1 call.
7793 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter. Use it
7794 for sp offset calculation.
7795 (lra_eliminate_regs): Add argument for lra_eliminate_regs_1 call.
7796 (eliminate_regs_in_insn): Add parameter. Use it for sp offset
7798 (process_insn_for_elimination): Add argument for
7799 eliminate_regs_in_insn call.
7800 * lra-constraints.c (get_equiv_with_elimination): Add argument
7801 for lra_eliminate_regs_1 call.
7802 (process_addr_reg): Add parameter. Use it.
7803 (process_address_1): Ditto. Add argument for process_addr_reg
7805 (process_address): Ditto.
7806 (curr_insn_transform): Add parameter. Use it. Add argument for
7807 process_address calls.
7808 (lra_constrain_insn): New function.
7809 (lra_constraints): Add argument for curr_insn_transform call.
7811 2014-11-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
7813 * opts-global.c (postpone_unknown_option_warning): Fix spelling.
7814 (print_ignored_options): Fix quoting.
7815 * opts.c (common_handle_option): Likewise.
7816 (set_debug_level): Likewise.
7817 * toplev.c (process_options): Likewise.
7819 2014-11-12 Jakub Jelinek <jakub@redhat.com>
7822 * ipa-pure-const.c (propagate_nothrow): Walk w->indirect_calls
7823 chain instead of node->indirect_calls. Put !can_throw into
7824 conditions of all the loops.
7826 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
7828 * config/i386/i386.c (x86_output_mi_thunk): Use gen_rtx_REG to
7829 set pic_offset_table_rtx.
7831 2014-11-12 Matthew Fortune <matthew.fortune@imgtec.com>
7833 * common/config/mips/mips-common.c (mips_handle_option): Ensure
7834 that -mfp32, -mfp64 disable -mfpxx and -mfpxx disables -mfp64.
7835 * config.gcc (--with-fp-32): New option.
7836 (--with-odd-spreg-32): Likewise.
7837 * config.in (HAVE_AS_DOT_MODULE): New config define.
7838 * config/mips/mips-protos.h
7839 (mips_secondary_memory_needed): New prototype.
7840 (mips_hard_regno_caller_save_mode): Likewise.
7841 * config/mips/mips.c (mips_get_reg_raw_mode): New static prototype.
7842 (mips_get_arg_info): Assert that V2SFmode is only handled specially
7843 with TARGET_PAIRED_SINGLE_FLOAT.
7844 (mips_return_mode_in_fpr_p): Likewise.
7845 (mips16_call_stub_mode_suffix): Likewise.
7846 (mips_get_reg_raw_mode): New static function.
7847 (mips_return_fpr_pair): O32 return values span two registers.
7848 (mips16_build_call_stub): Likewise.
7849 (mips_function_value_regno_p): Support both FP return registers.
7850 (mips_output_64bit_xfer): Use mthc1 whenever TARGET_HAS_MXHC1. Add
7851 specific cases for TARGET_FPXX to move via memory.
7852 (mips_dwarf_register_span): For TARGET_FPXX pretend that modes larger
7853 than UNITS_PER_FPREG 'span' one register.
7854 (mips_dwarf_frame_reg_mode): New static function.
7855 (mips_file_start): Switch to using .module instead of .gnu_attribute.
7856 No longer support FP ABI 4 (-mips32r2 -mfp64), replace with FP ABI 6.
7857 Add FP ABI 5 (-mfpxx) and FP ABI 7 (-mfp64 -mno-odd-spreg).
7858 (mips_save_reg, mips_restore_reg): Always represent DFmode frame
7859 slots with two CFI directives even for O32 FP64.
7860 (mips_for_each_saved_gpr_and_fpr): Account for fixed_regs when
7861 saving/restoring callee-saved registers.
7862 (mips_hard_regno_mode_ok_p): Implement O32 FP64A extension.
7863 (mips_secondary_memory_needed): New function.
7864 (mips_option_override): ABI check for TARGET_FLOATXX. Disable
7865 odd-numbered single-precision registers when using TARGET_FLOATXX.
7866 Implement -modd-spreg and defaults.
7867 (mips_conditional_register_usage): Redefine O32 FP64 to match O32 FP32
7868 callee-saved behaviour.
7869 (mips_hard_regno_caller_save_mode): Implement.
7870 (TARGET_GET_RAW_RESULT_MODE): Define target hook.
7871 (TARGET_GET_RAW_ARG_MODE): Define target hook.
7872 (TARGET_DWARF_FRAME_REG_MODE): Define target hook.
7873 * config/mips/mips.h (TARGET_FLOAT32): New macro.
7874 (TARGET_O32_FP64A_ABI): Likewise.
7875 (TARGET_CPU_CPP_BUILTINS): TARGET_FPXX is __mips_fpr==0. Add
7876 _MIPS_SPFPSET builtin define.
7877 (MIPS_FPXX_OPTION_SPEC): New macro.
7878 (OPTION_DEFAULT_SPECS): Pass through --with-fp-32=* to -mfp and
7879 --with-odd-spreg-32=* to -m[no-]odd-spreg.
7880 (ISA_HAS_ODD_SPREG): New macro.
7881 (ISA_HAS_MXHC1): True for anything other than -mfp32.
7882 (ASM_SPEC): Pass through mfpxx, mfp64, -mno-odd-spreg and -modd-spreg.
7883 (MIN_FPRS_PER_FMT): Redefine in terms of TARGET_ODD_SPREG.
7884 (HARD_REGNO_CALLER_SAVE_MODE): Define. Implement O32 FPXX extension
7885 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
7886 (SECONDARY_MEMORY_NEEDED): Likewise.
7887 (FUNCTION_ARG_REGNO_P): Update for O32 FPXX and FP64 extensions.
7888 * config/mips/mips.md (define_attr enabled): Implement O32 FPXX and
7889 FP64A ABI extensions.
7890 (move_doubleword_fpr<mode>): Use ISA_HAS_MXHC1 instead of
7892 * config/mips/mips.opt (mfpxx): New target option.
7893 (modd-spreg): Likewise.
7894 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Infer FP ABI from arch.
7895 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise and remove
7897 * config/mips/t-mti-elf: Remove fp64 multilib.
7898 * config/mips/t-mti-linux: Likewise.
7899 * configure.ac: Detect .module support.
7900 * configure: Regenerate.
7901 * doc/invoke.texi: Document -mfpxx, -modd-spreg, -mno-odd-spreg option.
7902 * doc/install.texi (--with-fp-32, --with-odd-spreg-32): Document new
7905 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
7908 * config/i386/i386.c (ix86_init_large_pic_reg): New. Extracted
7910 (ix86_init_pic_reg): Here. Use ix86_init_large_pic_reg.
7911 (x86_output_mi_thunk): Set PIC register to %r11. Call
7912 ix86_init_large_pic_reg to initialize PIC register.
7914 2014-11-12 Kai Tietz <ktietz@redhat.com>
7916 * sdbout.c (sdbout_symbol): Eliminate register only
7917 if decl isn't a global variable.
7919 2014-11-12 Alan Lawrence <alan.lawrence@arm.com>
7921 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Display indices.
7923 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add
7924 qualifier_lane_index.
7925 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): Rename to...
7926 (aarch64_types_quadop_lane_qualifiers, TYPES_QUADOP_LANE): ...these.
7927 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): New.
7929 (aarch64_types_getlane_qualifiers): Rename to...
7930 (aarch64_types_binop_imm_qualifiers): ...this.
7931 (TYPES_SHIFTIMM): Follow renaming.
7932 (TYPES_GETLANE): Rename to...
7933 (TYPE_GETREG): ...this.
7935 (aarch64_types_setlane_qualifiers): Rename to...
7936 (aarch64_type_ternop_imm_qualifiers): ...this.
7937 (TYPES_SHIFTINSERT, TYPES_SHIFTACC): Follow renaming.
7938 (TYPES_SETLANE): Follow renaming above, and rename self to...
7939 (TYPE_SETREG): ...this.
7941 (enum builtin_simd_arg): Add SIMD_ARG_LANE_INDEX.
7942 (aarch64_simd_expand_args): Add range check and endianness-flip.
7944 (aarch64_simd_expand_builtin): Add mapping for qualifier_lane_index.
7946 * config/aarch64/aarch64-simd.md
7947 (aarch64_sq<r>dmulh_lane<mode>_internal *2): Rename to...
7948 (aarch64_sq<r>dmulh_lane<mode>): ...this, and remove lane bounds check.
7949 (aarch64_sqdmulh_lane<mode> *2, aarch64_sqrdmulh_lane<mode> *2): Delete.
7951 (aarch64_sq<r>dmulh_laneq<mode>_internal): Rename to...
7952 (aarch64_sq<r>dmulh_lane<mode>): ...this.
7954 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal *2): Rename to...
7955 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): ...this.
7957 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal *2): Rename to...
7958 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): ...this.
7960 (aarch64_sqdmull_lane<mode>_internal *2): Rename to...
7961 (aarch64_sqdmull_lane<mode>): ...this.
7963 (aarch64_sqdmull_laneq<mode>_internal *2): Rename to...
7964 (aarch64_sqdmull_laneq<mode>): ...this.
7966 (aarch64_sqdmulh_laneq<mode>, aarch64_sqrdmulh_laneq<mode>,
7967 (aarch64_sqdmlal_lane<mode>, aarch64_sqdmlal_laneq<mode>,
7968 aarch64_sqdmlsl_lane<mode>, aarch64_sqdmlsl_laneq<mode>,
7969 aarch64_sqdmull_lane<mode>, aarch64_sqdmull_laneq<mode>): Delete.
7971 (aarch64_sqdmlal2_lane<mode>, aarch64_sqdmlal2_laneq<mode>,
7972 aarch64_sqdmlsl2_lane<mode>, aarch64_sqdmlsl2_laneq<mode>,
7973 aarch64_sqdmull2_lane<mode>, aarch64_sqdmull2_laneq<mode>): Remove
7974 bounds check and lane flip.
7976 * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane,
7977 get_dregoi, get_dregci, getdregxi, get_qregoi,get_qregci, get_qregxi,
7978 set_qregoi, set_qregci, set_qregxi): Change qualifiers to GETREG.
7980 (sqdmlal_lane, sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq,
7981 sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq, sqdmlsl2_laneq): Follow
7982 renaming of TERNOP_LANE to QUADOP_LANE.
7984 (sqdmull_lane, sqdmull_laneq, sqdmull2_lane, sqdmull2_laneq,
7985 sqdmulh_lane, sqdmulh_laneq, sqrdmulh_lane, sqrdmulh_laneq): Set
7986 qualifiers to TERNOP_LANE.
7988 2014-11-12 Tobias Burnus <burnus@net-b.de>
7990 * Makefile.in (CLOOGLIBS, CLOOGINC): Remove.
7991 * configure.ac: Ditto.
7992 * graphite-interchange.c: Remove HAVE_CLOOG block.
7993 * config.in: Regenerate.
7994 * configure: Regenerate.
7996 2014-11-12 Jiong Wang <jiong.wang@arm.com>
7998 * config/aarch64/aarch64.h (CALL_USED_REGISTERS): Mark LR as
8000 (EPILOGUE_USES): Guard the check by epilogue_completed.
8001 * config/aarch64/aarch64.c (aarch64_layout_frame): Explictly check for
8003 (aarch64_can_eliminate): Check LR_REGNUM liveness.
8005 2014-11-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8007 * config/arm/arm.c (*<arith_shift_insn>_shiftsi): Fix typo.
8009 2014-11-12 Marek Polacek <polacek@redhat.com>
8011 * fold-const.c (fold_binary_loc): Don't fold if the result
8013 * match.pd (A + (-B) -> A - B, A - (-B) -> A + B,
8014 -(-A) -> A): Likewise.
8016 2014-11-12 Richard Biener <rguenther@suse.de>
8018 Merge from match-and-simplify branch
8019 2014-11-04 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8021 * genmatch.c (user_id): Add new member is_oper_list.
8022 (user_id::user_id): Add new default argument.
8023 (parser::parse_operator_list): New function.
8024 (parser::parse_for): Allow operator-list.
8025 (parser::parse_pattern): Call parser::parse_operator_list.
8026 (parser::parse_operation): Reject operator-list.
8027 * match-builtin.pd: Define operator lists POWs, CBRTs and SQRTs.
8029 2014-10-31 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8031 * genmatch.c (parser::parse_c_expr): Mark user-defined ops as used.
8033 2014-10-30 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8035 * genmatch.c (parser::parse_op): Check if predicate is used in
8038 2014-10-29 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8040 * genmatch.c (parser::parse_for): Make sure to have a valid
8041 token to report errors at.
8043 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8045 * genmatch.c (parser): Add new member parsing_match_operand.
8046 (parser::parse_operation): Check for conditional convert in result
8048 (parser::parse_expr): Check for commutative operator in result operand.
8049 Check for :type in match operand.
8050 (parser::parse_simplify): Set/unset parsing_match_operand.
8051 (parser::parser): Initialize parsing_match_operand.
8053 2014-10-28 Richard Biener <rguenther@suse.de>
8055 * genmatch.c (parser::parse_for): Properly check for already
8058 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8060 * genmatch.c (error_cb): Adjust for printing warnings.
8061 (warning_at): New function.
8062 (user_id): Add new member used.
8063 (get_operator): Mark user_id as used.
8064 (parse_for): Warn for unused operators.
8066 2014-11-12 Richard Biener <rguenther@suse.de>
8068 * match.pd: Implement simple complex operations cancelling.
8069 * fold-const.c (fold_unary_loc): Remove them here.
8071 2014-11-12 Joseph Myers <joseph@codesourcery.com>
8073 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
8074 Define __NO_MATH_ERRNO__ if -fno-math-errno.
8075 * doc/cpp.texi (__NO_MATH_ERRNO__): Document predefined macro.
8077 2014-11-12 Richard Biener <rguenther@suse.de>
8079 * genmatch.c (::gen_transform): Add capture_info and
8080 expand_compares arguments.
8081 (struct expr): Add is_generic flag.
8082 (lower_cond): New functions lowering [VEC_]COND_EXPR
8083 conditions to a GENERIC and a GIMPLE variant.
8084 (lower): Call lower_cond.
8085 (cmp_operand): Also compare the is_generic flag.
8086 (capture_info::cinfo): Add cond_expr_cond_p flag.
8087 (capture_info::capture_info): Pass down whether the
8088 expression argument is a COND_EXPR condition.
8089 (capture_info::walk_match): Likewise, mark captures
8090 capturing COND_EXPR conditions with cond_expr_cond_p.
8091 (expr::gen_transform): Pass down whether we need to
8092 expand compares from COND_EXPR conditions.
8093 (capture::gen_transform): Expand compares substituted
8094 from COND_EXPR conditions into non-COND_EXPR conditions.
8095 (dt_operand::gen_gimple_expr): Handle explicitely marked
8096 GENERIC expressions as generic.
8097 (dt_simplify::gen): Pass whether we need to expand
8098 conditions to gen_transform. Handle capture results
8099 which are from COND_EXPR conditions.
8100 (main): Pass gimple flag down to lower.
8102 2014-11-12 Jakub Jelinek <jakub@redhat.com>
8105 * builtin-attrs.def (ATTR_NOTHROW_TYPEGENERIC_LEAF): New attribute.
8106 * builtins.c (fold_builtin_arith_overflow): New function.
8107 (fold_builtin_3): Use it.
8108 * builtins.def (BUILT_IN_ADD_OVERFLOW, BUILT_IN_SUB_OVERFLOW,
8109 BUILT_IN_MUL_OVERFLOW, BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW,
8110 BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW,
8111 BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW,
8112 BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW,
8113 BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADDL_OVERFLOW,
8114 BUILT_IN_UADDLL_OVERFLOW, BUILT_IN_USUB_OVERFLOW,
8115 BUILT_IN_USUBL_OVERFLOW, BUILT_IN_USUBLL_OVERFLOW,
8116 BUILT_IN_UMUL_OVERFLOW, BUILT_IN_UMULL_OVERFLOW,
8117 BUILT_IN_UMULLL_OVERFLOW): New built-in functions.
8118 * builtin-types.def (BT_PTR_UINT, BT_PTR_ULONG, BT_PTR_LONGLONG,
8119 BT_FN_BOOL_INT_INT_INTPTR, BT_FN_BOOL_LONG_LONG_LONGPTR,
8120 BT_FN_BOOL_LONGLONG_LONGLONG_LONGLONGPTR, BT_FN_BOOL_UINT_UINT_UINTPTR,
8121 BT_FN_BOOL_ULONG_ULONG_ULONGPTR,
8122 BT_FN_BOOL_ULONGLONG_ULONGLONG_ULONGLONGPTR, BT_FN_BOOL_VAR): New.
8123 * expr.c (write_complex_part): Remove prototype, no longer static.
8124 * expr.h (write_complex_part): New prototype.
8125 * function.c (aggregate_value_p): For internal functions return 0.
8126 * gimple-fold.c (arith_overflowed_p): New functions.
8127 (gimple_fold_call): Fold {ADD,SUB,MUL}_OVERFLOW internal calls.
8128 * gimple-fold.h (arith_overflowed_p): New prototype.
8129 * tree-ssa-dce.c: Include tree-ssa-propagate.h and gimple-fold.h.
8130 (find_non_realpart_uses, maybe_optimize_arith_overflow): New
8132 (eliminate_unnecessary_stmts): Transform {ADD,SUB,MUL}_OVERFLOW
8133 into COMPLEX_CST/COMPLEX_EXPR if IMAGPART_EXPR of the result is
8135 * gimplify.c (gimplify_call_expr): Handle gimplification of
8136 internal calls with lhs.
8137 * internal-fn.c (get_range_pos_neg, get_min_precision,
8138 expand_arith_overflow_result_store): New functions.
8139 (ubsan_expand_si_overflow_addsub_check): Renamed to ...
8140 (expand_addsub_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
8141 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
8142 Handle ADD_OVERFLOW and SUB_OVERFLOW expansion.
8143 (ubsan_expand_si_overflow_neg_check): Renamed to ...
8144 (expand_neg_overflow): ... this. Add LOC, LHS, ARG1, IS_UBSAN
8145 arguments, remove STMT argument. Handle SUB_OVERFLOW with
8146 0 as first argument expansion.
8147 (ubsan_expand_si_overflow_mul_check): Renamed to ...
8148 (expand_mul_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
8149 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
8150 Handle MUL_OVERFLOW expansion.
8151 (expand_UBSAN_CHECK_ADD): Use expand_addsub_overflow, prepare
8153 (expand_UBSAN_CHECK_SUB): Use expand_addsub_overflow or
8154 expand_neg_overflow, prepare arguments for it.
8155 (expand_UBSAN_CHECK_MUL): Use expand_mul_overflow, prepare arguments
8157 (expand_arith_overflow, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW,
8158 expand_MUL_OVERFLOW): New functions.
8159 * internal-fn.def (ADD_OVERFLOW, SUB_OVERFLOW, MUL_OVERFLOW): New
8161 * tree-vrp.c (check_for_binary_op_overflow): New function.
8162 (extract_range_basic): Handle {REAL,IMAG}PART_EXPR if the operand
8163 is SSA_NAME set by {ADD,SUB,MUL}_OVERFLOW internal functions.
8164 (simplify_internal_call_using_ranges): Handle {ADD,SUB,MUL}_OVERFLOW
8166 * optabs.def (umulv4_optab): New optab.
8167 * config/i386/i386.md (umulv<mode>4, <u>mulvqi4): New define_expands.
8168 (*umulv<mode>4, *<u>mulvqi4): New define_insns.
8169 * doc/extend.texi (Integer Overflow Builtins): Document
8170 __builtin_*_overflow.
8172 2014-11-12 Richard Biener <rguenther@suse.de>
8174 * genmatch.c (capture_info::capture_info): Add missing
8176 (capture_info::walk_match): Fix COND_EXPR handling.
8177 (capture_info::walk_result): Likewise.
8179 2014-11-12 Richard Biener <rguenther@suse.de>
8182 * match.pd: Add missing conversion to the -(T)-X pattern.
8184 2014-11-12 Richard Biener <rguenther@suse.de>
8187 * hash-table.h: Include ggc.h also for generator programs.
8188 * genmatch.c (ggc_internal_cleared_alloc): Properly define
8189 using MEM_STAT_DECL instead of CXX_MEM_STAT_INFO.
8191 2014-11-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
8193 PR tree-optimization/63761
8194 * tree-ssa-math-opts.c (bswap_replace): Construct gsi from cur_stmt
8195 rather than taking it as a parameter. Add some comments to explain the
8196 gsi_move_before in case of load and why canonicalization of bswap into
8197 a rotation is only done for 16bit values.
8198 (pass_optimize_bswap::execute): Adapt for loop via gsi to make gsi
8199 refer to the statement just before cur_stmt. Ignore 16bit bswap that
8200 are already in canonical form. Adapt bswap_replace to removal of its
8203 2014-11-12 Richard Sandiford <richard.sandiford@arm.com>
8205 * rtl.h (rtx_function, for_each_rtx, for_each_rtx_in_insn): Delete.
8206 * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1, for_each_rtx):
8207 (for_each_rtx_in_insn): Delete.
8208 (init_rtlanal): Remove initialization of non_rtx_starting_operands.
8209 * df-core.c: Remove reference to for_each_rtx in comment.
8211 2014-11-12 Tejas Belagod <tejas.belagod@arm.com>
8213 * Makefile.in (TEXI_GCC_FILES): Remove arm-acle-intrinsics.texi,
8214 arm-neon-intrinsics.texi, aarch64-acle-intrinsics.texi.
8215 * doc/aarch64-acle-intrinsics.texi: Remove.
8216 * doc/arm-acle-intrinsics.texi: Remove.
8217 * doc/arm-neon-intrinsics.texi: Remove.
8218 * doc/extend.texi: Consolidate sections AArch64 intrinsics,
8219 ARM NEON Intrinsics, ARM ACLE Intrinsics into one ARM C Language
8220 Extension section. Add references to public ACLE specification.
8222 2014-11-11 Patrick Palka <ppalka@gcc.gnu.org>
8224 * tree-vrp.c (register_edge_assert_for_2): Change return type to
8225 void and adjust accordingly.
8226 (register_edge_assert_for_1): Likewise.
8227 (register_edge_assert_for): Likewise.
8228 (find_conditional_asserts): Likewise.
8229 (find_switch_asserts): Likewise.
8230 (find_assert_locations_1): Likewise.
8231 (find_assert_locations): Likewise.
8232 (insert_range_insertions): Inspect the need_assert_for bitmap.
8234 2014-11-11 Andrew Pinski <apinski@cavium.com>
8237 * config.gcc (aarch64*-*-*): Set target_gtfiles to include
8239 * config/aarch64/aarch64-builtins.c: Include gt-aarch64-builtins.h
8240 at the end of the file.
8242 2014-11-11 Anthony Brandon <anthony.brandon@gmail.com>
8243 Manuel López-Ibáñez <manu@gcc.gnu.org>
8246 * diagnostic-core.h: Add prototype for fatal_error.
8247 * diagnostic.c (fatal_error): New function fatal_error.
8248 * gcc.c (store_arg): Remove have_o_argbuf_index.
8249 (process_command): Check if input and output files are the same.
8250 * toplev.c (init_asm_output): Check if input and output files are
8253 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
8255 * reorg.c (fill_slots_from_thread): Do not copy frame-related insns.
8257 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
8260 * config/sparc/sparc.c (function_arg_vector_value): Deal with vectors
8261 smaller than 8 bytes.
8262 (sparc_function_arg_1): Tweak.
8263 (sparc_function_value_1): Tweak.
8265 2014-11-11 David Malcolm <dmalcolm@redhat.com>
8267 * ChangeLog.jit: New.
8268 * Makefile.in (doc_build_sys): New variable, set to "sphinx" if
8269 sphinx is installed, falling back to "texinfo" otherwise.
8270 (FULL_DRIVER_NAME): New variable, adapted from the
8271 install-driver target. New target, a symlink within the builddir,
8272 linked to "xgcc", for use when running the JIT library from the
8274 (MOSTLYCLEANFILES): Add FULL_DRIVER_NAME.
8275 (install-driver): Use $(FULL_DRIVER_NAME) rather than spelling it
8277 * configure.ac (doc_build_sys): New variable, set to "sphinx" if
8278 sphinx is installed, falling back to "texinfo" otherwise.
8279 (GCC_DRIVER_NAME): Generate a gcc-driver-name.h file containing
8280 GCC_DRIVER_NAME for the benefit of jit/internal-api.c.
8281 * configure: Regenerate.
8282 * doc/install.texi (--enable-host-shared): Specify that this is
8283 required when building libgccjit.
8284 (Tools/packages necessary for modifying GCC): Add Sphinx.
8285 * timevar.def (TV_JIT_REPLAY): New.
8290 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8293 * configure: Regenerate.
8295 2014-11-11 James Greenhalgh <james.greenhalgh@arm.com>
8297 * config/aarch64/aarch64-simd.md
8298 (aarch64_simd_bsl<mode>_internal): Remove float cases, canonicalize.
8299 (aarch64_simd_bsl<mode>): Add gen_lowpart expressions where we
8300 are punning between float vectors and integer vectors.
8302 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8304 * config/alpha/alpha.c (alpha_emit_conditional_branch): Replace
8305 open-coded swap with std::swap to swap values.
8306 (alpha_emit_setcc): Ditto.
8307 (alpha_emit_conditional_move): Ditto.
8308 (alpha_split_tmode_pair): Ditto.
8310 2014-11-11 Evgeny Stupachenko <evstupac@gmail.com>
8312 * tree-vect-data-refs.c (vect_shift_permute_load_chain): Extend shift
8313 permutations on power of 2 cases.
8315 2014-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8317 * config/aarch64/aarch64.h (MACHMODE): Remove 'enum' keyword.
8318 (CUMULATIVE_ARGS): Guard on !defined(USED_FOR_TARGET).
8320 2014-11-11 Richard Biener <rguenther@suse.de>
8322 * tree-core.h (pedantic_lvalues): Remove.
8323 * fold-const.c (pedantic_lvalues): Likewise.
8324 (pedantic_non_lvalue_loc): Remove conditional non_lvalue_loc call.
8326 2014-11-11 Martin Liska <mliska@suse.cz>
8330 * ipa-icf.c (sem_function::merge): Add new target symbol alias
8332 (sem_variable::merge): Likewise.
8333 * ipa-icf.h (target_supports_symbol_aliases_p): New function.
8335 2014-11-11 Richard Biener <rguenther@suse.de>
8337 * match.pd: Implement patterns from associate_plusminus
8338 and factor in differences from the fold-const.c implementation.
8339 * fold-const.c (fold_binary_loc): Remove patterns here.
8340 * tree-ssa-forwprop.c (associate_plusminus): Remove.
8341 (pass_forwprop::execute): Don't call it.
8342 * tree.c (tree_nop_conversion_p): New function, factored
8343 from tree_nop_conversion.
8344 * tree.h (tree_nop_conversion_p): Declare.
8346 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8348 * system.h: Include algorithm and utility.
8349 * rtl.h: Do not include utility here.
8350 * wide-int.h: Ditto.
8351 * tree-vect-data-refs.c (swap): Remove template.
8352 (vect_prune_runtime_alias_test_list): Use std::swap instead of swap.
8354 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8358 * system.h: Include <string> before "safe-ctype.h"
8359 * wide-int.h (wi::smin, wi::smax, wi::umin, wi::umax): Prefix
8360 calls to min/max with wi namespace.
8361 * ipa-chkp.c: Don't include <string>.
8363 2014-11-11 Terry Guo <terry.guo@arm.com>
8365 * doc/invoke.texi (-masm-syntax-unified): Reword and fix typo.
8366 * config/arm/thumb1.md (*thumb_mulsi3): Use movs to move low
8368 (*thumb1_movhf): Likewise.
8370 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8372 * sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t)
8373 instead of INT64_MAX.
8375 2014-11-11 Tobias Burnus <burnus@net-b.de>
8377 * doc/install.texi (Prerequisites): Remove CLooG.
8379 2014-11-10 Trevor Saunders <tsaunders@mozilla.com>
8381 * ipa-inline.c (edge_badness): Adjust.
8382 (inline_small_functions): Likewise.
8383 * predict.c (propagate_freq): Likewise.
8384 (estimate_bb_frequencies): Likewise.
8385 * sreal.c (sreal::dump): Rename from dump_sreal.
8387 (copy): Remove function.
8388 (sreal::shift_right): Rename from sreal_sift_right.
8389 (sreal::normalize): Rename from normalize.
8390 (sreal_init): Remove function.
8391 (sreal::to_int): Rename from sreal_to_int.
8392 (sreal_compare): Remove function.
8393 (sreal::operator+): Rename from sreal_add.
8394 (sreal::operator-): Rename from sreal_sub.
8395 (sreal::operator*): Rename from sreal_mul.
8396 (sreal::operator/): Rename from sreal_div.
8397 * sreal.h (class sreal): Adjust.
8398 (inline sreal &operator+=): New operator.
8399 (inline sreal &operator-=): Likewise.
8400 (inline sreal &operator/=): Likewise.
8401 (inline sreal &operator*=): Likewise.
8402 (inline bool operator!=): Likewise.
8403 (inline bool operator>): Likewise.
8404 (inline bool operator<=): Likewise.
8405 (inline bool operator>=): Likewise.
8407 2014-11-11 Bin Cheng <bin.cheng@arm.com>
8409 * sched-deps.c (sched_analyze_1): Check pending list if it is not
8410 less than MAX_PENDING_LIST_LENGTH.
8411 (sched_analyze_2, sched_analyze_insn, deps_analyze_insn): Ditto.
8413 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8415 * config/i386/i386.c (ix86_decompose_address): Replace open-coded
8416 swap with std::swap to swap values.
8417 (ix86_fixup_binary_operands): Ditto.
8418 (ix86_binary_operator_ok): Ditto.
8419 (ix86_prepare_fp_compare_args): Ditto.
8420 (ix86_expand_branch): Ditto.
8421 (ix86_expand_carry_flag_compare): Ditto.
8422 (ix86_expand_int_movcc): Ditto.
8423 (ix86_prepare_sse_fp_compare_args): Ditto.
8424 (ix86_expand_sse_fp_minmax): Ditto.
8425 (ix86_expand_int_vcond): Ditto.
8426 (ix86_split_long_move): Ditto.
8427 (ix86_expand_sse_comi): Ditto.
8428 (ix86_expand_sse_compare_and_jump): Ditto.
8429 (ix86_expand_sse_compare_mask): Ditto.
8430 * config/i386/i386.md (*add<mode>_1): Ditto.
8431 (addsi_1_zext): Ditto.
8434 (*add<mode>_2): Ditto.
8435 (*addsi_2_zext): Ditto.
8436 (*add<mode>_3): Ditto.
8437 (*addsi_3_zext): Ditto.
8438 (*add<mode>_5): Ditto.
8439 (absneg splitter): Ditto.
8441 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8444 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
8447 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
8448 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
8449 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
8450 be reloaded through memory.
8454 2014-11-11 Jakub Jelinek <jakub@redhat.com>
8455 Martin Liska <mliska@suse.cz>
8457 * ipa-icf-gimple.c (func_checker::compare_bb): Fix comment typo.
8458 (func_checker::compare_gimple_call): Compare gimple_call_fn,
8459 gimple_call_chain, gimple_call_fntype and call flags.
8461 2014-11-10 Vladimir Makarov <vmakarov@redhat.com>
8463 PR rtl-optimization/63620
8464 PR rtl-optimization/63799
8465 * lra-lives.c (process_bb_lives): Do not delete EH_REGION, trapped
8466 and setting PIC pseudo insns.
8467 (lra_create_live_ranges): Fix the typo.
8469 2014-11-10 Patrick Palka <ppalka@gcc.gnu.org>
8472 * tree-ssa-propagate.c (may_propagate_copy): Allow propagating
8473 SSA copies whose source and destination names both occur in
8476 2014-11-10 Roman Gareev <gareevroman@gmail.com>
8478 * Makefile.in: Remove the compilation of graphite-clast-to-gimple.o.
8479 * common.opt: Remove using of fgraphite-code-generator flag.
8480 * flag-types.h: Likewise.
8481 * graphite.c: Remove using of CLooG.
8482 * graphite-blocking.c: Likewise.
8483 * graphite-dependences.c: Likewise.
8484 * graphite-poly.c: Likewise.
8485 * graphite-poly.h: Likewise.
8486 * graphite-scop-detection.c: Likewise.
8487 * graphite-sese-to-poly.c: Likewise.
8488 * graphite-clast-to-gimple.c: Removed.
8489 * graphite-clast-to-gimple.h: Likewise.
8490 * graphite-htab.h: Likewise.
8492 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
8494 * doc/invoke.texi ([-Wshift-count-negative, -Wshift-count-overflow]):
8497 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8499 * config/frv/frv.c (frv_io_handle_use_1): Delete.
8500 (frv_io_handle_use): Use find_all_hard_regs.
8502 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8504 * config/frv/frv.c (frv_registers_conflict_p_1): Take an rtx rather
8505 than an rtx *. Take the regstate_t directly rather than via a void *.
8506 Return a bool rather than an int. Iterate over all subrtxes here.
8507 (frv_registers_conflict_p): Update accordingly.
8509 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8511 * config/frv/frv.c: Include rtl-iter.h.
8512 (frv_acc_group_1): Delete.
8513 (frv_acc_group): Use FOR_EACH_SUBRTX.
8515 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8517 * config/frv/frv.c: Move include of rtl.h after hard-reg-set.h.
8518 (frv_clear_registers_used): Delete.
8519 (frv_ifcvt_modify_tests): Use find_all_hard_regs.
8521 2014-11-10 Jan Hubicka <hubicka@ucw.cz>
8524 * calls.c (initialize_argument_information): When emitting thunk call
8525 use original memory placement of the argument.
8527 2014-11-10 Renlin Li <renlin.li@arm.com>
8530 * tree-ssa-threadupdate.c (compute_path_counts): Bound path_in_freq.
8532 2014-11-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
8534 * expmed.c (expand_shift_1): Expand 8 bit rotate of 16 bit value to
8535 bswaphi if available.
8537 2014-11-10 Bernd Schmidt <bernds@codesourcery.com>
8539 * config/nvptx/nvptx.c: New file.
8540 * config/nvptx/nvptx.h: New file.
8541 * config/nvptx/nvptx-protos.h: New file.
8542 * config/nvptx/nvptx.md: New file.
8543 * config/nvptx/t-nvptx: New file.
8544 * config/nvptx/nvptx.opt: New file.
8545 * common/config/nvptx/nvptx-common.c: New file.
8546 * config.gcc: Handle nvptx-*-*.
8548 2014-11-10 Richard Biener <rguenther@suse.de>
8550 * tree-ssa-operands.c (finalize_ssa_uses): Properly put
8551 released operands on the free list.
8553 2014-11-10 Richard Biener <rguenther@suse.de>
8555 * match.pd: Implement pattern from simplify_mult.
8556 * tree-ssa-forwprop.c (simplify_mult): Remove.
8557 (pass_forwprop::execute): Do not call simplify_mult.
8559 2014-11-10 Richard Biener <rguenther@suse.de>
8561 PR tree-optimization/63800
8562 * tree-ssa-pre.c (eliminate_push_avail): Push in a way so
8563 we can restore the previous availability in after_dom_children.
8564 (eliminate_dom_walker::after_dom_children): Restore
8565 previous availability.
8567 2014-11-10 Richard Biener <rguenther@suse.de>
8570 * expr.c (expand_expr_real_2): When expanding FMA_EXPRs
8571 properly treat the embedded multiplication as commutative
8572 when looking for feeding negates.
8574 2014-11-10 Joern Rennecke <joern.rennecke@embecosm.com>
8576 * config/avr/avr.h (CPLUSPLUS_CPP_SPEC): Define.
8578 2014-11-10 Martin Liska <mliska@suse.cz>
8580 * gcc.dg/tree-ssa/ldist-19.c: ICF is disabled
8581 for the test because of default char signedness
8582 on powerpc64 target.
8584 2014-11-10 Richard Biener <rguenther@suse.de>
8586 * match.pd: Implement pattern from simplify_conversion_from_bitmask.
8587 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): Remove.
8588 (pass_forwprop::execute): Do not call simplify_conversion_from_bitmask.
8590 2014-11-10 Richard Biener <rguenther@suse.de>
8592 * match.pd: Move rest of the conversion combining patterns
8593 from tree-ssa-forwprop.c.
8594 * tree-ssa-forwprop.c (combine_conversions): Remove.
8595 (pass_forwprop::execute): Do not call it.
8597 2014-11-10 Eric Botcazou <ebotcazou@adacore.com>
8599 * gimple-low.c (lower_function_body): Clear the location of the first
8600 inserted representative return if it also fills in for the fallthru.
8602 2014-11-10 Yuri Rumyantsev <ysrumyan@gmail.com>
8604 * tree-if-conv.c (add_to_predicate_list): Check unconditionally
8605 that bb is always executed to early exit. Use predicate of
8606 cd-equivalent block for join blocks if it exists.
8607 (if_convertible_loop_p_1): Recompute POST_DOMINATOR tree.
8608 (tree_if_conversion): Free post-dominance information.
8610 2014-11-09 Jason Merrill <jason@redhat.com>
8612 * config/i386/avx512vldqintrin.h (_mm256_broadcast_f32x2): __mmask8.
8613 * config/i386/avx512vlintrin.h (_mm256_mask_cvtepi32_storeu_epi16)
8614 (_mm_mask_cvtusepi32_storeu_epi16)
8615 (_mm_mask_cvtsepi64_storeu_epi32): Return void.
8617 2014-11-09 Joern Rennecke <joern.rennecke@embecosm.com>
8619 * config/avr/predicates.md (low_io_address_operand): Fix typo.
8621 2014-11-09 Vladimir Makarov <vmakarov@redhat.com>
8623 PR rtl-optimization/63620
8624 * lra-constraints.c (substitute_pseudo): Add prefix lra_ to the
8625 name. Move to lra.c. Make it external.
8626 (substitute_pseudo_within_insn): Ditto.
8627 (inherit_reload_reg, split_reg, remove_inheritance_pseudos): Use
8629 (undo_optional_reloads): Ditto.
8630 * lra-int.h (lra_dump_bitmap_with_title, lra_substitute_pseudo):
8632 (lra_substitute_pseudo_within_insn): Ditto.
8633 * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): New.
8634 (mark_regno_live): Add parameter. Update bb_gen_pseudos.
8635 (mark_regno_dead): Add parameter. Update bb_gen_pseudos and
8637 (struct bb_data, bb_data_t, bb_data): New.
8638 (get_bb_data, get_bb_data_by_index): Ditto.
8639 (all_hard_regs_bitmap): New.
8640 (live_trans_fun, live_con_fun_0, live_con_fun_n, all_blocks): New.
8641 (initiate_live_solver, finish_live_solver): New.
8642 (process_bb_lives): Change return type. Add code updating local
8643 live data and removing dead insns. Pass new argument to
8644 mark_regno_live and mark_regno_dead. Check changing bb pseudo
8645 life info. Return the result.
8646 (lra_create_live_ranges): Add code to do global pseudo live
8648 (lra_live_ranges_init): Call initiate_live_solver.
8649 (lra_live_ranges_finish): Call finish_live_solver.
8650 * lra.c (lra_dump_bitmap_with_title): New.
8651 (lra_substitute_pseudo, lra_substitute_pseudo_within_insn): Move
8652 from lra-constraints.c.
8654 2014-11-09 Richard Biener <rguenther@suse.de>
8656 * match.pd: Add patterns convering two conversions in a row
8658 * fold-const.c (fold_unary_loc): Remove them here.
8659 * tree-ssa-forwprop.c (combine_conversions): Likewise.
8660 * genmatch.c (dt_node::gen_kids): Check whether we may
8661 follow SSA use-def chains.
8663 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8665 * config/aarch64/aarch64.c: Include rtl-iter.h.
8666 (aarch64_tls_operand_p_1): Delete.
8667 (aarch64_tls_operand_p): Use FOR_EACH_SUBRTX.
8669 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8671 * config/arm/arm.c (arm_note_pic_base): Delete.
8672 (arm_cannot_copy_insn_p): Use FOR_EACH_SUBRTX.
8674 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8676 * config/arm/arm.c: Include rtl-iter.h.
8677 (arm_tls_referenced_p_1): Delete.
8678 (arm_tls_referenced_p): Use FOR_EACH_SUBRTX.
8680 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8682 * config/arm/aarch-common.c: Include rtl-iter.h.
8683 (search_term, arm_find_sub_rtx_with_search_term): Delete.
8684 (arm_find_sub_rtx_with_code): Use FOR_EACH_SUBRTX_VAR.
8685 (arm_get_set_operands): Pass the insn pattern rather than the
8687 (arm_no_early_store_addr_dep): Likewise.
8689 2014-11-08 Eric Botcazou <ebotcazou@adacore.com>
8691 * config/arm/arm.c (arm_set_return_address): Mark the store as frame
8693 (thumb_set_return_address): Likewise.
8695 2014-11-07 Jeff Law <law@redhat.com>
8697 PR tree-optimization/61515
8698 * tree-ssa-threadedge.c (invalidate_equivalences): Walk the unwinding
8699 stack rather than looking at every SSA_NAME's value.
8701 2014-11-07 Richard Biener <rguenther@suse.de>
8703 PR tree-optimization/63605
8704 * fold-const.c (fold_binary_loc): Properly use element_precision
8705 for types that may not be scalar.
8707 2014-11-07 Evgeny Stupachenko <evstupac@gmail.com>
8710 * config/i386/i386.md (builtin_setjmp_receiver): Use
8711 pic_offset_table_rtx for PIC register.
8712 (nonlocal_goto_receiver): Delete.
8714 2014-11-07 Daniel Hellstrom <daniel@gaisler.com>
8716 * config.gcc (sparc-*-rtems*): Clean away unused t-elf.
8717 * config/sparc/t-rtems: Add leon3v7 and muser-mode multilibs.
8719 2014-11-07 Martin Liska <mliska@suse.cz>
8722 * cgraphunit.c (cgraph_node::create_wrapper):
8723 TREE_ADDRESSABLE is set to false for a newly created thunk.
8725 2014-11-07 Martin Liska <mliska@suse.cz>
8728 * ipa-icf-gimple.c (func_checker::compare_gimple_switch):
8729 Missing checking for CASE_LOW and CASE_HIGH added.
8731 2014-11-07 Martin Liska <mliska@suse.cz>
8734 * cgraphunit.c (cgraph_node::expand_thunk): DECL_BY_REFERENCE
8735 is correctly handled for thunks created by IPA ICF.
8737 2014-11-07 Jiong Wang <jiong.wang@arm.com>
8738 2014-11-07 Richard Biener <rguenther@suse.de>
8740 PR tree-optimization/63676
8741 * gimple-fold.c (fold_gimple_assign): Do not fold node when
8742 TREE_CLOBBER_P be true.
8744 2014-11-07 Richard Biener <rguenther@suse.de>
8747 * match.pd: Guard conflicting GENERIC pattern properly.
8749 2014-11-07 Richard Biener <rguenther@suse.de>
8751 * match.pd: Add patterns for POINTER_PLUS_EXPR association
8752 and special patterns from tree-ssa-forwprop.c
8753 * fold-const.c (fold_binary_loc): Remove them here.
8754 * tree-ssa-forwprop.c (to_purge): New global bitmap.
8755 (fwprop_set_lattice_val): New function.
8756 (fwprop_invalidate_lattice): Likewise.
8757 (remove_prop_source_from_use): Instead of purging dead EH
8758 edges record blocks to do that in to_purge.
8759 (tidy_after_forward_propagate_addr): Likewise.
8760 (forward_propagate_addr_expr): Invalidate the lattice for
8761 SSA names we release.
8762 (simplify_conversion_from_bitmask): Likewise.
8763 (simplify_builtin_call): Likewise.
8764 (associate_pointerplus_align): Remove.
8765 (associate_pointerplus_diff): Likewise.
8766 (associate_pointerplus): Likewise.
8767 (fold_all_stmts): Merge with ...
8768 (pass_forwprop::execute): ... the original loop over all
8769 basic-blocks. Delay purging dead EH edges and invalidate
8770 the lattice for SSA names we release.
8772 2014-11-07 Terry Guo <terry.guo@arm.com>
8774 * config/arm/arm.opt (masm-syntax-unified): New option.
8775 * doc/invoke.texi (-masm-syntax-unified): Document new option.
8776 * config/arm/arm.h (TARGET_UNIFIED_ASM): Also include thumb1.
8777 (ASM_APP_ON): Redefined.
8778 * config/arm/arm.c (arm_option_override): Thumb2 inline assembly
8779 code always use UAL syntax.
8780 (arm_output_mi_thunk): Use UAL syntax for Thumb1 target.
8781 * config/arm/thumb1.md: Likewise.
8783 2014-11-06 John David Anglin <danglin@gcc.gnu.org>
8785 * config/pa/pa.md (trap): New insn. Add "trap" to attribute type.
8786 Don't allow trap insn in in_branch_delay, in_nullified_branch_delay
8789 2014-11-06 Steve Ellcey <sellcey@imgtec.com>
8791 * config.gcc (mips*-mti-linux*): Remove gnu_ld and gas assignments.
8792 Set default_mips_arch and default_mips_abi instead of tm_defines.
8793 (mips*-*-linux*): Set default_mips_arch and default_mips_abi instead
8795 (mips*-*-*): Check with_arch and with_abi. Set tm_defines.
8796 * config/mips/mips.h (STANDARD_STARTFILE_PREFIX_1): Set default
8797 based on MIPS_ABI_DEFAULT.
8798 (STANDARD_STARTFILE_PREFIX_2): Ditto.
8800 2014-11-06 Joseph Myers <joseph@codesourcery.com>
8802 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to corner
8803 cases of extended identifiers.
8805 2014-11-06 Eric Botcazou <ebotcazou@adacore.com>
8807 * tree-cfgcleanup.c (fixup_noreturn_call): Do not perform DCE here.
8809 2014-11-06 DJ Delorie <dj@redhat.com>
8811 * config/m32c/cond.md (movqicc_<code>_<mode>): Remove mode of
8813 (movhicc_<code>_<mode>): Likewise.
8814 * config/m32c/m32c.c (encode_pattern_1): Specialise PSImode
8816 (m32c_eh_return_data_regno): Change to using memregs to avoid
8817 tying up all the compute regs.
8818 (m32c_legitimate_address_p) Subregs are not valid addresses.
8820 2014-11-06 Bernd Schmidt <bernds@codesourcery.com>
8822 * function.c (thread_prologue_and_epilogue_insns): No longer static.
8823 * function.h (thread_prologue_and_epilogue_insns): Declare.
8825 * target.def (assemble_undefined_decl): New hooks.
8826 * hooks.c (hook_void_FILEptr_constcharptr_const_tree): New function.
8827 * hooks.h (hook_void_FILEptr_constcharptr_const_tree): Declare.
8828 * doc/tm.texi.in (TARGET_ASM_ASSEMBLE_UNDEFINED_DECL): Add.
8829 * doc/tm.texi: Regenerate.
8830 * output.h (assemble_undefined_decl): Declare.
8831 (get_fnname_from_decl): Declare.
8832 * varasm.c (assemble_undefined_decl): New function.
8833 (get_fnname_from_decl): New function.
8834 * final.c (rest_of_handle_final): Use it.
8835 * varpool.c (varpool_output_variables): Call assemble_undefined_decl
8836 for nodes without a definition.
8838 * target.def (call_args, end_call_args): New hooks.
8839 * hooks.c (hook_void_rtx_tree): New empty function.
8840 * hooks.h (hook_void_rtx_tree): Declare.
8841 * doc/tm.texi.in (TARGET_CALL_ARGS, TARGET_END_CALL_ARGS): Add.
8842 * doc/tm.texi: Regenerate.
8843 * calls.c (expand_call): Slightly rearrange the code. Use the two new
8845 (expand_library_call_value_1): Use the two new hooks.
8847 * expr.c (use_reg_mode): Just return for pseudo registers.
8849 * combine.c (try_combine): Don't allow a call as one of the source
8852 * target.def (decl_end): New hook.
8853 * varasm.c (assemble_variable_contents, assemble_constant_contents):
8855 * doc/tm.texi.in (TARGET_ASM_DECL_END): Add.
8856 * doc/tm.texi: Regenerate.
8858 2014-11-06 Renlin Li <renlin.li@arm.com>
8860 * config/aarch64/aarch64.c (aarch64_architecture_version): New.
8861 (processor): New architecture_version field.
8862 (aarch64_override_options): Initialize aarch64_architecture_version.
8863 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_ARCH,
8864 __ARM_ARCH_PROFILE, aarch64_arch_name macro.
8866 2014-11-06 James Greenhalgh <james.greenhalgh@arm.com>
8868 * params.def (sra-max-scalarization-size-Ospeed): New.
8869 (sra-max-scalarization-size-Osize): Likewise.
8870 * doc/invoke.texi (sra-max-scalarization-size-Ospeed): Document.
8871 (sra-max-scalarization-size-Osize): Likewise.
8872 * toplev.c (process_options): Set default values for new
8874 * tree-sra.c (analyze_all_variable_accesses): Use new parameters.
8875 * targhooks.c (get_move_ratio): Remove static designator.
8876 * target.h (get_move_ratio): Declare.
8878 2014-11-06 Marek Polacek <polacek@redhat.com>
8880 * sanopt.c (sanopt_optimize_walker): Limit removal of the checks.
8881 Remove vector limit.
8883 2014-11-06 Richard Biener <rguenther@suse.de>
8885 * match.pd: Implement bitwise binary and unary simplifications
8886 from tree-ssa-forwprop.c.
8887 * fold-const.c (fold_unary_loc): Remove them here.
8888 (fold_binary_loc): Likewise.
8889 * tree-ssa-forwprop.c (simplify_not_neg_expr): Remove.
8890 (truth_valued_ssa_name): Likewise.
8891 (lookup_logical_inverted_value): Likewise.
8892 (simplify_bitwise_binary_1): Likewise.
8893 (hoist_conversion_for_bitop_p): Likewise.
8894 (simplify_bitwise_binary_boolean): Likewise.
8895 (simplify_bitwise_binary): Likewise.
8896 (pass_forwprop::execute): Remove calls to simplify_not_neg_expr
8897 and simplify_bitwise_binary.
8898 * genmatch.c (dt_node::append_true_op): Use safe_as_a for parent.
8899 (decision_tree::insert): Also insert non-expressions.
8901 2014-11-06 Hale Wang <hale.wang@arm.com>
8903 * config/arm/arm-cores.def: Add support for
8904 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
8905 cortex-m1.small-multiply.
8906 * config/arm/arm-tables.opt: Regenerate.
8907 * config/arm/arm-tune.md: Regenerate.
8908 * config/arm/arm.c: Update the rtx-costs for MUL.
8909 * config/arm/bpabi.h: Handle
8910 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
8911 cortex-m1.small-multiply.
8912 * doc/invoke.texi: Document
8913 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
8914 cortex-m1.small-multiply.
8916 2014-11-06 Hale Wang <hale.wang@arm.com>
8918 * config/arm/arm.c: Add cortex-m7 tune.
8919 * config/arm/arm-cores.def: Use cortex-m7 tune.
8921 2014-11-05 Uros Bizjak <ubizjak@gmail.com>
8924 * config/i386/i386.c (in_large_data_p): Reject automatic variables.
8925 (ix86_encode_section_info): Do not check for non-automatic varibles
8926 when setting SYMBOL_FLAG_FAR_ADDR flag.
8927 (x86_64_elf_select_section): Do not check ix86_cmodel here.
8928 (x86_64_elf_unique_section): Ditto.
8929 (x86_elf_aligned_common): Emit tab before .largecomm.
8931 2014-11-05 Joseph Myers <joseph@codesourcery.com>
8933 PR preprocessor/9449
8934 * doc/cpp.texi (Character sets, Tokenization)
8935 (Implementation-defined behavior): Don't refer to UCNs in
8936 identifiers requiring -fextended-identifiers.
8937 * doc/cppopts.texi (-fextended-identifiers): Document as enabled
8938 by default for C99 and later and C++.
8939 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to extended
8940 identifiers needing -fextended-identifiers.
8942 2014-11-05 Ilya Tocar <ilya.tocar@intel.com>
8944 * config/i386/i386.c (expand_vec_perm_pshufb): Try vpermq/vpermd
8945 for 512-bit wide modes.
8946 (expand_vec_perm_1): Use correct versions of patterns.
8947 * config/i386/sse.md (avx512f_vec_dup<mode>_1): New.
8948 (vashr<mode>3<mask_name>): Split V8HImode and V16QImode.
8950 2014-11-05 Ilya Enkovich <ilya.enkovich@intel.com>
8956 * tree-chkp-opt.c: New.
8959 * Makefile.in (OBJS): Add ipa-chkp.o, rtl-chkp.o, tree-chkp.o
8961 (GTFILES): Add tree-chkp.c.
8962 * mode-classes.def (MODE_POINTER_BOUNDS): New.
8963 * tree.def (POINTER_BOUNDS_TYPE): New.
8964 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
8965 (POINTER_BOUNDS_MODE): New.
8966 (make_pointer_bounds_mode): New.
8967 * machmode.h (POINTER_BOUNDS_MODE_P): New.
8968 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
8969 (layout_type): Support POINTER_BOUNDS_TYPE.
8970 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
8971 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
8972 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
8973 (type_contains_placeholder_1): Likewise.
8974 (build_common_tree_nodes): Initialize
8975 pointer_bounds_type_node.
8976 * tree.h (POINTER_BOUNDS_TYPE_P): New.
8977 (pointer_bounds_type_node): New.
8978 (POINTER_BOUNDS_P): New.
8979 (BOUNDED_TYPE_P): New.
8981 (CALL_WITH_BOUNDS_P): New.
8982 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
8983 (gimple_call_with_bounds_p): New.
8984 (gimple_call_set_with_bounds): New.
8985 (gimple_return_retbnd): New.
8986 (gimple_return_set_retbnd): New
8987 * gimple.c (gimple_build_return): Increase number of ops
8988 for return statement.
8989 (gimple_build_call_from_tree): Propagate CALL_WITH_BOUNDS_P
8991 * gimple-pretty-print.c (dump_gimple_return): Print second op.
8992 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
8993 * gimplify.c (gimplify_init_constructor): Avoid infinite
8994 loop during gimplification of bounds initializer.
8995 * calls.c: Include tree-chkp.h, rtl-chkp.h, bitmap.h.
8996 (special_function_p): Use original decl name when analyzing
8997 instrumentation clone.
8998 (arg_data): Add fields special_slot, pointer_arg and
9000 (store_bounds): New.
9001 (emit_call_1): Propagate instrumentation flag for CALL.
9002 (initialize_argument_information): Compute pointer_arg,
9003 pointer_offset and special_slot for pointer bounds arguments.
9004 (finalize_must_preallocate): Preallocate when storing bounds
9006 (compute_argument_addresses): Skip pointer bounds.
9007 (expand_call): Store bounds into tables separately. Return
9008 result joined with resulting bounds.
9009 * cfgexpand.c: Include tree-chkp.h, rtl-chkp.h.
9010 (expand_call_stmt): Propagate bounds flag for CALL_EXPR.
9011 (expand_return): Add returned bounds arg. Handle returned bounds.
9012 (expand_gimple_stmt_1): Adjust to new expand_return signature.
9013 (gimple_expand_cfg): Reset rtx bounds map.
9014 * expr.c: Include tree-chkp.h, rtl-chkp.h.
9015 (expand_assignment): Handle returned bounds.
9016 (store_expr_with_bounds): New. Replaces store_expr with new bounds
9017 target argument. Handle bounds returned by calls.
9018 (store_expr): Now wraps store_expr_with_bounds.
9019 * expr.h (store_expr_with_bounds): New.
9020 * function.c: Include tree-chkp.h, rtl-chkp.h.
9021 (bounds_parm_data): New.
9022 (use_register_for_decl): Do not registerize decls used for bounds
9024 (assign_parms_augmented_arg_list): Add bounds of the result
9025 structure pointer as the second argument.
9026 (assign_parm_find_entry_rtl): Mark bounds are never passed on
9028 (assign_parm_is_stack_parm): Likewise.
9029 (assign_parm_load_bounds): New.
9030 (assign_bounds): New.
9031 (assign_parms): Load bounds and determine a location for
9033 (diddle_return_value_1): New.
9034 (diddle_return_value): Handle returned bounds.
9035 * function.h (rtl_data): Add field for returned bounds.
9036 * varasm.c: Include tree-chkp.h.
9037 (output_constant): Support POINTER_BOUNDS_TYPE.
9038 (output_constant_pool_2): Support MODE_POINTER_BOUNDS.
9039 (ultimate_transparent_alias_target): Move up.
9040 (make_decl_rtl): For instrumented function use
9041 name of the original decl.
9042 (assemble_start_function): Mark function as global
9043 in case it is instrumentation clone of the global
9045 (do_assemble_alias): Follow transparent alias chain
9046 for identifier. Check if original alias is public.
9047 (maybe_assemble_visibility): Use visibility of the
9048 original function for instrumented version.
9049 (default_unique_section): Likewise.
9050 * emit-rtl.c (immed_double_const): Support MODE_POINTER_BOUNDS.
9051 (init_emit_once): Build pointer bounds zero constants.
9052 * explow.c (trunc_int_for_mode): Support MODE_POINTER_BOUNDS.
9053 * target.def (builtin_chkp_function): New.
9054 (chkp_bound_type): New.
9055 (chkp_bound_mode): New.
9056 (chkp_make_bounds_constant): New.
9057 (chkp_initialize_bounds): New.
9058 (load_bounds_for_arg): New.
9059 (store_bounds_for_arg): New.
9060 (load_returned_bounds): New.
9061 (store_returned_bounds): New.
9062 (chkp_function_value_bounds): New.
9063 (setup_incoming_vararg_bounds): New.
9064 (function_arg): Update hook description with new possible return
9066 * targhooks.h (default_load_bounds_for_arg): New.
9067 (default_store_bounds_for_arg): New.
9068 (default_load_returned_bounds): New.
9069 (default_store_returned_bounds): New.
9070 (default_chkp_bound_type): New.
9071 (default_chkp_bound_mode): New.
9072 (default_builtin_chkp_function): New.
9073 (default_chkp_function_value_bounds): New.
9074 (default_chkp_make_bounds_constant): New.
9075 (default_chkp_initialize_bounds): New.
9076 (default_setup_incoming_vararg_bounds): New.
9077 * targhooks.c (default_load_bounds_for_arg): New.
9078 (default_store_bounds_for_arg): New.
9079 (default_load_returned_bounds): New.
9080 (default_store_returned_bounds): New.
9081 (default_chkp_bound_type): New.
9082 (default_chkp_bound_mode); New.
9083 (default_builtin_chkp_function): New.
9084 (default_chkp_function_value_bounds): New.
9085 (default_chkp_make_bounds_constant): New.
9086 (default_chkp_initialize_bounds): New.
9087 (default_setup_incoming_vararg_bounds): New.
9088 * builtin-types.def (BT_BND): New.
9089 (BT_FN_PTR_CONST_PTR): New.
9090 (BT_FN_CONST_PTR_CONST_PTR): New.
9091 (BT_FN_BND_CONST_PTR): New.
9092 (BT_FN_CONST_PTR_BND): New.
9093 (BT_FN_PTR_CONST_PTR_SIZE): New.
9094 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
9095 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
9096 (BT_FN_VOID_CONST_PTR_SIZE): New.
9097 (BT_FN_VOID_PTR_BND): New.
9098 (BT_FN_CONST_PTR_CONST_PTR_CONST_PTR): New.
9099 (BT_FN_BND_CONST_PTR_SIZE): New.
9100 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
9101 (BT_FN_VOID_CONST_PTR_BND_CONST_PTR): New.
9102 * chkp-builtins.def: New.
9103 * builtins.def: include chkp-builtins.def.
9104 (DEF_CHKP_BUILTIN): New.
9105 * builtins.c: Include tree-chkp.h and rtl-chkp.h.
9106 (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
9107 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
9108 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
9109 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
9110 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
9111 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
9112 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
9113 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
9114 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_NARROW,
9115 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
9116 (std_expand_builtin_va_start): Init bounds for va_list.
9117 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add
9118 __CHKP__ macro when Pointer Bounds Checker is on.
9119 * params.def (PARAM_CHKP_MAX_CTOR_SIZE): New.
9120 * passes.def (pass_ipa_chkp_versioning): New.
9121 (pass_early_local_passes): Renamed to pass_build_ssa_passes.
9122 (pass_fixup_cfg): Moved to pass_chkp_instrumentation_passes.
9123 (pass_chkp_instrumentation_passes): New.
9124 (pass_ipa_chkp_produce_thunks): New.
9125 (pass_local_optimization_passes): New.
9126 (pass_chkp_opt): New.
9127 * tree-pass.h (make_pass_ipa_chkp_versioning): New.
9128 (make_pass_ipa_chkp_produce_thunks): New.
9129 (make_pass_chkp): New.
9130 (make_pass_chkp_opt): New.
9131 (make_pass_early_local_passes): Renamed to ...
9132 (make_pass_build_ssa_passes): This.
9133 (make_pass_chkp_instrumentation_passes): New.
9134 (make_pass_local_optimization_passes): New.
9135 * passes.c (pass_manager::execute_early_local_passes): Execute
9136 early passes in three steps.
9137 (execute_all_early_local_passes): Renamed to ...
9138 (execute_build_ssa_passes): This.
9139 (pass_data_early_local_passes): Renamed to ...
9140 (pass_data_build_ssa_passes): This.
9141 (pass_early_local_passes): Renamed to ...
9142 (pass_build_ssa_passes): This.
9143 (pass_data_chkp_instrumentation_passes): New.
9144 (pass_chkp_instrumentation_passes): New.
9145 (pass_data_local_optimization_passes): New.
9146 (pass_local_optimization_passes): New.
9147 (make_pass_early_local_passes): Renamed to ...
9148 (make_pass_build_ssa_passes): This.
9149 (make_pass_chkp_instrumentation_passes): New.
9150 (make_pass_local_optimization_passes): New.
9151 * c-family/c.opt (fcheck-pointer-bounds): New.
9152 (fchkp-check-incomplete-type): New.
9153 (fchkp-zero-input-bounds-for-main): New.
9154 (fchkp-first-field-has-own-bounds): New.
9155 (fchkp-narrow-bounds): New.
9156 (fchkp-narrow-to-innermost-array): New.
9157 (fchkp-optimize): New.
9158 (fchkp-use-fast-string-functions): New.
9159 (fchkp-use-nochk-string-functions): New.
9160 (fchkp-use-static-bounds): New.
9161 (fchkp-use-static-const-bounds): New.
9162 (fchkp-treat-zero-dynamic-size-as-infinite): New.
9163 (fchkp-check-read): New.
9164 (fchkp-check-write): New.
9165 (fchkp-store-bounds): New.
9166 (fchkp-instrument-calls): New.
9167 (fchkp-instrument-marked-only): New.
9169 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
9170 (handle_bnd_legacy): New.
9171 (handle_bnd_instrument): New.
9172 (c_common_attribute_table): Add bnd_variable_size, bnd_legacy
9173 and bnd_instrument. Fix documentation.
9174 (c_common_format_attribute_table): Likewsie.
9175 * toplev.c: include tree-chkp.h.
9176 (process_options): Check Pointer Bounds Checker is supported.
9177 (compile_file): Add chkp_finish_file call.
9178 * ipa-cp.c (initialize_node_lattices): Use cgraph_local_p
9179 to handle instrumentation clones properly.
9180 (propagate_constants_accross_call): Do not propagate
9181 through instrumentation thunks.
9182 * ipa-pure-const.c (propagate_pure_const): Support
9184 * ipa-inline.c (early_inliner): Check edge has summary allocated.
9185 * ipa-split.c: Include tree-chkp.h.
9187 (split_part_set_ssa_name_p): New.
9188 (consider_split): Do not split retbnd and retval
9190 (insert_bndret_call_after): new.
9191 (split_function): Propagate Pointer Bounds Checker
9192 instrumentation marks and handle returned bounds.
9193 * tree-ssa-sccvn.h (vn_reference_op_struct): Transform opcode
9194 into bit field and add with_bounds field.
9195 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Set
9196 with_bounds field for instrumented calls.
9197 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Restore
9198 CALL_WITH_BOUNDS_P flag for calls.
9199 * tree-ssa-ccp.c: Include tree-chkp.h.
9200 (insert_clobber_before_stack_restore): Handle
9201 BUILT_IN_CHKP_BNDRET calls.
9202 * tree-ssa-dce.c: Include tree-chkp.h.
9203 (propagate_necessity): For free call fed by alloc check
9204 bounds are also provided by the same alloc.
9205 (eliminate_unnecessary_stmts): Handle BUILT_IN_CHKP_BNDRET
9207 * tree-inline.c: Include tree-chkp.h.
9208 (declare_return_variable): Add arg holding
9209 returned bounds slot. Create and initialize returned bounds var.
9210 (remap_gimple_stmt): Handle returned bounds.
9211 Return sequence of statements instead of a single statement.
9212 (insert_init_stmt): Add declaration.
9213 (remap_gimple_seq): Adjust to new remap_gimple_stmt signature.
9214 (copy_bb): Adjust to changed return type of remap_gimple_stmt.
9215 Properly handle bounds in va_arg_pack and va_arg_pack_len.
9216 (expand_call_inline): Handle returned bounds. Add bounds copy
9217 for generated mem to mem assignments.
9218 * tree-inline.h (copy_body_data): Add fields retbnd and
9220 * value-prof.c: Include tree-chkp.h.
9221 (gimple_ic): Support returned bounds.
9222 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
9223 with "chkp ctor" and "bnd_legacy" attributes.
9224 (symtab_remove_unreachable_nodes): Keep initial values for
9225 pointer bounds to be used for checks eliminations.
9226 (process_references): Handle IPA_REF_CHKP.
9227 (walk_polymorphic_call_targets): Likewise.
9228 * ipa-visibility.c (cgraph_externally_visible_p): Mark
9229 instrumented 'main' as externally visible.
9230 (function_and_variable_visibility): Filter instrumentation
9232 * cgraph.h (cgraph_thunk_info): Add add_pointer_bounds_args
9234 (cgraph_node): Add instrumented_version, orig_decl and
9235 instrumentation_clone fields.
9236 (symtab_node::get_alias_target): Allow IPA_REF_CHKP reference.
9237 (varpool_node): Add need_bounds_init field.
9238 (cgraph_local_p): New.
9239 * cgraph.c: Include tree-chkp.h.
9240 (cgraph_node::remove): Fix instrumented_version
9241 of the referenced node if any.
9242 (cgraph_node::dump): Dump instrumentation_clone and
9243 instrumented_version fields.
9244 (cgraph_node::verify_node): Check correctness of IPA_REF_CHKP
9245 references and instrumentation thunks.
9246 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Keep
9247 all not instrumented instrumentation clones alive.
9248 (cgraph_redirect_edge_call_stmt_to_callee): Support
9250 * cgraphbuild.c (rebuild_cgraph_edges): Rebuild IPA_REF_CHKP
9252 (cgraph_rebuild_references): Likewise.
9253 * cgraphunit.c: Include tree-chkp.h.
9254 (assemble_thunks_and_aliases): Skip thunks calling instrumneted
9256 (varpool_finalize_decl): Register statically initialized decls
9257 in Pointer Bounds Checker.
9258 (walk_polymorphic_call_targets): Do not mark generated call to
9259 __builtin_unreachable as with_bounds.
9260 (output_weakrefs): If there are both instrumented and original
9261 versions, output only one of them.
9262 (cgraph_node::expand_thunk): Set with_bounds flag
9263 for created call statement.
9264 * ipa-ref.h (ipa_ref_use): Add IPA_REF_CHKP.
9265 (ipa_ref): increase size of use field.
9266 * symtab.c (ipa_ref_use_name): Add element for IPA_REF_CHKP.
9267 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
9268 (ctor_for_folding): Do not fold constant bounds vars.
9269 * lto-streamer.h (LTO_minor_version): Change minor version from
9271 * lto-cgraph.c (compute_ltrans_boundary): Keep initial values for
9273 (lto_output_node): Output instrumentation_clone,
9274 thunk.add_pointer_bounds_args and orig_decl field.
9275 (lto_output_ref): Adjust to new ipa_ref::use field size.
9276 (input_overwrite_node): Read instrumentation_clone field.
9277 (input_node): Read thunk.add_pointer_bounds_args and orig_decl
9279 (input_ref): Adjust to new ipa_ref::use field size.
9280 (input_cgraph_1): Compute instrumented_version fields and restore
9281 IDENTIFIER_TRANSPARENT_ALIAS chains.
9282 (lto_output_varpool_node): Output
9283 need_bounds_init value.
9284 (input_varpool_node): Read need_bounds_init value.
9285 * lto-partition.c (add_symbol_to_partition_1): Keep original
9286 and instrumented versions together.
9287 (privatize_symbol_name): Restore transparent alias chain if required.
9288 (add_references_to_partition): Add references to pointer bounds vars.
9289 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
9290 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
9291 (gen_type_die_with_usage): Skip pointer bounds.
9292 (dwarf2out_global_decl): Likewise.
9293 (is_base_type): Support POINTER_BOUNDS_TYPE.
9294 (gen_formal_types_die): Skip pointer bounds.
9295 (gen_decl_die): Likewise.
9296 * var-tracking.c (vt_add_function_parameters): Skip
9298 * ipa-icf.c (sem_function::merge): Do not merge when instrumentation
9300 (sem_variable::merge): Reset need_bounds_init flag.
9301 * doc/extend.texi: Document Pointer Bounds Checker built-in functions
9303 * doc/tm.texi.in (TARGET_LOAD_BOUNDS_FOR_ARG): New.
9304 (TARGET_STORE_BOUNDS_FOR_ARG): New.
9305 (TARGET_LOAD_RETURNED_BOUNDS): New.
9306 (TARGET_STORE_RETURNED_BOUNDS): New.
9307 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
9308 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
9309 (TARGET_BUILTIN_CHKP_FUNCTION): New.
9310 (TARGET_CHKP_BOUND_TYPE): New.
9311 (TARGET_CHKP_BOUND_MODE): New.
9312 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
9313 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
9314 * doc/tm.texi: Regenerated.
9315 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
9318 * doc/invoke.texi (-mmpx): New.
9320 (chkp-max-ctor-size): New.
9321 * config/i386/constraints.md (w): New.
9324 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
9325 * config/i386/i386-modes.def (BND32): New.
9327 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
9328 * config/i386/i386.c: Include tree-chkp.h, rtl-chkp.h, tree-iterator.h.
9329 (regclass_map): Add bound registers.
9330 (dbx_register_map): Likewise.
9331 (dbx64_register_map): Likewise.
9332 (svr4_dbx_register_map): Likewise.
9333 (isa_opts): Add -mmpx.
9335 (ix86_option_override_internal): Support MPX ISA.
9336 (ix86_conditional_register_usage): Support bound registers.
9337 (ix86_code_end): Add MPX bnd prefix.
9338 (output_set_got): Likewise.
9339 (print_reg): Avoid prefixes for bound registers.
9340 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
9341 (ix86_print_operand_punct_valid_p): Likewise.
9342 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
9344 (ix86_output_call_insn): Add MPX bnd prefix to branch instructions.
9345 (ix86_class_likely_spilled_p): Add bound regs support.
9346 (ix86_hard_regno_mode_ok): Likewise.
9347 (x86_order_regs_for_local_alloc): Likewise.
9348 (ix86_bnd_prefixed_insn_p): New.
9349 (ix86_builtins): Add
9350 IX86_BUILTIN_BNDMK, IX86_BUILTIN_BNDSTX,
9351 IX86_BUILTIN_BNDLDX, IX86_BUILTIN_BNDCL,
9352 IX86_BUILTIN_BNDCU, IX86_BUILTIN_BNDRET,
9353 IX86_BUILTIN_BNDNARROW, IX86_BUILTIN_BNDINT,
9354 IX86_BUILTIN_SIZEOF, IX86_BUILTIN_BNDLOWER,
9355 IX86_BUILTIN_BNDUPPER.
9356 (builtin_isa): Add leaf_p and nothrow_p fields.
9357 (def_builtin): Initialize leaf_p and nothrow_p.
9358 (ix86_add_new_builtins): Handle leaf_p and nothrow_p
9361 (bdesc_mpx_const): New.
9362 (ix86_init_mpx_builtins): New.
9363 (ix86_init_builtins): Call ix86_init_mpx_builtins.
9364 (ix86_emit_cmove): New.
9365 (ix86_emit_move_max): New.
9366 (ix86_expand_builtin): Expand IX86_BUILTIN_BNDMK,
9367 IX86_BUILTIN_BNDSTX, IX86_BUILTIN_BNDLDX,
9368 IX86_BUILTIN_BNDCL, IX86_BUILTIN_BNDCU,
9369 IX86_BUILTIN_BNDRET, IX86_BUILTIN_BNDNARROW,
9370 IX86_BUILTIN_BNDINT, IX86_BUILTIN_SIZEOF,
9371 IX86_BUILTIN_BNDLOWER, IX86_BUILTIN_BNDUPPER.
9372 (ix86_function_value_bounds): New.
9373 (ix86_builtin_mpx_function): New.
9374 (ix86_get_arg_address_for_bt): New.
9375 (ix86_load_bounds): New.
9376 (ix86_store_bounds): New.
9377 (ix86_load_returned_bounds): New.
9378 (ix86_store_returned_bounds): New.
9379 (ix86_mpx_bound_mode): New.
9380 (ix86_make_bounds_constant): New.
9381 (ix86_initialize_bounds):
9382 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
9383 (TARGET_STORE_BOUNDS_FOR_ARG): New.
9384 (TARGET_LOAD_RETURNED_BOUNDS): New.
9385 (TARGET_STORE_RETURNED_BOUNDS): New.
9386 (TARGET_CHKP_BOUND_MODE): New.
9387 (TARGET_BUILTIN_CHKP_FUNCTION): New.
9388 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
9389 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
9390 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
9391 (ix86_option_override_internal): Do not
9392 support x32 with MPX.
9393 (init_cumulative_args): Init stdarg, bnd_regno, bnds_in_bt
9395 (function_arg_advance_32): Return number of used integer
9397 (function_arg_advance_64): Likewise.
9398 (function_arg_advance_ms_64): Likewise.
9399 (ix86_function_arg_advance): Handle pointer bounds.
9400 (ix86_function_arg): Likewise.
9401 (ix86_function_value_regno_p): Mark fisrt bounds registers as
9402 possible function value.
9403 (ix86_function_value_1): Handle pointer bounds type/mode
9404 (ix86_return_in_memory): Likewise.
9405 (ix86_print_operand): Analyse insn to decide abounf "bnd" prefix.
9406 (ix86_expand_call): Generate returned bounds.
9407 (ix86_setup_incoming_vararg_bounds): New.
9408 (ix86_va_start): Initialize bounds for pointers in va_list.
9409 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
9410 * config/i386/i386.h (TARGET_MPX): New.
9411 (TARGET_MPX_P): New.
9412 (FIRST_PSEUDO_REGISTER): Fix to new value.
9413 (FIXED_REGISTERS): Add bound registers.
9414 (CALL_USED_REGISTERS): Likewise.
9415 (REG_ALLOC_ORDER): Likewise.
9416 (HARD_REGNO_NREGS): Likewise.
9417 (VALID_BND_REG_MODE): New.
9418 (FIRST_BND_REG): New.
9419 (LAST_BND_REG): New.
9420 (reg_class): Add BND_REGS.
9421 (REG_CLASS_NAMES): Likewise.
9422 (REG_CLASS_CONTENTS): Likewise.
9424 (ANY_BND_REG_P): New.
9426 (HI_REGISTER_NAMES): Add bound registers.
9427 (ix86_args): Add bnd_regno, bnds_in_bt, force_bnd_pass and
9429 * config/i386/i386.md (UNSPEC_BNDMK): New.
9430 (UNSPEC_BNDMK_ADDR): New.
9431 (UNSPEC_BNDSTX): New.
9432 (UNSPEC_BNDLDX): New.
9433 (UNSPEC_BNDLDX_ADDR): New.
9434 (UNSPEC_BNDCL): New.
9435 (UNSPEC_BNDCU): New.
9436 (UNSPEC_BNDCN): New.
9437 (UNSPEC_MPX_FENCE): New.
9438 (UNSPEC_SIZEOF): New.
9441 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9442 (length_immediate): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9443 (prefix_rep): Check for bnd prefix.
9444 (prefix_0f): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9445 (length_nobnd): New.
9446 (length): Use length_nobnd when specified.
9447 (memory): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9452 (*jcc_1): Add MPX bnd prefix.
9455 (*indirect_jump): Likewise.
9456 (*tablejump_1): Likewise.
9457 (simple_return_internal): Likewise.
9458 (simple_return_internal_long): Likewise.
9459 (simple_return_pop_internal): Likewise.
9460 (simple_return_indirect_internal): Likewise.
9464 (*mov<mode>_internal_mpx): New.
9465 (<mode>_<bndcheck>): New.
9466 (*<mode>_<bndcheck>): New.
9471 move_size_reloc_<mode>): New.
9472 * config/i386/predicates.md (address_mpx_no_base_operand): New.
9473 (address_mpx_no_index_operand): New.
9474 (bnd_mem_operator): New.
9475 (symbol_operand): New.
9476 (x86_64_immediate_size_operand): New.
9477 * config/i386/i386.opt (mmpx): New.
9478 * config/i386/i386-builtin-types.def (BND): New.
9480 (BND_FTYPE_PCVOID_ULONG): New.
9481 (VOID_FTYPE_BND_PCVOID): New.
9482 (VOID_FTYPE_PCVOID_PCVOID_BND): New.
9483 (BND_FTYPE_PCVOID_PCVOID): New.
9484 (BND_FTYPE_PCVOID): New.
9485 (BND_FTYPE_BND_BND): New.
9486 (PVOID_FTYPE_PVOID_PVOID_ULONG): New.
9487 (PVOID_FTYPE_PCVOID_BND_ULONG): New.
9488 (ULONG_FTYPE_VOID): New.
9489 (PVOID_FTYPE_BND): New.
9491 2014-11-05 Bernd Schmidt <bernds@codesourcery.com>
9493 * passes.def (pass_compute_alignments, pass_duplicate_computed_gotos,
9494 pass_variable_tracking, pass_free_cfg, pass_machine_reorg,
9495 pass_cleanup_barriers, pass_delay_slots,
9496 pass_split_for_shorten_branches, pass_convert_to_eh_region_ranges,
9497 pass_shorten_branches, pass_est_nothrow_function_flags,
9498 pass_dwarf2_frame, pass_final): Move outside of pass_postreload and
9499 into pass_late_compilation.
9500 (pass_late_compilation): Add.
9501 * passes.c (pass_data_late_compilation, pass_late_compilation,
9502 make_pass_late_compilation): New.
9503 * timevar.def (TV_LATE_COMPILATION): New.
9505 * target.def (omit_struct_return_reg): New data hook.
9506 * doc/tm.texi.in: Add @hook TARGET_OMIT_STRUCT_RETURN_REG.
9507 * doc/tm.texi: Regenerate.
9508 * function.c (expand_function_end): Use it.
9510 * target.def (no_register_allocation): New data hook.
9511 * doc/tm.texi.in: Add @hook TARGET_NO_REGISTER_ALLOCATION.
9512 * doc/tm.texi: Regenerate.
9513 * ira.c (gate_ira): New function.
9514 (pass_data_ira): Set has_gate.
9515 (pass_ira): Add a gate function.
9516 (pass_data_reload): Likewise.
9517 (pass_reload): Add a gate function.
9519 * reload1.c (eliminate_regs): If reg_eliminate_is NULL, assert that
9520 no register allocation happens on the target and return.
9521 * final.c (alter_subreg): Ensure register is not a pseudo before
9522 calling simplify_subreg.
9523 (output_operand): Assert that x isn't a pseudo only if doing
9524 register allocation.
9526 * dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for
9529 * optabs.c (emit_indirect_jump): Test HAVE_indirect_jump and emit a
9532 2014-11-05 Alex Velenko <Alex.Velenko@arm.com>
9534 * simplify-rtx.c (simplify_binary_operation_1): Div check added.
9535 * rtl.h (SUBREG_P): New macro added.
9537 2014-11-05 Tejas Belagod <tejas.belagod@arm.com>
9539 * config/aarch64/aarch64-builtins.c
9540 (aarch64_build_scalar_type): Remove.
9541 (aarch64_scalar_builtin_types, aarch64_simd_type,
9542 aarch64_simd_type, aarch64_mangle_builtin_scalar_type,
9543 aarch64_mangle_builtin_vector_type,
9544 aarch64_mangle_builtin_type, aarch64_simd_builtin_std_type,
9545 aarch64_lookup_simd_builtin_type, aarch64_simd_builtin_type,
9546 aarch64_init_simd_builtin_types,
9547 aarch64_init_simd_builtin_scalar_types): New.
9548 (aarch64_init_simd_builtins): Refactor.
9549 (aarch64_init_crc32_builtins): Fixup with qualifier.
9550 * config/aarch64/aarch64-protos.h
9551 (aarch64_mangle_builtin_type): Export.
9552 * config/aarch64/aarch64-simd-builtin-types.def: New.
9553 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Remove.
9554 (aarch64_mangle_type): Refactor.
9555 * config/aarch64/arm_neon.h: Declare vector types based on
9557 * config/aarch64/t-aarch64: Update dependency.
9559 2014-11-04 Pat Haugen <pthaugen@us.ibm.com>
9561 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl,
9562 atomic_update_decl): Guard declaration with #ifdef.
9564 2014-11-04 Marek Polacek <polacek@redhat.com>
9566 * sanopt.c (sanopt_optimize_walker): Remove unused variables.
9568 2014-11-04 Marek Polacek <polacek@redhat.com>
9570 * Makefile.in (OBJS): Add sanopt.o.
9571 (GTFILES): Add sanopt.c.
9572 * asan.h (asan_expand_check_ifn): Declare.
9573 * asan.c (asan_expand_check_ifn): No longer static.
9574 (class pass_sanopt, pass_sanopt::execute, make_pass_sanopt): Move...
9575 * sanopt.c: ...here. New file.
9577 2014-11-04 Jiong Wang <jiong.wang@arm.com>
9578 Wilco Dijkstra <wilco.dijkstra@arm.com>
9581 * config/aarch64/aarch64.c (aarch64_expand_epiloue): Add barriers before
9584 2014-11-04 Bernd Schmidt <bernds@codesourcery.com>
9586 * combine.c (combine_simplify_rtx): In STORE_FLAG_VALUE == -1 case,
9587 also verify that mode is equal to the mode of op0.
9589 * bb-reorder.c (get_uncond_jump_length): Avoid using delete_insn,
9590 emit into a sequence instead.
9592 2014-11-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9594 * config/sh/sh.c (emit_fpu_switch): Drop unused automatic variable.
9596 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
9598 config/arm/neon.md (reduc_smin_<mode> *2): Rename to...
9599 (reduc_smin_scal_<mode> *2): ...this; extract scalar result.
9600 (reduc_smax_<mode> *2): Rename to...
9601 (reduc_smax_scal_<mode> *2): ...this; extract scalar result.
9602 (reduc_umin_<mode> *2): Rename to...
9603 (reduc_umin_scal_<mode> *2): ...this; extract scalar result.
9604 (reduc_umax_<mode> *2): Rename to...
9605 (reduc_umax_scal_<mode> *2): ...this; extract scalar result.
9607 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
9609 config/arm/neon.md (reduc_plus_*): Rename to...
9610 (reduc_plus_scal_*): ...this; reduce to temp and extract scalar result.
9612 2014-11-04 Michael Collison <michael.collison@linaro.org>
9614 * config/aarch64/iterators.md (lconst_atomic): New mode attribute
9615 to support constraints for CONST_INT in atomic operations.
9616 * config/aarch64/atomics.md
9617 (atomic_<atomic_optab><mode>): Use lconst_atomic constraint.
9618 (atomic_nand<mode>): Likewise.
9619 (atomic_fetch_<atomic_optab><mode>): Likewise.
9620 (atomic_fetch_nand<mode>): Likewise.
9621 (atomic_<atomic_optab>_fetch<mode>): Likewise.
9622 (atomic_nand_fetch<mode>): Likewise.
9624 2014-11-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9626 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in definition
9627 of __ARM_FEATURE_IDIV.
9629 2014-11-04 Marek Polacek <polacek@redhat.com>
9631 * ubsan.c (instrument_object_size): Optimize [x & CST] array accesses.
9633 2014-11-03 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9635 * config/rx/rx.c (rx_handle_func_attribute): Mark unused argument.
9637 2014-11-04 Zhenqiang Chen <zhenqiang.chen@arm.com>
9640 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
9641 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
9642 Allow CC mode if HAVE_cbranchcc4.
9644 2014-11-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
9646 * godump.c (go_format_type): Rewrite RECORD_TYPE nad UNION_TYPE support
9647 with -fdump-go-spec. Anonymous substructures are now flattened and
9648 replaced by their fields (record) or the first named, non-bitfield
9651 2014-11-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
9653 * input.c (expand_location_to_spelling_point): Fix typo.
9654 (expansion_point_location_if_in_system_header): Fix comment.
9656 2014-11-03 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9658 * config/avr/gen-avr-mmcu-specs.c: Remove unnecessary format specifier.
9660 2014-11-03 Richard Biener <rguenther@suse.de>
9662 * tree-eh.c (operation_could_trap_helper_p): Handle conversions
9663 like ordinary operations.
9664 * gimplify.c (gimplify_conversion): Gimplify CONVERT_EXPR
9667 2014-11-03 Joseph Myers <joseph@codesourcery.com>
9669 * configure.ac (TARGET_GLIBC_MAJOR, TARGET_GLIBC_MINOR): Define
9671 * configure, config.h.in: Regenerate.
9672 * config/rs6000/linux.h [TARGET_GLIBC_MAJOR > 2 ||
9673 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
9674 (RS6000_GLIBC_ATOMIC_FENV): New macro.
9675 * config/rs6000/linux64.h [TARGET_GLIBC_MAJOR > 2 ||
9676 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
9677 (RS6000_GLIBC_ATOMIC_FENV): New macro.
9678 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl)
9679 (atomic_update_decl): New static variables.
9680 (rs6000_atomic_assign_expand_fenv) [RS6000_GLIBC_ATOMIC_FENV]:
9681 Generate calls to __atomic_feholdexcept, __atomic_feclearexcept
9682 and __atomic_feupdateenv for soft-float and no-FPRs.
9684 2014-11-03 Richard Biener <rguenther@suse.de>
9686 * match.pd: Add two abs patterns. Announce tree_expr_nonnegative_p.
9687 Also drop bogus FLOAT_EXPR and FIX_TRUNC_EXPR.
9688 * fold-const.c (fold_unary_loc): Remove them here.
9689 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
9690 * gimple-fold.c (fold_gimple_assign): Remove now obsolete
9691 GIMPLE_UNARY_RHS case.
9692 (gimple_fold_stmt_to_constant_1): Likewise.
9693 (replace_stmt_with_simplification): Fix inverted comparison.
9695 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
9697 PR tree-optimization/60770
9698 * tree-into-ssa.c (rewrite_update_stmt): Return whether the
9699 statement should be removed.
9700 (maybe_register_def): Likewise. Replace clobbers with default
9702 (rewrite_dom_walker::before_dom_children): Remove statement if
9703 rewrite_update_stmt says so.
9704 * tree-ssa-live.c: Include tree-ssa.h.
9705 (set_var_live_on_entry): Do not mark undefined variables as live.
9706 (verify_live_on_entry): Do not check undefined variables.
9707 * tree-ssa.h (ssa_undefined_value_p): New parameter for the case
9708 of partially undefined variables.
9709 * tree-ssa.c (ssa_undefined_value_p): Likewise.
9710 (execute_update_addresses_taken): Do not drop clobbers.
9712 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
9714 PR tree-optimization/63666
9715 * fold-const.c: Include "optabs.h".
9716 (fold_ternary_loc) <VEC_PERM_EXPR>: Avoid canonicalizing a
9717 can_vec_perm_p permutation to one that is not.
9719 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
9721 * ifcvt.c (noce_try_store_flag_mask): Check rtx cost.
9723 2014-11-03 Andrew Pinski <apinski@cavium.com>
9725 * config/mips/mips-cpus.def (octeon3): New cpu.
9726 * config/mips/mips.c (mips_rtx_cost_data): Add octeon3.
9727 (mips_print_operand <case 'T', case 't'>): Fix a bug as the mode
9728 of the comparison no longer matches mode of the operands.
9729 (mips_issue_rate): Handle PROCESSOR_OCTEON3.
9730 * config/mips/mips.h (TARGET_OCTEON): Add Octeon3.
9731 (TARGET_OCTEON2): Likewise.
9732 (TUNE_OCTEON): Add Octeon3.
9733 * config/mips/mips.md (processor): Add octeon3.
9734 * config/mips/octeon.md (octeon_fpu): New automaton and cpu_unit.
9735 (octeon_arith): Add octeon3.
9736 (octeon_condmove): Remove.
9737 (octeon_condmove_o1): New reservation.
9738 (octeon_condmove_o2): New reservation.
9739 (octeon_condmove_o3_int_on_cc): New reservation.
9740 (octeon_load_o2): Add octeon3.
9741 (octeon_cop_o2): Likewise.
9742 (octeon_store): Likewise.
9743 (octeon_brj_o2): Likewise.
9744 (octeon_imul3_o2): Likewise.
9745 (octeon_imul_o2): Likewise.
9746 (octeon_mfhilo_o2): Likewise.
9747 (octeon_imadd_o2): Likewise.
9748 (octeon_idiv_o2_si): Likewise.
9749 (octeon_idiv_o2_di): Likewise.
9750 (octeon_fpu): Add to the automaton.
9751 (octeon_fpu): New cpu unit.
9752 (octeon_condmove_o2): Check for non floating point modes.
9753 (octeon_load_o2): Add prefetchx.
9754 (octeon_cop_o2): Don't check for octeon3.
9755 (octeon3_faddsubcvt): New reservation.
9756 (octeon3_fmul): Likewise.
9757 (octeon3_fmadd): Likewise.
9758 (octeon3_div_sf): Likewise.
9759 (octeon3_div_df): Likewise.
9760 (octeon3_sqrt_sf): Likewise.
9761 (octeon3_sqrt_df): Likewise.
9762 (octeon3_rsqrt_sf): Likewise.
9763 (octeon3_rsqrt_df): Likewise.
9764 (octeon3_fabsnegmov): Likewise.
9765 (octeon_fcond): Likewise.
9766 (octeon_fcondmov): Likewise.
9767 (octeon_fpmtc1): Likewise.
9768 (octeon_fpmfc1): Likewise.
9769 (octeon_fpload): Likewise.
9770 (octeon_fpstore): Likewise.
9771 * config/mips/mips-tables.opt: Regenerate.
9772 * doc/invoke.texi (-march=@var{arch}): Add octeon3.
9774 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
9776 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
9777 Allow CC mode if HAVE_cbranchcc4.
9779 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9781 * config/arc/arc.c (write_ext_corereg_1): Delete.
9782 (arc_write_ext_corereg): Use FOR_EACH_SUBRTX.
9784 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9786 * config/arc/arc.c (arc600_corereg_hazard_1): Delete.
9787 (arc600_corereg_hazard): Use FOR_EACH_SUBRTX.
9789 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9791 * config/arc/arc.c (arc_rewrite_small_data_p): Constify argument.
9792 (small_data_pattern_1): Delete.
9793 (small_data_pattern): Use FOR_EACH_SUBRTX.
9795 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9797 * config/arc/arc.c: Include rtl-iter.h.
9798 (arc_rewrite_small_data_1): Delete.
9799 (arc_rewrite_small_data): Use FOR_EACH_SUBRTX_PTR.
9801 2014-11-02 Michael Collison <michael.collison@linaro.org>
9803 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update
9804 to support vector modes.
9805 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
9807 2014-11-01 Andrew MacLeod <amacleod@redhat,com>
9809 * optabs.h: Flatten insn-codes.h to source files. Move some prototypes
9810 and structs to genopinit.c. Adjust protyoptypes to match optabs.c.
9811 * genopinit.c (main): Emit prototypes and structs into insn-opinit.h.
9812 * optabs.c: (gen_move_insn): Move to expr.c.
9813 * expr.h: Move protypes and enums to optabs.h.
9814 * expr.c: (gen_move_insn): Relocate from optabs.c.
9815 * genemit.c (main): Include insn-codes.h.
9816 * gengtype.c (open_base_files): Include insn-codes.h.
9817 * asan.c: Include insn-codes.h.
9818 * bb-reorder.c: Ditto.
9819 * builtins.c: Ditto.
9821 * cfgexpand.c: Ditto.
9822 * cilk-common.c: Ditto.
9829 * function.c: Ditto.
9831 * internal-fn.c: Ditto.
9832 * loop-unroll.c: Ditto.
9834 * modulo-sched.c: Ditto.
9836 * postreload.c: Ditto.
9840 * shrink-wrap.c: Ditto.
9841 * simplify-rtx.c: Ditto.
9843 * target-globals.c: Ditto.
9844 * targhooks.c: Ditto.
9846 * tree-if-conv.c: Ditto.
9847 * tree-ssa-forwprop.c: Ditto.
9848 * tree-ssa-loop-prefetch.c: Ditto.
9849 * tree-ssa-math-opts.c: Ditto.
9850 * tree-ssa-phiopt.c: Ditto.
9851 * tree-ssa-reassoc.c: Ditto.
9852 * tree-switch-conversion.c: Ditto.
9853 * tree-vect-data-refs.c: Ditto.
9854 * tree-vect-generic.c: Ditto.
9855 * tree-vect-loop.c: Ditto.
9856 * tree-vect-patterns.c: Ditto.
9857 * tree-vect-slp.c: Ditto.
9858 * tree-vect-stmts.c: Ditto.
9859 * tree-vrp.c: Ditto.
9860 * value-prof.c: Ditto.
9861 * config/aarch64/aarch64-builtins.c: Ditto.
9862 * config/alpha/alpha.c: Ditto.
9863 * config/arm/arm.c: Ditto.
9864 * config/cris/cris.c: Ditto.
9865 * config/epiphany/epiphany.c: Ditto.
9866 * config/frv/frv.c: Ditto.
9867 * config/h8300/h8300.c: Ditto.
9868 * config/ia64/ia64.c: Ditto.
9869 * config/iq2000/iq2000.c: Ditto.
9870 * config/m32c/m32c.c: Ditto.
9871 * config/mep/mep.c: Ditto.
9872 * config/microblaze/microblaze.c: Ditto.
9873 * config/mips/mips.c: Ditto.
9874 * config/mn10300/mn10300.c: Ditto.
9875 * config/moxie/moxie.c: Ditto.
9876 * config/msp430/msp430.c: Ditto.
9877 * config/nios2/nios2.c: Ditto.
9878 * config/pa/pa.c: Ditto.
9879 * config/rl78/rl78.c: Ditto.
9880 * config/rs6000/rs6000.c: Ditto.
9881 * config/rx/rx.c: Ditto.
9882 * config/s390/s390.c: Ditto.
9883 * config/sh/sh.c: Ditto.
9884 * config/sh/sh_treg_combine.cc: Ditto.
9885 * config/spu/spu.c: Ditto.
9886 * config/stormy16/stormy16.c: Ditto.
9887 * config/tilegx/mul-tables.c: Ditto.
9888 * config/tilegx/tilegx.c: Ditto.
9889 * config/tilepro/mul-tables.c: Ditto.
9890 * config/tilepro/tilepro.c: Ditto.
9891 * config/vax/vax.c: Ditto.
9893 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
9895 * doc/tm.texi.in (MOVE_BY_PIECES_P): Remove.
9896 (CLEAR_BY_PIECES_P): Likewise.
9897 (SET_BY_PIECES_P): Likewise.
9898 (STORE_BY_PIECES_P): Likewise.
9899 * doc/tm.texi: Regenerate.
9900 * system.h: Poison MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P,
9901 SET_BY_PIECES_P, STORE_BY_PIECES_P.
9902 * expr.c (MOVE_BY_PIECES_P): Remove.
9903 (CLEAR_BY_PIECES_P): Likewise.
9904 (SET_BY_PIECES_P): Likewise.
9905 (STORE_BY_PIECES_P): Likewise.
9906 (can_move_by_pieces): Rewrite in terms of
9907 targetm.use_by_pieces_infrastructure_p.
9908 (emit_block_move_hints): Likewise.
9909 (can_store_by_pieces): Likewise.
9910 (store_by_pieces): Likewise.
9911 (clear_storage_hints): Likewise.
9912 (emit_push_insn): Likewise.
9913 (expand_constructor): Likewise.
9915 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
9917 * config/aarch64/aarch64.c
9918 (aarch64_use_by_pieces_infrastructre_p): New.
9919 (TARGET_USE_BY_PIECES_INFRASTRUCTURE): Likewise.
9920 * config/aarch64/aarch64.h (STORE_BY_PIECES_P): Delete.
9922 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
9924 * config/mips/mips.h (MOVE_BY_PIECES_P): Remove.
9925 (STORE_BY_PIECES_P): Likewise.
9926 * config/mips/mips.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
9927 (mips_move_by_pieces_p): Rename to...
9928 (mips_use_by_pieces_infrastructure_p): ...this, use new hook
9929 parameters, use the default hook implementation as a
9932 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
9934 * config/sh/sh.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
9935 (sh_use_by_pieces_infrastructure_p): Likewise.
9936 * config/sh/sh.h (MOVE_BY_PIECES_P): Remove.
9937 (STORE_BY_PIECES_P): Likewise.
9938 (SET_BY_PIECES_P): Likewise.
9940 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
9942 * config/arc/arc.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
9943 (arc_use_by_pieces_infrastructure_p): Likewise.
9944 * confir/arc/arc.h (MOVE_BY_PIECES_P): Delete.
9945 (CAN_MOVE_BY_PIECES): Likewise.
9947 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
9949 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p): New.
9950 (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Likewise.
9951 * config/s390/s390.h (MOVE_BY_PIECES_P): Remove.
9952 (CLEAR_BY_PIECES): Likewise.
9953 (SET_BY_PIECES): Likewise.
9954 (STORE_BY_PIECES): Likewise.
9956 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
9958 * target.def (use_by_pieces_infrastructure_p): New.
9959 * doc/tm.texi.in (MOVE_BY_PIECES_P): Describe that this macro
9961 (STORE_BY_PIECES_P): Likewise.
9962 (CLEAR_BY_PIECES_P): Likewise.
9963 (SET_BY_PIECES_P): Likewise.
9964 (TARGET_MOVE_BY_PIECES_PROFITABLE_P): Add hook.
9965 * doc/tm.texi: Regenerate.
9966 * expr.c (MOVE_BY_PIECES_P): Rewrite in terms of
9967 TARGET_USE_BY_PIECES_INFRASTRUCTURE_P.
9968 (STORE_BY_PIECES_P): Likewise.
9969 (CLEAR_BY_PIECES_P): Likewise.
9970 (SET_BY_PIECES_P): Likewise.
9971 (STORE_MAX_PIECES): Move to...
9972 * defaults.h (STORE_MAX_PIECES): ...here.
9973 * targhooks.c (get_move_ratio): New.
9974 (default_use_by_pieces_infrastructure_p): Likewise.
9975 * targhooks.h (default_use_by_pieces_infrastructure_p): New.
9976 * target.h (by_pieces_operation): New.
9978 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
9981 * config/i386/i386.c (ix86_expand_args_builtin): Remove extra
9982 assignment to 'nargs' variable.
9984 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
9987 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
9988 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
9989 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
9990 be reloaded through memory.
9994 2014-10-31 Jakub Jelinek <jakub@redhat.com>
9996 PR rtl-optimization/63659
9997 * ree.c (update_reg_equal_equiv_notes): New function.
9998 (combine_set_extension, transform_ifelse): Use it.
10000 2014-10-31 Jeff Law <law@redhat.com>
10002 * doc/contrib.texi: Add contribution notes for Balaji Iyer (Cilk+)
10003 and Jonny Grant (collect2).
10005 2014-10-31 Richard Biener <rguenther@suse.de>
10007 * builtins.c (fold_builtin_atomic_always_lock_free): Use
10008 CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where
10010 (fold_builtin_expect): Likewise.
10011 (integer_valued_real_p): Likewise.
10012 * cfgexpand.c (expand_debug_expr): Likewise.
10013 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Likewise.
10014 (find_foldable_builtin_expect): Likewise.
10015 * trans-mem.c (thread_private_new_memory): Likewise.
10016 * tree-affine.c (aff_combination_expand): Likewise.
10017 * tree-data-ref.c (initialize_matrix_A): Likewise.
10018 * tree-inline.c (copy_bb): Likewise.
10019 * tree-pretty-print.c (dump_function_name): Likewise.
10020 (print_call_name): Likewise.
10021 * tree-ssa-forwprop.c (constant_pointer_difference): Likewise.
10022 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise.
10023 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
10024 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Likewise.
10025 (vect_recog_widen_mult_pattern): Likewise.
10026 (vect_operation_fits_smaller_type): Likewise.
10027 * tree-vrp.c (find_assert_locations_1): Likewise.
10028 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
10029 converts to NOP_EXPR.
10031 2014-10-31 Richard Biener <rguenther@suse.de>
10033 * genmatch.c (expr::gen_transform): Use NOP_EXPRs instead of
10034 CONVERT_EXPRs in generated code.
10035 (dt_simplify::gen): Likewise.
10037 2014-10-31 Evgeny Stupachenko <evstupac@gmail.com>
10040 * config/i386/i386.c (ix86_init_pic_reg): Emit SET_GOT to
10041 REAL_PIC_OFFSET_TABLE_REGNUM for mcount profiling.
10042 (ix86_save_reg): Save REAL_PIC_OFFSET_TABLE_REGNUM when profiling
10043 using mcount in 32bit PIC mode.
10044 (ix86_elim_entry_set_got): New.
10045 (ix86_expand_prologue): For the mcount profiling emit new SET_GOT
10046 in PROLOGUE, delete initial if possible.
10048 2014-10-31 Eric Botcazou <ebotcazou@adacore.com>
10050 * ipa-inline.c (want_inline_small_function_p): Fix typo and formatting.
10051 (want_inline_function_to_all_callers_p): Fix formatting and simplify.
10053 2014-10-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
10055 PR tree-optimization/63259
10056 * tree-ssa-math-opts.c (bswap_replace): Replace expression by a
10057 rotation left if it is a 16 bit byte swap.
10058 (pass_optimize_bswap::execute): Also consider bswap in LROTATE_EXPR
10059 and RROTATE_EXPR statements if it is a byte rotation.
10061 2014-10-31 Jakub Jelinek <jakub@redhat.com>
10064 * tree-vrp.c (simplify_internal_call_using_ranges): For subcode ==
10065 MINUS_EXPR, check overflow on vr0.min - vr1.max and vr0.max - vr1.min
10066 instead of vr0.min - vr1.min and vr0.max - vr1.max.
10068 2014-10-31 Max Ostapenko <m.ostapenko@partner.samsung.com>
10071 * ipa-icf.c (sem_function::~sem_function): Change free to delete
10072 to avoid alloc-dealloc mismatch with new, called in
10073 ipa_icf::sem_function::init.
10075 2014-10-30 Felix Yang <felix.yang@huawei.com>
10077 * config/xtensa/xtensa.h (TARGET_LOOPS): New Macro.
10078 * config/xtensa/xtensa.c: Include dumpfile.h and hw-doloop.h.
10079 (xtensa_reorg, xtensa_reorg_loops): New.
10080 (xtensa_can_use_doloop_p, xtensa_invalid_within_doloop): New.
10081 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg): New.
10082 (xtensa_emit_loop_end): Emit the zero-overhead loop end label.
10083 (xtensa_doloop_hooks): Define.
10084 * config/xtensa/xtensa.md (doloop_end, loop_end): New
10085 (zero_cost_loop_start): Rewritten.
10086 (zero_cost_loop_end): Likewise.
10088 2014-10-30 Steve Ellcey <sellcey@imgtec.com>
10090 * config.gcc (mips*-*-linux*): Combine 32 and 64 bit cases.
10092 2014-10-30 Richard Biener <rguenther@suse.de>
10094 * genmatch.c: Remove <map>, <utility> and <string> includes.
10095 Include ggc.h and hash-map.h.
10096 (ggc_internal_cleared_alloc): Provide stub definition.
10097 (ggc_free): Likewise.
10098 (struct capture_id_map_hasher): New traits for hash_map.
10099 (cid_map_t): New typedef.
10100 (everywhere else): Replace std::map use with cid_map_t.
10101 * hash-map.h (hash_map::elements): New member function.
10102 * Makefile.in (build/genmatch.o): Add $(HASH_TABLE_H),
10103 hash-map.h and $(GGC_H) as dependency.
10105 2014-10-30 Richard Biener <rguenther@suse.de>
10107 * genmatch.c (capture_info::walk_c_expr): Ignore capture
10108 uses inside TREE_TYPE ().
10109 * gimple-ssa-strength-reduction.c (stmt_cost): Use CASE_CONVERT.
10110 (find_candidates_dom_walker::before_dom_children): Likewise.
10111 (replace_mult_candidate): Use CONVERT_EXPR_CODE_P.
10112 (replace_profitable_candidates): Likewise.
10113 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
10114 CONVERT_EXPR_CODE_P to CONVERT_EXPR.
10115 * convert.c (convert_to_integer): Use CASE_CONVERT.
10117 2014-10-30 Richard Biener <rguenther@suse.de>
10119 * match.pd: Implement more patterns that simplify to a single value.
10120 * fold-const.c (fold_binary_loc): Remove them here.
10121 * tree-ssa-forwprop.c (simplify_bitwise_binary): Likewise.
10122 (fwprop_ssa_val): Remove restriction on single uses.
10124 2014-10-30 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10126 * config/avr/driver-avr.c (avr_set_current_device): Remove.
10128 2014-10-30 Martin Liska <mliska@suse.cz>
10132 * ipa-icf-gimple.c (func_checker::parse_labels): Missing comment added.
10133 (func_checker::compare_gimple_label): Simlified comparison introduced.
10134 * ipa-icf-gimple.h: Missing comment added.
10136 2014-10-30 Jeff Law <law@redhat.com>
10138 * config/pa/pa-protos.h (pa_output_arg_descriptor): Strengthen
10139 argument from rtx to rtx_insn *.
10140 (compute_movmem_length, compute_clrmem_length): Likewise.
10141 (copy_fp_args, length_fp_args): Likewise.
10142 * config/pa/pa.c (legitimize_pic_address): Promote local variable
10143 "insn" from rtx to rtx_insn *.
10144 (legitimize_tls_address, pa_emit_move_sequence): Likewise.
10145 (pa_output_block_move, store_reg, store_reg_modify): Likewise.
10146 (set_reg_plus_d, pa_expand_prologue, hppa_profile_hook): Likewise.
10147 (branch_to_delay_slot_p, branch_needs_nop_p, use_skip_p): Likewise.
10148 (pa_output_arg_descriptor): Strengthen argument to an rtx_insn *.
10149 (compute_movmem_length, compute_clrmem_length): Likewise.
10150 (copy_fp-args, length_fp_args): Likewise.
10152 2014-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10154 * config/arm/arm.h (MACHMODE): Treat machine_mode as a
10156 (CUMULATIVE_ARGS): Guard against target includes.
10157 (machine_function): Likewise.
10159 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10161 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Restore
10162 recog state after aarch64_prev_real_insn call.
10164 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10166 * config/aarch64/aarch64.h (MACHMODE): Add 'enum' to machine_mode.
10168 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10170 * config/arm/arm.h (MACHMODE): Add 'enum' to machine_mode.
10171 (struct machine_function): Gate definition on
10172 !defined(USED_FOR_TARGET).
10174 2014-10-29 DJ Delorie <dj@redhat.com>
10176 * expmed.c (strict_volatile_bitfield_p): Fix off-by-one error.
10178 2014-10-29 Martin Liska <mliska@suse.cz>
10181 * cgraphunit.c (cgraph_node::expand_thunk): Only VAR_DECLs are put
10182 to local declarations.
10183 * function.c (add_local_decl): Implementation moved from header
10184 file, assert introduced for tree type.
10185 * function.h: Likewise.
10187 2014-10-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
10189 * godump.c (go_format_type): Represent "float _Complex" and
10190 "double _Complex" as complex64 or complex128 in Go, as appropriate.
10192 2014-10-29 Richard Biener <rguenther@suse.de>
10194 * match.pd: Implement a first set of conversion patterns.
10195 * fold-const.c (fold_unary_loc): Remove them here.
10196 * tree-ssa-forwprop.c (simplify_vce): Remove.
10197 (pass_forwprop::execute): Do not call simplify_vce.
10199 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10201 * addresses.h, alias.c, asan.c, auto-inc-dec.c, bt-load.c, builtins.c,
10202 builtins.h, caller-save.c, calls.c, calls.h, cfgexpand.c, cfgloop.h,
10203 cfgrtl.c, combine.c, compare-elim.c, config/aarch64/aarch64-builtins.c,
10204 config/aarch64/aarch64-protos.h, config/aarch64/aarch64-simd.md,
10205 config/aarch64/aarch64.c, config/aarch64/aarch64.h,
10206 config/aarch64/aarch64.md, config/alpha/alpha-protos.h,
10207 config/alpha/alpha.c, config/arc/arc-protos.h, config/arc/arc.c,
10208 config/arc/arc.h, config/arc/predicates.md,
10209 config/arm/aarch-common-protos.h, config/arm/aarch-common.c,
10210 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
10211 config/arm/arm.md, config/arm/neon.md, config/arm/thumb2.md,
10212 config/avr/avr-log.c, config/avr/avr-protos.h, config/avr/avr.c,
10213 config/avr/avr.md, config/bfin/bfin-protos.h, config/bfin/bfin.c,
10214 config/c6x/c6x-protos.h, config/c6x/c6x.c, config/c6x/c6x.md,
10215 config/cr16/cr16-protos.h, config/cr16/cr16.c,
10216 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.md,
10217 config/darwin-protos.h, config/darwin.c,
10218 config/epiphany/epiphany-protos.h, config/epiphany/epiphany.c,
10219 config/epiphany/epiphany.md, config/fr30/fr30.c,
10220 config/frv/frv-protos.h, config/frv/frv.c, config/frv/predicates.md,
10221 config/h8300/h8300-protos.h, config/h8300/h8300.c,
10222 config/i386/i386-builtin-types.awk, config/i386/i386-protos.h,
10223 config/i386/i386.c, config/i386/i386.md, config/i386/predicates.md,
10224 config/i386/sse.md, config/i386/sync.md, config/ia64/ia64-protos.h,
10225 config/ia64/ia64.c, config/iq2000/iq2000-protos.h,
10226 config/iq2000/iq2000.c, config/iq2000/iq2000.md,
10227 config/lm32/lm32-protos.h, config/lm32/lm32.c,
10228 config/m32c/m32c-protos.h, config/m32c/m32c.c,
10229 config/m32r/m32r-protos.h, config/m32r/m32r.c,
10230 config/m68k/m68k-protos.h, config/m68k/m68k.c,
10231 config/mcore/mcore-protos.h, config/mcore/mcore.c,
10232 config/mcore/mcore.md, config/mep/mep-protos.h, config/mep/mep.c,
10233 config/microblaze/microblaze-protos.h, config/microblaze/microblaze.c,
10234 config/mips/mips-protos.h, config/mips/mips.c,
10235 config/mmix/mmix-protos.h, config/mmix/mmix.c,
10236 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
10237 config/moxie/moxie.c, config/msp430/msp430-protos.h,
10238 config/msp430/msp430.c, config/nds32/nds32-cost.c,
10239 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
10240 config/nds32/nds32-protos.h, config/nds32/nds32.c,
10241 config/nios2/nios2-protos.h, config/nios2/nios2.c,
10242 config/pa/pa-protos.h, config/pa/pa.c, config/pdp11/pdp11-protos.h,
10243 config/pdp11/pdp11.c, config/rl78/rl78-protos.h, config/rl78/rl78.c,
10244 config/rs6000/altivec.md, config/rs6000/rs6000-c.c,
10245 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10246 config/rs6000/rs6000.h, config/rx/rx-protos.h, config/rx/rx.c,
10247 config/s390/predicates.md, config/s390/s390-protos.h,
10248 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
10249 config/sh/predicates.md, config/sh/sh-protos.h, config/sh/sh.c,
10250 config/sh/sh.md, config/sparc/predicates.md,
10251 config/sparc/sparc-protos.h, config/sparc/sparc.c,
10252 config/sparc/sparc.md, config/spu/spu-protos.h, config/spu/spu.c,
10253 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10254 config/tilegx/tilegx-protos.h, config/tilegx/tilegx.c,
10255 config/tilegx/tilegx.md, config/tilepro/tilepro-protos.h,
10256 config/tilepro/tilepro.c, config/v850/v850-protos.h,
10257 config/v850/v850.c, config/v850/v850.md, config/vax/vax-protos.h,
10258 config/vax/vax.c, config/vms/vms-c.c, config/xtensa/xtensa-protos.h,
10259 config/xtensa/xtensa.c, coverage.c, cprop.c, cse.c, cselib.c, cselib.h,
10260 dbxout.c, ddg.c, df-problems.c, dfp.c, dfp.h, doc/md.texi,
10261 doc/rtl.texi, doc/tm.texi, doc/tm.texi.in, dojump.c, dse.c,
10262 dwarf2cfi.c, dwarf2out.c, dwarf2out.h, emit-rtl.c, emit-rtl.h,
10263 except.c, explow.c, expmed.c, expmed.h, expr.c, expr.h, final.c,
10264 fixed-value.c, fixed-value.h, fold-const.c, function.c, function.h,
10265 fwprop.c, gcse.c, gengenrtl.c, genmodes.c, genopinit.c, genoutput.c,
10266 genpreds.c, genrecog.c, gensupport.c, gimple-ssa-strength-reduction.c,
10267 graphite-clast-to-gimple.c, haifa-sched.c, hooks.c, hooks.h, ifcvt.c,
10268 internal-fn.c, ira-build.c, ira-color.c, ira-conflicts.c, ira-costs.c,
10269 ira-emit.c, ira-int.h, ira-lives.c, ira.c, ira.h, jump.c, langhooks.h,
10270 libfuncs.h, lists.c, loop-doloop.c, loop-invariant.c, loop-iv.c,
10271 loop-unroll.c, lower-subreg.c, lower-subreg.h, lra-assigns.c,
10272 lra-constraints.c, lra-eliminations.c, lra-int.h, lra-lives.c,
10273 lra-spills.c, lra.c, lra.h, machmode.h, omp-low.c, optabs.c, optabs.h,
10274 output.h, postreload.c, print-tree.c, read-rtl.c, real.c, real.h,
10275 recog.c, recog.h, ree.c, reg-stack.c, regcprop.c, reginfo.c,
10276 regrename.c, regs.h, reload.c, reload.h, reload1.c, rtl.c, rtl.h,
10277 rtlanal.c, rtlhash.c, rtlhooks-def.h, rtlhooks.c, sched-deps.c,
10278 sel-sched-dump.c, sel-sched-ir.c, sel-sched-ir.h, sel-sched.c,
10279 simplify-rtx.c, stmt.c, stor-layout.c, stor-layout.h, target.def,
10280 targhooks.c, targhooks.h, tree-affine.c, tree-call-cdce.c,
10281 tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-if-conv.c,
10282 tree-inline.c, tree-outof-ssa.c, tree-scalar-evolution.c,
10283 tree-ssa-address.c, tree-ssa-ccp.c, tree-ssa-loop-ivopts.c,
10284 tree-ssa-loop-ivopts.h, tree-ssa-loop-manip.c,
10285 tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c, tree-ssa-reassoc.c,
10286 tree-ssa-sccvn.c, tree-streamer-in.c, tree-switch-conversion.c,
10287 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop.c,
10288 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
10289 tree-vrp.c, tree.c, tree.h, tsan.c, ubsan.c, valtrack.c,
10290 var-tracking.c, varasm.c: Remove redundant enum from
10292 * gengtype.c (main): Treat machine_mode as a scalar typedef.
10293 * genmodes.c (emit_insn_modes_h): Hide inline functions if
10296 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10298 PR rtl-optimization/63340 (part 2)
10299 * rtl.h (invalid_mode_change_p): Delete.
10300 (valid_mode_changes_for_regno): New function.
10301 * reginfo.c (invalid_mode_change_p): Delete.
10302 (valid_mode_changes_for_regno): New function.
10303 * ira-costs.c (setup_regno_cost_classes_by_aclass): Restrict the
10304 classes to registers that are allowed by valid_mode_changes_for_regno.
10305 (setup_regno_cost_classes_by_mode): Likewise.
10306 (print_allocno_costs): Remove invalid_mode_change_p test.
10307 (print_pseudo_costs, find_costs_and_classes): Likewise.
10309 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10311 PR rtl-optimization/63340 (part 1)
10312 * ira-costs.c (all_cost_classes): New variable.
10313 (complete_cost_classes): New function, split out from...
10314 (setup_cost_classes): ...here.
10315 (initiate_regno_cost_classes): Set up all_cost_classes.
10316 (restrict_cost_classes): New function.
10317 (setup_regno_cost_classes_by_aclass): Restrict the cost classes to
10318 registers that are valid for the register's mode.
10319 (setup_regno_cost_classes_by_mode): Model the mode cache as a
10320 restriction of all_cost_classes to a particular mode.
10321 (print_allocno_costs): Remove contains_reg_of_mode check.
10322 (print_pseudo_costs, find_costs_and_classes): Likewise.
10324 2014-10-29 Richard Biener <rguenther@suse.de>
10326 PR tree-optimization/63666
10327 * tree-vect-slp.c (vect_get_mask_element): Properly handle
10328 accessing out-of-bound elements.
10330 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
10331 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10332 Anna Tikhonova <anna.tikhonova@intel.com>
10333 Ilya Tocar <ilya.tocar@intel.com>
10334 Andrey Turetskiy <andrey.turetskiy@intel.com>
10335 Ilya Verbin <ilya.verbin@intel.com>
10336 Kirill Yukhin <kirill.yukhin@intel.com>
10337 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10339 * config/i386/i386.md
10340 (movhi_internal): Always detect maskmov.
10341 (movqi_internal): Fix target check.
10343 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
10344 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10345 Anna Tikhonova <anna.tikhonova@intel.com>
10346 Ilya Tocar <ilya.tocar@intel.com>
10347 Andrey Turetskiy <andrey.turetskiy@intel.com>
10348 Ilya Verbin <ilya.verbin@intel.com>
10349 Kirill Yukhin <kirill.yukhin@intel.com>
10350 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10352 * config/i386/avx512bwintrin.h: Add new intrinsics.
10353 * config/i386/avx512vlbwintrin.h: Ditto.
10354 * config/i386/avx512vlintrin.h: Ditto.
10356 2014-10-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
10358 * godump.c (precision_to_units): New helper function.
10359 (go_append_artificial_name): Ditto.
10360 (go_append_decl_name): Ditto.
10361 (go_append_bitfield): Ditto.
10362 (go_get_uinttype_for_precision): Ditto.
10363 (go_append_padding): Ditto.
10364 (go_force_record_alignment): Ditto.
10365 (go_format_type): Represent unions with an array of uints of the size
10366 of the alignment in go. This fixes the 'random' size of the union's
10367 representation using just the first field.
10368 (go_format_type): Add argument that indicates whether a record is
10369 nested (used for generation of artificial go names).
10370 (go_output_fndecl): Adapt to new go_format_type signature.
10371 (go_output_typedef): Ditto.
10372 (go_output_var): Ditto.
10373 (go_output_var): Prefer to output type as alias (typedef).
10374 (go_format_type): Bitfields in records are simulated as arrays of bytes
10377 * godump.c (go_format_type): Fix handling of arrays with zero elements.
10379 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
10381 * cgraph.h: Flatten. Remove all include files.
10382 (symbol_table::initialize): Move to cgraph.c.
10383 * cgraph.c: Adjust include files.
10384 (symbol_table::initialize): Relocate from cgraph.h.
10385 * gengtype.c (open_base_files): Adjust include files.
10386 * gccplugin.h: Add hash-map.h, is-a.h, plugin-api.h, and ipa-ref.h to
10388 * ipa-inline.h: Remove all include files.
10389 * ipa-prop.h: Ditto.
10390 * ipa-reference.h: Ditto.
10391 * ipa-utils.h: Ditto:
10392 * lto-streamer.h: Remove cgraph.h from include list.
10393 * asan.c: Adjust include files.
10394 * auto-profile.c: Ditto.
10395 * bb-reorder.c: Ditto.
10397 * cfgexpand.c: Ditto.
10398 * cgraphbuild.c: Ditto.
10399 * cgraphclones.c: Ditto.
10400 * cgraphunit.c: Ditto.
10401 * combine.c: Ditto.
10402 * coverage.c: Ditto.
10403 * data-streamer.c: Ditto.
10404 * data-streamer-in.c: Ditto.
10405 * data-streamer-out.c: Ditto.
10407 * dwarf2out.c: Ditto.
10411 * fold-const.c: Ditto.
10412 * ggc-page.c: Ditto.
10413 * gimple-fold.c: Ditto.
10414 * gimple-iterator.c: Ditto.
10415 * gimple-pretty-print.c: Ditto.
10416 * gimple-streamer-in.c: Ditto.
10417 * gimple-streamer-out.c: Ditto.
10418 * gimplify.c: Ditto.
10420 * ipa-comdats.c: Ditto.
10422 * ipa-devirt.c: Ditto.
10423 * ipa-icf.c: Ditto.
10424 * ipa-icf-gimple.c: Ditto.
10425 * ipa-inline-analysis.c: Ditto.
10426 * ipa-inline.c: Ditto.
10427 * ipa-inline-transform.c: Ditto.
10428 * ipa-polymorphic-call.c: Ditto.
10429 * ipa-profile.c: Ditto.
10430 * ipa-prop.c: Ditto.
10431 * ipa-pure-const.c: Ditto.
10432 * ipa-ref.c: Ditto.
10433 * ipa-reference.c: Ditto.
10434 * ipa-split.c: Ditto.
10435 * ipa-utils.c: Ditto.
10436 * ipa-visibility.c: Ditto.
10437 * langhooks.c: Ditto.
10438 * lto-cgraph.c: Ditto.
10439 * lto-compress.c: Ditto.
10440 * lto-opts.c: Ditto.
10441 * lto-section-in.c: Ditto.
10442 * lto-section-out.c: Ditto.
10443 * lto-streamer.c: Ditto.
10444 * lto-streamer-in.c: Ditto.
10445 * lto-streamer-out.c: Ditto.
10446 * omp-low.c: Ditto.
10447 * opts-global.c: Ditto.
10449 * predict.c: Ditto.
10450 * print-tree.c: Ditto.
10451 * profile.c: Ditto.
10453 * stor-layout.c: Ditto.
10456 * trans-mem.c: Ditto.
10458 * tree-cfg.c: Ditto.
10459 * tree-eh.c: Ditto.
10460 * tree-emutls.c: Ditto.
10461 * tree-inline.c: Ditto.
10462 * tree-nested.c: Ditto.
10463 * tree-pretty-print.c: Ditto.
10464 * tree-profile.c: Ditto.
10465 * tree-sra.c: Ditto.
10466 * tree-ssa-alias.c: Ditto.
10467 * tree-ssa-loop-ivcanon.c: Ditto.
10468 * tree-ssa-loop-ivopts.c: Ditto.
10469 * tree-ssa-pre.c: Ditto.
10470 * tree-ssa-structalias.c: Ditto.
10471 * tree-streamer.c: Ditto.
10472 * tree-streamer-in.c: Ditto.
10473 * tree-streamer-out.c: Ditto.
10474 * tree-switch-conversion.c: Ditto.
10475 * tree-tailcall.c: Ditto.
10476 * tree-vect-data-refs.c: Ditto.
10477 * tree-vectorizer.c: Ditto.
10478 * tree-vect-stmts.c: Ditto.
10481 * value-prof.c: Ditto.
10483 * varpool.c: Ditto.
10484 * config/arm/arm.c: Ditto.
10485 * config/bfin/bfin.c: Ditto.
10486 * config/c6x/c6x.c: Ditto.
10487 * config/cris/cris.c: Ditto.
10488 * config/darwin.c: Ditto.
10489 * config/darwin-c.c: Ditto.
10490 * config/i386/i386.c: Ditto.
10491 * config/i386/winnt.c: Ditto.
10492 * config/microblaze/microblaze.c: Ditto.
10493 * config/mips/mips.c: Ditto.
10494 * config/rs6000/rs6000.c: Ditto.
10495 * config/rx/rx.c: Ditto.
10497 2014-10-28 Richard Biener <rguenther@suse.de>
10499 * gimple-fold.h (follow_single_use_edges): Declare.
10500 * gimple-fold.c (follow_single_use_edges): New function.
10501 (gimple_fold_stmt_to_constant_1): Dispatch to gimple_simplify.
10502 * tree-ssa-propagate.c
10503 (substitute_and_fold_dom_walker::before_dom_children): Allow
10504 following single-use edges when folding stmts we propagated into.
10506 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10507 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10508 Anna Tikhonova <anna.tikhonova@intel.com>
10509 Ilya Tocar <ilya.tocar@intel.com>
10510 Andrey Turetskiy <andrey.turetskiy@intel.com>
10511 Ilya Verbin <ilya.verbin@intel.com>
10512 Kirill Yukhin <kirill.yukhin@intel.com>
10513 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10515 * config/i386/avx512bwintrin.h: New.
10516 * config/i386/avx512dqintrin.h: Ditto.
10517 * config/i386/avx512vlbwintrin.h: Ditto.
10518 * config/i386/avx512vldqintrin.h: Ditto.
10519 * config/i386/avx512vlintrin.h: Ditto.
10520 * config/i386/immintrin.h: Include avx512vlintrin.h, avx512bwintrin.h,
10521 avx512dqintrin.h, avx512vlbwintrin.h, avx512vldqintrin.h.
10523 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10524 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10525 Anna Tikhonova <anna.tikhonova@intel.com>
10526 Ilya Tocar <ilya.tocar@intel.com>
10527 Andrey Turetskiy <andrey.turetskiy@intel.com>
10528 Ilya Verbin <ilya.verbin@intel.com>
10529 Kirill Yukhin <kirill.yukhin@intel.com>
10530 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10532 * config/i386/i386.c
10533 (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask,
10534 avx_shufpd256_mask, avx_vpermilv2df_mask.
10536 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10537 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10538 Anna Tikhonova <anna.tikhonova@intel.com>
10539 Ilya Tocar <ilya.tocar@intel.com>
10540 Andrey Turetskiy <andrey.turetskiy@intel.com>
10541 Ilya Verbin <ilya.verbin@intel.com>
10542 Kirill Yukhin <kirill.yukhin@intel.com>
10543 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10545 * config/i386/i386.c
10546 (ix86_init_mmx_sse_builtins):
10547 Define __builtin_ia32_gather3siv2df, __builtin_ia32_gather3siv4df,
10548 __builtin_ia32_gather3div2df, __builtin_ia32_gather3div4df,
10549 __builtin_ia32_gather3siv4sf, __builtin_ia32_gather3siv8sf,
10550 __builtin_ia32_gather3div4sf, __builtin_ia32_gather3div8sf,
10551 __builtin_ia32_gather3siv2di, __builtin_ia32_gather3siv4di,
10552 __builtin_ia32_gather3div2di, __builtin_ia32_gather3div4di,
10553 __builtin_ia32_gather3siv4si, __builtin_ia32_gather3siv8si,
10554 __builtin_ia32_gather3div4si, __builtin_ia32_gather3div8si,
10555 __builtin_ia32_gather3altsiv4df, __builtin_ia32_gather3altdiv8sf,
10556 __builtin_ia32_gather3altsiv4di, __builtin_ia32_gather3altdiv8si,
10557 __builtin_ia32_scattersiv8sf, __builtin_ia32_scattersiv4sf,
10558 __builtin_ia32_scattersiv4df, __builtin_ia32_scattersiv2df,
10559 __builtin_ia32_scatterdiv8sf, __builtin_ia32_scatterdiv4sf,
10560 __builtin_ia32_scatterdiv4df, __builtin_ia32_scatterdiv2df,
10561 __builtin_ia32_scattersiv8si, __builtin_ia32_scattersiv4si,
10562 __builtin_ia32_scattersiv4di, __builtin_ia32_scattersiv2di,
10563 __builtin_ia32_scatterdiv8si, __builtin_ia32_scatterdiv4si,
10564 __builtin_ia32_scatterdiv4di, __builtin_ia32_scatterdiv2di.
10566 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10567 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10568 Anna Tikhonova <anna.tikhonova@intel.com>
10569 Ilya Tocar <ilya.tocar@intel.com>
10570 Andrey Turetskiy <andrey.turetskiy@intel.com>
10571 Ilya Verbin <ilya.verbin@intel.com>
10572 Kirill Yukhin <kirill.yukhin@intel.com>
10573 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10575 * config/i386/i386.c
10576 (ix86_builtins): Add IX86_BUILTIN_GATHER3ALTSIV4DF,
10577 IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTSIV4DI,
10578 IX86_BUILTIN_GATHER3ALTDIV8SI.
10579 (ix86_expand_builtin):
10580 Handle IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTDIV8SI,
10581 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV4DI,
10582 IX86_BUILTIN_SCATTERDIV2DF, IX86_BUILTIN_SCATTERDIV4DF,
10583 IX86_BUILTIN_GATHER3ALTSIV4DI, IX86_BUILTIN_GATHER3ALTSIV4DF,
10584 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
10585 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3DIV8SI,
10586 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV4DI,
10587 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3SIV8SF,
10588 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
10589 IX86_BUILTIN_GATHER3DIV2DI, IX86_BUILTIN_GATHER3DIV4DI,
10590 IX86_BUILTIN_SCATTERDIV4SF, IX86_BUILTIN_SCATTERSIV2DI,
10591 IX86_BUILTIN_GATHER3SIV2DI, IX86_BUILTIN_GATHER3SIV4SI,
10592 IX86_BUILTIN_GATHER3SIV4SF, IX86_BUILTIN_GATHER3SIV2DF,
10593 IX86_BUILTIN_SCATTERSIV2DF, IX86_BUILTIN_SCATTERDIV4SI,
10594 IX86_BUILTIN_SCATTERSIV4SF, IX86_BUILTIN_SCATTERSIV4SI,
10595 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
10596 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV8SF,
10597 IX86_BUILTIN_GATHER3DIV4SF, IX86_BUILTIN_SCATTERDIV8SF.
10598 (ix86_vectorize_builtin_gather): Update V2DFmode, V4DFmode, V2DImode,
10599 V4DImode, V4SFmode, V8SFmode, V4SImode, V8SImode.
10601 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10602 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10603 Anna Tikhonova <anna.tikhonova@intel.com>
10604 Ilya Tocar <ilya.tocar@intel.com>
10605 Andrey Turetskiy <andrey.turetskiy@intel.com>
10606 Ilya Verbin <ilya.verbin@intel.com>
10607 Kirill Yukhin <kirill.yukhin@intel.com>
10608 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10610 * config/i386/i386-builtin-types.def
10629 (V4SF_FTYPE_V2DF_V4SF_QI): Ditto.
10630 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
10631 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
10632 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
10633 (V16SF_FTYPE_V16HI): Ditto.
10634 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
10635 (V16SF_FTYPE_V16SI): Ditto.
10636 (V4DI_FTYPE_V4DI): Ditto.
10637 (V16SI_FTYPE_V16SF): Ditto.
10638 (V8DI_FTYPE_PV2DI): Ditto.
10639 (V8DF_FTYPE_PV2DF): Ditto.
10640 (V4DI_FTYPE_PV2DI): Ditto.
10641 (V4DF_FTYPE_PV2DF): Ditto.
10642 (V16SI_FTYPE_PV2SI): Ditto.
10643 (V16SF_FTYPE_PV2SF): Ditto.
10644 (V8SF_FTYPE_FLOAT): Ditto.
10645 (V4SF_FTYPE_FLOAT): Ditto.
10646 (V4DF_FTYPE_DOUBLE): Ditto.
10647 (V8SF_FTYPE_PV4SF): Ditto.
10648 (V8SI_FTYPE_PV4SI): Ditto.
10649 (V4SI_FTYPE_PV2SI): Ditto.
10650 (V8SF_FTYPE_PV2SF): Ditto.
10651 (V8SI_FTYPE_PV2SI): Ditto.
10652 (V16SF_FTYPE_PV8SF): Ditto.
10653 (V16SI_FTYPE_PV8SI): Ditto.
10654 (V8DI_FTYPE_V8SF): Ditto.
10655 (V4DI_FTYPE_V4SF): Ditto.
10656 (V2DI_FTYPE_V4SF): Ditto.
10657 (V64QI_FTYPE_QI): Ditto.
10658 (V32HI_FTYPE_HI): Ditto.
10659 (V16UHI_FTYPE_V16UHI): Ditto.
10660 (V32UHI_FTYPE_V32UHI): Ditto.
10661 (V2UDI_FTYPE_V2UDI): Ditto.
10662 (V4UDI_FTYPE_V4UDI): Ditto.
10663 (V8UDI_FTYPE_V8UDI): Ditto.
10664 (V4USI_FTYPE_V4USI): Ditto.
10665 (V16USI_FTYPE_V16USI): Ditto.
10666 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
10667 (V2DF_FTYPE_V8DF_INT): Ditto.
10668 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
10669 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
10670 (V8DF_FTYPE_V8DF_INT): Ditto.
10671 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
10672 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
10673 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
10674 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
10675 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
10676 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
10677 (V8DI_FTYPE_V8DI_INT): Ditto.
10678 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
10679 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
10680 (V8SF_FTYPE_V16SF_INT): Ditto.
10681 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
10682 (V64QI_FTYPE_V32HI_V32HI): Ditto.
10683 (V32HI_FTYPE_V16SI_V16SI): Ditto.
10684 (V8DF_FTYPE_V8DF_V2DF_INT): Ditto.
10685 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
10686 (V8DF_FTYPE_V8DF_V8DF_INT): Ditto.
10687 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT): Ditto.
10688 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT): Ditto.
10689 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
10690 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
10691 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
10692 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT): Ditto.
10693 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
10694 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
10695 (V32HI_FTYPE_V64QI_V64QI): Ditto.
10696 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
10697 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
10698 (V32HI_FTYPE_V32HI_V32HI): Ditto.
10699 (V32HI_FTYPE_V32HI_INT): Ditto.
10700 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
10701 (V16SI_FTYPE_V32HI_V32HI): Ditto.
10702 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
10703 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
10704 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
10705 (V8SI_FTYPE_V16SI_INT): Ditto.
10706 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
10707 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
10708 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
10709 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
10710 (V8DI_FTYPE_V8DI_V4DI_INT): Ditto.
10711 (V8DI_FTYPE_V8DI_V2DI_INT): Ditto.
10712 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
10713 (V8DI_FTYPE_V16SI_V16SI): Ditto.
10714 (V8DI_FTYPE_V64QI_V64QI): Ditto.
10715 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
10716 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
10717 (V2DI_FTYPE_V8DI_INT): Ditto.
10718 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
10719 (QI_FTYPE_QI): Ditto.
10720 (SI_FTYPE_SI): Ditto.
10721 (DI_FTYPE_DI): Ditto.
10722 (HI_FTYPE_V16QI): Ditto.
10723 (SI_FTYPE_V32QI): Ditto.
10724 (DI_FTYPE_V64QI): Ditto.
10725 (QI_FTYPE_V8HI): Ditto.
10726 (HI_FTYPE_V16HI): Ditto.
10727 (SI_FTYPE_V32HI): Ditto.
10728 (QI_FTYPE_V4SI): Ditto.
10729 (QI_FTYPE_V8SI): Ditto.
10730 (HI_FTYPE_V16SI): Ditto.
10731 (QI_FTYPE_V2DI): Ditto.
10732 (QI_FTYPE_V4DI): Ditto.
10733 (QI_FTYPE_V8DI): Ditto.
10734 (V16QI_FTYPE_HI): Ditto.
10735 (V32QI_FTYPE_SI): Ditto.
10736 (V64QI_FTYPE_DI): Ditto.
10737 (V8HI_FTYPE_QI): Ditto.
10738 (V16HI_FTYPE_HI): Ditto.
10739 (V32HI_FTYPE_SI): Ditto.
10740 (V4SI_FTYPE_QI): Ditto.
10741 (V4SI_FTYPE_HI): Ditto.
10742 (V8SI_FTYPE_QI): Ditto.
10743 (V8SI_FTYPE_HI): Ditto.
10744 (V2DI_FTYPE_QI): Ditto.
10745 (V4DI_FTYPE_QI): Ditto.
10746 (QI_FTYPE_QI_QI): Ditto.
10747 (SI_FTYPE_SI_SI): Ditto.
10748 (DI_FTYPE_DI_DI): Ditto.
10749 (QI_FTYPE_QI_INT): Ditto.
10750 (SI_FTYPE_SI_INT): Ditto.
10751 (DI_FTYPE_DI_INT): Ditto.
10752 (HI_FTYPE_V16QI_V16QI): Ditto.
10753 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
10754 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
10755 (SI_FTYPE_V32QI_V32QI): Ditto.
10756 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
10757 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
10758 (DI_FTYPE_V64QI_V64QI): Ditto.
10759 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
10760 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
10761 (QI_FTYPE_V8HI_V8HI): Ditto.
10762 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
10763 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
10764 (HI_FTYPE_V16HI_V16HI): Ditto.
10765 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
10766 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
10767 (SI_FTYPE_V32HI_V32HI): Ditto.
10768 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
10769 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
10770 (QI_FTYPE_V4SI_V4SI): Ditto.
10771 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
10772 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
10773 (QI_FTYPE_V8SI_V8SI): Ditto.
10774 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
10775 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
10776 (QI_FTYPE_V2DI_V2DI): Ditto.
10777 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
10778 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
10779 (QI_FTYPE_V4DI_V4DI): Ditto.
10780 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
10781 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
10782 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
10783 (V4DF_FTYPE_V4DF_V4DI_INT): Ditto.
10784 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
10785 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
10786 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
10787 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
10788 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
10789 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
10790 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
10791 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
10792 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
10793 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
10794 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
10795 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
10796 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
10797 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
10798 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
10799 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
10800 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
10801 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
10802 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
10803 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
10804 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
10805 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
10806 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
10807 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
10808 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
10809 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
10810 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
10811 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
10812 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
10813 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
10814 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
10815 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
10816 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
10817 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
10818 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
10819 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
10820 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
10821 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
10822 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
10823 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
10824 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
10825 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
10826 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
10827 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
10828 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
10829 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
10830 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
10831 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
10832 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
10833 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
10834 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
10835 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
10836 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
10837 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
10838 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
10839 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
10840 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
10841 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
10842 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
10843 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
10844 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
10845 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
10846 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
10847 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
10848 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
10849 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
10850 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
10851 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
10852 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
10853 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
10854 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
10855 (V32HI_FTYPE_V64QI_V64QI_INT): Ditto.
10856 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
10857 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
10858 (V16HI_FTYPE_V32QI_V32QI_INT): Ditto.
10859 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
10860 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
10861 (V8HI_FTYPE_V16QI_V16QI_INT): Ditto.
10862 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
10863 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
10864 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
10865 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
10866 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
10867 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
10868 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
10869 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
10870 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
10871 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
10872 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
10873 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
10874 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
10875 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
10876 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
10877 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
10878 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
10879 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
10880 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
10881 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
10882 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
10883 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
10884 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
10885 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
10886 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
10887 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
10888 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
10889 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
10890 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
10891 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
10892 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
10893 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
10894 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
10895 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
10896 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
10897 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
10898 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
10899 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
10900 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
10901 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
10902 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
10903 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
10904 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
10905 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
10906 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
10907 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
10908 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
10909 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
10910 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
10911 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
10912 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
10913 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
10914 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
10915 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
10916 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
10917 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
10918 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
10919 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
10920 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
10921 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
10922 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
10923 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
10924 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
10925 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
10926 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
10927 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
10928 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
10929 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
10930 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
10931 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
10932 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
10933 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
10934 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
10935 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
10936 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
10937 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
10938 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
10939 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
10940 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
10941 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
10942 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
10943 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
10944 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
10945 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
10946 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
10947 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
10948 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
10949 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
10950 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
10951 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
10952 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
10953 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
10954 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
10955 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
10956 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
10957 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
10958 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
10959 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
10960 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
10961 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
10962 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
10963 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
10964 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
10965 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
10966 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
10967 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
10968 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
10969 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
10970 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
10971 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
10972 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
10973 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
10974 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
10975 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
10976 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
10977 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
10978 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
10979 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
10980 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
10981 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
10982 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
10983 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
10984 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
10985 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
10986 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
10987 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
10988 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
10989 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
10990 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
10991 (QI_FTYPE_V8DF_INT): Ditto.
10992 (QI_FTYPE_V4DF_INT): Ditto.
10993 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
10994 (QI_FTYPE_V2DF_INT): Ditto.
10995 (HI_FTYPE_V16SF_INT): Ditto.
10996 (QI_FTYPE_V8SF_INT): Ditto.
10997 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
10998 (QI_FTYPE_V4SF_INT): Ditto.
10999 (QI_FTYPE_V8DF_INT_QI): Ditto.
11000 (QI_FTYPE_V4DF_INT_QI): Ditto.
11001 (QI_FTYPE_V2DF_INT_QI): Ditto.
11002 (HI_FTYPE_V16SF_INT_HI): Ditto.
11003 (QI_FTYPE_V8SF_INT_QI): Ditto.
11004 (QI_FTYPE_V4SF_INT_QI): Ditto.
11005 (V8DI_FTYPE_V8DF_V8DI_QI_INT): Ditto.
11006 (V8DI_FTYPE_V8SF_V8DI_QI_INT): Ditto.
11007 (V8DF_FTYPE_V8DI_V8DF_QI_INT): Ditto.
11008 (V8SF_FTYPE_V8DI_V8SF_QI_INT): Ditto.
11009 (V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_QI_INT): Ditto.
11010 (V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_QI_INT): Ditto.
11011 (V4DF_FTYPE_V4DF_PCDOUBLE_V8SI_QI_INT): Ditto.
11012 (V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_QI_INT): Ditto.
11013 (V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_QI_INT): Ditto.
11014 (V4SF_FTYPE_V4SF_PCFLOAT_V4SI_QI_INT): Ditto.
11015 (V8SF_FTYPE_V8SF_PCFLOAT_V8SI_QI_INT): Ditto.
11016 (V4SF_FTYPE_V4SF_PCFLOAT_V2DI_QI_INT): Ditto.
11017 (V4SF_FTYPE_V4SF_PCFLOAT_V4DI_QI_INT): Ditto.
11018 (V8SF_FTYPE_V8SF_PCFLOAT_V4DI_QI_INT): Ditto.
11019 (V2DI_FTYPE_V2DI_PCINT64_V4SI_QI_INT): Ditto.
11020 (V4DI_FTYPE_V4DI_PCINT64_V4SI_QI_INT): Ditto.
11021 (V4DI_FTYPE_V4DI_PCINT64_V8SI_QI_INT): Ditto.
11022 (V2DI_FTYPE_V2DI_PCINT64_V2DI_QI_INT): Ditto.
11023 (V4DI_FTYPE_V4DI_PCINT64_V4DI_QI_INT): Ditto.
11024 (V4SI_FTYPE_V4SI_PCINT_V4SI_QI_INT): Ditto.
11025 (V8SI_FTYPE_V8SI_PCINT_V8SI_QI_INT): Ditto.
11026 (V4SI_FTYPE_V4SI_PCINT_V2DI_QI_INT): Ditto.
11027 (V4SI_FTYPE_V4SI_PCINT_V4DI_QI_INT): Ditto.
11028 (V8SI_FTYPE_V8SI_PCINT_V4DI_QI_INT): Ditto.
11029 (VOID_FTYPE_PFLOAT_QI_V8SI_V8SF_INT): Ditto.
11030 (VOID_FTYPE_PFLOAT_QI_V4SI_V4SF_INT): Ditto.
11031 (VOID_FTYPE_PDOUBLE_QI_V4SI_V4DF_INT): Ditto.
11032 (VOID_FTYPE_PDOUBLE_QI_V4SI_V2DF_INT): Ditto.
11033 (VOID_FTYPE_PFLOAT_QI_V4DI_V4SF_INT): Ditto.
11034 (VOID_FTYPE_PFLOAT_QI_V2DI_V4SF_INT): Ditto.
11035 (VOID_FTYPE_PDOUBLE_QI_V4DI_V4DF_INT): Ditto.
11036 (VOID_FTYPE_PDOUBLE_QI_V2DI_V2DF_INT): Ditto.
11037 (VOID_FTYPE_PINT_QI_V8SI_V8SI_INT): Ditto.
11038 (VOID_FTYPE_PINT_QI_V4SI_V4SI_INT): Ditto.
11039 (VOID_FTYPE_PLONGLONG_QI_V4SI_V4DI_INT): Ditto.
11040 (VOID_FTYPE_PLONGLONG_QI_V4SI_V2DI_INT): Ditto.
11041 (VOID_FTYPE_PINT_QI_V4DI_V4SI_INT): Ditto.
11042 (VOID_FTYPE_PINT_QI_V2DI_V4SI_INT): Ditto.
11043 (VOID_FTYPE_PLONGLONG_QI_V4DI_V4DI_INT): Ditto.
11044 (VOID_FTYPE_PLONGLONG_QI_V2DI_V2DI_INT): Ditto.
11045 (V8DI_FTYPE_V8DI_INT): Ditto.
11046 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
11047 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
11048 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
11049 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
11050 (V2DF_FTYPE_ V2DF_ V2DF_ V2DI_ INT_ QI): Remove.
11051 (V4SF_FTYPE_ V4SF_ V2DF_ V4SF_ QI): Ditto.
11052 (V4SF_FTYPE_ V4SF_ V4SF_ V4SF_ QI): Ditto.
11053 (V2DF_FTYPE_ PCDOUBLE_ V2DF_ QI): Ditto.
11054 (V4SF_FTYPE_ PCFLOAT_ V4SF_ QI): Ditto.
11055 (V16QI_FTYPE_ V16SI_ V16QI_ HI): Ditto.
11056 (V16QI_FTYPE_ V8DI_ V16QI_ QI): Ditto.
11057 (V4SF_FTYPE_ V4SF_ V4SF_ INT_ V4SF_ QI): Ditto.
11058 (V2DF_FTYPE_ V2DF_ V2DF_ INT_ V2DF_ QI): Ditto.
11059 (V8DI_FTYPE_ V16SI_ V16SI_ V8DI_ QI): Ditto.
11060 * config/i386/i386.c (ix86_builtins):
11061 Add IX86_BUILTIN_PMOVUSQD256_MEM, IX86_BUILTIN_PMOVUSQD128_MEM,
11062 IX86_BUILTIN_PMOVSQD256_MEM, IX86_BUILTIN_PMOVSQD128_MEM,
11063 IX86_BUILTIN_PMOVQD256_MEM, IX86_BUILTIN_PMOVQD128_MEM,
11064 IX86_BUILTIN_PMOVUSQW256_MEM, IX86_BUILTIN_PMOVUSQW128_MEM,
11065 IX86_BUILTIN_PMOVSQW256_MEM, IX86_BUILTIN_PMOVSQW128_MEM,
11066 IX86_BUILTIN_PMOVQW256_MEM, IX86_BUILTIN_PMOVQW128_MEM,
11067 IX86_BUILTIN_PMOVUSQB256_MEM, IX86_BUILTIN_PMOVUSQB128_MEM,
11068 IX86_BUILTIN_PMOVSQB256_MEM, IX86_BUILTIN_PMOVSQB128_MEM,
11069 IX86_BUILTIN_PMOVQB256_MEM, IX86_BUILTIN_PMOVQB128_MEM,
11070 IX86_BUILTIN_PMOVUSDW256_MEM, IX86_BUILTIN_PMOVUSDW128_MEM,
11071 IX86_BUILTIN_PMOVSDW256_MEM, IX86_BUILTIN_PMOVSDW128_MEM,
11072 IX86_BUILTIN_PMOVDW256_MEM, IX86_BUILTIN_PMOVDW128_MEM,
11073 IX86_BUILTIN_PMOVUSDB256_MEM, IX86_BUILTIN_PMOVUSDB128_MEM,
11074 IX86_BUILTIN_PMOVSDB256_MEM, IX86_BUILTIN_PMOVSDB128_MEM,
11075 IX86_BUILTIN_PMOVDB256_MEM, IX86_BUILTIN_PMOVDB128_MEM,
11076 IX86_BUILTIN_MOVDQA64LOAD256_MASK, IX86_BUILTIN_MOVDQA64LOAD128_MASK,
11077 IX86_BUILTIN_MOVDQA32LOAD256_MASK, IX86_BUILTIN_MOVDQA32LOAD128_MASK,
11078 IX86_BUILTIN_MOVDQA64STORE256_MASK, IX86_BUILTIN_MOVDQA64STORE128_MASK,
11079 IX86_BUILTIN_MOVDQA32STORE256_MASK, IX86_BUILTIN_MOVDQA32STORE128_MASK,
11080 IX86_BUILTIN_LOADAPD256_MASK, IX86_BUILTIN_LOADAPD128_MASK,
11081 IX86_BUILTIN_LOADAPS256_MASK, IX86_BUILTIN_LOADAPS128_MASK,
11082 IX86_BUILTIN_STOREAPD256_MASK, IX86_BUILTIN_STOREAPD128_MASK,
11083 IX86_BUILTIN_STOREAPS256_MASK, IX86_BUILTIN_STOREAPS128_MASK,
11084 IX86_BUILTIN_LOADUPD256_MASK, IX86_BUILTIN_LOADUPD128_MASK,
11085 IX86_BUILTIN_LOADUPS256_MASK, IX86_BUILTIN_LOADUPS128_MASK,
11086 IX86_BUILTIN_STOREUPD256_MASK, IX86_BUILTIN_STOREUPD128_MASK,
11087 IX86_BUILTIN_STOREUPS256_MASK, IX86_BUILTIN_STOREUPS128_MASK,
11088 IX86_BUILTIN_LOADDQUDI256_MASK, IX86_BUILTIN_LOADDQUDI128_MASK,
11089 IX86_BUILTIN_LOADDQUSI256_MASK, IX86_BUILTIN_LOADDQUSI128_MASK,
11090 IX86_BUILTIN_LOADDQUHI256_MASK, IX86_BUILTIN_LOADDQUHI128_MASK,
11091 IX86_BUILTIN_LOADDQUQI256_MASK, IX86_BUILTIN_LOADDQUQI128_MASK,
11092 IX86_BUILTIN_STOREDQUDI256_MASK, IX86_BUILTIN_STOREDQUDI128_MASK,
11093 IX86_BUILTIN_STOREDQUSI256_MASK, IX86_BUILTIN_STOREDQUSI128_MASK,
11094 IX86_BUILTIN_STOREDQUHI256_MASK, IX86_BUILTIN_STOREDQUHI128_MASK,
11095 IX86_BUILTIN_STOREDQUQI256_MASK, IX86_BUILTIN_STOREDQUQI128_MASK,
11096 IX86_BUILTIN_COMPRESSPDSTORE256, IX86_BUILTIN_COMPRESSPDSTORE128,
11097 IX86_BUILTIN_COMPRESSPSSTORE256, IX86_BUILTIN_COMPRESSPSSTORE128,
11098 IX86_BUILTIN_PCOMPRESSQSTORE256, IX86_BUILTIN_PCOMPRESSQSTORE128,
11099 IX86_BUILTIN_PCOMPRESSDSTORE256, IX86_BUILTIN_PCOMPRESSDSTORE128,
11100 IX86_BUILTIN_EXPANDPDLOAD256, IX86_BUILTIN_EXPANDPDLOAD128,
11101 IX86_BUILTIN_EXPANDPSLOAD256, IX86_BUILTIN_EXPANDPSLOAD128,
11102 IX86_BUILTIN_PEXPANDQLOAD256, IX86_BUILTIN_PEXPANDQLOAD128,
11103 IX86_BUILTIN_PEXPANDDLOAD256, IX86_BUILTIN_PEXPANDDLOAD128,
11104 IX86_BUILTIN_EXPANDPDLOAD256Z, IX86_BUILTIN_EXPANDPDLOAD128Z,
11105 IX86_BUILTIN_EXPANDPSLOAD256Z, IX86_BUILTIN_EXPANDPSLOAD128Z,
11106 IX86_BUILTIN_PEXPANDQLOAD256Z, IX86_BUILTIN_PEXPANDQLOAD128Z,
11107 IX86_BUILTIN_PEXPANDDLOAD256Z, IX86_BUILTIN_PEXPANDDLOAD128Z,
11108 IX86_BUILTIN_PALIGNR256_MASK, IX86_BUILTIN_PALIGNR128_MASK,
11109 IX86_BUILTIN_MOVDQA64_256_MASK, IX86_BUILTIN_MOVDQA64_128_MASK,
11110 IX86_BUILTIN_MOVDQA32_256_MASK, IX86_BUILTIN_MOVDQA32_128_MASK,
11111 IX86_BUILTIN_MOVAPD256_MASK, IX86_BUILTIN_MOVAPD128_MASK,
11112 IX86_BUILTIN_MOVAPS256_MASK, IX86_BUILTIN_MOVAPS128_MASK,
11113 IX86_BUILTIN_MOVDQUHI256_MASK, IX86_BUILTIN_MOVDQUHI128_MASK,
11114 IX86_BUILTIN_MOVDQUQI256_MASK, IX86_BUILTIN_MOVDQUQI128_MASK,
11115 IX86_BUILTIN_MINPS128_MASK, IX86_BUILTIN_MAXPS128_MASK,
11116 IX86_BUILTIN_MINPD128_MASK, IX86_BUILTIN_MAXPD128_MASK,
11117 IX86_BUILTIN_MAXPD256_MASK, IX86_BUILTIN_MAXPS256_MASK,
11118 IX86_BUILTIN_MINPD256_MASK, IX86_BUILTIN_MINPS256_MASK,
11119 IX86_BUILTIN_MULPS128_MASK, IX86_BUILTIN_DIVPS128_MASK,
11120 IX86_BUILTIN_MULPD128_MASK, IX86_BUILTIN_DIVPD128_MASK,
11121 IX86_BUILTIN_DIVPD256_MASK, IX86_BUILTIN_DIVPS256_MASK,
11122 IX86_BUILTIN_MULPD256_MASK, IX86_BUILTIN_MULPS256_MASK,
11123 IX86_BUILTIN_ADDPD128_MASK, IX86_BUILTIN_ADDPD256_MASK,
11124 IX86_BUILTIN_ADDPS128_MASK, IX86_BUILTIN_ADDPS256_MASK,
11125 IX86_BUILTIN_SUBPD128_MASK, IX86_BUILTIN_SUBPD256_MASK,
11126 IX86_BUILTIN_SUBPS128_MASK, IX86_BUILTIN_SUBPS256_MASK,
11127 IX86_BUILTIN_XORPD256_MASK, IX86_BUILTIN_XORPD128_MASK,
11128 IX86_BUILTIN_XORPS256_MASK, IX86_BUILTIN_XORPS128_MASK,
11129 IX86_BUILTIN_ORPD256_MASK, IX86_BUILTIN_ORPD128_MASK,
11130 IX86_BUILTIN_ORPS256_MASK, IX86_BUILTIN_ORPS128_MASK,
11131 IX86_BUILTIN_BROADCASTF32x2_256, IX86_BUILTIN_BROADCASTI32x2_256,
11132 IX86_BUILTIN_BROADCASTI32x2_128, IX86_BUILTIN_BROADCASTF64X2_256,
11133 IX86_BUILTIN_BROADCASTI64X2_256, IX86_BUILTIN_BROADCASTF32X4_256,
11134 IX86_BUILTIN_BROADCASTI32X4_256, IX86_BUILTIN_EXTRACTF32X4_256,
11135 IX86_BUILTIN_EXTRACTI32X4_256, IX86_BUILTIN_DBPSADBW256,
11136 IX86_BUILTIN_DBPSADBW128, IX86_BUILTIN_CVTTPD2QQ256,
11137 IX86_BUILTIN_CVTTPD2QQ128, IX86_BUILTIN_CVTTPD2UQQ256,
11138 IX86_BUILTIN_CVTTPD2UQQ128, IX86_BUILTIN_CVTPD2QQ256,
11139 IX86_BUILTIN_CVTPD2QQ128, IX86_BUILTIN_CVTPD2UQQ256,
11140 IX86_BUILTIN_CVTPD2UQQ128, IX86_BUILTIN_CVTPD2UDQ256_MASK,
11141 IX86_BUILTIN_CVTPD2UDQ128_MASK, IX86_BUILTIN_CVTTPS2QQ256,
11142 IX86_BUILTIN_CVTTPS2QQ128, IX86_BUILTIN_CVTTPS2UQQ256,
11143 IX86_BUILTIN_CVTTPS2UQQ128, IX86_BUILTIN_CVTTPS2DQ256_MASK,
11144 IX86_BUILTIN_CVTTPS2DQ128_MASK, IX86_BUILTIN_CVTTPS2UDQ256,
11145 IX86_BUILTIN_CVTTPS2UDQ128, IX86_BUILTIN_CVTTPD2DQ256_MASK,
11146 IX86_BUILTIN_CVTTPD2DQ128_MASK, IX86_BUILTIN_CVTTPD2UDQ256_MASK,
11147 IX86_BUILTIN_CVTTPD2UDQ128_MASK, IX86_BUILTIN_CVTPD2DQ256_MASK,
11148 IX86_BUILTIN_CVTPD2DQ128_MASK, IX86_BUILTIN_CVTDQ2PD256_MASK,
11149 IX86_BUILTIN_CVTDQ2PD128_MASK, IX86_BUILTIN_CVTUDQ2PD256_MASK,
11150 IX86_BUILTIN_CVTUDQ2PD128_MASK, IX86_BUILTIN_CVTDQ2PS256_MASK,
11151 IX86_BUILTIN_CVTDQ2PS128_MASK, IX86_BUILTIN_CVTUDQ2PS256_MASK,
11152 IX86_BUILTIN_CVTUDQ2PS128_MASK, IX86_BUILTIN_CVTPS2PD256_MASK,
11153 IX86_BUILTIN_CVTPS2PD128_MASK, IX86_BUILTIN_PBROADCASTB256_MASK,
11154 IX86_BUILTIN_PBROADCASTB256_GPR_MASK, IX86_BUILTIN_PBROADCASTB128_MASK,
11155 IX86_BUILTIN_PBROADCASTB128_GPR_MASK, IX86_BUILTIN_PBROADCASTW256_MASK,
11156 IX86_BUILTIN_PBROADCASTW256_GPR_MASK, IX86_BUILTIN_PBROADCASTW128_MASK,
11157 IX86_BUILTIN_PBROADCASTW128_GPR_MASK, IX86_BUILTIN_PBROADCASTD256_MASK,
11158 IX86_BUILTIN_PBROADCASTD256_GPR_MASK, IX86_BUILTIN_PBROADCASTD128_MASK,
11159 IX86_BUILTIN_PBROADCASTD128_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MASK,
11160 IX86_BUILTIN_PBROADCASTQ256_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
11161 IX86_BUILTIN_PBROADCASTQ128_MASK, IX86_BUILTIN_PBROADCASTQ128_GPR_MASK,
11162 IX86_BUILTIN_PBROADCASTQ128_MEM_MASK, IX86_BUILTIN_BROADCASTSS256,
11163 IX86_BUILTIN_BROADCASTSS128, IX86_BUILTIN_BROADCASTSD256,
11164 IX86_BUILTIN_EXTRACTF64X2_256, IX86_BUILTIN_EXTRACTI64X2_256,
11165 IX86_BUILTIN_INSERTF32X4_256, IX86_BUILTIN_INSERTI32X4_256,
11166 IX86_BUILTIN_PMOVSXBW256_MASK, IX86_BUILTIN_PMOVSXBW128_MASK,
11167 IX86_BUILTIN_PMOVSXBD256_MASK, IX86_BUILTIN_PMOVSXBD128_MASK,
11168 IX86_BUILTIN_PMOVSXBQ256_MASK, IX86_BUILTIN_PMOVSXBQ128_MASK,
11169 IX86_BUILTIN_PMOVSXWD256_MASK, IX86_BUILTIN_PMOVSXWD128_MASK,
11170 IX86_BUILTIN_PMOVSXWQ256_MASK, IX86_BUILTIN_PMOVSXWQ128_MASK,
11171 IX86_BUILTIN_PMOVSXDQ256_MASK, IX86_BUILTIN_PMOVSXDQ128_MASK,
11172 IX86_BUILTIN_PMOVZXBW256_MASK, IX86_BUILTIN_PMOVZXBW128_MASK,
11173 IX86_BUILTIN_PMOVZXBD256_MASK, IX86_BUILTIN_PMOVZXBD128_MASK,
11174 IX86_BUILTIN_PMOVZXBQ256_MASK, IX86_BUILTIN_PMOVZXBQ128_MASK,
11175 IX86_BUILTIN_PMOVZXWD256_MASK, IX86_BUILTIN_PMOVZXWD128_MASK,
11176 IX86_BUILTIN_PMOVZXWQ256_MASK, IX86_BUILTIN_PMOVZXWQ128_MASK,
11177 IX86_BUILTIN_PMOVZXDQ256_MASK, IX86_BUILTIN_PMOVZXDQ128_MASK,
11178 IX86_BUILTIN_REDUCEPD256_MASK, IX86_BUILTIN_REDUCEPD128_MASK,
11179 IX86_BUILTIN_REDUCEPS256_MASK, IX86_BUILTIN_REDUCEPS128_MASK,
11180 IX86_BUILTIN_REDUCESD_MASK, IX86_BUILTIN_REDUCESS_MASK,
11181 IX86_BUILTIN_VPERMVARHI256_MASK, IX86_BUILTIN_VPERMVARHI128_MASK,
11182 IX86_BUILTIN_VPERMT2VARHI256, IX86_BUILTIN_VPERMT2VARHI256_MASKZ,
11183 IX86_BUILTIN_VPERMT2VARHI128, IX86_BUILTIN_VPERMT2VARHI128_MASKZ,
11184 IX86_BUILTIN_VPERMI2VARHI256, IX86_BUILTIN_VPERMI2VARHI128,
11185 IX86_BUILTIN_RCP14PD256, IX86_BUILTIN_RCP14PD128,
11186 IX86_BUILTIN_RCP14PS256, IX86_BUILTIN_RCP14PS128,
11187 IX86_BUILTIN_RSQRT14PD256_MASK, IX86_BUILTIN_RSQRT14PD128_MASK,
11188 IX86_BUILTIN_RSQRT14PS256_MASK, IX86_BUILTIN_RSQRT14PS128_MASK,
11189 IX86_BUILTIN_SQRTPD256_MASK, IX86_BUILTIN_SQRTPD128_MASK,
11190 IX86_BUILTIN_SQRTPS256_MASK, IX86_BUILTIN_SQRTPS128_MASK,
11191 IX86_BUILTIN_PADDB128_MASK, IX86_BUILTIN_PADDW128_MASK,
11192 IX86_BUILTIN_PADDD128_MASK, IX86_BUILTIN_PADDQ128_MASK,
11193 IX86_BUILTIN_PSUBB128_MASK, IX86_BUILTIN_PSUBW128_MASK,
11194 IX86_BUILTIN_PSUBD128_MASK, IX86_BUILTIN_PSUBQ128_MASK,
11195 IX86_BUILTIN_PADDSB128_MASK, IX86_BUILTIN_PADDSW128_MASK,
11196 IX86_BUILTIN_PSUBSB128_MASK, IX86_BUILTIN_PSUBSW128_MASK,
11197 IX86_BUILTIN_PADDUSB128_MASK, IX86_BUILTIN_PADDUSW128_MASK,
11198 IX86_BUILTIN_PSUBUSB128_MASK, IX86_BUILTIN_PSUBUSW128_MASK,
11199 IX86_BUILTIN_PADDB256_MASK, IX86_BUILTIN_PADDW256_MASK,
11200 IX86_BUILTIN_PADDD256_MASK, IX86_BUILTIN_PADDQ256_MASK,
11201 IX86_BUILTIN_PADDSB256_MASK, IX86_BUILTIN_PADDSW256_MASK,
11202 IX86_BUILTIN_PADDUSB256_MASK, IX86_BUILTIN_PADDUSW256_MASK,
11203 IX86_BUILTIN_PSUBB256_MASK, IX86_BUILTIN_PSUBW256_MASK,
11204 IX86_BUILTIN_PSUBD256_MASK, IX86_BUILTIN_PSUBQ256_MASK,
11205 IX86_BUILTIN_PSUBSB256_MASK, IX86_BUILTIN_PSUBSW256_MASK,
11206 IX86_BUILTIN_PSUBUSB256_MASK, IX86_BUILTIN_PSUBUSW256_MASK,
11207 IX86_BUILTIN_SHUF_F64x2_256, IX86_BUILTIN_SHUF_I64x2_256,
11208 IX86_BUILTIN_SHUF_I32x4_256, IX86_BUILTIN_SHUF_F32x4_256,
11209 IX86_BUILTIN_PMOVWB128, IX86_BUILTIN_PMOVWB256,
11210 IX86_BUILTIN_PMOVSWB128, IX86_BUILTIN_PMOVSWB256,
11211 IX86_BUILTIN_PMOVUSWB128, IX86_BUILTIN_PMOVUSWB256,
11212 IX86_BUILTIN_PMOVDB128, IX86_BUILTIN_PMOVDB256,
11213 IX86_BUILTIN_PMOVSDB128, IX86_BUILTIN_PMOVSDB256,
11214 IX86_BUILTIN_PMOVUSDB128, IX86_BUILTIN_PMOVUSDB256,
11215 IX86_BUILTIN_PMOVDW128, IX86_BUILTIN_PMOVDW256,
11216 IX86_BUILTIN_PMOVSDW128, IX86_BUILTIN_PMOVSDW256,
11217 IX86_BUILTIN_PMOVUSDW128, IX86_BUILTIN_PMOVUSDW256,
11218 IX86_BUILTIN_PMOVQB128, IX86_BUILTIN_PMOVQB256,
11219 IX86_BUILTIN_PMOVSQB128, IX86_BUILTIN_PMOVSQB256,
11220 IX86_BUILTIN_PMOVUSQB128, IX86_BUILTIN_PMOVUSQB256,
11221 IX86_BUILTIN_PMOVQW128, IX86_BUILTIN_PMOVQW256,
11222 IX86_BUILTIN_PMOVSQW128, IX86_BUILTIN_PMOVSQW256,
11223 IX86_BUILTIN_PMOVUSQW128, IX86_BUILTIN_PMOVUSQW256,
11224 IX86_BUILTIN_PMOVQD128, IX86_BUILTIN_PMOVQD256,
11225 IX86_BUILTIN_PMOVSQD128, IX86_BUILTIN_PMOVSQD256,
11226 IX86_BUILTIN_PMOVUSQD128, IX86_BUILTIN_PMOVUSQD256,
11227 IX86_BUILTIN_RANGEPD256, IX86_BUILTIN_RANGEPD128,
11228 IX86_BUILTIN_RANGEPS256, IX86_BUILTIN_RANGEPS128,
11229 IX86_BUILTIN_GETEXPPS256, IX86_BUILTIN_GETEXPPD256,
11230 IX86_BUILTIN_GETEXPPS128, IX86_BUILTIN_GETEXPPD128,
11231 IX86_BUILTIN_FIXUPIMMPD256_MASK, IX86_BUILTIN_FIXUPIMMPD256_MASKZ,
11232 IX86_BUILTIN_FIXUPIMMPS256_MASK, IX86_BUILTIN_FIXUPIMMPS256_MASKZ,
11233 IX86_BUILTIN_FIXUPIMMPD128_MASK, IX86_BUILTIN_FIXUPIMMPD128_MASKZ,
11234 IX86_BUILTIN_FIXUPIMMPS128_MASK, IX86_BUILTIN_FIXUPIMMPS128_MASKZ,
11235 IX86_BUILTIN_PABSQ256, IX86_BUILTIN_PABSQ128,
11236 IX86_BUILTIN_PABSD256_MASK, IX86_BUILTIN_PABSD128_MASK,
11237 IX86_BUILTIN_PMULHRSW256_MASK, IX86_BUILTIN_PMULHRSW128_MASK,
11238 IX86_BUILTIN_PMULHUW128_MASK, IX86_BUILTIN_PMULHUW256_MASK,
11239 IX86_BUILTIN_PMULHW256_MASK, IX86_BUILTIN_PMULHW128_MASK,
11240 IX86_BUILTIN_PMULLW256_MASK, IX86_BUILTIN_PMULLW128_MASK,
11241 IX86_BUILTIN_PMULLQ256, IX86_BUILTIN_PMULLQ128,
11242 IX86_BUILTIN_ANDPD256_MASK, IX86_BUILTIN_ANDPD128_MASK,
11243 IX86_BUILTIN_ANDPS256_MASK, IX86_BUILTIN_ANDPS128_MASK,
11244 IX86_BUILTIN_ANDNPD256_MASK, IX86_BUILTIN_ANDNPD128_MASK,
11245 IX86_BUILTIN_ANDNPS256_MASK, IX86_BUILTIN_ANDNPS128_MASK,
11246 IX86_BUILTIN_PSLLWI128_MASK, IX86_BUILTIN_PSLLDI128_MASK,
11247 IX86_BUILTIN_PSLLQI128_MASK, IX86_BUILTIN_PSLLW128_MASK,
11248 IX86_BUILTIN_PSLLD128_MASK, IX86_BUILTIN_PSLLQ128_MASK,
11249 IX86_BUILTIN_PSLLWI256_MASK , IX86_BUILTIN_PSLLW256_MASK,
11250 IX86_BUILTIN_PSLLDI256_MASK, IX86_BUILTIN_PSLLD256_MASK,
11251 IX86_BUILTIN_PSLLQI256_MASK, IX86_BUILTIN_PSLLQ256_MASK,
11252 IX86_BUILTIN_PSRADI128_MASK, IX86_BUILTIN_PSRAD128_MASK,
11253 IX86_BUILTIN_PSRADI256_MASK, IX86_BUILTIN_PSRAD256_MASK,
11254 IX86_BUILTIN_PSRAQI128_MASK, IX86_BUILTIN_PSRAQ128_MASK,
11255 IX86_BUILTIN_PSRAQI256_MASK, IX86_BUILTIN_PSRAQ256_MASK,
11256 IX86_BUILTIN_PANDD256, IX86_BUILTIN_PANDD128,
11257 IX86_BUILTIN_PSRLDI128_MASK, IX86_BUILTIN_PSRLD128_MASK,
11258 IX86_BUILTIN_PSRLDI256_MASK, IX86_BUILTIN_PSRLD256_MASK,
11259 IX86_BUILTIN_PSRLQI128_MASK, IX86_BUILTIN_PSRLQ128_MASK,
11260 IX86_BUILTIN_PSRLQI256_MASK, IX86_BUILTIN_PSRLQ256_MASK,
11261 IX86_BUILTIN_PANDQ256, IX86_BUILTIN_PANDQ128,
11262 IX86_BUILTIN_PANDND256, IX86_BUILTIN_PANDND128,
11263 IX86_BUILTIN_PANDNQ256, IX86_BUILTIN_PANDNQ128,
11264 IX86_BUILTIN_PORD256, IX86_BUILTIN_PORD128,
11265 IX86_BUILTIN_PORQ256, IX86_BUILTIN_PORQ128,
11266 IX86_BUILTIN_PXORD256, IX86_BUILTIN_PXORD128,
11267 IX86_BUILTIN_PXORQ256, IX86_BUILTIN_PXORQ128,
11268 IX86_BUILTIN_PACKSSWB256_MASK, IX86_BUILTIN_PACKSSWB128_MASK,
11269 IX86_BUILTIN_PACKUSWB256_MASK, IX86_BUILTIN_PACKUSWB128_MASK,
11270 IX86_BUILTIN_RNDSCALEPS256, IX86_BUILTIN_RNDSCALEPD256,
11271 IX86_BUILTIN_RNDSCALEPS128, IX86_BUILTIN_RNDSCALEPD128,
11272 IX86_BUILTIN_VTERNLOGQ256_MASK, IX86_BUILTIN_VTERNLOGQ256_MASKZ,
11273 IX86_BUILTIN_VTERNLOGD256_MASK, IX86_BUILTIN_VTERNLOGD256_MASKZ,
11274 IX86_BUILTIN_VTERNLOGQ128_MASK, IX86_BUILTIN_VTERNLOGQ128_MASKZ,
11275 IX86_BUILTIN_VTERNLOGD128_MASK, IX86_BUILTIN_VTERNLOGD128_MASKZ,
11276 IX86_BUILTIN_SCALEFPD256, IX86_BUILTIN_SCALEFPS256,
11277 IX86_BUILTIN_SCALEFPD128, IX86_BUILTIN_SCALEFPS128,
11278 IX86_BUILTIN_VFMADDPD256_MASK, IX86_BUILTIN_VFMADDPD256_MASK3,
11279 IX86_BUILTIN_VFMADDPD256_MASKZ, IX86_BUILTIN_VFMADDPD128_MASK,
11280 IX86_BUILTIN_VFMADDPD128_MASK3, IX86_BUILTIN_VFMADDPD128_MASKZ,
11281 IX86_BUILTIN_VFMADDPS256_MASK, IX86_BUILTIN_VFMADDPS256_MASK3,
11282 IX86_BUILTIN_VFMADDPS256_MASKZ, IX86_BUILTIN_VFMADDPS128_MASK,
11283 IX86_BUILTIN_VFMADDPS128_MASK3, IX86_BUILTIN_VFMADDPS128_MASKZ,
11284 IX86_BUILTIN_VFMSUBPD256_MASK3, IX86_BUILTIN_VFMSUBPD128_MASK3,
11285 IX86_BUILTIN_VFMSUBPS256_MASK3, IX86_BUILTIN_VFMSUBPS128_MASK3,
11286 IX86_BUILTIN_VFNMADDPD256_MASK, IX86_BUILTIN_VFNMADDPD128_MASK,
11287 IX86_BUILTIN_VFNMADDPS256_MASK, IX86_BUILTIN_VFNMADDPS128_MASK,
11288 IX86_BUILTIN_VFNMSUBPD256_MASK, IX86_BUILTIN_VFNMSUBPD256_MASK3,
11289 IX86_BUILTIN_VFNMSUBPD128_MASK, IX86_BUILTIN_VFNMSUBPD128_MASK3,
11290 IX86_BUILTIN_VFNMSUBPS256_MASK, IX86_BUILTIN_VFNMSUBPS256_MASK3,
11291 IX86_BUILTIN_VFNMSUBPS128_MASK, IX86_BUILTIN_VFNMSUBPS128_MASK3,
11292 IX86_BUILTIN_VFMADDSUBPD256_MASK, IX86_BUILTIN_VFMADDSUBPD256_MASK3,
11293 IX86_BUILTIN_VFMADDSUBPD256_MASKZ, IX86_BUILTIN_VFMADDSUBPD128_MASK,
11294 IX86_BUILTIN_VFMADDSUBPD128_MASK3, IX86_BUILTIN_VFMADDSUBPD128_MASKZ,
11295 IX86_BUILTIN_VFMADDSUBPS256_MASK, IX86_BUILTIN_VFMADDSUBPS256_MASK3,
11296 IX86_BUILTIN_VFMADDSUBPS256_MASKZ, IX86_BUILTIN_VFMADDSUBPS128_MASK,
11297 IX86_BUILTIN_VFMADDSUBPS128_MASK3, IX86_BUILTIN_VFMADDSUBPS128_MASKZ,
11298 IX86_BUILTIN_VFMSUBADDPD256_MASK3, IX86_BUILTIN_VFMSUBADDPD128_MASK3,
11299 IX86_BUILTIN_VFMSUBADDPS256_MASK3, IX86_BUILTIN_VFMSUBADDPS128_MASK3,
11300 IX86_BUILTIN_INSERTF64X2_256, IX86_BUILTIN_INSERTI64X2_256,
11301 IX86_BUILTIN_PSRAVV16HI, IX86_BUILTIN_PSRAVV8HI,
11302 IX86_BUILTIN_PMADDUBSW256_MASK, IX86_BUILTIN_PMADDUBSW128_MASK,
11303 IX86_BUILTIN_PMADDWD256_MASK, IX86_BUILTIN_PMADDWD128_MASK,
11304 IX86_BUILTIN_PSRLVV16HI, IX86_BUILTIN_PSRLVV8HI,
11305 IX86_BUILTIN_CVTPS2DQ256_MASK, IX86_BUILTIN_CVTPS2DQ128_MASK,
11306 IX86_BUILTIN_CVTPS2UDQ256, IX86_BUILTIN_CVTPS2UDQ128,
11307 IX86_BUILTIN_CVTPS2QQ256, IX86_BUILTIN_CVTPS2QQ128,
11308 IX86_BUILTIN_CVTPS2UQQ256, IX86_BUILTIN_CVTPS2UQQ128,
11309 IX86_BUILTIN_GETMANTPS256, IX86_BUILTIN_GETMANTPS128,
11310 IX86_BUILTIN_GETMANTPD256, IX86_BUILTIN_GETMANTPD128,
11311 IX86_BUILTIN_MOVDDUP256_MASK, IX86_BUILTIN_MOVDDUP128_MASK,
11312 IX86_BUILTIN_MOVSHDUP256_MASK, IX86_BUILTIN_MOVSHDUP128_MASK,
11313 IX86_BUILTIN_MOVSLDUP256_MASK, IX86_BUILTIN_MOVSLDUP128_MASK,
11314 IX86_BUILTIN_CVTQQ2PS256, IX86_BUILTIN_CVTQQ2PS128,
11315 IX86_BUILTIN_CVTUQQ2PS256, IX86_BUILTIN_CVTUQQ2PS128,
11316 IX86_BUILTIN_CVTQQ2PD256, IX86_BUILTIN_CVTQQ2PD128,
11317 IX86_BUILTIN_CVTUQQ2PD256, IX86_BUILTIN_CVTUQQ2PD128,
11318 IX86_BUILTIN_VPERMT2VARQ256, IX86_BUILTIN_VPERMT2VARQ256_MASKZ,
11319 IX86_BUILTIN_VPERMT2VARD256, IX86_BUILTIN_VPERMT2VARD256_MASKZ,
11320 IX86_BUILTIN_VPERMI2VARQ256, IX86_BUILTIN_VPERMI2VARD256,
11321 IX86_BUILTIN_VPERMT2VARPD256, IX86_BUILTIN_VPERMT2VARPD256_MASKZ,
11322 IX86_BUILTIN_VPERMT2VARPS256, IX86_BUILTIN_VPERMT2VARPS256_MASKZ,
11323 IX86_BUILTIN_VPERMI2VARPD256, IX86_BUILTIN_VPERMI2VARPS256,
11324 IX86_BUILTIN_VPERMT2VARQ128, IX86_BUILTIN_VPERMT2VARQ128_MASKZ,
11325 IX86_BUILTIN_VPERMT2VARD128, IX86_BUILTIN_VPERMT2VARD128_MASKZ,
11326 IX86_BUILTIN_VPERMI2VARQ128, IX86_BUILTIN_VPERMI2VARD128,
11327 IX86_BUILTIN_VPERMT2VARPD128, IX86_BUILTIN_VPERMT2VARPD128_MASKZ,
11328 IX86_BUILTIN_VPERMT2VARPS128, IX86_BUILTIN_VPERMT2VARPS128_MASKZ,
11329 IX86_BUILTIN_VPERMI2VARPD128, IX86_BUILTIN_VPERMI2VARPS128,
11330 IX86_BUILTIN_PSHUFB256_MASK, IX86_BUILTIN_PSHUFB128_MASK,
11331 IX86_BUILTIN_PSHUFHW256_MASK, IX86_BUILTIN_PSHUFHW128_MASK,
11332 IX86_BUILTIN_PSHUFLW256_MASK, IX86_BUILTIN_PSHUFLW128_MASK,
11333 IX86_BUILTIN_PSHUFD256_MASK, IX86_BUILTIN_PSHUFD128_MASK,
11334 IX86_BUILTIN_SHUFPD256_MASK, IX86_BUILTIN_SHUFPD128_MASK,
11335 IX86_BUILTIN_SHUFPS256_MASK, IX86_BUILTIN_SHUFPS128_MASK,
11336 IX86_BUILTIN_PROLVQ256, IX86_BUILTIN_PROLVQ128,
11337 IX86_BUILTIN_PROLQ256, IX86_BUILTIN_PROLQ128,
11338 IX86_BUILTIN_PRORVQ256, IX86_BUILTIN_PRORVQ128,
11339 IX86_BUILTIN_PRORQ256, IX86_BUILTIN_PRORQ128,
11340 IX86_BUILTIN_PSRAVQ128, IX86_BUILTIN_PSRAVQ256,
11341 IX86_BUILTIN_PSLLVV4DI_MASK, IX86_BUILTIN_PSLLVV2DI_MASK,
11342 IX86_BUILTIN_PSLLVV8SI_MASK, IX86_BUILTIN_PSLLVV4SI_MASK,
11343 IX86_BUILTIN_PSRAVV8SI_MASK, IX86_BUILTIN_PSRAVV4SI_MASK,
11344 IX86_BUILTIN_PSRLVV4DI_MASK, IX86_BUILTIN_PSRLVV2DI_MASK,
11345 IX86_BUILTIN_PSRLVV8SI_MASK, IX86_BUILTIN_PSRLVV4SI_MASK,
11346 IX86_BUILTIN_PSRAWI256_MASK, IX86_BUILTIN_PSRAW256_MASK,
11347 IX86_BUILTIN_PSRAWI128_MASK, IX86_BUILTIN_PSRAW128_MASK,
11348 IX86_BUILTIN_PSRLWI256_MASK, IX86_BUILTIN_PSRLW256_MASK,
11349 IX86_BUILTIN_PSRLWI128_MASK, IX86_BUILTIN_PSRLW128_MASK,
11350 IX86_BUILTIN_PRORVD256, IX86_BUILTIN_PROLVD256,
11351 IX86_BUILTIN_PRORD256, IX86_BUILTIN_PROLD256,
11352 IX86_BUILTIN_PRORVD128, IX86_BUILTIN_PROLVD128,
11353 IX86_BUILTIN_PRORD128, IX86_BUILTIN_PROLD128,
11354 IX86_BUILTIN_FPCLASSPD256, IX86_BUILTIN_FPCLASSPD128,
11355 IX86_BUILTIN_FPCLASSSD, IX86_BUILTIN_FPCLASSPS256,
11356 IX86_BUILTIN_FPCLASSPS128, IX86_BUILTIN_FPCLASSSS,
11357 IX86_BUILTIN_CVTB2MASK128, IX86_BUILTIN_CVTB2MASK256,
11358 IX86_BUILTIN_CVTW2MASK128, IX86_BUILTIN_CVTW2MASK256,
11359 IX86_BUILTIN_CVTD2MASK128, IX86_BUILTIN_CVTD2MASK256,
11360 IX86_BUILTIN_CVTQ2MASK128, IX86_BUILTIN_CVTQ2MASK256,
11361 IX86_BUILTIN_CVTMASK2B128, IX86_BUILTIN_CVTMASK2B256,
11362 IX86_BUILTIN_CVTMASK2W128, IX86_BUILTIN_CVTMASK2W256,
11363 IX86_BUILTIN_CVTMASK2D128, IX86_BUILTIN_CVTMASK2D256,
11364 IX86_BUILTIN_CVTMASK2Q128, IX86_BUILTIN_CVTMASK2Q256,
11365 IX86_BUILTIN_PCMPEQB128_MASK, IX86_BUILTIN_PCMPEQB256_MASK,
11366 IX86_BUILTIN_PCMPEQW128_MASK, IX86_BUILTIN_PCMPEQW256_MASK,
11367 IX86_BUILTIN_PCMPEQD128_MASK, IX86_BUILTIN_PCMPEQD256_MASK,
11368 IX86_BUILTIN_PCMPEQQ128_MASK, IX86_BUILTIN_PCMPEQQ256_MASK,
11369 IX86_BUILTIN_PCMPGTB128_MASK, IX86_BUILTIN_PCMPGTB256_MASK,
11370 IX86_BUILTIN_PCMPGTW128_MASK, IX86_BUILTIN_PCMPGTW256_MASK,
11371 IX86_BUILTIN_PCMPGTD128_MASK, IX86_BUILTIN_PCMPGTD256_MASK,
11372 IX86_BUILTIN_PCMPGTQ128_MASK, IX86_BUILTIN_PCMPGTQ256_MASK,
11373 IX86_BUILTIN_PTESTMB128, IX86_BUILTIN_PTESTMB256,
11374 IX86_BUILTIN_PTESTMW128, IX86_BUILTIN_PTESTMW256,
11375 IX86_BUILTIN_PTESTMD128, IX86_BUILTIN_PTESTMD256,
11376 IX86_BUILTIN_PTESTMQ128, IX86_BUILTIN_PTESTMQ256,
11377 IX86_BUILTIN_PTESTNMB128, IX86_BUILTIN_PTESTNMB256,
11378 IX86_BUILTIN_PTESTNMW128, IX86_BUILTIN_PTESTNMW256,
11379 IX86_BUILTIN_PTESTNMD128, IX86_BUILTIN_PTESTNMD256,
11380 IX86_BUILTIN_PTESTNMQ128, IX86_BUILTIN_PTESTNMQ256,
11381 IX86_BUILTIN_PBROADCASTMB128, IX86_BUILTIN_PBROADCASTMB256,
11382 IX86_BUILTIN_PBROADCASTMW128, IX86_BUILTIN_PBROADCASTMW256,
11383 IX86_BUILTIN_COMPRESSPD256, IX86_BUILTIN_COMPRESSPD128,
11384 IX86_BUILTIN_COMPRESSPS256, IX86_BUILTIN_COMPRESSPS128,
11385 IX86_BUILTIN_PCOMPRESSQ256, IX86_BUILTIN_PCOMPRESSQ128,
11386 IX86_BUILTIN_PCOMPRESSD256, IX86_BUILTIN_PCOMPRESSD128,
11387 IX86_BUILTIN_EXPANDPD256, IX86_BUILTIN_EXPANDPD128,
11388 IX86_BUILTIN_EXPANDPS256, IX86_BUILTIN_EXPANDPS128,
11389 IX86_BUILTIN_PEXPANDQ256, IX86_BUILTIN_PEXPANDQ128,
11390 IX86_BUILTIN_PEXPANDD256, IX86_BUILTIN_PEXPANDD128,
11391 IX86_BUILTIN_EXPANDPD256Z, IX86_BUILTIN_EXPANDPD128Z,
11392 IX86_BUILTIN_EXPANDPS256Z, IX86_BUILTIN_EXPANDPS128Z,
11393 IX86_BUILTIN_PEXPANDQ256Z, IX86_BUILTIN_PEXPANDQ128Z,
11394 IX86_BUILTIN_PEXPANDD256Z, IX86_BUILTIN_PEXPANDD128Z,
11395 IX86_BUILTIN_PMAXSD256_MASK, IX86_BUILTIN_PMINSD256_MASK,
11396 IX86_BUILTIN_PMAXUD256_MASK, IX86_BUILTIN_PMINUD256_MASK,
11397 IX86_BUILTIN_PMAXSD128_MASK, IX86_BUILTIN_PMINSD128_MASK,
11398 IX86_BUILTIN_PMAXUD128_MASK, IX86_BUILTIN_PMINUD128_MASK,
11399 IX86_BUILTIN_PMAXSQ256_MASK, IX86_BUILTIN_PMINSQ256_MASK,
11400 IX86_BUILTIN_PMAXUQ256_MASK, IX86_BUILTIN_PMINUQ256_MASK,
11401 IX86_BUILTIN_PMAXSQ128_MASK, IX86_BUILTIN_PMINSQ128_MASK,
11402 IX86_BUILTIN_PMAXUQ128_MASK, IX86_BUILTIN_PMINUQ128_MASK,
11403 IX86_BUILTIN_PMINSB256_MASK, IX86_BUILTIN_PMINUB256_MASK,
11404 IX86_BUILTIN_PMAXSB256_MASK, IX86_BUILTIN_PMAXUB256_MASK,
11405 IX86_BUILTIN_PMINSB128_MASK, IX86_BUILTIN_PMINUB128_MASK,
11406 IX86_BUILTIN_PMAXSB128_MASK, IX86_BUILTIN_PMAXUB128_MASK,
11407 IX86_BUILTIN_PMINSW256_MASK, IX86_BUILTIN_PMINUW256_MASK,
11408 IX86_BUILTIN_PMAXSW256_MASK, IX86_BUILTIN_PMAXUW256_MASK,
11409 IX86_BUILTIN_PMINSW128_MASK, IX86_BUILTIN_PMINUW128_MASK,
11410 IX86_BUILTIN_PMAXSW128_MASK, IX86_BUILTIN_PMAXUW128_MASK,
11411 IX86_BUILTIN_VPCONFLICTQ256, IX86_BUILTIN_VPCONFLICTD256,
11412 IX86_BUILTIN_VPCLZCNTQ256, IX86_BUILTIN_VPCLZCNTD256,
11413 IX86_BUILTIN_UNPCKHPD256_MASK, IX86_BUILTIN_UNPCKHPD128_MASK,
11414 IX86_BUILTIN_UNPCKHPS256_MASK, IX86_BUILTIN_UNPCKHPS128_MASK,
11415 IX86_BUILTIN_UNPCKLPD256_MASK, IX86_BUILTIN_UNPCKLPD128_MASK,
11416 IX86_BUILTIN_UNPCKLPS256_MASK, IX86_BUILTIN_VPCONFLICTQ128,
11417 IX86_BUILTIN_VPCONFLICTD128, IX86_BUILTIN_VPCLZCNTQ128,
11418 IX86_BUILTIN_VPCLZCNTD128, IX86_BUILTIN_UNPCKLPS128_MASK,
11419 IX86_BUILTIN_ALIGND256, IX86_BUILTIN_ALIGNQ256,
11420 IX86_BUILTIN_ALIGND128, IX86_BUILTIN_ALIGNQ128,
11421 IX86_BUILTIN_CVTPS2PH256_MASK, IX86_BUILTIN_CVTPS2PH_MASK,
11422 IX86_BUILTIN_CVTPH2PS_MASK, IX86_BUILTIN_CVTPH2PS256_MASK,
11423 IX86_BUILTIN_PUNPCKHDQ128_MASK, IX86_BUILTIN_PUNPCKHDQ256_MASK,
11424 IX86_BUILTIN_PUNPCKHQDQ128_MASK, IX86_BUILTIN_PUNPCKHQDQ256_MASK,
11425 IX86_BUILTIN_PUNPCKLDQ128_MASK, IX86_BUILTIN_PUNPCKLDQ256_MASK,
11426 IX86_BUILTIN_PUNPCKLQDQ128_MASK, IX86_BUILTIN_PUNPCKLQDQ256_MASK,
11427 IX86_BUILTIN_PUNPCKHBW128_MASK, IX86_BUILTIN_PUNPCKHBW256_MASK,
11428 IX86_BUILTIN_PUNPCKHWD128_MASK, IX86_BUILTIN_PUNPCKHWD256_MASK,
11429 IX86_BUILTIN_PUNPCKLBW128_MASK, IX86_BUILTIN_PUNPCKLBW256_MASK,
11430 IX86_BUILTIN_PUNPCKLWD128_MASK, IX86_BUILTIN_PUNPCKLWD256_MASK,
11431 IX86_BUILTIN_PSLLVV16HI, IX86_BUILTIN_PSLLVV8HI,
11432 IX86_BUILTIN_PACKSSDW256_MASK, IX86_BUILTIN_PACKSSDW128_MASK,
11433 IX86_BUILTIN_PACKUSDW256_MASK, IX86_BUILTIN_PACKUSDW128_MASK,
11434 IX86_BUILTIN_PAVGB256_MASK, IX86_BUILTIN_PAVGW256_MASK,
11435 IX86_BUILTIN_PAVGB128_MASK, IX86_BUILTIN_PAVGW128_MASK,
11436 IX86_BUILTIN_VPERMVARSF256_MASK, IX86_BUILTIN_VPERMVARDF256_MASK,
11437 IX86_BUILTIN_VPERMDF256_MASK, IX86_BUILTIN_PABSB256_MASK,
11438 IX86_BUILTIN_PABSB128_MASK, IX86_BUILTIN_PABSW256_MASK,
11439 IX86_BUILTIN_PABSW128_MASK, IX86_BUILTIN_VPERMILVARPD_MASK,
11440 IX86_BUILTIN_VPERMILVARPS_MASK, IX86_BUILTIN_VPERMILVARPD256_MASK,
11441 IX86_BUILTIN_VPERMILVARPS256_MASK, IX86_BUILTIN_VPERMILPD_MASK,
11442 IX86_BUILTIN_VPERMILPS_MASK, IX86_BUILTIN_VPERMILPD256_MASK,
11443 IX86_BUILTIN_VPERMILPS256_MASK, IX86_BUILTIN_BLENDMQ256,
11444 IX86_BUILTIN_BLENDMD256, IX86_BUILTIN_BLENDMPD256,
11445 IX86_BUILTIN_BLENDMPS256, IX86_BUILTIN_BLENDMQ128,
11446 IX86_BUILTIN_BLENDMD128, IX86_BUILTIN_BLENDMPD128,
11447 IX86_BUILTIN_BLENDMPS128, IX86_BUILTIN_BLENDMW256,
11448 IX86_BUILTIN_BLENDMB256, IX86_BUILTIN_BLENDMW128,
11449 IX86_BUILTIN_BLENDMB128, IX86_BUILTIN_PMULLD256_MASK,
11450 IX86_BUILTIN_PMULLD128_MASK, IX86_BUILTIN_PMULUDQ256_MASK,
11451 IX86_BUILTIN_PMULDQ256_MASK, IX86_BUILTIN_PMULDQ128_MASK,
11452 IX86_BUILTIN_PMULUDQ128_MASK, IX86_BUILTIN_CVTPD2PS256_MASK,
11453 IX86_BUILTIN_CVTPD2PS_MASK, IX86_BUILTIN_VPERMVARSI256_MASK,
11454 IX86_BUILTIN_VPERMVARDI256_MASK, IX86_BUILTIN_VPERMDI256_MASK,
11455 IX86_BUILTIN_CMPQ256, IX86_BUILTIN_CMPD256,
11456 IX86_BUILTIN_UCMPQ256, IX86_BUILTIN_UCMPD256,
11457 IX86_BUILTIN_CMPB256, IX86_BUILTIN_CMPW256,
11458 IX86_BUILTIN_UCMPB256, IX86_BUILTIN_UCMPW256,
11459 IX86_BUILTIN_CMPPD256_MASK, IX86_BUILTIN_CMPPS256_MASK,
11460 IX86_BUILTIN_CMPQ128, IX86_BUILTIN_CMPD128,
11461 IX86_BUILTIN_UCMPQ128, IX86_BUILTIN_UCMPD128,
11462 IX86_BUILTIN_CMPB128, IX86_BUILTIN_CMPW128,
11463 IX86_BUILTIN_UCMPB128, IX86_BUILTIN_UCMPW128,
11464 IX86_BUILTIN_CMPPD128_MASK, IX86_BUILTIN_CMPPS128_MASK,
11465 IX86_BUILTIN_GATHER3SIV8SF, IX86_BUILTIN_GATHER3SIV4SF,
11466 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV2DF,
11467 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3DIV4SF,
11468 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
11469 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3SIV4SI,
11470 IX86_BUILTIN_GATHER3SIV4DI, IX86_BUILTIN_GATHER3SIV2DI,
11471 IX86_BUILTIN_GATHER3DIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
11472 IX86_BUILTIN_GATHER3DIV4DI, IX86_BUILTIN_GATHER3DIV2DI,
11473 IX86_BUILTIN_SCATTERSIV8SF, IX86_BUILTIN_SCATTERSIV4SF,
11474 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV2DF,
11475 IX86_BUILTIN_SCATTERDIV8SF, IX86_BUILTIN_SCATTERDIV4SF,
11476 IX86_BUILTIN_SCATTERDIV4DF, IX86_BUILTIN_SCATTERDIV2DF,
11477 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV4SI,
11478 IX86_BUILTIN_SCATTERSIV4DI, IX86_BUILTIN_SCATTERSIV2DI,
11479 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_SCATTERDIV4SI,
11480 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
11481 IX86_BUILTIN_RANGESD128, IX86_BUILTIN_RANGESS128,
11482 IX86_BUILTIN_KUNPCKWD, IX86_BUILTIN_KUNPCKDQ,
11483 IX86_BUILTIN_BROADCASTF32x2_512, IX86_BUILTIN_BROADCASTI32x2_512,
11484 IX86_BUILTIN_BROADCASTF64X2_512, IX86_BUILTIN_BROADCASTI64X2_512,
11485 IX86_BUILTIN_BROADCASTF32X8_512, IX86_BUILTIN_BROADCASTI32X8_512,
11486 IX86_BUILTIN_EXTRACTF64X2_512, IX86_BUILTIN_EXTRACTF32X8,
11487 IX86_BUILTIN_EXTRACTI64X2_512, IX86_BUILTIN_EXTRACTI32X8,
11488 IX86_BUILTIN_REDUCEPD512_MASK, IX86_BUILTIN_REDUCEPS512_MASK,
11489 IX86_BUILTIN_PMULLQ512, IX86_BUILTIN_XORPD512,
11490 IX86_BUILTIN_XORPS512, IX86_BUILTIN_ORPD512,
11491 IX86_BUILTIN_ORPS512, IX86_BUILTIN_ANDPD512,
11492 IX86_BUILTIN_ANDPS512, IX86_BUILTIN_ANDNPD512,
11493 IX86_BUILTIN_ANDNPS512, IX86_BUILTIN_INSERTF32X8,
11494 IX86_BUILTIN_INSERTI32X8, IX86_BUILTIN_INSERTF64X2_512,
11495 IX86_BUILTIN_INSERTI64X2_512, IX86_BUILTIN_FPCLASSPD512,
11496 IX86_BUILTIN_FPCLASSPS512, IX86_BUILTIN_CVTD2MASK512,
11497 IX86_BUILTIN_CVTQ2MASK512, IX86_BUILTIN_CVTMASK2D512,
11498 IX86_BUILTIN_CVTMASK2Q512, IX86_BUILTIN_CVTPD2QQ512,
11499 IX86_BUILTIN_CVTPS2QQ512, IX86_BUILTIN_CVTPD2UQQ512,
11500 IX86_BUILTIN_CVTPS2UQQ512, IX86_BUILTIN_CVTQQ2PS512,
11501 IX86_BUILTIN_CVTUQQ2PS512, IX86_BUILTIN_CVTQQ2PD512,
11502 IX86_BUILTIN_CVTUQQ2PD512, IX86_BUILTIN_CVTTPS2QQ512,
11503 IX86_BUILTIN_CVTTPS2UQQ512, IX86_BUILTIN_CVTTPD2QQ512,
11504 IX86_BUILTIN_CVTTPD2UQQ512, IX86_BUILTIN_RANGEPS512,
11505 IX86_BUILTIN_RANGEPD512, IX86_BUILTIN_PACKUSDW512,
11506 IX86_BUILTIN_PACKSSDW512, IX86_BUILTIN_LOADDQUHI512_MASK,
11507 IX86_BUILTIN_LOADDQUQI512_MASK, IX86_BUILTIN_PSLLDQ512,
11508 IX86_BUILTIN_PSRLDQ512, IX86_BUILTIN_STOREDQUHI512_MASK,
11509 IX86_BUILTIN_STOREDQUQI512_MASK, IX86_BUILTIN_PALIGNR512,
11510 IX86_BUILTIN_PALIGNR512_MASK, IX86_BUILTIN_MOVDQUHI512_MASK,
11511 IX86_BUILTIN_MOVDQUQI512_MASK, IX86_BUILTIN_PSADBW512,
11512 IX86_BUILTIN_DBPSADBW512, IX86_BUILTIN_PBROADCASTB512,
11513 IX86_BUILTIN_PBROADCASTB512_GPR, IX86_BUILTIN_PBROADCASTW512,
11514 IX86_BUILTIN_PBROADCASTW512_GPR, IX86_BUILTIN_PMOVSXBW512_MASK,
11515 IX86_BUILTIN_PMOVZXBW512_MASK, IX86_BUILTIN_VPERMVARHI512_MASK,
11516 IX86_BUILTIN_VPERMT2VARHI512, IX86_BUILTIN_VPERMT2VARHI512_MASKZ,
11517 IX86_BUILTIN_VPERMI2VARHI512, IX86_BUILTIN_PAVGB512,
11518 IX86_BUILTIN_PAVGW512, IX86_BUILTIN_PADDB512,
11519 IX86_BUILTIN_PSUBB512, IX86_BUILTIN_PSUBSB512,
11520 IX86_BUILTIN_PADDSB512, IX86_BUILTIN_PSUBUSB512,
11521 IX86_BUILTIN_PADDUSB512, IX86_BUILTIN_PSUBW512,
11522 IX86_BUILTIN_PADDW512, IX86_BUILTIN_PSUBSW512,
11523 IX86_BUILTIN_PADDSW512, IX86_BUILTIN_PSUBUSW512,
11524 IX86_BUILTIN_PADDUSW512, IX86_BUILTIN_PMAXUW512,
11525 IX86_BUILTIN_PMAXSW512, IX86_BUILTIN_PMINUW512,
11526 IX86_BUILTIN_PMINSW512, IX86_BUILTIN_PMAXUB512,
11527 IX86_BUILTIN_PMAXSB512, IX86_BUILTIN_PMINUB512,
11528 IX86_BUILTIN_PMINSB512, IX86_BUILTIN_PMOVWB512,
11529 IX86_BUILTIN_PMOVSWB512, IX86_BUILTIN_PMOVUSWB512,
11530 IX86_BUILTIN_PMULHRSW512_MASK, IX86_BUILTIN_PMULHUW512_MASK,
11531 IX86_BUILTIN_PMULHW512_MASK, IX86_BUILTIN_PMULLW512_MASK,
11532 IX86_BUILTIN_PSLLWI512_MASK, IX86_BUILTIN_PSLLW512_MASK,
11533 IX86_BUILTIN_PACKSSWB512, IX86_BUILTIN_PACKUSWB512,
11534 IX86_BUILTIN_PSRAVV32HI, IX86_BUILTIN_PMADDUBSW512_MASK,
11535 IX86_BUILTIN_PMADDWD512_MASK, IX86_BUILTIN_PSRLVV32HI,
11536 IX86_BUILTIN_PUNPCKHBW512, IX86_BUILTIN_PUNPCKHWD512,
11537 IX86_BUILTIN_PUNPCKLBW512, IX86_BUILTIN_PUNPCKLWD512,
11538 IX86_BUILTIN_PSHUFB512, IX86_BUILTIN_PSHUFHW512,
11539 IX86_BUILTIN_PSHUFLW512, IX86_BUILTIN_PSRAWI512,
11540 IX86_BUILTIN_PSRAW512, IX86_BUILTIN_PSRLWI512,
11541 IX86_BUILTIN_PSRLW512, IX86_BUILTIN_CVTB2MASK512,
11542 IX86_BUILTIN_CVTW2MASK512, IX86_BUILTIN_CVTMASK2B512,
11543 IX86_BUILTIN_CVTMASK2W512, IX86_BUILTIN_PCMPEQB512_MASK,
11544 IX86_BUILTIN_PCMPEQW512_MASK, IX86_BUILTIN_PCMPGTB512_MASK,
11545 IX86_BUILTIN_PCMPGTW512_MASK, IX86_BUILTIN_PTESTMB512,
11546 IX86_BUILTIN_PTESTMW512, IX86_BUILTIN_PTESTNMB512,
11547 IX86_BUILTIN_PTESTNMW512, IX86_BUILTIN_PSLLVV32HI,
11548 IX86_BUILTIN_PABSB512, IX86_BUILTIN_PABSW512,
11549 IX86_BUILTIN_BLENDMW512, IX86_BUILTIN_BLENDMB512,
11550 IX86_BUILTIN_CMPB512, IX86_BUILTIN_CMPW512,
11551 IX86_BUILTIN_UCMPB512, IX86_BUILTIN_UCMPW512.
11552 (bdesc_special_args):
11553 Add __builtin_ia32_loaddquhi512_mask, __builtin_ia32_loaddquqi512_mask,
11554 __builtin_ia32_storedquhi512_mask, __builtin_ia32_storedquqi512_mask,
11555 __builtin_ia32_loaddquhi256_mask, __builtin_ia32_loaddquhi128_mask,
11556 __builtin_ia32_loaddquqi256_mask, __builtin_ia32_loaddquqi128_mask,
11557 __builtin_ia32_movdqa64load256_mask, __builtin_ia32_movdqa64load128_mask,
11558 __builtin_ia32_movdqa32load256_mask, __builtin_ia32_movdqa32load128_mask,
11559 __builtin_ia32_movdqa64store256_mask, __builtin_ia32_movdqa64store128_mask,
11560 __builtin_ia32_movdqa32store256_mask, __builtin_ia32_movdqa32store128_mask,
11561 __builtin_ia32_loadapd256_mask, __builtin_ia32_loadapd128_mask,
11562 __builtin_ia32_loadaps256_mask, __builtin_ia32_loadaps128_mask,
11563 __builtin_ia32_storeapd256_mask, __builtin_ia32_storeapd128_mask,
11564 __builtin_ia32_storeaps256_mask, __builtin_ia32_storeaps128_mask,
11565 __builtin_ia32_loadupd256_mask, __builtin_ia32_loadupd128_mask,
11566 __builtin_ia32_loadups256_mask, __builtin_ia32_loadups128_mask,
11567 __builtin_ia32_storeupd256_mask, __builtin_ia32_storeupd128_mask,
11568 __builtin_ia32_storeups256_mask, __builtin_ia32_storeups128_mask,
11569 __builtin_ia32_loaddqudi256_mask, __builtin_ia32_loaddqudi128_mask,
11570 __builtin_ia32_loaddqusi256_mask, __builtin_ia32_loaddqusi128_mask,
11571 __builtin_ia32_storedqudi256_mask, __builtin_ia32_storedqudi128_mask,
11572 __builtin_ia32_storedqusi256_mask, __builtin_ia32_storedqusi128_mask,
11573 __builtin_ia32_storedquhi256_mask, __builtin_ia32_storedquhi128_mask,
11574 __builtin_ia32_storedquqi256_mask, __builtin_ia32_storedquqi128_mask,
11575 __builtin_ia32_compressstoredf256_mask, __builtin_ia32_compressstoredf128_mask,
11576 __builtin_ia32_compressstoresf256_mask, __builtin_ia32_compressstoresf128_mask,
11577 __builtin_ia32_compressstoredi256_mask, __builtin_ia32_compressstoredi128_mask,
11578 __builtin_ia32_compressstoresi256_mask, __builtin_ia32_compressstoresi128_mask,
11579 __builtin_ia32_expandloaddf256_mask, __builtin_ia32_expandloaddf128_mask,
11580 __builtin_ia32_expandloadsf256_mask, __builtin_ia32_expandloadsf128_mask,
11581 __builtin_ia32_expandloaddi256_mask, __builtin_ia32_expandloaddi128_mask,
11582 __builtin_ia32_expandloadsi256_mask, __builtin_ia32_expandloadsi128_mask,
11583 __builtin_ia32_expandloaddf256_maskz, __builtin_ia32_expandloaddf128_maskz,
11584 __builtin_ia32_expandloadsf256_maskz, __builtin_ia32_expandloadsf128_maskz,
11585 __builtin_ia32_expandloaddi256_maskz, __builtin_ia32_expandloaddi128_maskz,
11586 __builtin_ia32_expandloadsi256_maskz, __builtin_ia32_expandloadsi128_maskz,
11587 __builtin_ia32_pmovqd256mem_mask, __builtin_ia32_pmovqd128mem_mask,
11588 __builtin_ia32_pmovsqd256mem_mask, __builtin_ia32_pmovsqd128mem_mask,
11589 __builtin_ia32_pmovusqd256mem_mask, __builtin_ia32_pmovusqd128mem_mask,
11590 __builtin_ia32_pmovqw256mem_mask, __builtin_ia32_pmovqw128mem_mask,
11591 __builtin_ia32_pmovsqw256mem_mask, __builtin_ia32_pmovsqw128mem_mask,
11592 __builtin_ia32_pmovusqw256mem_mask, __builtin_ia32_pmovusqw128mem_mask,
11593 __builtin_ia32_pmovqb256mem_mask, __builtin_ia32_pmovqb128mem_mask,
11594 __builtin_ia32_pmovsqb256mem_mask, __builtin_ia32_pmovsqb128mem_mask,
11595 __builtin_ia32_pmovusqb256mem_mask, __builtin_ia32_pmovusqb128mem_mask,
11596 __builtin_ia32_pmovdb256mem_mask, __builtin_ia32_pmovdb128mem_mask,
11597 __builtin_ia32_pmovsdb256mem_mask, __builtin_ia32_pmovsdb128mem_mask,
11598 __builtin_ia32_pmovusdb256mem_mask, __builtin_ia32_pmovusdb128mem_mask,
11599 __builtin_ia32_pmovdw256mem_mask, __builtin_ia32_pmovdw128mem_mask,
11600 __builtin_ia32_pmovsdw256mem_mask, __builtin_ia32_pmovsdw128mem_mask,
11601 __builtin_ia32_pmovusdw256mem_mask, __builtin_ia32_pmovusdw128mem_mask,
11602 __builtin_ia32_palignr256_mask, __builtin_ia32_palignr128_mask,
11603 __builtin_ia32_movdqa64_256_mask, __builtin_ia32_movdqa64_128_mask,
11604 __builtin_ia32_movdqa32_256_mask, __builtin_ia32_movdqa32_128_mask,
11605 __builtin_ia32_movapd256_mask, __builtin_ia32_movapd128_mask,
11606 __builtin_ia32_movaps256_mask, __builtin_ia32_movaps128_mask,
11607 __builtin_ia32_movdquhi256_mask, __builtin_ia32_movdquhi128_mask,
11608 __builtin_ia32_movdquqi256_mask, __builtin_ia32_movdquqi128_mask,
11609 __builtin_ia32_minps_mask, __builtin_ia32_maxps_mask,
11610 __builtin_ia32_minpd_mask, __builtin_ia32_maxpd_mask,
11611 __builtin_ia32_maxpd256_mask, __builtin_ia32_maxps256_mask,
11612 __builtin_ia32_minpd256_mask, __builtin_ia32_minps256_mask,
11613 __builtin_ia32_mulps_mask, __builtin_ia32_divps_mask,
11614 __builtin_ia32_mulpd_mask, __builtin_ia32_divpd_mask,
11615 __builtin_ia32_divpd256_mask, __builtin_ia32_divps256_mask,
11616 __builtin_ia32_mulpd256_mask, __builtin_ia32_mulps256_mask,
11617 __builtin_ia32_addpd128_mask, __builtin_ia32_addpd256_mask,
11618 __builtin_ia32_addps128_mask, __builtin_ia32_addps256_mask,
11619 __builtin_ia32_subpd128_mask, __builtin_ia32_subpd256_mask,
11620 __builtin_ia32_subps128_mask, __builtin_ia32_subps256_mask,
11621 __builtin_ia32_xorpd256_mask, __builtin_ia32_xorpd128_mask,
11622 __builtin_ia32_xorps256_mask, __builtin_ia32_xorps128_mask,
11623 __builtin_ia32_orpd256_mask, __builtin_ia32_orpd128_mask,
11624 __builtin_ia32_orps256_mask, __builtin_ia32_orps128_mask,
11625 __builtin_ia32_broadcastf32x2_256_mask, __builtin_ia32_broadcasti32x2_256_mask,
11626 __builtin_ia32_broadcasti32x2_128_mask, __builtin_ia32_broadcastf64x2_256_mask,
11627 __builtin_ia32_broadcasti64x2_256_mask, __builtin_ia32_broadcastf32x4_256_mask,
11628 __builtin_ia32_broadcasti32x4_256_mask, __builtin_ia32_extractf32x4_256_mask,
11629 __builtin_ia32_extracti32x4_256_mask, __builtin_ia32_dbpsadbw256_mask,
11630 __builtin_ia32_dbpsadbw128_mask, __builtin_ia32_cvttpd2qq256_mask,
11631 __builtin_ia32_cvttpd2qq128_mask, __builtin_ia32_cvttpd2uqq256_mask,
11632 __builtin_ia32_cvttpd2uqq128_mask, __builtin_ia32_cvtpd2qq256_mask,
11633 __builtin_ia32_cvtpd2qq128_mask, __builtin_ia32_cvtpd2uqq256_mask,
11634 __builtin_ia32_cvtpd2uqq128_mask, __builtin_ia32_cvtpd2udq256_mask,
11635 __builtin_ia32_cvtpd2udq128_mask, __builtin_ia32_cvttps2qq256_mask,
11636 __builtin_ia32_cvttps2qq128_mask, __builtin_ia32_cvttps2uqq256_mask,
11637 __builtin_ia32_cvttps2uqq128_mask, __builtin_ia32_cvttps2dq256_mask,
11638 __builtin_ia32_cvttps2dq128_mask, __builtin_ia32_cvttps2udq256_mask,
11639 __builtin_ia32_cvttps2udq128_mask, __builtin_ia32_cvttpd2dq256_mask,
11640 __builtin_ia32_cvttpd2dq128_mask, __builtin_ia32_cvttpd2udq256_mask,
11641 __builtin_ia32_cvttpd2udq128_mask, __builtin_ia32_cvtpd2dq256_mask,
11642 __builtin_ia32_cvtpd2dq128_mask, __builtin_ia32_cvtdq2pd256_mask,
11643 __builtin_ia32_cvtdq2pd128_mask, __builtin_ia32_cvtudq2pd256_mask,
11644 __builtin_ia32_cvtudq2pd128_mask, __builtin_ia32_cvtdq2ps256_mask,
11645 __builtin_ia32_cvtdq2ps128_mask, __builtin_ia32_cvtudq2ps256_mask,
11646 __builtin_ia32_cvtudq2ps128_mask, __builtin_ia32_cvtps2pd256_mask,
11647 __builtin_ia32_cvtps2pd128_mask, __builtin_ia32_pbroadcastb256_mask,
11648 __builtin_ia32_pbroadcastb256_gpr_mask, __builtin_ia32_pbroadcastb128_mask,
11649 __builtin_ia32_pbroadcastb128_gpr_mask, __builtin_ia32_pbroadcastw256_mask,
11650 __builtin_ia32_pbroadcastw256_gpr_mask, __builtin_ia32_pbroadcastw128_mask,
11651 __builtin_ia32_pbroadcastw128_gpr_mask, __builtin_ia32_pbroadcastd256_mask,
11652 __builtin_ia32_pbroadcastd256_gpr_mask, __builtin_ia32_pbroadcastd128_mask,
11653 __builtin_ia32_pbroadcastd128_gpr_mask, __builtin_ia32_pbroadcastq256_mask,
11654 __builtin_ia32_pbroadcastq256_gpr_mask, __builtin_ia32_pbroadcastq256_mem_mask,
11655 __builtin_ia32_pbroadcastq128_mask, __builtin_ia32_pbroadcastq128_gpr_mask,
11656 __builtin_ia32_pbroadcastq128_mem_mask, __builtin_ia32_broadcastss256_mask,
11657 __builtin_ia32_broadcastss128_mask, __builtin_ia32_broadcastsd256_mask,
11658 __builtin_ia32_extractf64x2_256_mask, __builtin_ia32_extracti64x2_256_mask,
11659 __builtin_ia32_insertf32x4_256_mask, __builtin_ia32_inserti32x4_256_mask,
11660 __builtin_ia32_pmovsxbw256_mask, __builtin_ia32_pmovsxbw128_mask,
11661 __builtin_ia32_pmovsxbd256_mask, __builtin_ia32_pmovsxbd128_mask,
11662 __builtin_ia32_pmovsxbq256_mask, __builtin_ia32_pmovsxbq128_mask,
11663 __builtin_ia32_pmovsxwd256_mask, __builtin_ia32_pmovsxwd128_mask,
11664 __builtin_ia32_pmovsxwq256_mask, __builtin_ia32_pmovsxwq128_mask,
11665 __builtin_ia32_pmovsxdq256_mask, __builtin_ia32_pmovsxdq128_mask,
11666 __builtin_ia32_pmovzxbw256_mask, __builtin_ia32_pmovzxbw128_mask,
11667 __builtin_ia32_pmovzxbd256_mask, __builtin_ia32_pmovzxbd128_mask,
11668 __builtin_ia32_pmovzxbq256_mask, __builtin_ia32_pmovzxbq128_mask,
11669 __builtin_ia32_pmovzxwd256_mask, __builtin_ia32_pmovzxwd128_mask,
11670 __builtin_ia32_pmovzxwq256_mask, __builtin_ia32_pmovzxwq128_mask,
11671 __builtin_ia32_pmovzxdq256_mask, __builtin_ia32_pmovzxdq128_mask,
11672 __builtin_ia32_reducepd256_mask, __builtin_ia32_reducepd128_mask,
11673 __builtin_ia32_reduceps256_mask, __builtin_ia32_reduceps128_mask,
11674 __builtin_ia32_reducesd, __builtin_ia32_reducess,
11675 __builtin_ia32_permvarhi256_mask, __builtin_ia32_permvarhi128_mask,
11676 __builtin_ia32_vpermt2varhi256_mask, __builtin_ia32_vpermt2varhi256_maskz,
11677 __builtin_ia32_vpermt2varhi128_mask, __builtin_ia32_vpermt2varhi128_maskz,
11678 __builtin_ia32_vpermi2varhi256_mask, __builtin_ia32_vpermi2varhi128_mask,
11679 __builtin_ia32_rcp14pd256_mask, __builtin_ia32_rcp14pd128_mask,
11680 __builtin_ia32_rcp14ps256_mask, __builtin_ia32_rcp14ps128_mask,
11681 __builtin_ia32_rsqrt14pd256_mask, __builtin_ia32_rsqrt14pd128_mask,
11682 __builtin_ia32_rsqrt14ps256_mask, __builtin_ia32_rsqrt14ps128_mask,
11683 __builtin_ia32_sqrtpd256_mask, __builtin_ia32_sqrtpd128_mask,
11684 __builtin_ia32_sqrtps256_mask, __builtin_ia32_sqrtps128_mask,
11685 __builtin_ia32_paddb128_mask, __builtin_ia32_paddw128_mask,
11686 __builtin_ia32_paddd128_mask, __builtin_ia32_paddq128_mask,
11687 __builtin_ia32_psubb128_mask, __builtin_ia32_psubw128_mask,
11688 __builtin_ia32_psubd128_mask, __builtin_ia32_psubq128_mask,
11689 __builtin_ia32_paddsb128_mask, __builtin_ia32_paddsw128_mask,
11690 __builtin_ia32_psubsb128_mask, __builtin_ia32_psubsw128_mask,
11691 __builtin_ia32_paddusb128_mask, __builtin_ia32_paddusw128_mask,
11692 __builtin_ia32_psubusb128_mask, __builtin_ia32_psubusw128_mask,
11693 __builtin_ia32_paddb256_mask, __builtin_ia32_paddw256_mask,
11694 __builtin_ia32_paddd256_mask, __builtin_ia32_paddq256_mask,
11695 __builtin_ia32_paddsb256_mask, __builtin_ia32_paddsw256_mask,
11696 __builtin_ia32_paddusb256_mask, __builtin_ia32_paddusw256_mask,
11697 __builtin_ia32_psubb256_mask, __builtin_ia32_psubw256_mask,
11698 __builtin_ia32_psubd256_mask, __builtin_ia32_psubq256_mask,
11699 __builtin_ia32_psubsb256_mask, __builtin_ia32_psubsw256_mask,
11700 __builtin_ia32_psubusb256_mask, __builtin_ia32_psubusw256_mask,
11701 __builtin_ia32_shuf_f64x2_256_mask, __builtin_ia32_shuf_i64x2_256_mask,
11702 __builtin_ia32_shuf_i32x4_256_mask, __builtin_ia32_shuf_f32x4_256_mask,
11703 __builtin_ia32_pmovwb128_mask, __builtin_ia32_pmovwb256_mask,
11704 __builtin_ia32_pmovswb128_mask, __builtin_ia32_pmovswb256_mask,
11705 __builtin_ia32_pmovuswb128_mask, __builtin_ia32_pmovuswb256_mask,
11706 __builtin_ia32_pmovdb128_mask, __builtin_ia32_pmovdb256_mask,
11707 __builtin_ia32_pmovsdb128_mask, __builtin_ia32_pmovsdb256_mask,
11708 __builtin_ia32_pmovusdb128_mask, __builtin_ia32_pmovusdb256_mask,
11709 __builtin_ia32_pmovdw128_mask, __builtin_ia32_pmovdw256_mask,
11710 __builtin_ia32_pmovsdw128_mask, __builtin_ia32_pmovsdw256_mask,
11711 __builtin_ia32_pmovusdw128_mask, __builtin_ia32_pmovusdw256_mask,
11712 __builtin_ia32_pmovqb128_mask, __builtin_ia32_pmovqb256_mask,
11713 __builtin_ia32_pmovsqb128_mask, __builtin_ia32_pmovsqb256_mask,
11714 __builtin_ia32_pmovusqb128_mask, __builtin_ia32_pmovusqb256_mask,
11715 __builtin_ia32_pmovqw128_mask, __builtin_ia32_pmovqw256_mask,
11716 __builtin_ia32_pmovsqw128_mask, __builtin_ia32_pmovsqw256_mask,
11717 __builtin_ia32_pmovusqw128_mask, __builtin_ia32_pmovusqw256_mask,
11718 __builtin_ia32_pmovqd128_mask, __builtin_ia32_pmovqd256_mask,
11719 __builtin_ia32_pmovsqd128_mask, __builtin_ia32_pmovsqd256_mask,
11720 __builtin_ia32_pmovusqd128_mask, __builtin_ia32_pmovusqd256_mask,
11721 __builtin_ia32_rangepd256_mask, __builtin_ia32_rangepd128_mask,
11722 __builtin_ia32_rangeps256_mask, __builtin_ia32_rangeps128_mask,
11723 __builtin_ia32_getexpps256_mask, __builtin_ia32_getexppd256_mask,
11724 __builtin_ia32_getexpps128_mask, __builtin_ia32_getexppd128_mask,
11725 __builtin_ia32_fixupimmpd256, __builtin_ia32_fixupimmpd256_mask,
11726 __builtin_ia32_fixupimmpd256_maskz, __builtin_ia32_fixupimmps256,
11727 __builtin_ia32_fixupimmps256_mask, __builtin_ia32_fixupimmps256_maskz,
11728 __builtin_ia32_fixupimmpd128, __builtin_ia32_fixupimmpd128_mask,
11729 __builtin_ia32_fixupimmpd128_maskz, __builtin_ia32_fixupimmps128,
11730 __builtin_ia32_fixupimmps128_mask, __builtin_ia32_fixupimmps128_maskz,
11731 __builtin_ia32_pabsq256_mask, __builtin_ia32_pabsq128_mask,
11732 __builtin_ia32_pabsd256_mask, __builtin_ia32_pabsd128_mask,
11733 __builtin_ia32_pmulhrsw256_mask, __builtin_ia32_pmulhrsw128_mask,
11734 __builtin_ia32_pmulhuw128_mask, __builtin_ia32_pmulhuw256_mask,
11735 __builtin_ia32_pmulhw256_mask, __builtin_ia32_pmulhw128_mask,
11736 __builtin_ia32_pmullw256_mask, __builtin_ia32_pmullw128_mask,
11737 __builtin_ia32_pmullq256_mask, __builtin_ia32_pmullq128_mask,
11738 __builtin_ia32_andpd256_mask, __builtin_ia32_andpd128_mask,
11739 __builtin_ia32_andps256_mask, __builtin_ia32_andps128_mask,
11740 __builtin_ia32_andnpd256_mask, __builtin_ia32_andnpd128_mask,
11741 __builtin_ia32_andnps256_mask, __builtin_ia32_andnps128_mask,
11742 __builtin_ia32_psllwi128_mask, __builtin_ia32_pslldi128_mask,
11743 __builtin_ia32_psllqi128_mask, __builtin_ia32_psllw128_mask,
11744 __builtin_ia32_pslld128_mask, __builtin_ia32_psllq128_mask,
11745 __builtin_ia32_psllwi256_mask, __builtin_ia32_psllw256_mask,
11746 __builtin_ia32_pslldi256_mask, __builtin_ia32_pslld256_mask,
11747 __builtin_ia32_psllqi256_mask, __builtin_ia32_psllq256_mask,
11748 __builtin_ia32_psradi128_mask, __builtin_ia32_psrad128_mask,
11749 __builtin_ia32_psradi256_mask, __builtin_ia32_psrad256_mask,
11750 __builtin_ia32_psraqi128_mask, __builtin_ia32_psraq128_mask,
11751 __builtin_ia32_psraqi256_mask, __builtin_ia32_psraq256_mask,
11752 __builtin_ia32_pandd256_mask, __builtin_ia32_pandd128_mask,
11753 __builtin_ia32_psrldi128_mask, __builtin_ia32_psrld128_mask,
11754 __builtin_ia32_psrldi256_mask, __builtin_ia32_psrld256_mask,
11755 __builtin_ia32_psrlqi128_mask, __builtin_ia32_psrlq128_mask,
11756 __builtin_ia32_psrlqi256_mask, __builtin_ia32_psrlq256_mask,
11757 __builtin_ia32_pandq256_mask, __builtin_ia32_pandq128_mask,
11758 __builtin_ia32_pandnd256_mask, __builtin_ia32_pandnd128_mask,
11759 __builtin_ia32_pandnq256_mask, __builtin_ia32_pandnq128_mask,
11760 __builtin_ia32_pord256_mask, __builtin_ia32_pord128_mask,
11761 __builtin_ia32_porq256_mask, __builtin_ia32_porq128_mask,
11762 __builtin_ia32_pxord256_mask, __builtin_ia32_pxord128_mask,
11763 __builtin_ia32_pxorq256_mask, __builtin_ia32_pxorq128_mask,
11764 __builtin_ia32_packsswb256_mask, __builtin_ia32_packsswb128_mask,
11765 __builtin_ia32_packuswb256_mask, __builtin_ia32_packuswb128_mask,
11766 __builtin_ia32_rndscaleps_256_mask, __builtin_ia32_rndscalepd_256_mask,
11767 __builtin_ia32_rndscaleps_128_mask, __builtin_ia32_rndscalepd_128_mask,
11768 __builtin_ia32_pternlogq256_mask, __builtin_ia32_pternlogq256_maskz,
11769 __builtin_ia32_pternlogd256_mask, __builtin_ia32_pternlogd256_maskz,
11770 __builtin_ia32_pternlogq128_mask, __builtin_ia32_pternlogq128_maskz,
11771 __builtin_ia32_pternlogd128_mask, __builtin_ia32_pternlogd128_maskz,
11772 __builtin_ia32_scalefpd256_mask, __builtin_ia32_scalefps256_mask,
11773 __builtin_ia32_scalefpd128_mask, __builtin_ia32_scalefps128_mask,
11774 __builtin_ia32_vfmaddpd256_mask, __builtin_ia32_vfmaddpd256_mask3,
11775 __builtin_ia32_vfmaddpd256_maskz, __builtin_ia32_vfmaddpd128_mask,
11776 __builtin_ia32_vfmaddpd128_mask3, __builtin_ia32_vfmaddpd128_maskz,
11777 __builtin_ia32_vfmaddps256_mask, __builtin_ia32_vfmaddps256_mask3,
11778 __builtin_ia32_vfmaddps256_maskz, __builtin_ia32_vfmaddps128_mask,
11779 __builtin_ia32_vfmaddps128_mask3, __builtin_ia32_vfmaddps128_maskz,
11780 __builtin_ia32_vfmsubpd256_mask3, __builtin_ia32_vfmsubpd128_mask3,
11781 __builtin_ia32_vfmsubps256_mask3, __builtin_ia32_vfmsubps128_mask3,
11782 __builtin_ia32_vfnmaddpd256_mask, __builtin_ia32_vfnmaddpd128_mask,
11783 __builtin_ia32_vfnmaddps256_mask, __builtin_ia32_vfnmaddps128_mask,
11784 __builtin_ia32_vfnmsubpd256_mask, __builtin_ia32_vfnmsubpd256_mask3,
11785 __builtin_ia32_vfnmsubpd128_mask, __builtin_ia32_vfnmsubpd128_mask3,
11786 __builtin_ia32_vfnmsubps256_mask, __builtin_ia32_vfnmsubps256_mask3,
11787 __builtin_ia32_vfnmsubps128_mask, __builtin_ia32_vfnmsubps128_mask3,
11788 __builtin_ia32_vfmaddsubpd256_mask, __builtin_ia32_vfmaddsubpd256_mask3,
11789 __builtin_ia32_vfmaddsubpd256_maskz, __builtin_ia32_vfmaddsubpd128_mask,
11790 __builtin_ia32_vfmaddsubpd128_mask3, __builtin_ia32_vfmaddsubpd128_maskz,
11791 __builtin_ia32_vfmaddsubps256_mask, __builtin_ia32_vfmaddsubps256_mask3,
11792 __builtin_ia32_vfmaddsubps256_maskz, __builtin_ia32_vfmaddsubps128_mask,
11793 __builtin_ia32_vfmaddsubps128_mask3, __builtin_ia32_vfmaddsubps128_maskz,
11794 __builtin_ia32_vfmsubaddpd256_mask3, __builtin_ia32_vfmsubaddpd128_mask3,
11795 __builtin_ia32_vfmsubaddps256_mask3, __builtin_ia32_vfmsubaddps128_mask3,
11796 __builtin_ia32_insertf64x2_256_mask, __builtin_ia32_inserti64x2_256_mask,
11797 __builtin_ia32_psrav16hi_mask, __builtin_ia32_psrav8hi_mask,
11798 __builtin_ia32_pmaddubsw256_mask, __builtin_ia32_pmaddubsw128_mask,
11799 __builtin_ia32_pmaddwd256_mask, __builtin_ia32_pmaddwd128_mask,
11800 __builtin_ia32_psrlv16hi_mask, __builtin_ia32_psrlv8hi_mask,
11801 __builtin_ia32_cvtps2dq256_mask, __builtin_ia32_cvtps2dq128_mask,
11802 __builtin_ia32_cvtps2udq256_mask, __builtin_ia32_cvtps2udq128_mask,
11803 __builtin_ia32_cvtps2qq256_mask, __builtin_ia32_cvtps2qq128_mask,
11804 __builtin_ia32_cvtps2uqq256_mask, __builtin_ia32_cvtps2uqq128_mask,
11805 __builtin_ia32_getmantps256_mask, __builtin_ia32_getmantps128_mask,
11806 __builtin_ia32_getmantpd256_mask, __builtin_ia32_getmantpd128_mask,
11807 __builtin_ia32_movddup256_mask, __builtin_ia32_movddup128_mask,
11808 __builtin_ia32_movshdup256_mask, __builtin_ia32_movshdup128_mask,
11809 __builtin_ia32_movsldup256_mask, __builtin_ia32_movsldup128_mask,
11810 __builtin_ia32_cvtqq2ps256_mask, __builtin_ia32_cvtqq2ps128_mask,
11811 __builtin_ia32_cvtuqq2ps256_mask, __builtin_ia32_cvtuqq2ps128_mask,
11812 __builtin_ia32_cvtqq2pd256_mask, __builtin_ia32_cvtqq2pd128_mask,
11813 __builtin_ia32_cvtuqq2pd256_mask, __builtin_ia32_cvtuqq2pd128_mask,
11814 __builtin_ia32_vpermt2varq256_mask, __builtin_ia32_vpermt2varq256_maskz,
11815 __builtin_ia32_vpermt2vard256_mask, __builtin_ia32_vpermt2vard256_maskz,
11816 __builtin_ia32_vpermi2varq256_mask, __builtin_ia32_vpermi2vard256_mask,
11817 __builtin_ia32_vpermt2varpd256_mask, __builtin_ia32_vpermt2varpd256_maskz,
11818 __builtin_ia32_vpermt2varps256_mask, __builtin_ia32_vpermt2varps256_maskz,
11819 __builtin_ia32_vpermi2varpd256_mask, __builtin_ia32_vpermi2varps256_mask,
11820 __builtin_ia32_vpermt2varq128_mask, __builtin_ia32_vpermt2varq128_maskz,
11821 __builtin_ia32_vpermt2vard128_mask, __builtin_ia32_vpermt2vard128_maskz,
11822 __builtin_ia32_vpermi2varq128_mask, __builtin_ia32_vpermi2vard128_mask,
11823 __builtin_ia32_vpermt2varpd128_mask, __builtin_ia32_vpermt2varpd128_maskz,
11824 __builtin_ia32_vpermt2varps128_mask, __builtin_ia32_vpermt2varps128_maskz,
11825 __builtin_ia32_vpermi2varpd128_mask, __builtin_ia32_vpermi2varps128_mask,
11826 __builtin_ia32_pshufb256_mask, __builtin_ia32_pshufb128_mask,
11827 __builtin_ia32_pshufhw256_mask, __builtin_ia32_pshufhw128_mask,
11828 __builtin_ia32_pshuflw256_mask, __builtin_ia32_pshuflw128_mask,
11829 __builtin_ia32_pshufd256_mask, __builtin_ia32_pshufd128_mask,
11830 __builtin_ia32_shufpd256_mask, __builtin_ia32_shufpd128_mask,
11831 __builtin_ia32_shufps256_mask, __builtin_ia32_shufps128_mask,
11832 __builtin_ia32_prolvq256_mask, __builtin_ia32_prolvq128_mask,
11833 __builtin_ia32_prolq256_mask, __builtin_ia32_prolq128_mask,
11834 __builtin_ia32_prorvq256_mask, __builtin_ia32_prorvq128_mask,
11835 __builtin_ia32_prorq256_mask, __builtin_ia32_prorq128_mask,
11836 __builtin_ia32_psravq128_mask, __builtin_ia32_psravq256_mask,
11837 __builtin_ia32_psllv4di_mask, __builtin_ia32_psllv2di_mask,
11838 __builtin_ia32_psllv8si_mask, __builtin_ia32_psllv4si_mask,
11839 __builtin_ia32_psrav8si_mask, __builtin_ia32_psrav4si_mask,
11840 __builtin_ia32_psrlv4di_mask, __builtin_ia32_psrlv2di_mask,
11841 __builtin_ia32_psrlv8si_mask, __builtin_ia32_psrlv4si_mask,
11842 __builtin_ia32_psrawi256_mask, __builtin_ia32_psraw256_mask,
11843 __builtin_ia32_psrawi128_mask, __builtin_ia32_psraw128_mask,
11844 __builtin_ia32_psrlwi256_mask, __builtin_ia32_psrlw256_mask,
11845 __builtin_ia32_psrlwi128_mask, __builtin_ia32_psrlw128_mask,
11846 __builtin_ia32_prorvd256_mask, __builtin_ia32_prolvd256_mask,
11847 __builtin_ia32_prord256_mask, __builtin_ia32_prold256_mask,
11848 __builtin_ia32_prorvd128_mask, __builtin_ia32_prolvd128_mask,
11849 __builtin_ia32_prord128_mask, __builtin_ia32_prold128_mask,
11850 __builtin_ia32_fpclasspd256_mask, __builtin_ia32_fpclasspd128_mask,
11851 __builtin_ia32_fpclasssd, __builtin_ia32_fpclassps256_mask,
11852 __builtin_ia32_fpclassps128_mask, __builtin_ia32_fpclassss,
11853 __builtin_ia32_cvtb2mask128, __builtin_ia32_cvtb2mask256,
11854 __builtin_ia32_cvtw2mask128, __builtin_ia32_cvtw2mask256,
11855 __builtin_ia32_cvtd2mask128, __builtin_ia32_cvtd2mask256,
11856 __builtin_ia32_cvtq2mask128, __builtin_ia32_cvtq2mask256,
11857 __builtin_ia32_cvtmask2b128, __builtin_ia32_cvtmask2b256,
11858 __builtin_ia32_cvtmask2w128, __builtin_ia32_cvtmask2w256,
11859 __builtin_ia32_cvtmask2d128, __builtin_ia32_cvtmask2d256,
11860 __builtin_ia32_cvtmask2q128, __builtin_ia32_cvtmask2q256,
11861 __builtin_ia32_pcmpeqb128_mask, __builtin_ia32_pcmpeqb256_mask,
11862 __builtin_ia32_pcmpeqw128_mask, __builtin_ia32_pcmpeqw256_mask,
11863 __builtin_ia32_pcmpeqd128_mask, __builtin_ia32_pcmpeqd256_mask,
11864 __builtin_ia32_pcmpeqq128_mask, __builtin_ia32_pcmpeqq256_mask,
11865 __builtin_ia32_pcmpgtb128_mask, __builtin_ia32_pcmpgtb256_mask,
11866 __builtin_ia32_pcmpgtw128_mask, __builtin_ia32_pcmpgtw256_mask,
11867 __builtin_ia32_pcmpgtd128_mask, __builtin_ia32_pcmpgtd256_mask,
11868 __builtin_ia32_pcmpgtq128_mask, __builtin_ia32_pcmpgtq256_mask,
11869 __builtin_ia32_ptestmb128, __builtin_ia32_ptestmb256,
11870 __builtin_ia32_ptestmw128, __builtin_ia32_ptestmw256,
11871 __builtin_ia32_ptestmd128, __builtin_ia32_ptestmd256,
11872 __builtin_ia32_ptestmq128, __builtin_ia32_ptestmq256,
11873 __builtin_ia32_ptestnmb128, __builtin_ia32_ptestnmb256,
11874 __builtin_ia32_ptestnmw128, __builtin_ia32_ptestnmw256,
11875 __builtin_ia32_ptestnmd128, __builtin_ia32_ptestnmd256,
11876 __builtin_ia32_ptestnmq128, __builtin_ia32_ptestnmq256,
11877 __builtin_ia32_broadcastmb128, __builtin_ia32_broadcastmb256,
11878 __builtin_ia32_broadcastmw128, __builtin_ia32_broadcastmw256,
11879 __builtin_ia32_compressdf256_mask, __builtin_ia32_compressdf128_mask,
11880 __builtin_ia32_compresssf256_mask, __builtin_ia32_compresssf128_mask,
11881 __builtin_ia32_compressdi256_mask, __builtin_ia32_compressdi128_mask,
11882 __builtin_ia32_compresssi256_mask, __builtin_ia32_compresssi128_mask,
11883 __builtin_ia32_expanddf256_mask, __builtin_ia32_expanddf128_mask,
11884 __builtin_ia32_expandsf256_mask, __builtin_ia32_expandsf128_mask,
11885 __builtin_ia32_expanddi256_mask, __builtin_ia32_expanddi128_mask,
11886 __builtin_ia32_expandsi256_mask, __builtin_ia32_expandsi128_mask,
11887 __builtin_ia32_expanddf256_maskz, __builtin_ia32_expanddf128_maskz,
11888 __builtin_ia32_expandsf256_maskz, __builtin_ia32_expandsf128_maskz,
11889 __builtin_ia32_expanddi256_maskz, __builtin_ia32_expanddi128_maskz,
11890 __builtin_ia32_expandsi256_maskz, __builtin_ia32_expandsi128_maskz,
11891 __builtin_ia32_pmaxsd256_mask, __builtin_ia32_pminsd256_mask,
11892 __builtin_ia32_pmaxud256_mask, __builtin_ia32_pminud256_mask,
11893 __builtin_ia32_pmaxsd128_mask, __builtin_ia32_pminsd128_mask,
11894 __builtin_ia32_pmaxud128_mask, __builtin_ia32_pminud128_mask,
11895 __builtin_ia32_pmaxsq256_mask, __builtin_ia32_pminsq256_mask,
11896 __builtin_ia32_pmaxuq256_mask, __builtin_ia32_pminuq256_mask,
11897 __builtin_ia32_pmaxsq128_mask, __builtin_ia32_pminsq128_mask,
11898 __builtin_ia32_pmaxuq128_mask, __builtin_ia32_pminuq128_mask,
11899 __builtin_ia32_pminsb256_mask, __builtin_ia32_pminub256_mask,
11900 __builtin_ia32_pmaxsb256_mask, __builtin_ia32_pmaxub256_mask,
11901 __builtin_ia32_pminsb128_mask, __builtin_ia32_pminub128_mask,
11902 __builtin_ia32_pmaxsb128_mask, __builtin_ia32_pmaxub128_mask,
11903 __builtin_ia32_pminsw256_mask, __builtin_ia32_pminuw256_mask,
11904 __builtin_ia32_pmaxsw256_mask, __builtin_ia32_pmaxuw256_mask,
11905 __builtin_ia32_pminsw128_mask, __builtin_ia32_pminuw128_mask,
11906 __builtin_ia32_pmaxsw128_mask, __builtin_ia32_pmaxuw128_mask,
11907 __builtin_ia32_vpconflictdi_256_mask, __builtin_ia32_vpconflictsi_256_mask,
11908 __builtin_ia32_vplzcntq_256_mask, __builtin_ia32_vplzcntd_256_mask,
11909 __builtin_ia32_unpckhpd256_mask, __builtin_ia32_unpckhpd128_mask,
11910 __builtin_ia32_unpckhps256_mask, __builtin_ia32_unpckhps128_mask,
11911 __builtin_ia32_unpcklpd256_mask, __builtin_ia32_unpcklpd128_mask,
11912 __builtin_ia32_unpcklps256_mask, __builtin_ia32_vpconflictdi_128_mask,
11913 __builtin_ia32_vpconflictsi_128_mask, __builtin_ia32_vplzcntq_128_mask,
11914 __builtin_ia32_vplzcntd_128_mask, __builtin_ia32_unpcklps128_mask,
11915 __builtin_ia32_alignd256_mask, __builtin_ia32_alignq256_mask,
11916 __builtin_ia32_alignd128_mask, __builtin_ia32_alignq128_mask,
11917 __builtin_ia32_vcvtps2ph256_mask, __builtin_ia32_vcvtps2ph_mask,
11918 __builtin_ia32_vcvtph2ps_mask, __builtin_ia32_vcvtph2ps256_mask,
11919 __builtin_ia32_punpckhdq128_mask, __builtin_ia32_punpckhdq256_mask,
11920 __builtin_ia32_punpckhqdq128_mask, __builtin_ia32_punpckhqdq256_mask,
11921 __builtin_ia32_punpckldq128_mask, __builtin_ia32_punpckldq256_mask,
11922 __builtin_ia32_punpcklqdq128_mask, __builtin_ia32_punpcklqdq256_mask,
11923 __builtin_ia32_punpckhbw128_mask, __builtin_ia32_punpckhbw256_mask,
11924 __builtin_ia32_punpckhwd128_mask, __builtin_ia32_punpckhwd256_mask,
11925 __builtin_ia32_punpcklbw128_mask, __builtin_ia32_punpcklbw256_mask,
11926 __builtin_ia32_punpcklwd128_mask, __builtin_ia32_punpcklwd256_mask,
11927 __builtin_ia32_psllv16hi_mask, __builtin_ia32_psllv8hi_mask,
11928 __builtin_ia32_packssdw256_mask, __builtin_ia32_packssdw128_mask,
11929 __builtin_ia32_packusdw256_mask, __builtin_ia32_packusdw128_mask,
11930 __builtin_ia32_pavgb256_mask, __builtin_ia32_pavgw256_mask,
11931 __builtin_ia32_pavgb128_mask, __builtin_ia32_pavgw128_mask,
11932 __builtin_ia32_permvarsf256_mask, __builtin_ia32_permvardf256_mask,
11933 __builtin_ia32_permdf256_mask, __builtin_ia32_pabsb256_mask,
11934 __builtin_ia32_pabsb128_mask, __builtin_ia32_pabsw256_mask,
11935 __builtin_ia32_pabsw128_mask, __builtin_ia32_vpermilvarpd_mask,
11936 __builtin_ia32_vpermilvarps_mask, __builtin_ia32_vpermilvarpd256_mask,
11937 __builtin_ia32_vpermilvarps256_mask, __builtin_ia32_vpermilpd_mask,
11938 __builtin_ia32_vpermilps_mask, __builtin_ia32_vpermilpd256_mask,
11939 __builtin_ia32_vpermilps256_mask, __builtin_ia32_blendmq_256_mask,
11940 __builtin_ia32_blendmd_256_mask, __builtin_ia32_blendmpd_256_mask,
11941 __builtin_ia32_blendmps_256_mask, __builtin_ia32_blendmq_128_mask,
11942 __builtin_ia32_blendmd_128_mask, __builtin_ia32_blendmpd_128_mask,
11943 __builtin_ia32_blendmps_128_mask, __builtin_ia32_blendmw_256_mask,
11944 __builtin_ia32_blendmb_256_mask, __builtin_ia32_blendmw_128_mask,
11945 __builtin_ia32_blendmb_128_mask, __builtin_ia32_pmulld256_mask,
11946 __builtin_ia32_pmulld128_mask, __builtin_ia32_pmuludq256_mask,
11947 __builtin_ia32_pmuldq256_mask, __builtin_ia32_pmuldq128_mask,
11948 __builtin_ia32_pmuludq128_mask, __builtin_ia32_cvtpd2ps256_mask,
11949 __builtin_ia32_cvtpd2ps_mask, __builtin_ia32_permvarsi256_mask,
11950 __builtin_ia32_permvardi256_mask, __builtin_ia32_permdi256_mask,
11951 __builtin_ia32_cmpq256_mask, __builtin_ia32_cmpd256_mask,
11952 __builtin_ia32_ucmpq256_mask, __builtin_ia32_ucmpd256_mask,
11953 __builtin_ia32_cmpb256_mask, __builtin_ia32_cmpw256_mask,
11954 __builtin_ia32_ucmpb256_mask, __builtin_ia32_ucmpw256_mask,
11955 __builtin_ia32_cmppd256_mask, __builtin_ia32_cmpps256_mask,
11956 __builtin_ia32_cmpq128_mask, __builtin_ia32_cmpd128_mask,
11957 __builtin_ia32_ucmpq128_mask, __builtin_ia32_ucmpd128_mask,
11958 __builtin_ia32_cmpb128_mask, __builtin_ia32_cmpw128_mask,
11959 __builtin_ia32_ucmpb128_mask, __builtin_ia32_ucmpw128_mask,
11960 __builtin_ia32_cmppd128_mask, __builtin_ia32_cmpps128_mask,
11961 __builtin_ia32_broadcastf32x2_512_mask, __builtin_ia32_broadcasti32x2_512_mask,
11962 __builtin_ia32_broadcastf64x2_512_mask, __builtin_ia32_broadcasti64x2_512_mask,
11963 __builtin_ia32_broadcastf32x8_512_mask, __builtin_ia32_broadcasti32x8_512_mask,
11964 __builtin_ia32_extractf64x2_512_mask, __builtin_ia32_extractf32x8_mask,
11965 __builtin_ia32_extracti64x2_512_mask, __builtin_ia32_extracti32x8_mask,
11966 __builtin_ia32_reducepd512_mask, __builtin_ia32_reduceps512_mask,
11967 __builtin_ia32_pmullq512_mask, __builtin_ia32_xorpd512_mask,
11968 __builtin_ia32_xorps512_mask, __builtin_ia32_orpd512_mask,
11969 __builtin_ia32_orps512_mask, __builtin_ia32_andpd512_mask,
11970 __builtin_ia32_andps512_mask, __builtin_ia32_andnpd512_mask,
11971 __builtin_ia32_andnps512_mask, __builtin_ia32_insertf32x8_mask,
11972 __builtin_ia32_inserti32x8_mask, __builtin_ia32_insertf64x2_512_mask,
11973 __builtin_ia32_inserti64x2_512_mask, __builtin_ia32_fpclasspd512_mask,
11974 __builtin_ia32_fpclassps512_mask, __builtin_ia32_cvtd2mask512,
11975 __builtin_ia32_cvtq2mask512, __builtin_ia32_cvtmask2d512,
11976 __builtin_ia32_cvtmask2q512, __builtin_ia32_kunpcksi,
11977 __builtin_ia32_kunpckdi, __builtin_ia32_packusdw512_mask,
11978 __builtin_ia32_pslldq512, __builtin_ia32_psrldq512,
11979 __builtin_ia32_packssdw512_mask, __builtin_ia32_palignr512,
11980 __builtin_ia32_palignr512_mask, __builtin_ia32_movdquhi512_mask,
11981 __builtin_ia32_movdquqi512_mask, __builtin_ia32_psadbw512,
11982 __builtin_ia32_dbpsadbw512_mask, __builtin_ia32_pbroadcastb512_mask,
11983 __builtin_ia32_pbroadcastb512_gpr_mask, __builtin_ia32_pbroadcastw512_mask,
11984 __builtin_ia32_pbroadcastw512_gpr_mask, __builtin_ia32_pmovsxbw512_mask,
11985 __builtin_ia32_pmovzxbw512_mask, __builtin_ia32_permvarhi512_mask,
11986 __builtin_ia32_vpermt2varhi512_mask, __builtin_ia32_vpermt2varhi512_maskz,
11987 __builtin_ia32_vpermi2varhi512_mask, __builtin_ia32_pavgb512_mask,
11988 __builtin_ia32_pavgw512_mask, __builtin_ia32_paddb512_mask,
11989 __builtin_ia32_psubb512_mask, __builtin_ia32_psubsb512_mask,
11990 __builtin_ia32_paddsb512_mask, __builtin_ia32_psubusb512_mask,
11991 __builtin_ia32_paddusb512_mask, __builtin_ia32_psubw512_mask,
11992 __builtin_ia32_paddw512_mask, __builtin_ia32_psubsw512_mask,
11993 __builtin_ia32_paddsw512_mask, __builtin_ia32_psubusw512_mask,
11994 __builtin_ia32_paddusw512_mask, __builtin_ia32_pmaxuw512_mask,
11995 __builtin_ia32_pmaxsw512_mask, __builtin_ia32_pminuw512_mask,
11996 __builtin_ia32_pminsw512_mask, __builtin_ia32_pmaxub512_mask,
11997 __builtin_ia32_pmaxsb512_mask, __builtin_ia32_pminub512_mask,
11998 __builtin_ia32_pminsb512_mask, __builtin_ia32_pmovwb512_mask,
11999 __builtin_ia32_pmovswb512_mask, __builtin_ia32_pmovuswb512_mask,
12000 __builtin_ia32_pmulhrsw512_mask, __builtin_ia32_pmulhuw512_mask,
12001 __builtin_ia32_pmulhw512_mask, __builtin_ia32_pmullw512_mask,
12002 __builtin_ia32_psllwi512_mask, __builtin_ia32_psllw512_mask,
12003 __builtin_ia32_packsswb512_mask, __builtin_ia32_packuswb512_mask,
12004 __builtin_ia32_psrav32hi_mask, __builtin_ia32_pmaddubsw512_mask,
12005 __builtin_ia32_pmaddwd512_mask, __builtin_ia32_psrlv32hi_mask,
12006 __builtin_ia32_punpckhbw512_mask, __builtin_ia32_punpckhwd512_mask,
12007 __builtin_ia32_punpcklbw512_mask, __builtin_ia32_punpcklwd512_mask,
12008 __builtin_ia32_pshufb512_mask, __builtin_ia32_pshufhw512_mask,
12009 __builtin_ia32_pshuflw512_mask, __builtin_ia32_psrawi512_mask,
12010 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
12011 __builtin_ia32_psrlw512_mask, __builtin_ia32_cvtb2mask512,
12012 __builtin_ia32_cvtw2mask512, __builtin_ia32_cvtmask2b512,
12013 __builtin_ia32_cvtmask2w512, __builtin_ia32_pcmpeqb512_mask,
12014 __builtin_ia32_pcmpeqw512_mask, __builtin_ia32_pcmpgtb512_mask,
12015 __builtin_ia32_pcmpgtw512_mask, __builtin_ia32_ptestmb512,
12016 __builtin_ia32_ptestmw512, __builtin_ia32_ptestnmb512,
12017 __builtin_ia32_ptestnmw512, __builtin_ia32_psllv32hi_mask,
12018 __builtin_ia32_pabsb512_mask, __builtin_ia32_pabsw512_mask,
12019 __builtin_ia32_blendmw_512_mask, __builtin_ia32_blendmb_512_mask,
12020 __builtin_ia32_cmpb512_mask, __builtin_ia32_cmpw512_mask,
12021 __builtin_ia32_ucmpb512_mask, __builtin_ia32_ucmpw512_mask,
12022 __builtin_ia32_rangesd128_round, __builtin_ia32_rangess128_round,
12023 __builtin_ia32_cvtpd2qq512_mask, __builtin_ia32_cvtps2qq512_mask,
12024 __builtin_ia32_cvtpd2uqq512_mask, __builtin_ia32_cvtps2uqq512_mask,
12025 __builtin_ia32_cvtqq2ps512_mask, __builtin_ia32_cvtuqq2ps512_mask,
12026 __builtin_ia32_cvtqq2pd512_mask, __builtin_ia32_cvtuqq2pd512_mask,
12027 __builtin_ia32_cvttps2qq512_mask, __builtin_ia32_cvttps2uqq512_mask,
12028 __builtin_ia32_cvttpd2qq512_mask, __builtin_ia32_cvttpd2uqq512_mask,
12029 __builtin_ia32_rangeps512_mask, __builtin_ia32_rangepd512_mask.
12030 (ix86_expand_args_builtin): Handle HI_FTYPE_V16QI, SI_FTYPE_V32QI,
12031 DI_FTYPE_V64QI, V16QI_FTYPE_HI, V32QI_FTYPE_SI, V64QI_FTYPE_DI,
12032 V8HI_FTYPE_QI, V16HI_FTYPE_HI, V32HI_FTYPE_SI, V4SI_FTYPE_QI,
12033 V8SI_FTYPE_QI, V4SI_FTYPE_HI, V8SI_FTYPE_HI, QI_FTYPE_V8HI,
12034 HI_FTYPE_V16HI, SI_FTYPE_V32HI, QI_FTYPE_V4SI, QI_FTYPE_V8SI,
12035 HI_FTYPE_V16SI, QI_FTYPE_V2DI, QI_FTYPE_V4DI, QI_FTYPE_V8DI,
12036 V2DI_FTYPE_QI, V4DI_FTYPE_QI, V8DI_FTYPE_V64QI_V64QI,
12037 SI_FTYPE_SI_SI,DI_FTYPE_DI_DI, V8DI_FTYPE_V8DI_INT_CONVERT,
12038 QI_FTYPE_V4SF_INT, QI_FTYPE_V2DF_INT,
12039 V8SF_FTYPE_V4SF_V8SF_QI, V4DF_FTYPE_V2DF_V4DF_QI,
12040 V8SI_FTYPE_V4SI_V8SI_QI, V8SI_FTYPE_SI_V8SI_QI,
12041 V4SI_FTYPE_V4SI_V4SI_QI, V4SI_FTYPE_SI_V4SI_QI,
12042 V4DI_FTYPE_V2DI_V4DI_QI, V4DI_FTYPE_DI_V4DI_QI,
12043 V2DI_FTYPE_V2DI_V2DI_QI, V2DI_FTYPE_DI_V2DI_QI,
12044 V64QI_FTYPE_V64QI_V64QI_DI, V64QI_FTYPE_V16QI_V64QI_DI,
12045 V64QI_FTYPE_QI_V64QI_DI, V32QI_FTYPE_V32QI_V32QI_SI,
12046 V32QI_FTYPE_V16QI_V32QI_SI, V32QI_FTYPE_QI_V32QI_SI,
12047 V16QI_FTYPE_V16QI_V16QI_HI, V16QI_FTYPE_QI_V16QI_HI,
12048 V32HI_FTYPE_V8HI_V32HI_SI, V32HI_FTYPE_HI_V32HI_SI,
12049 V16HI_FTYPE_V8HI_V16HI_HI, V16HI_FTYPE_HI_V16HI_HI,
12050 V8HI_FTYPE_V8HI_V8HI_QI, V8HI_FTYPE_HI_V8HI_QI,
12051 V8SF_FTYPE_V8HI_V8SF_QI, V4SF_FTYPE_V8HI_V4SF_QI,
12052 V8SI_FTYPE_V8SF_V8SI_QI, V4SI_FTYPE_V4SF_V4SI_QI,
12053 V8DI_FTYPE_V8SF_V8DI_QI, V4DI_FTYPE_V4SF_V4DI_QI,
12054 V2DI_FTYPE_V4SF_V2DI_QI, V8SF_FTYPE_V8DI_V8SF_QI,
12055 V4SF_FTYPE_V4DI_V4SF_QI, V4SF_FTYPE_V2DI_V4SF_QI,
12056 V8DF_FTYPE_V8DI_V8DF_QI, V4DF_FTYPE_V4DI_V4DF_QI,
12057 V2DF_FTYPE_V2DI_V2DF_QI, V16QI_FTYPE_V8HI_V16QI_QI,
12058 V16QI_FTYPE_V16HI_V16QI_HI, V16QI_FTYPE_V4SI_V16QI_QI,
12059 V16QI_FTYPE_V8SI_V16QI_QI, V8HI_FTYPE_V4SI_V8HI_QI,
12060 V8HI_FTYPE_V8SI_V8HI_QI, V16QI_FTYPE_V2DI_V16QI_QI,
12061 V16QI_FTYPE_V4DI_V16QI_QI, V8HI_FTYPE_V2DI_V8HI_QI,
12062 V8HI_FTYPE_V4DI_V8HI_QI, V4SI_FTYPE_V2DI_V4SI_QI,
12063 V4SI_FTYPE_V4DI_V4SI_QI, V32QI_FTYPE_V32HI_V32QI_SI,
12064 HI_FTYPE_V16QI_V16QI_HI, SI_FTYPE_V32QI_V32QI_SI,
12065 DI_FTYPE_V64QI_V64QI_DI, QI_FTYPE_V8HI_V8HI_QI,
12066 HI_FTYPE_V16HI_V16HI_HI, SI_FTYPE_V32HI_V32HI_SI,
12067 QI_FTYPE_V4SI_V4SI_QI, QI_FTYPE_V8SI_V8SI_QI,
12068 QI_FTYPE_V2DI_V2DI_QI, QI_FTYPE_V4DI_V4DI_QI,
12069 V4SF_FTYPE_V2DF_V4SF_QI, V4SF_FTYPE_V4DF_V4SF_QI,
12070 V2DI_FTYPE_V4SI_V2DI_QI, V2DI_FTYPE_V8HI_V2DI_QI,
12071 V2DI_FTYPE_V16QI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_QI,
12072 V4DI_FTYPE_V4SI_V4DI_QI, V4DI_FTYPE_V8HI_V4DI_QI,
12073 V4DI_FTYPE_V16QI_V4DI_QI, V8DI_FTYPE_V8DF_V8DI_QI,
12074 V4DI_FTYPE_V4DF_V4DI_QI, V2DI_FTYPE_V2DF_V2DI_QI,
12075 V4SI_FTYPE_V4DF_V4SI_QI, V4SI_FTYPE_V2DF_V4SI_QI,
12076 V4SI_FTYPE_V8HI_V4SI_QI, V4SI_FTYPE_V16QI_V4SI_QI,
12077 V8SI_FTYPE_V8SI_V8SI_V8SI, V8SF_FTYPE_V8SF_V8SF_QI,
12078 V8SF_FTYPE_V8SI_V8SF_QI, V4DF_FTYPE_V4DF_V4DF_QI,
12079 V4SF_FTYPE_V4SF_V4SF_QI, V2DF_FTYPE_V2DF_V2DF_QI,
12080 V2DF_FTYPE_V4SF_V2DF_QI, V2DF_FTYPE_V4SI_V2DF_QI,
12081 V4SF_FTYPE_V4SI_V4SF_QI, V4DF_FTYPE_V4SF_V4DF_QI,
12082 V4DF_FTYPE_V4SI_V4DF_QI, V8SI_FTYPE_V8SI_V8SI_QI,
12083 V8SI_FTYPE_V8HI_V8SI_QI, V8SI_FTYPE_V16QI_V8SI_QI,
12084 V16SF_FTYPE_V8SF_V16SF_HI, V16SI_FTYPE_V8SI_V16SI_HI,
12085 V16HI_FTYPE_V16HI_V16HI_HI, V8HI_FTYPE_V16QI_V8HI_QI,
12086 V16HI_FTYPE_V16QI_V16HI_HI, V32HI_FTYPE_V32HI_V32HI_SI,
12087 V32HI_FTYPE_V32QI_V32HI_SI, V8DI_FTYPE_V8DI_V8DI_INT_CONVERT,
12088 V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI_CONVERT, QI_FTYPE_V8DF_INT_QI,
12089 QI_FTYPE_V4DF_INT_QI, QI_FTYPE_V2DF_INT_QI,
12090 HI_FTYPE_V16SF_INT_HI, QI_FTYPE_V8SF_INT_QI,
12091 QI_FTYPE_V4SF_INT_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI_CONVERT,
12092 V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI_CONVERT, V32QI_FTYPE_V32QI_V32QI_V32QI_SI,
12093 V32HI_FTYPE_V32HI_V32HI_V32HI_SI, V32HI_FTYPE_V64QI_V64QI_V32HI_SI,
12094 V16SI_FTYPE_V32HI_V32HI_V16SI_HI, V64QI_FTYPE_V64QI_V64QI_V64QI_DI,
12095 V32HI_FTYPE_V32HI_V8HI_V32HI_SI, V16HI_FTYPE_V16HI_V8HI_V16HI_HI,
12096 V8SI_FTYPE_V8SI_V4SI_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_V4DI_QI,
12097 V64QI_FTYPE_V32HI_V32HI_V64QI_DI, V32QI_FTYPE_V16HI_V16HI_V32QI_SI,
12098 V16QI_FTYPE_V8HI_V8HI_V16QI_HI, V32HI_FTYPE_V16SI_V16SI_V32HI_SI,
12099 V16HI_FTYPE_V8SI_V8SI_V16HI_HI, V8HI_FTYPE_V4SI_V4SI_V8HI_QI,
12100 V4DF_FTYPE_V4DF_V4DI_V4DF_QI, V8SF_FTYPE_V8SF_V8SI_V8SF_QI,
12101 V4SF_FTYPE_V4SF_V4SI_V4SF_QI, V2DF_FTYPE_V2DF_V2DI_V2DF_QI,
12102 V2DI_FTYPE_V4SI_V4SI_V2DI_QI, V4DI_FTYPE_V8SI_V8SI_V4DI_QI,
12103 V4DF_FTYPE_V4DI_V4DF_V4DF_QI, V8SF_FTYPE_V8SI_V8SF_V8SF_QI,
12104 V2DF_FTYPE_V2DI_V2DF_V2DF_QI, V4SF_FTYPE_V4SI_V4SF_V4SF_QI,
12105 V8HI_FTYPE_V8HI_V8HI_V8HI_QI, V8SI_FTYPE_V8SI_V8SI_V8SI_QI,
12106 V4SI_FTYPE_V4SI_V4SI_V4SI_QI, V8SF_FTYPE_V8SF_V8SF_V8SF_QI,
12107 V16QI_FTYPE_V16QI_V16QI_V16QI_HI, V16HI_FTYPE_V16HI_V16HI_V16HI_HI,
12108 V2DI_FTYPE_V2DI_V2DI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_V4DI_QI,
12109 V4DF_FTYPE_V4DF_V4DF_V4DF_QI, V8HI_FTYPE_V16QI_V16QI_V8HI_QI,
12110 V16HI_FTYPE_V32QI_V32QI_V16HI_HI, V8SI_FTYPE_V16HI_V16HI_V8SI_QI,
12111 V4SI_FTYPE_V8HI_V8HI_V4SI_QI, QI_FTYPE_V4DI_V4DI_INT_QI,
12112 QI_FTYPE_V8SI_V8SI_INT_QI, QI_FTYPE_V4DF_V4DF_INT_QI,
12113 QI_FTYPE_V8SF_V8SF_INT_QI, QI_FTYPE_V2DI_V2DI_INT_QI,
12114 QI_FTYPE_V4SI_V4SI_INT_QI, DI_FTYPE_V64QI_V64QI_INT_DI,
12115 SI_FTYPE_V32QI_V32QI_INT_SI, HI_FTYPE_V16QI_V16QI_INT_HI,
12116 SI_FTYPE_V32HI_V32HI_INT_SI, HI_FTYPE_V16HI_V16HI_INT_HI,
12117 QI_FTYPE_V8HI_V8HI_INT_QI, V8SF_FTYPE_V8SF_INT_V8SF_QI,
12118 V4SF_FTYPE_V4SF_INT_V4SF_QI, V2DF_FTYPE_V4DF_INT_V2DF_QI,
12119 V2DI_FTYPE_V4DI_INT_V2DI_QI, V8SF_FTYPE_V16SF_INT_V8SF_QI,
12120 V8SI_FTYPE_V16SI_INT_V8SI_QI, V2DF_FTYPE_V8DF_INT_V2DF_QI,
12121 V2DI_FTYPE_V8DI_INT_V2DI_QI, V4SF_FTYPE_V8SF_INT_V4SF_QI,
12122 V4SI_FTYPE_V8SI_INT_V4SI_QI, V8HI_FTYPE_V8SF_INT_V8HI_QI,
12123 V8HI_FTYPE_V4SF_INT_V8HI_QI, V32HI_FTYPE_V32HI_INT_V32HI_SI,
12124 V16HI_FTYPE_V16HI_INT_V16HI_HI, V8HI_FTYPE_V8HI_INT_V8HI_QI,
12125 V4DI_FTYPE_V4DI_INT_V4DI_QI, V2DI_FTYPE_V2DI_INT_V2DI_QI,
12126 V8SI_FTYPE_V8SI_INT_V8SI_QI, V4SI_FTYPE_V4SI_INT_V4SI_QI,
12127 V4DF_FTYPE_V4DF_INT_V4DF_QI, V2DF_FTYPE_V2DF_INT_V2DF_QI,
12128 V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI,
12129 V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI, V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI,
12130 V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI,
12131 V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI, V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI,
12132 V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI, V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI,
12133 V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI, V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI,
12134 V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI, V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI,
12135 V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI,
12136 V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI,
12137 V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI, V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI,
12138 V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI, V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI,
12139 V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI, V8DI_FTYPE_V8DF_V8DI_QI_INT,
12140 V8SF_FTYPE_V8DI_V8SF_QI_INT, V8DF_FTYPE_V8DI_V8DF_QI_INT,
12141 V8DI_FTYPE_V8SF_V8DI_QI_INT, V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT,
12142 V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT, VOID_FTYPE_PV4DI_V4DI_QI,
12143 VOID_FTYPE_PV2DI_V2DI_QI, VOID_FTYPE_PV8SI_V8SI_QI,
12144 VOID_FTYPE_PV4SI_V4SI_QI, VOID_FTYPE_PV4SI_V4DI_QI,
12145 VOID_FTYPE_PV4SI_V2DI_QI, VOID_FTYPE_PV8HI_V4DI_QI,
12146 VOID_FTYPE_PV8HI_V2DI_QI, VOID_FTYPE_PV8HI_V8SI_QI,
12147 VOID_FTYPE_PV8HI_V4SI_QI, VOID_FTYPE_PV16QI_V4DI_QI,
12148 VOID_FTYPE_PV16QI_V2DI_QI, VOID_FTYPE_PV16QI_V8SI_QI,
12149 VOID_FTYPE_PV16QI_V4SI_QI, VOID_FTYPE_PV8HI_V8HI_QI,
12150 VOID_FTYPE_PV16HI_V16HI_HI, VOID_FTYPE_PV32HI_V32HI_SI,
12151 VOID_FTYPE_PV16QI_V16QI_HI, VOID_FTYPE_PV32QI_V32QI_SI,
12152 VOID_FTYPE_PV64QI_V64QI_DI, VOID_FTYPE_PV4DF_V4DF_QI,
12153 VOID_FTYPE_PV2DF_V2DF_QI, VOID_FTYPE_PV8SF_V8SF_QI,
12154 VOID_FTYPE_PV4SF_V4SF_QI, V4SF_FTYPE_PCV4SF_V4SF_QI,
12155 V8SF_FTYPE_PCV8SF_V8SF_QI, V4SI_FTYPE_PCV4SI_V4SI_QI,
12156 V8SI_FTYPE_PCV8SI_V8SI_QI, V2DF_FTYPE_PCV2DF_V2DF_QI,
12157 V4DF_FTYPE_PCV4DF_V4DF_QI, V2DI_FTYPE_PCV2DI_V2DI_QI,
12158 V4DI_FTYPE_PCV4DI_V4DI_QI, V8HI_FTYPE_PCV8HI_V8HI_QI,
12159 V16HI_FTYPE_PCV16HI_V16HI_HI, V32HI_FTYPE_PCV32HI_V32HI_SI,
12160 V16QI_FTYPE_PCV16QI_V16QI_HI, V32QI_FTYPE_PCV32QI_V32QI_SI,
12161 V64QI_FTYPE_PCV64QI_V64QI_DI, do not handle V8USI_FTYPE_V8USI.
12163 2014-10-28 Jakub Jelinek <jakub@redhat.com>
12165 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t
12166 type for the left shift in CASE_CONVERT case.
12168 2014-10-28 Max Ostapenko <m.ostapenko@partner.samsung.com>
12170 * asan.h (asan_intercepted_p): New function.
12171 * asan.c (asan_mem_ref_hasher::hash): Remove MEM_REF access size from
12172 hash value construction. Call iterative_hash_expr instead of explicit
12174 (asan_mem_ref_hasher::equal): Change condition.
12175 (has_mem_ref_been_instrumented): Likewise.
12176 (update_mem_ref_hash_table): Likewise.
12177 (maybe_update_mem_ref_hash_table): New function.
12178 (instrument_strlen_call): Removed.
12179 (get_mem_refs_of_builtin_call): Handle new parameter.
12180 (instrument_builtin_call): Call maybe_update_mem_ref_hash_table instead
12181 of instrument_mem_region_access if intercepted_p is true.
12182 (instrument_mem_region_access): Instrument only base with len instead of
12183 base and end with 1.
12184 (build_check_stmt): Remove start_instrumented and end_instrumented
12186 (enum asan_check_flags): Remove ASAN_CHECK_START_INSTRUMENTED and
12187 ASAN_CHECK_END_INSTRUMENTED. Change ASAN_CHECK_LAST.
12188 (asan_expand_check_ifn): Remove start_instrumented and end_instrumented.
12189 * builtins.c (expand_builtin): Include asan.h. Don't expand
12190 string/memory builtin functions that have interceptors if ASan is
12193 2014-10-28 Richard Biener <rguenther@suse.de>
12195 PR middle-end/63665
12196 * fold-const.c (fold_comparison): Properly guard simplifying
12197 against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS.
12199 2014-10-28 Alan Lawrence <alan.lawrence@arm.com>
12201 * expr.c (expand_expr_real_2): Remove code handling VEC_LSHIFT_EXPR.
12202 * fold-const.c (const_binop): Likewise.
12203 * cfgexpand.c (expand_debug_expr): Likewise.
12204 * tree-inline.c (estimate_operator_cost): Likewise.
12205 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
12206 * optabs.c (optab_for_tree_code): Likewise.
12207 (expand_vec_shift_expr): Likewise, update comment.
12208 * tree.def: Delete VEC_LSHIFT_EXPR, remove comment.
12209 * optabs.h (expand_vec_shift_expr): Remove comment re. VEC_LSHIFT_EXPR.
12210 * optabs.def: Remove vec_shl_optab.
12211 * doc/md.texi: Remove references to vec_shr_m.
12213 2014-10-28 Yury Gribov <y.gribov@samsung.com>
12215 * asan.c (report_error_func): Add noabort path.
12216 (check_func): Ditto. Formatting.
12217 (asan_expand_check_ifn): Handle noabort path.
12218 * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
12220 * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
12221 * opts.c (finish_options): Reword comment.
12222 * sanitizer.def: Add noabort ASan builtins.
12224 2014-10-28 Yury Gribov <y.gribov@samsung.com>
12226 * asan.c (set_asan_shadow_offset): New function.
12227 (asan_shadow_offset): Likewise.
12228 (asan_emit_stack_protection): Call asan_shadow_offset.
12229 (build_shadow_mem_access): Likewise.
12230 * asan.h (set_asan_shadow_offset): Declare.
12231 * common.opt (fasan-shadow-offset): New option.
12232 (frandom-seed): Fixed parameter name.
12233 * doc/invoke.texi (fasan-shadow-offset): Describe new option.
12234 (frandom-seed): Fixed parameter name.
12235 * opts-global.c (handle_common_deferred_options): Handle
12236 -fasan-shadow-offset.
12237 * opts.c (common_handle_option): Likewise.
12239 2014-10-27 Jiong Wang <jiong.wang@arm.com>
12242 * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
12244 2014-10-27 DJ Delorie <dj@redhat.com>
12246 * tree.c (build_common_tree_nodes): Don't even store the
12247 __int128 types if they're not supported.
12249 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12251 * config/i386/i386.c (ix86_loop_memcount): Delete.
12252 (ix86_loop_unroll_adjust): Use FOR_EACH_SUBRTX.
12254 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12256 * config/i386/i386.c (find_constant_1): Delete.
12257 (find_constant): Use FOR_EACH_SUBRTX.
12259 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12261 * config/i386/i386.c (extended_reg_mentioned_1): Delete.
12262 (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
12264 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12266 * config/i386/i386.c: Include rtl-iter.h
12267 (ix86_check_avx256_register): Take a const_rtx and return a bool.
12268 (ix86_check_avx256_stores): Update call accordingly.
12269 (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
12270 (ix86_avx_u128_mode_needed): Likewise. Use FOR_EACH_SUBRTX.
12272 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12274 * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
12275 Take an rtx and return a bool.
12276 * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
12277 Use FOR_EACH_SUBRTX_VAR.
12278 * config/alpha/predicates.md (some_small_symbolic_operand): Update
12281 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12283 * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
12285 * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
12286 (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX. Return a bool.
12288 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12290 * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
12291 (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
12293 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12295 * config/alpha/alpha.c: Include rtl-iter.h.
12296 (split_small_symbolic_operand_1): Delete.
12297 (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
12299 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12301 * config/s390/s390.c: Include rtl-iter.h.
12302 (check_dpu): Delete.
12303 (s390_loop_unroll_adjust): Only iterate over patterns.
12304 Use FOR_EACH_SUBRTX.
12306 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12308 * config/spu/spu.c: Include rtl-iter.h
12309 (ea_symbol_ref): Replace with...
12310 (ea_symbol_ref_p): ...this new function.
12311 (spu_legitimate_address_p): Update call accordingly.
12312 (spu_legitimate_constant_p): Likewise. Use FOR_EACH_SUBRTX.
12314 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
12315 Tom Tromey <tromey@redhat.com>
12317 * aclocal.m4, configure: Rebuild.
12318 * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
12319 * configure.ac: Use GCC_ENABLE_PLUGINS.
12320 * stor-layout.c (finish_bitfield_layout): Now public. Change
12321 argument type to 'tree'.
12322 (finish_record_layout): Update.
12323 * stor-layout.h (finish_bitfield_layout): Declare.
12325 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12327 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
12328 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
12329 Restore, enable for bigendian, update to use __builtin..._scal...
12331 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12333 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
12334 reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
12335 (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
12336 reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
12338 * config/aarch64/aarch64-simd.md
12339 (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
12340 (reduc_<maxmin_uns>_internal<mode>): ...this.
12341 (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
12342 (reduc_<maxmin_uns>_scal_<mode>): New (*2).
12344 (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
12345 (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
12346 (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
12348 * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
12349 vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
12350 vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
12351 vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
12352 vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
12353 vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
12354 vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
12355 __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
12357 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12359 * config/aarch64/aarch64-simd-builtins.def
12360 (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
12362 (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
12364 * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
12365 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
12367 (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
12368 (aarch64_reduc_plus_internal<mode>): ...this.
12370 (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
12371 (aarch64_reduc_plus_internalv2si): ...this.
12373 (reduc_splus_<mode>/V2F): Rename to...
12374 (aarch64_reduc_plus_internal<mode>): ...this.
12376 * config/aarch64/iterators.md
12377 (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
12378 (UNSPEC_ADDV): New.
12379 (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
12381 * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
12382 vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
12383 vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
12384 vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
12385 __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
12387 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12389 PR tree-optimization/61114
12390 * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
12391 optabs, and note in reduc_[us](plus|min|max) to prefer the former.
12393 * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
12394 back to old reduc_... + BIT_FIELD_REF only if not.
12396 * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
12397 return the reduce-to-scalar (reduc_..._scal) optab.
12398 (scalar_reduc_to_vector): New.
12400 * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
12401 reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
12404 * optabs.h (scalar_reduc_to_vector): Declare.
12406 * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
12407 to either scalar or vector.
12409 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12411 PR tree-optimization/61114
12412 * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
12413 extract_bit_field around optab result.
12415 * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
12418 * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
12419 for REDUC_{MIN,MAX,PLUS}_EXPR.
12421 * tree-vect-loop.c (vect_analyze_loop): Update comment.
12422 (vect_create_epilog_for_reduction): For direct vector reduction, use
12423 result of tree code directly without extract_bit_field.
12425 * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
12428 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
12430 * basic-block.h: Remove all includes.
12431 (enum profile_status_d, struct control_flow_graph): Move to cfg.h
12432 * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
12433 * Makefile.in (GTFILES): Add cfg.h to list.
12434 * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
12435 * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
12436 * genconditions.c (write_header): Add predict.h and basic-block.h to
12438 * genemit.c (main): Ditto.
12439 * genpreds.c (write_insn_preds_c): Ditto.
12440 * genrecog.c (write_header): Ditto.
12441 * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
12442 to list of includes.
12443 * alias.c: Adjust include files.
12445 * auto-inc-dec.c: Ditto.
12446 * auto-profile.c: Ditto.
12447 * bb-reorder.c: Ditto.
12448 * bt-load.c: Ditto.
12449 * builtins.c: Ditto.
12450 * caller-save.c: Ditto.
12453 * cfganal.c: Ditto.
12454 * cfgbuild.c: Ditto.
12455 * cfgcleanup.c: Ditto.
12456 * cfgexpand.c: Ditto.
12457 * cfghooks.c: Ditto.
12458 * cfgloop.c: Ditto.
12459 * cfgloopanal.c: Ditto.
12460 * cfgloopmanip.c: Ditto.
12462 * cgraphbuild.c: Ditto.
12463 * cgraphclones.c: Ditto.
12464 * cgraphunit.c: Ditto.
12465 * combine-stack-adj.c: Ditto.
12466 * combine.c: Ditto.
12467 * compare-elim.c: Ditto.
12468 * coverage.c: Ditto.
12472 * data-streamer-in.c: Ditto.
12473 * data-streamer-out.c: Ditto.
12474 * data-streamer.c: Ditto.
12478 * df-core.c: Ditto.
12479 * df-problems.c: Ditto.
12480 * df-scan.c: Ditto.
12483 * dominance.c: Ditto.
12484 * domwalk.c: Ditto.
12486 * dwarf2cfi.c: Ditto.
12487 * emit-rtl.c: Ditto.
12488 * et-forest.c: Ditto.
12493 * fold-const.c: Ditto.
12494 * function.c: Ditto.
12496 * gcc-plugin.h: Ditto.
12498 * generic-match-head.c: Ditto.
12499 * ggc-page.c: Ditto.
12500 * gimple-builder.c: Ditto.
12501 * gimple-expr.c: Ditto.
12502 * gimple-fold.c: Ditto.
12503 * gimple-iterator.c: Ditto.
12504 * gimple-low.c: Ditto.
12505 * gimple-match-head.c: Ditto.
12506 * gimple-pretty-print.c: Ditto.
12507 * gimple-ssa-isolate-paths.c: Ditto.
12508 * gimple-ssa-strength-reduction.c: Ditto.
12509 * gimple-streamer-in.c: Ditto.
12510 * gimple-streamer-out.c: Ditto.
12511 * gimple-streamer.h: Ditto.
12512 * gimple-walk.c: Ditto.
12514 * gimplify-me.c: Ditto.
12515 * gimplify.c: Ditto.
12517 * graphite-blocking.c: Ditto.
12518 * graphite-clast-to-gimple.c: Ditto.
12519 * graphite-dependences.c: Ditto.
12520 * graphite-interchange.c: Ditto.
12521 * graphite-isl-ast-to-gimple.c: Ditto.
12522 * graphite-optimize-isl.c: Ditto.
12523 * graphite-poly.c: Ditto.
12524 * graphite-scop-detection.c: Ditto.
12525 * graphite-sese-to-poly.c: Ditto.
12526 * graphite.c: Ditto.
12527 * haifa-sched.c: Ditto.
12528 * hw-doloop.c: Ditto.
12530 * init-regs.c: Ditto.
12531 * internal-fn.c: Ditto.
12533 * ipa-devirt.c: Ditto.
12534 * ipa-icf-gimple.c: Ditto.
12535 * ipa-icf.c: Ditto.
12536 * ipa-inline-analysis.c: Ditto.
12537 * ipa-inline.c: Ditto.
12538 * ipa-polymorphic-call.c: Ditto.
12539 * ipa-profile.c: Ditto.
12540 * ipa-prop.c: Ditto.
12541 * ipa-pure-const.c: Ditto.
12542 * ipa-reference.c: Ditto.
12543 * ipa-split.c: Ditto.
12544 * ipa-utils.c: Ditto.
12546 * ira-build.c: Ditto.
12547 * ira-color.c: Ditto.
12548 * ira-conflicts.c: Ditto.
12549 * ira-costs.c: Ditto.
12550 * ira-emit.c: Ditto.
12551 * ira-lives.c: Ditto.
12555 * loop-doloop.c: Ditto.
12556 * loop-init.c: Ditto.
12557 * loop-invariant.c: Ditto.
12558 * loop-iv.c: Ditto.
12559 * loop-unroll.c: Ditto.
12560 * lower-subreg.c: Ditto.
12561 * lra-assigns.c: Ditto.
12562 * lra-coalesce.c: Ditto.
12563 * lra-constraints.c: Ditto.
12564 * lra-eliminations.c: Ditto.
12565 * lra-lives.c: Ditto.
12566 * lra-spills.c: Ditto.
12568 * lto-cgraph.c: Ditto.
12569 * lto-compress.c: Ditto.
12570 * lto-opts.c: Ditto.
12571 * lto-section-in.c: Ditto.
12572 * lto-section-out.c: Ditto.
12573 * lto-streamer-in.c: Ditto.
12574 * lto-streamer-out.c: Ditto.
12575 * lto-streamer.c: Ditto.
12577 * mode-switching.c: Ditto.
12578 * modulo-sched.c: Ditto.
12579 * omp-low.c: Ditto.
12581 * opts-global.c: Ditto.
12583 * postreload-gcse.c: Ditto.
12584 * postreload.c: Ditto.
12585 * predict.c: Ditto.
12586 * print-rtl.c: Ditto.
12587 * profile.c: Ditto.
12590 * reg-stack.c: Ditto.
12591 * regcprop.c: Ditto.
12592 * regcprop.h: Ditto.
12593 * reginfo.c: Ditto.
12594 * regrename.c: Ditto.
12595 * regstat.c: Ditto.
12597 * reload1.c: Ditto.
12599 * resource.c: Ditto.
12600 * rtlanal.c: Ditto.
12601 * sched-deps.c: Ditto.
12602 * sched-ebb.c: Ditto.
12603 * sched-int.h: Ditto.
12604 * sched-rgn.c: Ditto.
12605 * sched-vis.c: Ditto.
12606 * sel-sched-dump.c: Ditto.
12607 * sel-sched-ir.c: Ditto.
12608 * sel-sched-ir.h: Ditto.
12609 * sel-sched.c: Ditto.
12611 * shrink-wrap.c: Ditto.
12612 * stack-ptr-mod.c: Ditto.
12614 * store-motion.c: Ditto.
12618 * trans-mem.c: Ditto.
12619 * tree-affine.c: Ditto.
12620 * tree-call-cdce.c: Ditto.
12621 * tree-cfg.c: Ditto.
12622 * tree-cfgcleanup.c: Ditto.
12623 * tree-chrec.c: Ditto.
12624 * tree-complex.c: Ditto.
12625 * tree-data-ref.c: Ditto.
12626 * tree-dfa.c: Ditto.
12627 * tree-eh.c: Ditto.
12628 * tree-emutls.c: Ditto.
12629 * tree-if-conv.c: Ditto.
12630 * tree-inline.c: Ditto.
12631 * tree-into-ssa.c: Ditto.
12632 * tree-loop-distribution.c: Ditto.
12633 * tree-nested.c: Ditto.
12634 * tree-nrv.c: Ditto.
12635 * tree-object-size.c: Ditto.
12636 * tree-outof-ssa.c: Ditto.
12637 * tree-parloops.c: Ditto.
12638 * tree-phinodes.c: Ditto.
12639 * tree-predcom.c: Ditto.
12640 * tree-pretty-print.c: Ditto.
12641 * tree-profile.c: Ditto.
12642 * tree-scalar-evolution.c: Ditto.
12643 * tree-sra.c: Ditto.
12644 * tree-ssa-address.c: Ditto.
12645 * tree-ssa-alias.c: Ditto.
12646 * tree-ssa-ccp.c: Ditto.
12647 * tree-ssa-coalesce.c: Ditto.
12648 * tree-ssa-copy.c: Ditto.
12649 * tree-ssa-copyrename.c: Ditto.
12650 * tree-ssa-dce.c: Ditto.
12651 * tree-ssa-dom.c: Ditto.
12652 * tree-ssa-dse.c: Ditto.
12653 * tree-ssa-forwprop.c: Ditto.
12654 * tree-ssa-ifcombine.c: Ditto.
12655 * tree-ssa-live.c: Ditto.
12656 * tree-ssa-loop-ch.c: Ditto.
12657 * tree-ssa-loop-im.c: Ditto.
12658 * tree-ssa-loop-ivcanon.c: Ditto.
12659 * tree-ssa-loop-ivopts.c: Ditto.
12660 * tree-ssa-loop-manip.c: Ditto.
12661 * tree-ssa-loop-niter.c: Ditto.
12662 * tree-ssa-loop-prefetch.c: Ditto.
12663 * tree-ssa-loop-unswitch.c: Ditto.
12664 * tree-ssa-loop.c: Ditto.
12665 * tree-ssa-math-opts.c: Ditto.
12666 * tree-ssa-operands.c: Ditto.
12667 * tree-ssa-phiopt.c: Ditto.
12668 * tree-ssa-phiprop.c: Ditto.
12669 * tree-ssa-pre.c: Ditto.
12670 * tree-ssa-propagate.c: Ditto.
12671 * tree-ssa-reassoc.c: Ditto.
12672 * tree-ssa-sccvn.c: Ditto.
12673 * tree-ssa-sink.c: Ditto.
12674 * tree-ssa-strlen.c: Ditto.
12675 * tree-ssa-structalias.c: Ditto.
12676 * tree-ssa-tail-merge.c: Ditto.
12677 * tree-ssa-ter.c: Ditto.
12678 * tree-ssa-threadedge.c: Ditto.
12679 * tree-ssa-threadupdate.c: Ditto.
12680 * tree-ssa-uncprop.c: Ditto.
12681 * tree-ssa-uninit.c: Ditto.
12682 * tree-ssa.c: Ditto.
12683 * tree-ssanames.c: Ditto.
12684 * tree-stdarg.c: Ditto.
12685 * tree-streamer-in.c: Ditto.
12686 * tree-streamer-out.c: Ditto.
12687 * tree-streamer.c: Ditto.
12688 * tree-switch-conversion.c: Ditto.
12689 * tree-tailcall.c: Ditto.
12690 * tree-vect-data-refs.c: Ditto.
12691 * tree-vect-generic.c: Ditto.
12692 * tree-vect-loop-manip.c: Ditto.
12693 * tree-vect-loop.c: Ditto.
12694 * tree-vect-patterns.c: Ditto.
12695 * tree-vect-slp.c: Ditto.
12696 * tree-vect-stmts.c: Ditto.
12697 * tree-vectorizer.c: Ditto.
12698 * tree-vrp.c: Ditto.
12702 * valtrack.c: Ditto.
12703 * valtrack.h: Ditto.
12704 * value-prof.c: Ditto.
12705 * var-tracking.c: Ditto.
12707 * varpool.c: Ditto.
12708 * vtable-verify.c: Ditto.
12710 * config/aarch64/aarch64-builtins.c: Ditto.
12711 * config/aarch64/aarch64.c: Ditto.
12712 * config/alpha/alpha.c: Ditto.
12713 * config/arc/arc.c: Ditto.
12714 * config/arm/arm.c: Ditto.
12715 * config/avr/avr.c: Ditto.
12716 * config/bfin/bfin.c: Ditto.
12717 * config/c6x/c6x.c: Ditto.
12718 * config/cr16/cr16.c: Ditto.
12719 * config/cris/cris.c: Ditto.
12720 * config/darwin-c.c: Ditto.
12721 * config/darwin.c: Ditto.
12722 * config/epiphany/epiphany.c: Ditto.
12723 * config/epiphany/mode-switch-use.c: Ditto.
12724 * config/epiphany/resolve-sw-modes.c: Ditto.
12725 * config/fr30/fr30.c: Ditto.
12726 * config/frv/frv.c: Ditto.
12727 * config/h8300/h8300.c: Ditto.
12728 * config/i386/i386.c: Ditto.
12729 * config/i386/winnt.c: Ditto.
12730 * config/ia64/ia64.c: Ditto.
12731 * config/iq2000/iq2000.c: Ditto.
12732 * config/lm32/lm32.c: Ditto.
12733 * config/m32c/m32c.c: Ditto.
12734 * config/m32r/m32r.c: Ditto.
12735 * config/m68k/m68k.c: Ditto.
12736 * config/mcore/mcore.c: Ditto.
12737 * config/mep/mep.c: Ditto.
12738 * config/microblaze/microblaze.c: Ditto.
12739 * config/mips/mips.c: Ditto.
12740 * config/mmix/mmix.c: Ditto.
12741 * config/mn10300/mn10300.c: Ditto.
12742 * config/moxie/moxie.c: Ditto.
12743 * config/msp430/msp430.c: Ditto.
12744 * config/nds32/nds32-cost.c: Ditto.
12745 * config/nds32/nds32-fp-as-gp.c: Ditto.
12746 * config/nds32/nds32-intrinsic.c: Ditto.
12747 * config/nds32/nds32-isr.c: Ditto.
12748 * config/nds32/nds32-md-auxiliary.c: Ditto.
12749 * config/nds32/nds32-memory-manipulation.c: Ditto.
12750 * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
12751 * config/nds32/nds32-predicates.c: Ditto.
12752 * config/nds32/nds32.c: Ditto.
12753 * config/nios2/nios2.c: Ditto.
12754 * config/pa/pa.c: Ditto.
12755 * config/pdp11/pdp11.c: Ditto.
12756 * config/rl78/rl78.c: Ditto.
12757 * config/rs6000/rs6000.c: Ditto.
12758 * config/rx/rx.c: Ditto.
12759 * config/s390/s390.c: Ditto.
12760 * config/sh/sh-mem.cc: Ditto.
12761 * config/sh/sh.c: Ditto.
12762 * config/sh/sh_optimize_sett_clrt.cc: Ditto.
12763 * config/sh/sh_treg_combine.cc: Ditto.
12764 * config/sparc/sparc.c: Ditto.
12765 * config/spu/spu.c: Ditto.
12766 * config/stormy16/stormy16.c: Ditto.
12767 * config/tilegx/tilegx.c: Ditto.
12768 * config/tilepro/tilepro.c: Ditto.
12769 * config/v850/v850.c: Ditto.
12770 * config/vax/vax.c: Ditto.
12771 * config/xtensa/xtensa.c: Ditto.
12773 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12775 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
12776 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
12777 Remove using preprocessor directives.
12779 2014-10-27 Richard Biener <rguenther@suse.de>
12781 * match.pd (0 % X): Properly use the iterator iterating over
12782 all modulo operators.
12785 2014-10-27 Richard Biener <rguenther@suse.de>
12787 * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
12788 (lattice): New global.
12789 (fwprop_ssa_val): New function.
12790 (fold_all_stmts): Likewise.
12791 (pass_forwprop::execute): Finally fold all stmts.
12793 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
12796 * doc/invoke.texi (fmessage-length): Update text to match reality.
12798 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12800 * config/microblaze/microblaze.c: Include rtl-iter.h.
12801 (microblaze_tls_referenced_p_1): Delete.
12802 (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
12804 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12806 * config/mips/mips.c (mips_at_reg_p): Delete.
12807 (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
12809 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12811 * config/mips/mips.c (mips_record_lo_sum): Replace with...
12812 (mips_record_lo_sums): ...this new function.
12813 (mips_reorg_process_insns): Update accordingly.
12815 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12817 * config/mips/mips.c (mips_sim_insn): Update comment.
12818 (mips_sim_wait_regs_2): Delete.
12819 (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
12821 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12823 * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
12824 and return a bool. Iterate over all subrtxes here.
12825 (r10k_needs_protection_p): Update accordingly.
12827 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12829 * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
12830 rather than an rtx pointer. Change type of insn from "void *"
12831 to its real type. Return bool rather than int. Iterate over
12833 (r10k_needs_protection_p_store): Update accordingly.
12834 (r10k_needs_protection_p): Likewise.
12836 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12838 * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
12839 (mips16_rewrite_pool_refs): Take the insn and constant pool as
12840 parameters. Iterate over the instruction's pattern and return void.
12841 (mips16_lay_out_constants): Update accordingly.
12843 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12845 * config/mips/mips.c (mips_kernel_reg_p): Replace with...
12846 (mips_refers_to_kernel_reg_p): ...this new function.
12847 (mips_expand_prologue): Update accordingly.
12849 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12851 * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
12852 as a parameter instead of the containing MEM. Iterate over all
12853 subrtxes. Don't return a value.
12854 (mips_rewrite_small_data): Update call accordingly.
12856 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12858 * config/mips/mips.c: Include rtl-iter.h.
12859 (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
12860 Take the context as a parameter instead of the containing MEM.
12861 Iterate over all subrtxes.
12862 (mips_small_data_pattern_p): Update call accordingly.
12864 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12866 * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
12867 (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
12869 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12871 * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
12872 return a bool. Replace "void *" with specific type. Iterate
12874 (mep_store_data_bypass_1): Update calls accordingly.
12876 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12878 * config/mep/mep.c: Include rtl-iter.h.
12879 (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
12880 (xtensa_tls_referenced_p): Return a bool. Use FOR_EACH_SUBRTX.
12882 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12884 * config/xtensa/xtensa.c: Include rtl-iter.h.
12885 (xtensa_tls_referenced_p_1): Delete.
12886 (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
12888 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12890 * config/sh/sh.c (sh_contains_memref_p_1): Delete.
12891 (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
12893 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12895 * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
12896 rtx as argument and return the number of changes.
12897 * config/sh/sh.c: Include rtl-iter.h.
12898 (shmedia_cleanup_truncate): Take an rtx as argument and iterate
12899 over all subrtxes. Return the number of changes made.
12900 * config/sh/sh.md: Update caller accordingly.
12902 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12904 * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
12905 (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
12907 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12909 * config/m68k/m68k.c: Include rtl-iter.h.
12910 (m68k_final_prescan_insn_1): Delete.
12911 (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
12913 2014-10-25 Jakub Jelinek <jakub@redhat.com>
12915 PR tree-optimization/63641
12916 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
12917 to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
12919 2014-10-25 Alan Modra <amodra@gmail.com>
12921 PR rtl-optimization/63615
12922 * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
12923 decomposing PLUS or MINUS if operands are not placed adjacent
12924 in the "ops" array.
12926 2014-10-25 Joseph Myers <joseph@codesourcery.com>
12928 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
12929 not allow e500 double in registers not satisyfing
12932 2014-10-24 Aldy Hernandez <aldyh@redhat.com>
12934 * dwarf2out.c (declare_in_namespace): Only emit external
12935 declarations in the local scope once.
12937 2014-10-24 Jonathan Wakely <jwakely@redhat.com>
12939 * ginclude/stdbool.h: Do not define bool, true or false in C++11.
12941 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
12943 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
12944 update uses to use new macro arguments.
12945 (__LD3_LANE_FUNC): Likewise.
12946 (__LD4_LANE_FUNC): Likewise.
12948 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
12950 * config/aarch64/aarch64-builtins.c
12951 (aarch64_types_loadstruct_lane_qualifiers): Define.
12952 * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
12953 ld4_lane): New builtins.
12954 * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
12956 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
12957 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
12958 (aarch64_ld2_lane<mode>): New expand.
12959 (aarch64_ld3_lane<mode>): Likewise.
12960 (aarch64_ld4_lane<mode>): Likewise.
12961 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
12962 UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
12964 2014-10-24 Georg-Johann Lay <avr@gjlay.de>
12966 * avr-protos.h (avr_out_sign_extend): New.
12967 * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
12968 (avr_out_sign_extend): New function.
12969 * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
12970 (extendhisi2, extendpsisi2): Use it.
12971 (adjust_len) [sext]: New.
12973 2014-10-24 Martin Liska <mliska@suse.cz>
12975 * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
12978 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12980 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
12981 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
12982 * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
12983 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
12985 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12987 * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
12989 * config/aarch64/aarch64.c (is_mem_p): Delete.
12990 (is_memory_op): Rename to...
12991 (has_memory_op): ... This. Use FOR_EACH_SUBRTX.
12992 (dep_between_memop_and_curr): Assert that the input is a SET.
12993 (aarch64_madd_needs_nop): Add comment. Do not call
12994 dep_between_memop_and_curr on NULL body.
12995 (aarch64_final_prescan_insn): Add comment.
12996 Include rtl-iter.h.
12998 2014-10-24 Richard Biener <rguenther@suse.de>
13000 * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
13001 to genmatch BUILD_LIBS instead.
13003 2014-10-24 Richard Biener <rguenther@suse.de>
13005 * genmatch.c (expr::gen_transform): Use fold_buildN_loc
13006 and build_call_expr_loc.
13007 (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
13008 non_lvalue_loc to build it for GENERIC.
13009 (decision_tree::gen_generic): Add location argument to
13010 generic_simplify prototype.
13011 (capture_info): New class.
13012 (capture_info::capture_info): New constructor.
13013 (capture_info::walk_match): New method.
13014 (capture_info::walk_result): New method.
13015 (capture_info::walk_c_expr): New method.
13016 (dt_simplify::gen): Handle preserving side-effects for
13017 GENERIC code generation.
13018 (decision_tree::gen_generic): Do not reject operands
13019 with TREE_SIDE_EFFECTS.
13020 * generic-match.h: New file.
13021 * generic-match-head.c: Include generic-match.h, not gimple-match.h.
13022 * match.pd: Add some constant folding patterns from fold-const.c.
13023 * fold-const.c: Include generic-match.h.
13024 (fold_unary_loc): Dispatch to generic_simplify.
13025 (fold_ternary_loc): Likewise.
13026 (fold_binary_loc): Likewise. Remove patterns now implemented
13027 by generic_simplify.
13028 * gimple-fold.c (replace_stmt_with_simplification): New function.
13029 (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
13030 (no_follow_ssa_edges): New function.
13031 (fold_stmt): New overload with valueization hook. Use
13032 no_follow_ssa_edges for the overload without hook.
13033 (fold_stmt_inplace): Likewise.
13034 * gimple-fold.h (no_follow_ssa_edges): Declare.
13036 2014-10-24 Felix Yang <felix.yang@huawei.com>
13037 Jiji Jiang <jiangjiji@huawei.com>
13040 * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
13041 (__LD3R_FUNC): Ditto.
13042 (__LD4R_FUNC): Ditto.
13043 (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
13044 vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
13045 vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
13046 vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
13047 vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
13048 vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
13049 (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
13050 vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
13051 vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
13052 vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
13053 vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
13054 vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
13055 (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
13056 vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
13057 vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
13058 vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
13059 vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
13060 vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
13061 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
13062 UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
13063 * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
13065 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
13066 (aarch64_simd_ld3r<mode>): Likewise.
13067 (aarch64_simd_ld4r<mode>): Likewise.
13068 (aarch64_ld2r<mode>): New expand.
13069 (aarch64_ld3r<mode>): Likewise.
13070 (aarch64_ld4r<mode>): Likewise.
13072 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13074 * rtlanal.c (get_base_term): Handle SCRATCH.
13076 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13078 * haifa-sched.c (sched_init): Disable max_issue when scheduling for
13081 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13083 * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
13084 (cached_issue_rate): Remove. Use dfa_lookahead and issue_rate instead.
13085 (max_issue, choose_ready, sched_init): Update.
13087 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13089 * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
13090 * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
13091 (rfs_result): Set INSN_LAST_RFS_WIN. Update signature.
13092 (rank_for_schedule): Update calls to rfs_result to pass new parameters.
13093 (print_rank_for_schedule_stats): Print out elements of ready list that
13094 ended up on their respective places due to each of the sorting
13096 (ready_sort): Update.
13097 (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
13098 (schedule_block): Update.
13100 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13102 * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
13103 arrays. Use sched_class_regs_num instead of ira_class_hard_regs_num.
13104 (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
13105 (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
13106 (model_start_schedule): Update.
13107 (sched_pressure_start_bb): New static function. Calculate
13108 sched_class_regs_num.
13109 (schedule_block): Use it.
13110 (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
13112 2014-10-24 Richard Biener <rguenther@suse.de>
13114 * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
13115 host library and make sure to pull in the required libintl
13116 and libiconv dependencies.
13118 2014-10-24 Richard Biener <rguenther@suse.de>
13120 * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
13122 2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
13125 * collect2.c (main): Filter out -fno-lto.
13127 2014-10-24 Martin Liska <mliska@suse.cz>
13129 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
13130 division by zero in dumps.
13131 (sem_item_optimizer::merge_classes): Ditto.
13133 2014-10-23 John David Anglin <danglin@gcc.gnu.org>
13135 * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
13137 2014-10-23 Ian Lance Taylor <iant@google.com>
13139 * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
13141 2014-10-23 Ian Lance Taylor <iant@google.com>
13143 * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
13145 2014-10-23 Jakub Jelinek <jakub@redhat.com>
13148 * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
13149 (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
13150 instead of only handling autoinc in dest if it is a MEM.
13151 (vt_stack_adjustments): Fix up formatting.
13153 2014-10-23 DJ Delorie <dj@redhat.com>
13155 * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
13156 independend of -mlarge.
13157 * config/msp430/constraints.md (Ys): Update comment.
13159 2014-10-23 Evgeny Stupachenko <evstupac@gmail.com>
13163 * cse.c (delete_trivially_dead_insns): Consider PIC register is used
13164 while it is pseudo.
13165 * dse.c (deletable_insn_p): Likewise.
13167 2014-10-23 Georg-Johann Lay <avr@gjlay.de>
13169 * config/avr/avr.c: Fix GNU coding rules and typos.
13170 * config/avr/avr.h: Dito.
13171 * config/avr/avr-c.c: Dito.
13172 * config/avr/avr.md: Dito.
13174 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
13176 * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
13178 (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
13180 (define_expand "abs<mode>2"): Ditto.
13182 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
13184 * tree-core.h (tree_var_decl): Extend `function_code' field
13185 by one bit, move `regdecl_flag' field to ...
13186 (tree_decl_with_vis): Here.
13187 * tree.h (DECL_STATIC_CHAIN): Update struct name.
13189 2014-10-23 Richard Biener <rguenther@suse.de>
13191 * Makefile.in (BUILD_CPPLIB): Add.
13192 (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
13195 2014-10-23 Richard Biener <rguenther@suse.de>
13197 * fold-const.c (fold_binary_loc): Preserve side-effects of
13198 X - X when simplifying to 0.
13199 * stor-layout.c (finish_bitfield_representative): Strip
13200 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
13202 2014-10-22 Richard Biener <rguenther@suse.de>
13203 Tobias Burnus <burnus@net-b.de>
13206 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
13208 2014-10-22 Dehao Chen <dehao@google.com>
13210 * auto-profile.c: Change order of header files.
13212 2014-10-22 Guozhi Wei <carrot@google.com>
13214 PR tree-optimization/63530
13215 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
13216 pointer alignment according to DR_MISALIGNMENT.
13218 2014-10-22 David Malcolm <dmalcolm@redhat.com>
13220 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
13222 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
13224 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
13225 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
13226 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
13227 * dominance.h: New. Add prototypes for dominance.c.
13228 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
13229 * cfghooks.h: (struct profile_record) Relocate here.
13230 Relocate 2 prototypes from basic-block.h.
13231 * basic-block.h: Move prototypes and struct to new header files.
13232 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
13233 * rtl.h: Move a few prototypes to new header files.
13234 * cfgcleanup.c (merge_memattrs): Make static.
13235 * genopinit.c (main): Add predict.h to list of includes.
13236 * predict.h: Update prototype list to match predict.c.
13237 * predict.c (maybe_hot_count_p): Export.
13238 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
13239 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
13240 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
13241 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
13242 * profile.h: Adjust prototypes.
13243 * ifcvt.h: New. Relocate struct ce_if_block here.
13244 * ifcvt.c: Include ifcvt.h.
13245 * config/frv/frv.c: Include ifcvt.h.
13246 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
13248 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13250 * lra.c (lra): Remove call to recog_init.
13251 * config/i386/i386.md (preferred_for_speed): New attribute
13252 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
13253 "enabled". Remove check for sched1.
13255 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13257 * recog.h (recog_data_d): Remove enabled_alternatives.
13258 * recog.c (extract_insn): Don't set it.
13259 * reload.c (find_reloads): Call get_enabled_alternatives.
13261 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13263 * recog.h (constrain_operands): Add an alternative_mask parameter.
13264 (constrain_operands_cached): Likewise.
13265 (get_preferred_alternatives): Declare new form.
13266 * recog.c (get_preferred_alternatives): New bb-taking instance.
13267 (constrain_operands): Take the set of available alternatives as
13269 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
13270 (extract_constrain_insn_cached): Update calls to constrain_operands.
13271 * caller-save.c (reg_save_code): Likewise.
13272 * ira.c (setup_prohibited_mode_move_regs): Likewise.
13273 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
13274 * ree.c (combine_reaching_defs): Likewise.
13275 * reload.c (can_reload_into): Likewise.
13276 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
13277 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
13278 (emit_insn_if_valid_for_reload): Likewise.
13279 * reorg.c (fill_slots_from_thread): Likewise.
13280 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
13281 * config/pa/pa.c (pa_can_combine_p): Likewise.
13282 * config/rl78/rl78.c (insn_ok_now): Likewise.
13283 * config/sh/sh.md (define_peephole2): Likewise.
13284 * final.c (final_scan_insn): Update call to constrain_operands_cached.
13286 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13288 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
13290 * genattr.c (main): Handle "preferred_for_size" and
13291 "preferred_for_speed" in the same way as "enabled".
13292 * recog.h (bool_attr): New enum.
13293 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
13294 (get_preferred_alternatives, check_bool_attrs): Declare.
13295 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
13296 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
13298 (get_enabled_alternatives): Use get_bool_attr_mask.
13299 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
13300 instead of recog_data.enabled_alternatives.
13301 * ira.c (ira_setup_alts): Likewise.
13302 * postreload.c (reload_cse_simplify_operands): Likewise.
13303 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13304 * ira-lives.c (preferred_alternatives): New variable.
13305 (process_bb_node_lives): Set it.
13306 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
13307 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
13308 of recog_data.enabled_alternatives.
13309 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
13310 to preferred_alternatives.
13311 * lra-constraints.c (process_alt_operands): Update accordingly.
13312 * lra.c (lra_set_insn_recog_data): Likewise.
13313 (lra_update_insn_recog_data): Assert check_bool_attrs.
13315 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13317 * recog.h (extract_constrain_insn): Declare.
13318 * recog.c (extract_constrain_insn): New function.
13319 * lra.c (check_rtl): Use it.
13320 * postreload.c (reload_cse_simplify_operands): Likewise.
13321 * reg-stack.c (check_asm_stack_operands): Likewise.
13322 (subst_asm_stack_regs): Likewise.
13323 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13324 * regrename.c (build_def_use): Likewise.
13325 * sel-sched.c (get_reg_class): Likewise.
13326 * config/arm/arm.c (note_invalid_constants): Likewise.
13327 * config/s390/predicates.md (execute_operation): Likewise.
13329 2014-10-22 Jakub Jelinek <jakub@redhat.com>
13330 Yury Gribov <y.gribov@samsung.com>
13332 * common.opt (flag_sanitize_recover): New variable.
13333 (fsanitize-recover): Remove Var/Init, deprecate.
13334 (fsanitize-recover=): New option.
13335 * doc/invoke.texi (fsanitize-recover): Update docs.
13336 * opts.c (finish_options): Use opts->x_flag_sanitize
13337 instead of flag_sanitize. Prohibit -fsanitize-recover
13338 for anything besides UBSan. Formatting.
13339 (common_handle_option): Handle OPT_fsanitize_recover_
13340 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
13341 instead of flag_sanitize.
13342 * asan.c (pass_sanopt::execute): Fix up formatting.
13343 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
13344 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
13345 instrument_bool_enum_load, ubsan_instrument_float_cast,
13346 instrument_nonnull_arg, instrument_nonnull_return): Check
13347 bits in flag_sanitize_recover bitmask instead of
13348 flag_sanitize_recover as bool flag.
13350 2014-10-22 Jiong Wang <jiong.wang@arm.com>
13352 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
13354 2014-10-22 Renlin Li <renlin.li@arm.com>
13356 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
13357 __ARM_FEATURE_IDIV__.
13359 2014-10-22 Richard Biener <rguenther@suse.de>
13361 * Makefile.in (s-match): Adjust dependencies to only catch
13364 2014-10-22 Richard Biener <rguenther@suse.de>
13365 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
13367 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
13368 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
13369 (gimple-match.c): Generate by triggering s-match.
13370 (generic-match.c): Likewise.
13371 (s-match): Rule to build gimple-match.c and generic-match.c
13372 by running the genmatch generator program.
13373 (build/hash-table.o): Dependencies to build hash-table.c for the host.
13374 (build/genmatch.o): Dependencies to build genmatch.
13375 (genprog): Add match.
13376 (build/genmatch): Likewise.
13377 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
13378 * generic-match-head.c: New file.
13379 * gimple-match-head.c: Likewise.
13380 * gimple-match.h: Likewise.
13381 * genmatch.c: Likewise.
13382 * match.pd: Likewise.
13383 * builtins.h (fold_builtin_n): Export.
13384 * builtins.c (fold_builtin_n): Likewise.
13385 * gimple-fold.h (gimple_build): Declare various overloads.
13386 (gimple_simplify): Likewise.
13387 (gimple_convert): Re-implement in terms of gimple_build.
13388 * gimple-fold.c (gimple_convert): Remove.
13389 (gimple_build): New functions.
13390 * doc/match-and-simplify.texi: New file.
13391 * doc/gccint.texi: Add menu item Match and Simplify and include
13392 match-and-simplify.texi.
13394 2014-10-22 Jakub Jelinek <jakub@redhat.com>
13397 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
13398 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
13399 even for just TARGET_AVX2, not only for
13400 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
13401 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
13402 otherwise build it using concatenation of 256-bit
13404 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
13405 avx512 broadcast patterns.
13406 (vec_dup<mode>): Likewise. For avx2 use
13407 v<sseintprefix>broadcast<bcstscalarsuff> instead of
13408 vbroadcast<ssescalarmodesuffix>.
13409 (AVX2_VEC_DUP_MODE): New mode iterator.
13410 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
13411 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
13414 * config/i386/i386.c (ix86_pic_register_p): Also return
13415 true if x is a hard register with ORIGINAL_REGNO equal to
13416 pic_offset_table_rtx pseudo REGNO.
13417 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
13418 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
13420 2014-10-22 Alan Modra <amodra@gmail.com>
13422 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
13423 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
13424 (gcc_obstack_init): Use obstack_specify_allocation in place of
13426 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
13427 (regexp_representation): Likewise.
13428 * godump.c (go_output_type): Likewise.
13430 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
13432 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
13433 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
13434 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
13436 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13438 * doc/invoke.texi (pedantic-errors): Explain better.
13440 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
13441 Vidya Praveen <vidya.praveen@atmel.com>
13442 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
13443 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
13444 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
13446 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
13447 __MEMX for avrtiny.
13448 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
13449 (avr_nonconst_pointer_addrspace): Likewise.
13450 * config/avr/avr.h (AVR_HAVE_LPM): Define.
13452 Added AVRTINY architecture to avr target.
13453 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
13454 (base_arch_s): member added for AVRTINY architecture.
13455 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
13456 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
13457 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
13458 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
13459 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
13460 in callee saved register list.
13461 (avr_option_override): CCP address updated for AVRTINY.
13462 (avr_init_expanders): tmp and zero rtx initialized as per arch.
13463 Reset avr_have_dimode if AVRTINY.
13464 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
13465 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
13466 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
13467 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
13468 (expand_epilogue): Likewise.
13469 (avr_print_operand): Print CCP address in case of AVRTINY also.
13471 (function_arg_regno_p): Check different register list for arguments
13473 (init_cumulative_args): Check for AVRTINY to update number of argument
13475 (tiny_valid_direct_memory_access_range): New function. Return false if
13476 direct memory access range is not in accepted range for AVRTINY.
13477 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
13478 indirect load (with displacement) for AVRTINY.
13479 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
13480 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
13481 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
13482 indirect load (no displacement) for AVRTINY.
13483 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
13484 indirect load (with displacement) for AVRTINY.
13485 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
13486 indirect load for pre-decrement address.
13487 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
13488 functions. Update instruction length for AVRTINY.
13489 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
13491 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
13492 (out_movsi_r_mr): Likewise, for SImode.
13493 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
13494 indirect store (no displacement) for AVRTINY.
13495 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
13496 indirect store (with displacement) for AVRTINY.
13497 (out_movsi_mr_r): Emit out insn for IO address store. Update store
13498 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
13500 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
13501 indirect load (no displacement) for PSImode in AVRTINY.
13502 (avr_out_load_psi_reg_disp_tiny): New function to handle register
13503 indirect load (with displacement) for PSImode in AVRTINY.
13504 (avr_out_load_psi): Call PSImode register indirect load functions for
13505 AVRTINY. Update instruction length for AVRTINY.
13506 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
13507 indirect store (no displacement) for PSImode in AVRTINY.
13508 (avr_out_store_psi_reg_disp_tiny): New function to handle register
13509 indirect store (with displacement) for PSImode in AVRTINY.
13510 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
13511 register indirect store functions for AVRTINY.
13512 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
13513 register indirect store (with displacement) for AVRTINY.
13514 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
13515 register indirect store function for QImode in AVRTINY.
13516 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
13517 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
13518 indirect store (no displacement) for HImode in AVRTINY.
13519 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
13520 indirect store (with displacement) for HImode in AVRTINY.
13521 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
13522 indirect store for post-increment address in HImode.
13523 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
13524 register indirect store function for HImode in AVRTINY.
13525 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
13526 in case of AVRTINY.
13527 (order_regs_for_local_alloc): Updated register allocation order for
13529 (avr_conditional_register_usage): New function. It is a target hook
13530 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
13531 used registers list and register allocation order for AVRTINY.
13532 (avr_return_in_memory): Update return value size for AVRTINY.
13533 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
13534 for AVRTINY arch and tiny program memory base address.
13535 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
13536 (avr_texinfo): Added description for AVRTINY arch.
13537 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
13538 STATIC_CHAIN_REGNUM for AVRTINY.
13539 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
13540 * config/avr/avr.md: Added constants for tmp/ zero registers in
13541 AVRTINY. Attributes for AVRTINY added.
13542 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
13543 memory access range.
13544 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
13545 in AVRTINY memory access range.
13546 (*mov<mode>): Likewise for HImode and SImode.
13547 (*movsf): Likewise for SFmode.
13548 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
13550 * config/avr/avr-protos.h: Added function prototype for
13551 tiny_valid_direct_memory_access_range.
13552 * config/avr/avr-tables.opt: Regenerate.
13553 * gcc/config/avr/t-multilib: Regenerate.
13554 * doc/avr-mmcu.texi: Regenerate.
13556 2014-10-21 Andrew Pinski <apinski@cavium.com>
13558 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
13559 available option also.
13560 * config/aarch64/aarch64-cost-tables.h: New file.
13561 * config/aarch64/aarch64-cores.def (thunderx): New core.
13562 * config/aarch64/aarch64-tune.md: Regenerate.
13563 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
13564 of config/arm/aarch-cost-tables.h.
13565 (thunderx_regmove_cost): New variable.
13566 (thunderx_tunings): New variable.
13568 2014-10-21 Dehao Chen <dehao@google.com>
13570 * auto-profile.c: New file.
13571 * auto-profile.h: New file.
13572 * basic-block.h (maybe_hot_count_p): New export func.
13573 (add_working_set): New export func.
13574 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
13575 (GCOV_TAG_AFDO_FUNCTION): Likewise.
13576 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
13577 * opts.c (enable_fdo_optimizations): New func.
13578 (common_handle_option): Handle -fauto-profile flag.
13579 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
13580 (class pass_early_inline): Export early_inliner.
13581 (early_inliner): Likewise.
13582 (pass_early_inline::execute): Likewise.
13583 * ipa-inline.h (early_inliner): Likewise.
13584 * predict.c (maybe_hot_count_p): New export func.
13585 (counts_to_freqs): AutoFDO logic.
13586 (rebuild_frequencies): Likewise.
13587 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
13588 * profile.c (add_working_set): New func.
13589 * Makefile.in (auto-profile.o): New object file.
13590 * passes.def (pass_ipa_auto_profile): New pass.
13591 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
13592 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
13593 * toplev.c (compile_file): AutoFDO logic.
13594 * doc/invoke.texi (-fauto-profile): New doc.
13595 * coverage.c (coverage_init): AutoFDO logic.
13596 * common.opt (-fauto-profile): New flag.
13597 * timevar.def (TV_IPA_AUTOFDO): New tag.
13598 * value-prof.c (gimple_alloc_histogram_value): New export func.
13599 (check_ic_target): Likewise.
13600 * value-prof.h (gimple_alloc_histogram_value): Likewise.
13601 (check_ic_target): Likewise.
13603 2014-10-21 David Malcolm <dmalcolm@redhat.com>
13605 * cgraph.c (cgraph_c_finalize): New function.
13606 * cgraph.h (cgraph_c_finalize): New prototype.
13607 (cgraphunit_c_finalize): New prototype.
13608 * cgraphunit.c (first_analyzed): Move from analyze_functions
13610 (first_analyzed_var): Likewise.
13611 (analyze_functions): Move static variables into file-scope.
13612 (cgraphunit_c_finalize): New function.
13613 * diagnostic.c (diagnostic_finish): Free the memory for
13614 context->classify_diagnostic and context->printer, running the
13615 destructor for the latter.
13616 (bt_stop): Use toplev::main.
13617 * dwarf2out.c (dwarf2out_finalize): New function.
13618 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
13619 * gcse.c (gcse_c_finalize): New function.
13620 * gcse.h (gcse_c_finalize): New prototype.
13621 * ggc-page.c (init_ggc): Make idempotent.
13622 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
13623 * ipa-cp.c (ipa_cp_c_finalize): New function.
13624 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
13625 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
13626 a field of class pass_ipa_pure_const.
13627 (node_duplication_hook_holder): Likewise.
13628 (node_removal_hook_holder): Likewise.
13629 (register_hooks): Convert to method...
13630 (pass_ipa_pure_const::register_hooks): ...here, converting
13631 static variable init_p into...
13632 (pass_ipa_pure_const::init_p): ...new field.
13633 (pure_const_generate_summary): Update invocation of
13634 register_hooks to invoke as a method of current_pass.
13635 (pure_const_read_summary): Likewise.
13636 (propagate): Convert to...
13637 (pass_ipa_pure_const::execute): ...method.
13638 * ipa-reference.c (ipa_init): Move static bool init_p from here
13640 (ipa_init_p): New file-scope variable, so that it can be reset
13641 when repeatedly invoking the compiler within one process by...
13642 (ipa_reference_c_finalize): New function.
13643 * ipa-reference.h (ipa_reference_c_finalize): New.
13644 * main.c (main): Replace invocation of toplev_main with
13645 construction of a toplev instance, and call its "main" method.
13646 * params.c (global_init_params): Add an assert that
13647 params_finished is false.
13648 (params_c_finalize): New.
13649 * params.h (params_c_finalize): New.
13650 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
13651 invoking generate_summary, for the benefit of pass_ipa_pure_const.
13652 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
13653 before calling write_summary hook.
13654 (ipa_write_optimization_summaries_1): Likewise when calling
13655 write_optimization_summary hook.
13656 (ipa_read_summaries_1): Likewise for read_summary hook.
13657 (ipa_read_optimization_summaries_1): Likewise for
13658 read_optimization_summary hook.
13659 (execute_ipa_stmt_fixups): Likewise.
13660 * stringpool.c (init_stringpool): Clean up if we're called more
13662 * timevar.c (timevar_init): Ignore repeated calls.
13663 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
13665 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
13666 (initialize_rtl): Move static local "initialized_once"
13667 into file scope, and rename to...
13668 (rtl_initialized): New variable.
13669 (do_compile): Move timevar initialization from here to
13670 toplev::start_timevars.
13671 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
13672 toplev::finalize): New functions.
13673 (toplev_main): Rename to...
13674 (toplev::main): ...this.
13675 * toplev.h (class toplev): New class.
13677 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
13679 * loop-doloop.c: Include loop-unroll.h.
13681 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
13683 * cfg.h: New. Header file for cfg.c.
13684 * cfganal.h: New. Header file for cfganal.c.
13685 * lcm.h: New. Header file for lcm.c.
13686 * loop-unroll.h: New. Header file for loop-unroll.h.
13687 * cfgloop.h: (unroll_loops): Remove prototype.
13688 * basic-block.h: Move prototypes and structs to new header files.
13689 Include cfg.h, cfganal.h, and lcm.h.
13690 * loop-init.c: Include loop-unroll.h.
13691 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
13692 * modulo-sched.c: Include loop-unroll.h.
13694 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
13696 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
13697 MARKER_BYTE_UNKNOWN markers when handling casts.
13699 2014-10-21 Richard Biener <rguenther@suse.de>
13701 * tree-ssa-phiopt.c (value_replacement): Properly verify we
13702 are the non-singleton PHI.
13704 2014-10-21 Jakub Jelinek <jakub@redhat.com>
13706 PR tree-optimization/63563
13707 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
13708 if either dra or drb stmts are not normal loads/stores.
13710 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
13712 * config/i386/i386.c (expand_vec_perm_1): Fix
13713 expand_vec_perm_palignr case.
13714 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
13717 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
13719 * cfgloopanal.c (seq_cost): Delete.
13720 * rtl.h (seq_cost): New prototype.
13721 * rtlanal.c (seq_cost): New function.
13722 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
13724 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
13726 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
13727 * basic-block.h: Remove prototypes for cfgrtl.c.
13728 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
13729 prototypes to cfgrtl.h.
13730 * profile.h (profile_info): Add extern export declaration.
13731 * rtl.h: Remove prototypes for cfgrtl.h.
13732 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
13733 * ipa-inline.c: Include profile.h.
13734 * loop-unroll.c: Ditto.
13735 * modulo-sched.c: Ditto.
13736 * postreload-gcse.c: Ditto.
13737 * predict.c: Ditto.
13738 * sched-ebb.c: Ditto.
13739 * sched-rgn.c: Ditto.
13741 * tree-ssa-loop-ivcanon.c: Ditto.
13743 2014-10-20 Richard Biener <rguenther@suse.de>
13745 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
13746 operands to get a def operand kind match. Signal mismatches
13747 to the parent so we can try swapping its operands.
13748 (vect_build_slp_tree): Try swapping operands if they have
13749 a mismatched operand kind.
13751 2014-10-20 Alan Modra <amodra@gmail.com>
13754 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
13755 Increase "ops" array size. Correct array size tests. Init
13756 n_constants in loop. Break out of innermost loop when finding
13757 a trivial CONST expression.
13759 2014-10-20 Martin Liska <mliska@suse.cz>
13762 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
13763 Gimple tempate string is compared.
13765 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
13767 * varasm.c (const_alias_set): Remove.
13768 (init_varasm_once): Remove initialization of const_alias_set.
13769 (build_constant_desc): Do not set alias set to const_alias_set.
13771 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
13773 * configure: Regenerate.
13774 * configure.ac: Move the test for section attribute specifier "e" in GAS
13775 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
13776 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
13777 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
13778 ifdef HAVE_GAS_SECTION_EXCLUDE.
13780 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
13782 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
13783 match_operand expression.
13785 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
13786 David Edelsohn <dje.gcc@gmail.com>
13788 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
13790 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13792 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
13794 * doc/invoke.texi (Options to Request or Suppress Warnings):
13795 Explain options precedence.
13796 (Wtrampolines): Do not indent paragraph.
13798 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
13800 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
13801 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
13802 (pa_jump_in_call_delay): Likewise.
13803 * config/pa/pa.c (pa_option_override): Remove jump in call delay
13805 (pa_output_millicode_call): Remove support for jump in call delay.
13806 (pa_output_call): Likewise.
13807 (pa_jump_in_call_delay): Delete.
13808 (pa_following_call): Likewise.
13809 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
13810 (uncond_branch): Remove following call check from attribute length.
13812 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
13815 * config/sh/sh-modes.def (PSI): Remove.
13816 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
13817 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
13818 (sh_reorg): Remove commented out FPSCR code.
13819 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
13820 insn instead of move insn.
13821 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
13822 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
13824 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
13825 (sh1_builtin_p): Uncomment.
13826 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
13827 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
13828 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
13829 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
13830 (general_movsrc_operand, general_movdst_operand): Disallow
13832 * config/sh/sh.md (FPSCR_FR): New constant.
13833 (push_fpscr): Emit sts_fpscr insn.
13834 (pop_fpscr): Emit lds_fpscr_insn.
13835 (movsi_ie): Disallow FPSCR operands.
13836 (fpu_switch, unnamed related split, extend_psi_si,
13837 truncate_si_psi): Remove insns.
13838 (lds_fpscr, sts_fpscr): New insns.
13839 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
13841 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
13843 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
13844 (clone_inlined_nodes): Do not overwrite the clone if above predicate
13847 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
13849 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
13850 (expand_vec_perm_d): Ditto.
13851 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
13852 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
13854 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
13855 (ix86_expand_sse_unpack): Handle V64QImode.
13856 (expand_vec_perm_blend): Update conditions for TARGET, handle
13857 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
13858 (expand_vec_perm_pshufb): Handle V64QImode.
13859 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
13860 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
13861 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
13862 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
13863 (ix86_expand_vecop_qihi): Handle V64QImode.
13864 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
13865 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
13866 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
13867 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
13868 (mul<mode>3): Use VI1_AVX512.
13869 (<sse2_avx2>_packsswb): Ditto.
13870 (<sse2_avx2>_packuswb): Ditto.
13871 (<ssse3_avx2>_pshufb<mode>3): Ditto.
13872 (<shift_insn><mode>3): Ditto.
13874 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
13876 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
13877 conditions to fix bootstrap.
13879 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
13881 gcc-plugin.h: Add tm.h and flattened includes from function.h.
13883 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
13884 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13885 Anna Tikhonova <anna.tikhonova@intel.com>
13886 Ilya Tocar <ilya.tocar@intel.com>
13887 Andrey Turetskiy <andrey.turetskiy@intel.com>
13888 Ilya Verbin <ilya.verbin@intel.com>
13889 Kirill Yukhin <kirill.yukhin@intel.com>
13890 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13892 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
13893 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
13894 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
13895 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
13896 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
13897 (define_expand "vec_init<mode>"): Use VF48_I1248.
13899 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
13900 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13901 Anna Tikhonova <anna.tikhonova@intel.com>
13902 Ilya Tocar <ilya.tocar@intel.com>
13903 Andrey Turetskiy <andrey.turetskiy@intel.com>
13904 Ilya Verbin <ilya.verbin@intel.com>
13905 Kirill Yukhin <kirill.yukhin@intel.com>
13906 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13908 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
13909 expand_sse2_mulvxdi3.
13911 2014-10-17 Richard Biener <rguenther@suse.de>
13913 * fold-const.c (fold_comparison): Remove redundant constant
13914 folding and operand swapping.
13915 (fold_binary_loc): Do comparison operand swapping here.
13916 (fold_ternary_loc): Canonicalize operand order for
13917 commutative ternary operations.
13918 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
13921 2014-10-17 Jakub Jelinek <jakub@redhat.com>
13923 PR tree-optimization/63464
13924 * gimple.h (gimple_seq_discard): New prototype.
13925 * gimple.c: Include stringpool.h and tree-ssanames.h.
13926 (gimple_seq_discard): New function.
13927 * optabs.h (lshift_cheap_p): New prototype.
13928 * optabs.c (lshift_cheap_p): New function, moved from...
13929 * tree-switch-conversion.c (lshift_cheap_p): ... here.
13930 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
13931 (reassoc_branch_fixups): New variable.
13932 (update_range_test): Add otherrangep and seq arguments.
13933 Unshare exp. If otherrange is NULL, use for other ranges
13934 array of pointers pointed by otherrangep instead.
13935 Emit seq before gimplified statements for tem.
13936 (optimize_range_tests_diff): Adjust update_range_test
13938 (optimize_range_tests_xor): Likewise. Fix up comment.
13939 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
13941 (optimize_range_tests): Adjust update_range_test caller.
13942 Call optimize_range_tests_to_bit_test.
13943 (branch_fixup): New function.
13944 (execute_reassoc): Call branch_fixup.
13946 PR tree-optimization/63302
13947 * tree-ssa-reassoc.c (optimize_range_tests_xor,
13948 optimize_range_tests_diff): Use !integer_pow2p () instead of
13951 2014-10-17 Martin Liska <mliska@suse.cz>
13953 * ipa-icf.c (sem_function::merge): Local flags are set to false
13954 to enforce equal calling convention to be used.
13955 * opts.c (common_handle_option): Indentation fix.
13957 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
13959 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
13961 2014-10-17 Tom de Vries <tom@codesourcery.com>
13963 PR rtl-optimization/61605
13964 * regcprop.c (copyprop_hardreg_forward_1): Use
13965 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
13967 2014-10-17 Tom de Vries <tom@codesourcery.com>
13969 PR rtl-optimization/61605
13970 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.
13971 Don't notice stores for noops. Don't regard noops as copies.
13973 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
13975 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
13976 register in a special way.
13977 (__cpuid_count): Ditto.
13978 * config/i386/driver-i386.h: Protect with
13979 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
13980 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
13981 is required to compile the function.
13983 2014-10-16 DJ Delorie <dj@redhat.com>
13985 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
13988 * config/rs6000/rs6000-c.c (rid_int128): New.
13989 (rs6000_macro_to_expand): Use instead of RID_INT128.
13991 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
13993 * function.h: Flatten file. Remove includes, adjust prototypes to
13994 reflect only what is in function.h.
13995 (enum direction, struct args_size, struct locate_and_pad_arg_data,
13996 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
13998 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
13999 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
14000 prototypes to predict.h.
14001 (init_varasm_status): Move prototype to varasm.h.
14002 * expr.h: Adjust include files.
14003 (enum direction, struct args_size, struct locate_and_pad_arg_data,
14004 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
14006 (locate_and_pad_parm): Move prototype to function.h.
14007 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
14008 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
14009 assign_temp, reposition_prologue_and_epilogue_notes,
14010 prologue_epilogue_contains, sibcall_epilogue_contains,
14011 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
14012 set_return_jump_label): Move prototypes to function.h.
14013 * predict.h (optimize_function_for_size_p,
14014 optimize_function_for_speed_p): Relocate prototypes from function.h.
14015 * shrink-wrap.h (emit_return_into_block, active_insn_between,
14016 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
14018 * varasm.h (init_varasm_status): Relocate prototype from function.h.
14019 * genattrtab.c (write_header): Add predict.h to include list.
14020 * genconditions.c (write_header): Add predict.h to include list.
14021 * genemit.c (main): Adjust header file includes.
14022 * gengtype.c (ifiles): Add flattened function.h header files.
14023 * genoutput.c (output_prologue): Add predict.h to include list.
14024 * genpreds.c (write_insn_preds_c): Adjust header file includes.
14025 * genrecog.c (write_header): Add flattened function.h header files.
14026 * alias.c: Adjust include files.
14027 * auto-inc-dec.c: Likewise.
14028 * basic-block.h: Likewise.
14029 * bb-reorder.c: Likewise.
14030 * bt-load.c: Likewise.
14031 * builtins.c: Likewise.
14032 * caller-save.c: Likewise.
14033 * calls.c: Likewise.
14034 * cfgbuild.c: Likewise.
14035 * cfgcleanup.c: Likewise.
14036 * cfgexpand.c: Likewise.
14037 * cfgloop.c: Likewise.
14038 * cfgloop.h: Likewise.
14039 * cfgrtl.c: Likewise.
14040 * cgraph.h: Likewise.
14041 * cgraphclones.c: Likewise.
14042 * cgraphunit.c: Likewise.
14043 * combine-stack-adj.c: Likewise.
14044 * combine.c: Likewise.
14045 * coverage.c: Likewise.
14046 * cprop.c: Likewise.
14048 * cselib.c: Likewise.
14049 * dbxout.c: Likewise.
14051 * df-core.c: Likewise.
14052 * df-problems.c: Likewise.
14053 * df-scan.c: Likewise.
14054 * dojump.c: Likewise.
14055 * dwarf2cfi.c: Likewise.
14056 * dwarf2out.c: Likewise.
14057 * emit-rtl.c: Likewise.
14058 * except.c: Likewise.
14059 * explow.c: Likewise.
14060 * expr.c: Likewise.
14061 * final.c: Likewise.
14062 * function.c: Likewise.
14063 * gcse.c: Likewise.
14064 * gimple-fold.c: Likewise.
14065 * gimple-low.c: Likewise.
14066 * gimple-streamer.h: Likewise.
14067 * haifa-sched.c: Likewise.
14068 * ifcvt.c: Likewise.
14070 * jump.c: Likewise.
14072 * loop-invariant.c: Likewise.
14073 * lra-assigns.c: Likewise.
14074 * lra-coalesce.c: Likewise.
14075 * lra-constraints.c: Likewise.
14076 * lra-eliminations.c: Likewise.
14077 * lra-lives.c: Likewise.
14078 * lra-spills.c: Likewise.
14080 * lto-cgraph.c: Likewise.
14081 * lto-section-in.c: Likewise.
14082 * lto-section-out.c: Likewise.
14083 * lto-streamer-in.c: Likewise.
14084 * lto-streamer-out.c: Likewise.
14085 * mode-switching.c: Likewise.
14086 * modulo-sched.c: Likewise.
14087 * omp-low.c: Likewise.
14088 * optabs.c: Likewise.
14089 * passes.c: Likewise.
14090 * postreload-gcse.c: Likewise.
14091 * postreload.c: Likewise.
14092 * predict.c: Likewise.
14093 * profile.c: Likewise.
14094 * recog.c: Likewise.
14096 * reg-stack.c: Likewise.
14097 * regcprop.c: Likewise.
14098 * reginfo.c: Likewise.
14099 * regrename.c: Likewise.
14100 * reload.c: Likewise.
14101 * reload1.c: Likewise.
14102 * reorg.c: Likewise.
14103 * resource.c: Likewise.
14104 * rtlanal.c: Likewise.
14105 * sched-deps.c: Likewise.
14106 * sched-ebb.c: Likewise.
14107 * sched-rgn.c: Likewise.
14108 * sel-sched-dump.c: Likewise.
14109 * sel-sched-ir.c: Likewise.
14110 * sel-sched.c: Likewise.
14111 * shrink-wrap.c: Likewise.
14112 * simplify-rtx.c: Likewise.
14113 * statistics.c: Likewise.
14114 * stmt.c: Likewise.
14115 * stor-layout.c: Likewise.
14116 * store-motion.c: Likewise.
14117 * symtab.c: Likewise.
14118 * targhooks.c: Likewise.
14119 * toplev.c: Likewise.
14120 * trans-mem.c: Likewise.
14121 * tree-cfg.c: Likewise.
14122 * tree-cfgcleanup.c: Likewise.
14123 * tree-dfa.c: Likewise.
14124 * tree-eh.c: Likewise.
14125 * tree-inline.c: Likewise.
14126 * tree-into-ssa.c: Likewise.
14127 * tree-nested.c: Likewise.
14128 * tree-nrv.c: Likewise.
14129 * tree-profile.c: Likewise.
14130 * tree-ssa-alias.c: Likewise.
14131 * tree-ssa-ccp.c: Likewise.
14132 * tree-ssa-copy.c: Likewise.
14133 * tree-ssa-copyrename.c: Likewise.
14134 * tree-ssa-dom.c: Likewise.
14135 * tree-ssa-operands.c: Likewise.
14136 * tree-ssa-propagate.c: Likewise.
14137 * tree-ssa-structalias.c: Likewise.
14138 * tree-ssa-tail-merge.c: Likewise.
14139 * tree-ssa-threadedge.c: Likewise.
14140 * tree-ssa-threadupdate.c: Likewise.
14141 * tree-ssa-uncprop.c: Likewise.
14142 * tree-ssa-uninit.c: Likewise.
14143 * tree-ssa.c: Likewise.
14144 * tree-stdarg.c: Likewise.
14145 * tree-tailcall.c: Likewise.
14146 * tree.c: Likewise.
14147 * tsan.c: Likewise.
14148 * valtrack.c: Likewise.
14149 * varasm.c: Likewise.
14150 * vmsdbgout.c: Likewise.
14152 * config/aarch64/aarch64.c: Add flattened includes from function.h.
14153 * config/alpha/alpha.c: Likewise.
14154 * config/arc/arc.c: Likewise.
14155 * config/arm/arm.c: Likewise.
14156 * config/avr/avr-log.c: Likewise.
14157 * config/avr/avr.c: Likewise.
14158 * config/bfin/bfin.c: Likewise.
14159 * config/c6x/c6x.c: Likewise.
14160 * config/cr16/cr16.c: Likewise.
14161 * config/cris/cris.c: Likewise.
14162 * config/darwin.c: Likewise.
14163 * config/epiphany/epiphany.c: Likewise.
14164 * config/epiphany/mode-switch-use.c: Likewise.
14165 * config/epiphany/resolve-sw-modes.c: Likewise.
14166 * config/fr30/fr30.c: Likewise.
14167 * config/frv/frv.c: Likewise.
14168 * config/h8300/h8300.c: Likewise.
14169 * config/i386/i386.c: Likewise.
14170 * config/ia64/ia64.c: Likewise.
14171 * config/iq2000/iq2000.c: Likewise.
14172 * config/lm32/lm32.c: Likewise.
14173 * config/m32c/m32c.c: Likewise.
14174 * config/m32r/m32r.c: Likewise.
14175 * config/m68k/m68k.c: Likewise.
14176 * config/mcore/mcore.c: Likewise.
14177 * config/mep/mep-pragma.c: Likewise.
14178 * config/mep/mep.c: Likewise.
14179 * config/microblaze/microblaze.c: Likewise.
14180 * config/mips/mips.c: Likewise.
14181 * config/mmix/mmix.c: Likewise.
14182 * config/mn10300/mn10300.c: Likewise.
14183 * config/moxie/moxie.c: Likewise.
14184 * config/msp430/msp430.c: Likewise.
14185 * config/nds32/nds32-cost.c: Likewise.
14186 * config/nds32/nds32-fp-as-gp.c: Likewise.
14187 * config/nds32/nds32-intrinsic.c: Likewise.
14188 * config/nds32/nds32-isr.c: Likewise.
14189 * config/nds32/nds32-md-auxiliary.c: Likewise.
14190 * config/nds32/nds32-memory-manipulation.c: Likewise.
14191 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14192 * config/nds32/nds32-predicates.c: Likewise.
14193 * config/nds32/nds32.c: Likewise.
14194 * config/nios2/nios2.c: Likewise.
14195 * config/pa/pa.c: Likewise.
14196 * config/pdp11/pdp11.c: Likewise.
14197 * config/rl78/rl78.c: Likewise.
14198 * config/rs6000/rs6000.c: Likewise.
14199 * config/rx/rx.c: Likewise.
14200 * config/s390/s390.c: Likewise.
14201 * config/score/score.c: Likewise.
14202 * config/sh/sh.c: Likewise.
14203 * config/sparc/sparc.c: Likewise.
14204 * config/spu/spu.c: Likewise.
14205 * config/stormy16/stormy16.c: Likewise.
14206 * config/tilegx/tilegx.c: Likewise.
14207 * config/tilepro/tilepro.c: Likewise.
14208 * config/v850/v850.c: Likewise.
14209 * config/vax/vax.c: Likewise.
14210 * config/xtensa/xtensa.c: Likewise.
14212 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
14214 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
14215 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
14217 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
14219 * config/sh/sh-protos.h (fldi_ok): Remove.
14220 * config/sh/sh.c (fldi_ok): Likewise.
14221 (sh_secondary_reload): Don't use fldi_ok.
14222 * config/sh/constraints.md (G constraint, H constraint): Don't use
14225 2014-10-16 Martin Liska <mliska@suse.cz>
14227 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
14228 Cast to unsigned long.
14229 (sem_item_optimizer::dump_cong_classes): Likewise.
14231 2014-10-16 Tom de Vries <tom@codesourcery.com>
14233 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
14234 with SSA_NAME_IN_FREELIST.
14236 2014-10-16 Richard Biener <rguenther@suse.de>
14238 PR middle-end/63554
14239 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
14240 (fold_builtin_strncat_chk): Move ...
14241 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
14242 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
14244 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
14247 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
14250 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14251 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14252 Anna Tikhonova <anna.tikhonova@intel.com>
14253 Ilya Tocar <ilya.tocar@intel.com>
14254 Andrey Turetskiy <andrey.turetskiy@intel.com>
14255 Ilya Verbin <ilya.verbin@intel.com>
14256 Kirill Yukhin <kirill.yukhin@intel.com>
14257 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14259 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
14262 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14263 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14264 Anna Tikhonova <anna.tikhonova@intel.com>
14265 Ilya Tocar <ilya.tocar@intel.com>
14266 Andrey Turetskiy <andrey.turetskiy@intel.com>
14267 Ilya Verbin <ilya.verbin@intel.com>
14268 Kirill Yukhin <kirill.yukhin@intel.com>
14269 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14271 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
14272 V16SI, V32HI, V64QI modes.
14274 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
14277 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
14278 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
14280 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
14281 to match fp insn patterns.
14282 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
14284 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
14285 expand_df_unop, expand_df_binop): Remove.
14286 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
14287 FPSCR_STAT_REG as not call clobbered.
14288 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
14289 invoking fpscr_set_from_mem.
14291 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
14292 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
14294 (REGISTER_NAMES): Adjust.
14295 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
14296 (FIRST_PSEUDO_REGISTER): Increase to 156.
14297 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
14298 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
14300 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
14301 FPSCR_MODES_REG and FPSCR_STAT_REG.
14302 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
14304 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
14305 FPSCR_SZ): Add new constants.
14306 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
14308 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
14309 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
14310 Use TARGET_FPU_ANY condition.
14311 (fpu_switch peephole2): Remove.
14312 (fpu_switch split): Use simple_mem_operand to capture the mem and
14313 adjust split implementation.
14314 (extend_psi_si, truncate_si_psi): New insns.
14315 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
14316 set of FPSCR_MODES_REG.
14318 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
14319 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
14320 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
14321 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
14322 call_value_compact, call_value_compact_rettramp, call,
14323 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
14324 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
14325 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
14326 sibcall_value_compact, sibcall_value, call_value_pop_compact,
14327 call_value_pop_compact_rettramp, various unnamed splits):
14328 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
14331 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
14332 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
14333 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
14334 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
14335 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
14337 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
14338 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
14339 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
14340 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
14341 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
14342 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
14343 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
14345 2014-10-16 Martin Liska <mliska@suse.cz>
14346 Jan Hubicka <hubicka@ucw.cz>
14348 * Makefile.in: New object files included.
14349 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
14351 (verify_edge_corresponds_to_fndecl): More sensitive verification
14352 of nodes that are merged by IPA ICF.
14353 * cgraph.h (cgraph_node::num_references): New function.
14354 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
14355 * common.opt: New options ipa-icf, ipa-icf-functions and
14356 ipa-icf-variables introduced.
14357 * doc/invoke.texi: Documentation of new options introduced.
14358 * ipa-icf-gimple.c: New file.
14359 * ipa-icf-gimple.h: New file.
14360 * ipa-icf.c: New file.
14361 * ipa-icf.h: New file.
14362 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
14363 (input_overwrite_node): Likewise.
14364 * lto-section-in.c: New icf section added.
14365 * lto-streamer.h (enum lto_section_type): Likewise.
14366 * opts.c (common_handle_option): New option added.
14367 * passes.def: New pass included.
14368 * timevar.def: Time variable for IPA ICF added.
14369 * tree-pass.h: New IPA ICF pass entry point added.
14371 2014-10-16 Richard Biener <rguenther@suse.de>
14373 PR tree-optimization/63168
14374 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
14375 latches if after merging they are no longer simple.
14376 * cfghooks.c (merge_blocks): Handle merging a latch block
14377 into another block.
14379 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14380 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14381 Anna Tikhonova <anna.tikhonova@intel.com>
14382 Ilya Tocar <ilya.tocar@intel.com>
14383 Andrey Turetskiy <andrey.turetskiy@intel.com>
14384 Ilya Verbin <ilya.verbin@intel.com>
14385 Kirill Yukhin <kirill.yukhin@intel.com>
14386 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14388 * config/i386/sse.md
14389 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
14390 support AVX-512VL instructions.
14392 2014-10-16 DJ Delorie <dj@redhat.com>
14394 * tree-core.h: Fix comment to not assume pointers are multiples of
14397 2014-10-15 Tom Tromey <tromey@redhat.com>
14399 * timevar.h (class auto_timevar): New class.
14401 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
14404 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
14405 Remove the second alternative.
14406 (regprefix): Remove mode attribute.
14407 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
14408 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
14411 2013-11-05 Ian Lance Taylor <iant@google.com>
14413 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
14414 If possible, add .cfi directives to record change to bx.
14415 * config/i386/i386.c (ix86_emit_cfi): New function.
14416 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
14418 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
14421 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
14423 * lto-streamer-out.c (lto_output): Handle correctly thunks that was
14426 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
14428 PR rtl-optimization/63448
14429 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
14430 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
14431 (LRA_MAX_INHERITANCE_PASSES): Use it.
14432 (lra_constraint_iter_after_spill): Remove.
14433 (lra_assignment_iter): New.
14434 (lra_assignment_iter_after_spill): New.
14435 * lra-assigns.c (lra_assignment_iter): New.
14436 (lra_assignment_iter_after_spill): New.
14437 (former_reload_pseudo_spill_p): New.
14438 (spill_for): Set up former_reload_pseudo_spill_p.
14439 (setup_live_pseudos_and_spill_after_risky): Ditto.
14440 (assign_by_spills): Ditto.
14441 (lra_assign): Increment lra_assignment_iter. Print the iteration
14442 number. Reset former_reload_pseudo_spill_p. Check
14443 lra_assignment_iter_after_spill.
14444 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
14445 lra_assignment_iter and lra_assignment_iter_after_spill.
14446 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
14447 (lra_constraints): Remove code with
14448 lra_assignment_iter_after_spill.
14450 2014-10-15 Teresa Johnson <tejohnson@google.com>
14453 * tree-ssa-threadupdate.c (recompute_probabilities): Better
14456 2014-10-15 Renlin Li <renlin.li@arm.com>
14458 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14459 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
14460 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
14461 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
14463 2014-10-15 Richard Biener <rguenther@suse.de>
14465 * gimple-fold.c (gimple_fold_call): Properly keep virtual
14466 SSA form up-to-date when devirtualizing a call to
14467 __builtin_unreachable and avoid fixing up EH info here.
14469 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14470 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14471 Anna Tikhonova <anna.tikhonova@intel.com>
14472 Ilya Tocar <ilya.tocar@intel.com>
14473 Andrey Turetskiy <andrey.turetskiy@intel.com>
14474 Ilya Verbin <ilya.verbin@intel.com>
14475 Kirill Yukhin <kirill.yukhin@intel.com>
14476 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14478 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
14479 to support AVX-512BW.
14480 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
14481 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
14482 (define_insn "*<plusminus_insn><mode>3"): Ditto.
14483 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
14484 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
14485 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
14486 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
14487 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
14488 (define_insn "*andnot<mode>3"): Ditto.
14489 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
14490 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
14491 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
14492 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
14493 (define_insn "*abs<mode>2"): Remove masking support.
14494 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
14495 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
14496 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
14498 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14499 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14500 Anna Tikhonova <anna.tikhonova@intel.com>
14501 Ilya Tocar <ilya.tocar@intel.com>
14502 Andrey Turetskiy <andrey.turetskiy@intel.com>
14503 Ilya Verbin <ilya.verbin@intel.com>
14504 Kirill Yukhin <kirill.yukhin@intel.com>
14505 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14507 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
14508 * config/i386/sse.md
14509 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
14510 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
14511 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
14512 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
14513 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
14514 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
14515 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
14517 2014-10-15 Renlin Li <renlin.li@arm.com>
14519 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
14521 2014-10-15 Jakub Jelinek <jakub@redhat.com>
14523 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
14524 MINUS_EXPR in unsigned type to avoid undefined behavior.
14526 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
14528 * stor-layout.c (self_referential_size): Do not promote arguments.
14530 2014-10-15 Marek Polacek <polacek@redhat.com>
14532 * doc/invoke.texi: Update to reflect that GNU11 is the default
14534 * c-common.h (c_language_kind): Update comment.
14536 2014-10-15 Richard Biener <rguenther@suse.de>
14538 * hash-table.c: Include bconfig.h if building for the host.
14539 * hash-table.h: Do not include ggc.h on the host but just declare
14540 a few ggc allocation templates.
14542 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
14543 Jeff Law <law@redhat.com>
14545 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
14546 multiple hard registers, use smaller mode derived from MODE.
14548 2014-10-15 Andreas Schwab <schwab@suse.de>
14550 * explow.c (convert_memory_address_addr_space_1): Mark in_const
14551 as ATTRIBUTE_UNUSED.
14553 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
14555 * loop-unroll.c (decide_unrolling_and_peeling): Rename to
14556 (decide_unrolling): ... this one.
14557 (peel_loops_completely): Remove.
14558 (decide_peel_simple): Remove.
14559 (decide_peel_once_rolling): Remove.
14560 (decide_peel_completely): Remove.
14561 (peel_loop_simple): Remove.
14562 (peel_loop_completely): Remove.
14563 (unroll_and_peel_loops): Rename to ...
14564 (unroll_loops): ... this one; handle only unrolling.
14565 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and LPT_PEEL_SIMPLE.
14566 (UAP_PEEL): Remove.
14567 (unroll_and_peel_loops): Remove.
14568 (unroll_loops): New.
14569 * passes.def: Replace pass_rtl_unroll_and_peel_loops
14570 by pass_rtl_unroll_loops.
14571 * loop-init.c (gate_rtl_unroll_and_peel_loops,
14572 rtl_unroll_and_peel_loops): Rename to ...
14573 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
14574 (pass_rtl_unroll_and_peel_loops): Rename to ...
14575 (pass_rtl_unroll_loops): ... this one.
14576 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
14577 (make_pass_rtl_unroll_loops): New.
14578 * tree-ssa-loop-ivcanon.c (estimated_peeled_sequence_size,
14579 try_peel_loop): New.
14580 (canonicalize_loop_induction_variables): Update.
14582 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
14584 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
14585 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
14586 !TARGET_HARD_FLOAT_POSTINC.
14587 (*lsip, *ssip): new instructions.
14589 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
14591 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
14594 2014-10-14 Andrew Pinski <apinski@cavium.com>
14596 * explow.c (convert_memory_address_addr_space): Rename to ...
14597 (convert_memory_address_addr_space_1): This. Add in_const argument.
14598 Inside a CONST RTL, permute the conversion and addition of constant
14599 for zero and sign extended pointers.
14600 (convert_memory_address_addr_space): New function.
14602 2014-10-14 Andrew Pinski <apinski@cavium.com>
14605 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
14607 PR middle-end/49721
14608 * explow.c (convert_memory_address_addr_space): Also permute the
14609 conversion and addition of constant for zero-extend.
14611 2014-10-14 DJ Delorie <dj@redhat.com>
14613 * config/msp430/msp430-modes.def (PSI): Add.
14615 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding):
14617 (msp430_hard_regno_nregs_with_padding): New.
14618 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
14619 (msp430_hard_regno_nregs_has_padding): New.
14620 (msp430_hard_regno_nregs_with_padding): New.
14621 (msp430_unwind_word_mode): Use PSImode instead of SImode.
14622 (msp430_addr_space_legitimate_address_p): New.
14623 (msp430_asm_integer): New.
14624 (msp430_init_dwarf_reg_sizes_extra): New.
14625 (msp430_print_operand): Use X suffix for PSImode even in small model.
14626 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
14627 (PTR_SIZE): ...but 4 bytes for EH.
14628 (SIZE_TYPE): Use __int20.
14629 (PTRDIFF_TYPE): Likewise.
14630 (INCOMING_FRAME_SP_OFFSET): Adjust.
14631 * config/msp430/msp430.md (movqi_topbyte): New.
14632 (movpsi): Use fixed suffixes.
14633 (movsipsi2): Enable for 430X, not large model.
14634 (extendhipsi2): Likewise.
14635 (zero_extendhisi2): Likewise.
14636 (zero_extendhisipsi2): Likewise.
14637 (extend_and_shift1_hipsi2): Likewise.
14638 (extendpsisi2): Likewise.
14639 (*bitbranch<mode>4_z): Fix suffix logic.
14641 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
14644 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
14645 do not choke on null node.
14646 <VAR_DECL>: Likewise.
14648 2014-10-14 DJ Delorie <dj@redhat.com>
14650 * machmode.h (int_n_data_t): New.
14651 (int_n_enabled_p): New.
14653 * tree.c (int_n_enabled_p): New.
14654 (int_n_trees): New.
14655 (make_or_reuse_type): Check for all __intN types, not just __int128.
14656 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
14658 * tree.h (int128_integer_type_node): Remove.
14659 (int128_unsigned_type_node): Remove.
14660 (int_n_trees_t): New.
14661 (int_n_enabled_p): New.
14662 (int_n_trees): New.
14663 * toplev.c (standard_type_bitsize): New.
14664 (do_compile): Check which __intN types are enabled for the current run.
14665 * builtin-types.def (BT_INT128): Remove.
14666 (BT_UINT128): Remove.
14667 * machmode.def: Add macro to create __int128 for all targets.
14668 * stor-layout.c (mode_for_size): Support __intN types.
14669 (smallest_mode_for_size): Likewise.
14670 (initialize_sizetypes): Support __intN types.
14671 * genmodes.c (struct mode_data): Add int_n field.
14672 (blank_mode): Likewise.
14675 (emit_insn_modes_h): Count __intN entries and define NUM_INT_N_ENTS.
14676 (emit_mode_int_n): New.
14677 (emit_insn_modes_c): Call it.
14678 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
14679 types, not just __int128.
14680 * tree-core.h (integer_type_kind): Remove __int128-specific
14681 entries, reserve spots for __intN entries.
14683 * config/msp430/msp430-modes.def (PSI): Add.
14685 2014-10-14 Kito Cheng <kito@0xlab.org>
14687 * ira.c: Fix typo in comment.
14689 * ira-build.c: Ditto.
14690 * ira-color.c: Ditto.
14691 * ira-emit.c: Ditto.
14692 * ira-int.h: Ditto.
14693 * ira-lives.c: Ditto.
14695 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
14697 PR rtl-optimization/63475
14698 * alias.c (true_dependence_1): Always use get_addr to extract
14699 true address operands from x_addr and mem_addr. Use extracted
14700 address operands to check for references with alignment ANDs.
14701 Use extracted address operands with find_base_term and
14702 base_alias_check. For noncanonicalized operands call canon_rtx with
14703 extracted address operand.
14704 (write_dependence_1): Ditto.
14705 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
14707 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
14710 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
14713 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14714 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14715 Anna Tikhonova <anna.tikhonova@intel.com>
14716 Ilya Tocar <ilya.tocar@intel.com>
14717 Andrey Turetskiy <andrey.turetskiy@intel.com>
14718 Ilya Verbin <ilya.verbin@intel.com>
14719 Kirill Yukhin <kirill.yukhin@intel.com>
14720 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14722 * config/i386/i386.c
14723 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
14724 (ix86_expand_int_vcond): Ditto.
14726 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14727 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14728 Anna Tikhonova <anna.tikhonova@intel.com>
14729 Ilya Tocar <ilya.tocar@intel.com>
14730 Andrey Turetskiy <andrey.turetskiy@intel.com>
14731 Ilya Verbin <ilya.verbin@intel.com>
14732 Kirill Yukhin <kirill.yukhin@intel.com>
14733 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14735 * config/i386/i386.c
14736 (emit_reduc_half): Handle V64QI and V32HI mode.
14737 * config/i386/sse.md
14738 (define_mode_iterator VI_AVX512BW): New.
14739 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
14741 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14742 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14743 Anna Tikhonova <anna.tikhonova@intel.com>
14744 Ilya Tocar <ilya.tocar@intel.com>
14745 Andrey Turetskiy <andrey.turetskiy@intel.com>
14746 Ilya Verbin <ilya.verbin@intel.com>
14747 Kirill Yukhin <kirill.yukhin@intel.com>
14748 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14750 * config/i386/sse.md
14751 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
14753 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14754 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14755 Anna Tikhonova <anna.tikhonova@intel.com>
14756 Ilya Tocar <ilya.tocar@intel.com>
14757 Andrey Turetskiy <andrey.turetskiy@intel.com>
14758 Ilya Verbin <ilya.verbin@intel.com>
14759 Kirill Yukhin <kirill.yukhin@intel.com>
14760 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14762 * config/i386/i386.c
14763 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
14764 * config/i386/sse.md
14765 (define_mode_iterator VI): Add V64QI and V32HI modes.
14767 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14768 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14769 Anna Tikhonova <anna.tikhonova@intel.com>
14770 Ilya Tocar <ilya.tocar@intel.com>
14771 Andrey Turetskiy <andrey.turetskiy@intel.com>
14772 Ilya Verbin <ilya.verbin@intel.com>
14773 Kirill Yukhin <kirill.yukhin@intel.com>
14774 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14776 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
14778 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14779 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14780 Anna Tikhonova <anna.tikhonova@intel.com>
14781 Ilya Tocar <ilya.tocar@intel.com>
14782 Andrey Turetskiy <andrey.turetskiy@intel.com>
14783 Ilya Verbin <ilya.verbin@intel.com>
14784 Kirill Yukhin <kirill.yukhin@intel.com>
14785 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14787 * config/i386/sse.md
14788 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
14789 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
14791 2014-10-14 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/sse.md
14801 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
14802 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
14804 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14805 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14806 Anna Tikhonova <anna.tikhonova@intel.com>
14807 Ilya Tocar <ilya.tocar@intel.com>
14808 Andrey Turetskiy <andrey.turetskiy@intel.com>
14809 Ilya Verbin <ilya.verbin@intel.com>
14810 Kirill Yukhin <kirill.yukhin@intel.com>
14811 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14813 * config/i386/sse.md
14814 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
14815 (define_mode_iterator VI2_AVX2): Add V32HI mode.
14816 (define_expand "mul<mode>3<mask_name>"): Add masking.
14817 (define_insn "*mul<mode>3<mask_name>"): Ditto.
14818 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
14819 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
14820 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
14821 (define_mode_attr SDOT_PMADD_SUF): Ditto.
14822 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
14823 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
14824 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
14825 (define_insn "avx2_packusdw"): Delete.
14826 (define_insn "sse4_1_packusdw"): Ditto.
14827 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
14829 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14830 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14831 Anna Tikhonova <anna.tikhonova@intel.com>
14832 Ilya Tocar <ilya.tocar@intel.com>
14833 Andrey Turetskiy <andrey.turetskiy@intel.com>
14834 Ilya Verbin <ilya.verbin@intel.com>
14835 Kirill Yukhin <kirill.yukhin@intel.com>
14836 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14838 * config/i386/sse.md
14839 (define_insn "vec_dup<mode>"): Update constraints.
14841 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14842 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14843 Anna Tikhonova <anna.tikhonova@intel.com>
14844 Ilya Tocar <ilya.tocar@intel.com>
14845 Andrey Turetskiy <andrey.turetskiy@intel.com>
14846 Ilya Verbin <ilya.verbin@intel.com>
14847 Kirill Yukhin <kirill.yukhin@intel.com>
14848 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14850 * config/i386/sse.md
14851 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
14852 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
14853 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
14855 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14856 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14857 Anna Tikhonova <anna.tikhonova@intel.com>
14858 Ilya Tocar <ilya.tocar@intel.com>
14859 Andrey Turetskiy <andrey.turetskiy@intel.com>
14860 Ilya Verbin <ilya.verbin@intel.com>
14861 Kirill Yukhin <kirill.yukhin@intel.com>
14862 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14864 * config/i386/sse.md
14865 (define_expand "mul<mode>3<mask_name>"): Add masking.
14867 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14868 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14869 Anna Tikhonova <anna.tikhonova@intel.com>
14870 Ilya Tocar <ilya.tocar@intel.com>
14871 Andrey Turetskiy <andrey.turetskiy@intel.com>
14872 Ilya Verbin <ilya.verbin@intel.com>
14873 Kirill Yukhin <kirill.yukhin@intel.com>
14874 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14876 * config/i386/sse.md
14877 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
14878 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
14880 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14881 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14882 Anna Tikhonova <anna.tikhonova@intel.com>
14883 Ilya Tocar <ilya.tocar@intel.com>
14884 Andrey Turetskiy <andrey.turetskiy@intel.com>
14885 Ilya Verbin <ilya.verbin@intel.com>
14886 Kirill Yukhin <kirill.yukhin@intel.com>
14887 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14889 * config/i386/sse.md
14890 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
14891 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
14892 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
14895 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14896 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14897 Anna Tikhonova <anna.tikhonova@intel.com>
14898 Ilya Tocar <ilya.tocar@intel.com>
14899 Andrey Turetskiy <andrey.turetskiy@intel.com>
14900 Ilya Verbin <ilya.verbin@intel.com>
14901 Kirill Yukhin <kirill.yukhin@intel.com>
14902 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14904 * config/i386/sse.md
14905 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
14906 use VF_128_256 mode iterator and update assembler emit code.
14907 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
14908 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
14909 Add masking, use VF_128_256 mode iterator.
14910 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
14911 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
14912 Add masking, use VF_128_256 mode iterator and update assembler emit
14914 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
14915 (define_mode_attr avx512flogicsuff): Delete.
14916 (define_insn "avx512f_<logic><mode>"): Ditto.
14917 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
14919 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
14921 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14922 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14923 Anna Tikhonova <anna.tikhonova@intel.com>
14924 Ilya Tocar <ilya.tocar@intel.com>
14925 Andrey Turetskiy <andrey.turetskiy@intel.com>
14926 Ilya Verbin <ilya.verbin@intel.com>
14927 Kirill Yukhin <kirill.yukhin@intel.com>
14928 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14930 * config/i386/sse.md
14931 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
14932 (define_expand "vashr<mode>3<mask_name>"): Add masking,
14933 use VI12_128 mode iterator.
14934 (define_expand "ashrv2di3<mask_name>"): New.
14936 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14937 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14938 Anna Tikhonova <anna.tikhonova@intel.com>
14939 Ilya Tocar <ilya.tocar@intel.com>
14940 Andrey Turetskiy <andrey.turetskiy@intel.com>
14941 Ilya Verbin <ilya.verbin@intel.com>
14942 Kirill Yukhin <kirill.yukhin@intel.com>
14943 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14945 * config/i386/i386.c
14946 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
14947 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
14948 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
14949 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
14950 CODE_FOR_avx512vl_ucmpv4si3_mask.
14951 * config/i386/sse.md
14952 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
14953 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
14955 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
14956 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
14957 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
14958 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
14959 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
14960 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
14962 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14963 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14964 Anna Tikhonova <anna.tikhonova@intel.com>
14965 Ilya Tocar <ilya.tocar@intel.com>
14966 Andrey Turetskiy <andrey.turetskiy@intel.com>
14967 Ilya Verbin <ilya.verbin@intel.com>
14968 Kirill Yukhin <kirill.yukhin@intel.com>
14969 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14971 * config/i386/sse.md
14972 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
14973 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
14974 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
14975 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
14976 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
14977 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
14978 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
14979 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
14980 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
14982 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14983 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14984 Anna Tikhonova <anna.tikhonova@intel.com>
14985 Ilya Tocar <ilya.tocar@intel.com>
14986 Andrey Turetskiy <andrey.turetskiy@intel.com>
14987 Ilya Verbin <ilya.verbin@intel.com>
14988 Kirill Yukhin <kirill.yukhin@intel.com>
14989 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14991 * config/i386/sse.md
14992 (define_insn "avx512f_blendm<mode>"): Delete.
14993 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
14994 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
14995 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
14996 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
14998 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
15001 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
15004 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
15006 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
15007 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
15008 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
15009 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
15012 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
15015 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
15017 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
15020 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
15023 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
15026 2014-10-14 Richard Biener <rguenther@suse.de>
15028 PR tree-optimization/63512
15029 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
15032 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
15035 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
15036 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
15038 (negsf2_i): Rename to *negsf2_i.
15039 (abssf2_i): Rename to *abssf2_i.
15040 (negdf2_i): Rename to *negdf2_i.
15041 (absdf2_i): Rename to *absdf2_i.
15043 2014-10-14 Felix Yang <felix.yang@huawei.com>
15044 Jeff Law <law@redhat.com>
15046 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
15047 "replace" into boolean bitfields; turn member "loop_depth" into a short
15048 integer; add new member "no_equiv" and "reserved".
15049 (no_equiv): Set no_equiv of struct equivalence if register is marked
15050 as having no known equivalence.
15051 (update_equiv_regs): Check all definitions for a multiple-set
15052 register to make sure that the RHS have the same value.
15054 2014-10-13 Richard Henderson <rth@redhat.com>
15056 * combine-stack-adj.c (no_unhandled_cfa): New.
15057 (maybe_merge_cfa_adjust): New.
15058 (combine_stack_adjustments_for_block): Use them.
15060 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
15062 * Makefile.in (TAGS): Tag ../include files.
15064 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15066 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
15067 to rs6000_dbx_register_number.
15068 (DWARF_FRAME_REGNUM): Redefine as identity map.
15069 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
15070 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
15071 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
15072 argument to handle .debug_frame and .eh_frame directly. Always
15073 translate SPE high register numbers. Add special treatment for CR,
15074 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
15076 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
15077 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
15078 (RS6000_USE_DWARF_NUMBERING): Define.
15079 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
15080 (RS6000_USE_DWARF_NUMBERING): Define.
15081 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
15082 (RS6000_USE_DWARF_NUMBERING): Define.
15083 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
15084 (RS6000_USE_DWARF_NUMBERING): Define.
15085 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
15086 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
15088 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
15090 * config/i386/i386.c (ix86_address_cost): Lower cost for
15091 when address contains GOT register.
15093 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
15094 Vladimir Makarov <vmakarov@redhat.com>
15097 PR middle-end/47602
15098 PR rtl-optimization/55458
15099 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
15100 (ix86_init_pic_reg): New.
15101 (ix86_select_alt_pic_regnum): Add check on pseudo register.
15102 (ix86_save_reg): Likewise.
15103 (ix86_expand_prologue): Remove PIC register initialization
15104 now performed in ix86_init_pic_reg.
15105 (ix86_output_function_epilogue): Add check on pseudo register.
15106 (set_pic_reg_ever_alive): New.
15107 (legitimize_pic_address): Replace df_set_regs_ever_live with new
15108 set_pic_reg_ever_alive.
15109 (legitimize_tls_address): Likewise.
15110 (ix86_pic_register_p): New check.
15111 (ix86_delegitimize_address): Add check on pseudo register.
15112 (ix86_expand_call): Insert move from pseudo PIC register to ABI
15113 defined REAL_PIC_OFFSET_TABLE_REGNUM.
15114 (TARGET_INIT_PIC_REG): New.
15115 (TARGET_USE_PSEUDO_PIC_REG): New.
15116 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
15117 if pic_offset_table_rtx exists.
15118 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
15120 * doc/tm.texi: Regenerate.
15121 * function.c (assign_parms): Generate pseudo register for PIC.
15122 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
15124 * ira-color.c (color_pass): Add check on pseudo register.
15125 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
15127 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
15129 (ira): Add target specific PIC register initialization.
15130 (do_reload): Keep PIC pseudo register.
15131 * lra-assigns.c (spill_for): Add checks on pseudo register.
15132 * lra-constraints.c (contains_symbol_ref_p): New.
15133 (lra_constraints): Enable lra risky transformations when PIC is pseudo
15135 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
15136 * target.def (use_pseudo_pic_reg): New.
15137 (init_pic_reg): New.
15139 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
15141 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
15142 Remove m_SILVERMONT and m_INTEL from the tune.
15144 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15146 PR libfortran/63471
15147 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15148 when _HPUX_SOURCE is defined.
15150 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
15152 PR tree-optimization/62127
15153 * tree.c (remap_type_1): When remapping array, remap
15156 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
15158 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
15159 longer impact parallelization.
15161 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
15164 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
15166 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
15168 * asan.c (instrument_derefs): BIT_FIELD_REF added.
15170 2014-10-13 Richard Biener <rguenther@suse.de>
15172 PR tree-optimization/63419
15173 * gimple-fold.h (gimple_convert): New function.
15174 * gimple-fold.c (gimple_convert): Likewise.
15175 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
15176 to split out required conversions early.
15178 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
15180 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
15181 Add the parts of an insn in reverse order, with the pattern at
15182 the top of the queue. Detect when we're iterating over a SEQUENCE
15183 pattern and in that case just consider patterns of subinstructions.
15185 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
15188 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
15190 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
15192 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
15193 address. Use def chains to handle GBR clobbering call insns.
15195 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
15197 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
15198 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
15199 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
15200 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
15201 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
15202 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
15203 * doc/gty.texi (for_user): Document new option.
15204 * gengtype.c (create_user_defined_type): Don't try to get a struct for
15206 (walk_type): Don't error out on for_user option.
15207 (write_func_for_structure): Emit user marking routines if requested by
15209 (write_local_func_for_structure): Likewise.
15210 (main): Mark types with for_user option as used.
15211 * ggc.h (gt_pch_nx): Add overload for unsigned int.
15212 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
15213 * hash-table.h (ggc_hasher): New struct.
15214 (hash_table::create_ggc): New function.
15215 (gt_pch_nx): New overload for hash_table.
15217 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
15219 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
15220 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
15221 * config/sh/sh.c: Likewise.
15222 * config/sh/sh-mem.cc: Likewise.
15223 * config/sh/sh.md: Likewise.
15224 * config/sh/predicates.md: Likewise.
15225 * config/sh/sync.md: Likewise.
15227 2014-10-11 Martin Liska <mliska@suse.cz>
15229 PR middle-end/63376
15230 * cgraphunit.c (symbol_table::process_new_functions): Missing call
15231 for call_cgraph_insertion_hooks added.
15233 2014-10-10 Jakub Jelinek <jakub@redhat.com>
15236 * stor-layout.c (min_align_of_type): Don't decrease alignment
15237 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
15238 TYPE_USER_ALIGN is set.
15240 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
15242 PR rtl-optimization/63483
15243 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
15244 references when alignment ANDs are involved.
15245 (write_dependence_p): Ditto.
15246 (may_alias_p): Ditto.
15248 2014-10-10 Marek Polacek <polacek@redhat.com>
15250 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
15251 * doc/invoke.texi: Document -fsanitize=object-size.
15252 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
15253 or it into SANITIZE_UNDEFINED.
15254 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
15255 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
15256 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
15257 * opts.c (common_handle_option): Handle -fsanitize=object-size.
15258 * ubsan.c: Include tree-object-size.h.
15259 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
15260 (ubsan_expand_bounds_ifn): Use false instead of 0.
15261 (ubsan_expand_objsize_ifn): New function.
15262 (instrument_object_size): New function.
15263 (pass_ubsan::execute): Add object size instrumentation.
15264 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
15266 2014-10-10 Richard Henderson <rth@redhat.com>
15269 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
15270 Restrict the set of expressions we're willing to move.
15272 2014-10-10 Jeff Law <law@redhat.com>
15274 * ira.c (struct equivalence): Promote INIT_INSNs field to
15275 an rtx_insn_list. Add comments.
15276 (no_equiv): Promote LIST to an rtx_insn_list. Update
15277 testing for and creating the special marker. Use methods
15278 to extract the insn and next pointers. Promote INSN to an
15280 (update_equiv_regs): Update test for special marker in the
15283 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15285 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
15286 * configure: Regenerate.
15287 * config/aarch64/aarch64.c (aarch64_override_options): Handle
15288 TARGET_FIX_ERR_A53_835769_DEFAULT.
15289 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
15291 * doc/install.texi (aarch64*-*-*): Document
15292 new --enable-fix-cortex-a53-835769 option.
15294 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15295 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15297 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
15298 (ADJUST_INSN_LENGTH): Define.
15299 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
15300 * config/aarch64/aarch64.c (is_mem_p): New function.
15301 (is_memory_op): Likewise.
15302 (aarch64_prev_real_insn): Likewise.
15303 (is_madd_op): Likewise.
15304 (dep_between_memop_and_curr): Likewise.
15305 (aarch64_madd_needs_nop): Likewise.
15306 (aarch64_final_prescan_insn): Likewise.
15307 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
15308 and -mno-fix-cortex-a53-835769 options.
15310 2014-10-10 Jakub Jelinek <jakub@redhat.com>
15312 PR tree-optimization/63464
15313 * tree-switch-conversion.c (struct case_bit_test): Remove
15314 hi and lo fields, add wide_int mask field.
15315 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
15316 hi/lo fields into wide_int mask operations, optimize by pretending
15317 minval to be 0 if maxval is small enough.
15318 (process_switch): Adjust caller.
15320 2014-10-10 Richard Biener <rguenther@suse.de>
15322 PR tree-optimization/63379
15323 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
15324 a neutral operand for min/max when it is not a reduction chain.
15326 2014-10-10 Richard Biener <rguenther@suse.de>
15328 PR tree-optimization/63476
15329 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
15330 (BB_LIVE_VOP_ON_EXIT): New define.
15331 (create_expression_by_pieces): Assign VUSEs to stmts.
15332 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
15333 (pass_pre::execute): Assert virtual SSA form is up-to-date
15336 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
15338 * lra-assigns.c (assign_by_spills): Error out on spill failure.
15340 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
15342 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
15345 2014-10-09 Richard Biener <rguenther@suse.de>
15347 PR tree-optimization/63380
15348 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
15351 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
15353 * config/avr/avr.opt (mmcu=): Change to have a string value.
15354 (mn-flash=, mskip-bug, march=, mrmw): New options.
15355 (HeaderInclude): New.
15356 (mmcu=): Remove Var / Init clauses.
15357 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
15359 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
15360 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
15361 (SYMBOL_FLAG_IO_LOW): Define.
15362 (avr_device_to_as, avr_device_to_ld): Don't declare.
15363 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
15364 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
15365 (EXTRA_SPEC_FUNCTIONS): Don't define.
15366 (ASM_SPEC): Translate -arch= option to -mmcu= option.
15367 (LINK_SPEC): Translate -arch= option to -m= option.
15368 Don't use device_to_ld / device_to_data_start.
15369 (STARTFILE_SPEC): Now empty.
15370 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
15371 * config/avr/gen-avr-mmcu-specs.c: New file.
15372 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
15373 (s-device-specs): Likewise.
15374 (GCC_PASSES): Add s-device-specs.
15375 (install-driver): Depend on install-device-specs.
15376 (install-device-specs): New rule.
15377 * config/avr/avr.c (avr_option_override): Look up mcu arch by
15378 avr_arch_index and provide fallback initialization for avr_n_flash.
15379 (varasm.h): #include.
15380 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
15381 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
15382 (avr_attribute_table): Add "io", "address" and "io_low".
15383 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
15384 Add special handling for symbols with "io" and/or "address" attributes.
15385 (avr_asm_asm_output_aligned_bss): New function.
15386 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
15387 as appropriate. Handle io_low attribute.
15388 (avr_out_sbxx_branch): Handle symbolic io addresses.
15389 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
15390 avr_n_flash instead of avr_current_device->n_flash.
15391 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
15392 (avr_emit_movmemhi): Likewise.
15393 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
15394 Use TARGET_RMW instead of avr_current_device->dev_attributes.
15395 Don't define avr_current_device->macro (that's the specfile's job).
15396 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
15397 * config/avr/avr.c (avr_2word_insn_p): Likewise.
15398 * config/avr/avr.md (*cpse.ne): Likewise.
15399 (mov<mode>): Use avr_eval_addr_attrib.
15400 (cbi): Change constraint for low_io_address_operand operand to "i".
15401 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
15402 * config/avr/predicates.md (io_address_operand):
15403 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
15404 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
15405 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
15407 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
15408 * config/avr/genmultilib.awk: Use -march=.
15409 Remove Multilib matches processing.
15410 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
15411 * config/avr/avr-arch.h: Add double include guard.
15412 (avr_mcu_t) <library_name>: Update comment.
15413 * config/avr/driver-avr.c (avr_device_to_as): Delete.
15414 (avr_device_to_ld, avr_device_to_data_start): Likewise.
15415 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
15416 (avr_device_to_sp8): Likewise.
15417 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
15419 * doc/extend.texi (io, address): Document new AVR variable attributes.
15420 (io_low): Likewise.
15422 2014-10-09 Marek Polacek <polacek@redhat.com>
15424 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
15426 2014-10-08 Richard Biener <rguenther@suse.de>
15428 PR tree-optimization/61969
15429 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
15432 2014-10-09 Richard Biener <rguenther@suse.de>
15434 PR tree-optimization/63445
15435 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
15436 overflow for non-equality compares.
15438 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
15440 PR rtl-optimization/57003
15441 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
15442 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
15443 killing regs_invalidated_by_call.
15445 2014-10-08 Teresa Johnson <tejohnson@google.com>
15447 PR bootstrap/63432.
15448 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
15449 (ssa_fix_duplicate_block_edges): Invoke it.
15450 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
15452 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
15455 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
15456 atomic_fetch_<fetchop_name>si_hard,
15457 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
15458 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
15459 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
15460 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
15462 2014-10-08 Rong Xu <xur@google.com>
15464 * gcov-tool.c (profile_overlap): New driver function
15465 to compute profile overlap.
15466 (print_overlap_usage_message): New.
15467 (overlap_usage): New.
15469 (print_usage): Add calls to overlap function.
15471 * doc/gcov-tool.texi: Add documentation.
15473 2014-10-08 Steve Ellcey <sellcey@mips.com>
15475 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
15476 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
15478 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
15480 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
15481 pattern matching of MEM_REF.
15482 (check_stmt_for_type_change): Update.
15484 2014-10-08 Steve Ellcey <sellcey@mips.com>
15486 * config/mips/linux64.h: Remove.
15487 * config/mips/gnu-user64.h: Remove.
15488 * gcc.config (mips*-*-*): Remove references to linux64.h and
15490 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
15491 with modified version from gnu-user64.h.
15492 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
15493 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
15494 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
15496 (GNU_USER_LINK_EMULATION64): Ditto.
15497 (GNU_USER_LINK_EMULATIONN32): Ditto.
15498 (GLIBC_DYNAMIC_LINKER32): Ditto.
15499 (GLIBC_DYNAMIC_LINKER64): Ditto.
15500 (GLIBC_DYNAMIC_LINKERN32): Ditto.
15501 (UCLIBC_DYNAMIC_LINKER32): Ditto.
15502 (UCLIBC_DYNAMIC_LINKER64): Ditto.
15503 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
15504 (BIONIC_DYNAMIC_LINKERN32): Ditto.
15505 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
15506 (GLIBC_DYNAMIC_LINKER): Delete.
15507 (UCLIBC_DYNAMIC_LINKER): Delete.
15509 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
15510 Richard Biener <rguenther@suse.de>
15512 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
15513 Get address space from operand 0 (BASE).
15515 2014-10-07 Iain Sandoe <iain@codesourcery.com>
15518 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
15520 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
15522 * dwarf2out.c: Remove current_function_has_inlines.
15523 (gen_subprogram_die): Same.
15524 (gen_inlined_subroutine_die): Same.
15526 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
15528 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
15530 (_addcarry_u64): Ditto.
15531 (_addcarryx_u64): Ditto.
15533 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
15535 * cgraph.h (cgraph_node::get_fun): Declare.
15536 * cgraph.c (cgraph_node::get_fun): New method.
15537 * ipa-inline.c (can_inline_edge_p): Use it.
15539 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
15541 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
15542 and -ftrapping-math.
15543 * lto-wrapper.c (merge_and_complain): Likewise.
15544 (run_gcc): Likewise.
15546 2014-10-06 Rong Xu <xur@google.com>
15548 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
15549 * tree-profile.c: (params.h): New include.
15550 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
15551 and __gcov_indirect_call_topn_counters for
15552 indirect_call_topn_profile.
15553 (gimple_init_edge_profiler): New decls for
15554 __gcov_indirect_call_topn_profiler.
15555 (gimple_gen_ic_profiler): Generate the correct profiler call.
15556 (gimple_gen_ic_func_profiler): Fix format.
15557 * value-prof.c (params.h): New include.
15558 (dump_histogram_value): Hanlde indirect_call_topn counters.
15559 (stream_in_histogram_value): Ditto.
15560 (gimple_indirect_call_to_profile): Use indirect_call_topn
15561 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
15562 (gimple_find_values_to_profile): Hanlde indirect_call_topn
15564 * value-prof.h (enum hist_type): Histrogram type for
15565 indirect_call_topn counters.
15566 * profile.c (instrument_values): Instrument
15567 indirect_call_topn counters.
15569 2014-10-06 Rong Xu <xur@google.com>
15571 * Makefile.in: Fix dependence.
15572 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
15573 indirect call topn profiler.
15574 * gcov-io.h: Ditto.
15576 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
15578 * calls.c (expand_call): Do not use the target as the return slot if
15579 it is not sufficiently aligned.
15581 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15583 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
15584 discussion of permutes and why we don't handle them.
15586 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
15588 * config/sparc/predicates.md (int_register_operand): Delete.
15590 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
15592 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
15594 2014-10-06 Jakub Jelinek <jakub@redhat.com>
15596 * ubsan.h (ubsan_get_source_location): New prototype.
15597 * ubsan.c (ubsan_source_location_type): New variable.
15598 Function renamed to ...
15599 (ubsan_get_source_location_type): ... this. Cache
15600 return value in ubsan_source_location_type variable.
15601 (ubsan_source_location, ubsan_create_data): Use
15602 ubsan_get_source_location_type instead of
15603 ubsan_source_location_type.
15604 * asan.c (asan_protect_global): Don't protect globals
15605 with ubsan_get_source_location_type () type.
15606 (asan_add_global): Provide global decl location info
15609 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15611 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
15614 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15616 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
15618 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
15620 (ipa_polymorphic_call_context::dump): Fix formating.
15621 (walk_ssa_copies): Add logic avoiding loops; update uses.
15622 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
15624 2014-10-02 Mark Wielaard <mjw@redhat.com>
15627 * dwarf2out.c (gen_subprogram_die): When a member function is
15628 explicitly deleted then add a DW_AT_GNU_deleted attribute.
15629 * langhooks.h (struct lang_hooks_for_decls): Add
15630 function_decl_deleted_p langhook.
15631 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
15632 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
15634 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15636 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
15637 NULL pointer checks.
15638 (ipa_polymorphic_call_context::get_dynamic_type): Return true
15639 if type doesn't change.
15640 * cgraph.h (cgraph_indirect_call_info): New flag.
15641 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
15642 (cgraph_node::dump): Dump it.
15643 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
15644 of context.get_dynamic_type.
15645 (ipa_make_edge_direct_to_target): Do not speculate
15646 edge that is already speuclative.
15647 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
15648 speculate to __builtin_unreachable
15649 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
15651 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
15653 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15655 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
15656 get_dynamic_type; drop TODO.
15657 * ipa-polymorphic-call.c
15658 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
15659 for otr_type to be unknown.
15661 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
15663 * common/config/score/score-common.c: Remove.
15664 * config.gcc: Remove support for score-*.
15665 * config/score/constraints.md: Remove.
15666 * config/score/elf.h: Remove.
15667 * config/score/predicates.md: Remove.
15668 * config/score/score-conv.h: Remove.
15669 * config/score/score-generic.md: Remove.
15670 * config/score/score-modes.def: Remove.
15671 * config/score/score-protos.h: Remove.
15672 * config/score/score.c: Remove.
15673 * config/score/score.h: Remove.
15674 * config/score/score.md: Remove.
15675 * config/score/score.opt: Remove.
15676 * doc/md.texi: Don't document score-*.
15678 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
15681 * genconditions.c: Directly include ggc.h before rtl.h.
15683 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
15685 * ipa-polymorphic-call.c
15686 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
15687 code determining speculative type.
15688 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
15690 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15692 * altivec.md (altivec_lvsl): New define_expand.
15693 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
15694 (altivec_lvsr): New define_expand.
15695 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
15696 * rs6000.c (rs6000_expand_builtin): Change to use
15697 altivec_lvs[lr]_direct; remove commented-out code.
15699 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15701 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15702 Issue a warning message when vec_lvsl or vec_lvsr is used with a
15703 little endian target.
15705 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
15707 * tree-pretty-print.c (dump_location): Make it extern. Dump also
15709 * tree-pretty-print.h (dump_location): Declare.
15710 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
15711 (pp_gimple_stmt_1): Likewise.
15712 (dump_implicit_edges): Likewise.
15713 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
15717 2014-10-03 David Malcolm <dmalcolm@redhat.com>
15719 * gcc.c (driver::global_initializations): Remove "const" so
15720 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
15721 and decoded_options_count.
15723 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
15725 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
15727 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
15728 TARGET_E500_DOUBLE case here.
15730 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
15735 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
15737 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
15739 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
15740 * lto-cgraph.c (lto_output_edge, input_edge): Stream
15741 in_polymorphic_cdtor
15742 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
15743 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
15744 * cgraphclones.c (cgraph_edge::clone): Likewise.
15745 * ipa-prop.c (update_jump_functions_after_inlining,
15746 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
15747 to possible_dynamic_type_change.
15748 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
15749 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
15750 IN_POLY_CDOTR argument.
15752 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
15753 for BASE and OUTER_TYPE being NULL.
15754 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
15755 in_poly_cdtor parameter.
15757 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15759 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
15760 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
15762 (expand_vec_perm_1): Likewise.
15764 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15765 Uros Bizjak <ubizjak@gmail.com>
15767 PR tree-optimization/61403
15768 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
15769 error in comment. Also optimize 256-bit vectors for AVX2
15770 or AVX (floating vectors only), provided the first permutation
15771 can be performed in one insn.
15773 2014-10-03 David Malcolm <dmalcolm@redhat.com>
15775 * gcc.c (class driver): New class.
15776 (main): Reimplement in terms of driver::main, moving most of the
15777 locals to be locals within individual methods of class driver.
15778 The remaining locals "explicit_link_files", "decoded_options" and
15779 "decoded_options_count" are used by multiple driver:: methods, and
15780 so become member data. Doing so isolates the argc/argv reads and
15781 writes. Replace "goto out" with a special exit code from
15782 new method driver::prepare_infiles. Split out the old
15783 implementation of main into the following...
15784 (driver::main): New function, corresponding to the old "main"
15786 (driver::set_progname): New function, taken from the old
15787 "main" implementation.
15788 (driver::expand_at_files): Likewise.
15789 (driver::decode_argv): Likewise.
15790 (driver::global_initializations): Likewise.
15791 (driver::build_multilib_strings): Likewise.
15792 (driver::set_up_specs): Likewise.
15793 (driver::putenv_COLLECT_GCC): Likewise.
15794 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
15795 (driver::handle_unrecognized_options): Likewise.
15796 (driver::maybe_print_and_exit): Likewise.
15797 (driver::prepare_infiles): Likewise.
15798 (driver::do_spec_on_infiles): Likewise.
15799 (driver::maybe_run_linker): Likewise.
15800 (driver::final_actions): Likewise.
15801 (driver::get_exit_code): Likewise.
15803 2014-10-03 Yury Gribov <y.gribov@samsung.com>
15805 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
15806 don't emit empty ctors.
15808 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
15810 * convert.c (convert_to_integer): Do not introduce useless conversions
15811 between integral types.
15813 2014-10-03 David Sherwood <david.sherwood@arm.com>
15815 * ira-int.h (ira_allocno): Mark hard_regno as signed.
15817 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
15819 * lra-constraints.c (inherit_in_ebb): Handle calls with
15820 multiple return values.
15821 * caller-save.c (save_call_clobbered_regs): Likewise.
15823 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15825 * tree-vect-data-refs.c (vect_permute_load_chain,
15826 vect_shift_permute_load_chain): Fix a typo in temporary var names,
15827 suffle3 to shuffle3.
15830 * omp-low.c (taskreg_contexts): New variable.
15831 (scan_omp_parallel): Push newly created context into taskreg_contexts
15832 vector and move record layout code to finish_taskreg_scan.
15833 (scan_omp_task): Likewise.
15834 (finish_taskreg_scan): New function.
15835 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
15836 vector elements and release it.
15839 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
15840 of palignr arguments can't be used due to min 0 or max - min
15841 too high, try also op0, op1 order of palignr arguments.
15843 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
15845 * cgraph.h (ipa_polymorphic_call_context):
15846 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
15847 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
15848 * ipa-polymorphic-call.c
15849 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
15850 past end of dynamic types.
15851 (ipa_polymorphic_call_context::stream_out,
15852 speculative_outer_type): Stream dynamic flag.
15853 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
15854 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
15856 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
15858 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
15859 * ipa-prop.c (update_jump_functions_after_inlining,
15860 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
15862 2014-10-02 Teresa Johnson <tejohnson@google.com>
15864 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
15865 up when synthesizing counts to avoid rounding errors.
15867 2014-10-02 Teresa Johnson <tejohnson@google.com>
15869 PR middle-end/63422
15870 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
15871 asserts to handle incoming insanities.
15873 2014-10-02 Martin Jambor <mjambor@suse.cz>
15875 PR tree-optimization/63375
15876 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
15879 2014-10-02 Olivier Hainque <hainque@adacore.com>
15881 * Makefile.in (CROSS): Define, to @CROSS.
15883 2014-10-02 Jakub Jelinek <jakub@redhat.com>
15886 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
15887 if it expands to a single insn only.
15888 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
15889 fail unless in_order is true. Add forward declaration.
15890 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
15891 is useful for one_operand_p.
15892 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
15894 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
15896 * cgraphclones.c (build_function_type_skip_args): Do not make new
15897 type variant of old.
15899 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
15901 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
15902 when speculation is added.
15903 (ipa_edge_args): Add polymorphic_call_contexts.
15904 (ipa_get_ith_polymorhic_call_context): New accesor.
15905 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
15906 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
15907 (ipa_compute_jump_functions_for_edge): Compute contexts.
15908 (update_jump_functions_after_inlining): Update contexts.
15909 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
15910 update dumping; add speculative edge creation.
15911 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
15913 (update_indirect_edges_after_inlining): Pass down context.
15914 (ipa_edge_duplication_hook): Duplicate contexts.
15915 (ipa_write_node_info): Stream out contexts.
15916 (ipa_read_node_info): Stream in contexts.
15917 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
15919 (try_speculative_devirtualization): New function.
15920 * ipa-utils.h (try_speculative_devirtualization): Declare.
15922 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
15924 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
15925 dumping during WPA.
15927 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
15929 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
15932 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
15934 * ipa-polymorphic-call.c
15935 (ipa_polymorphic_call_context::restrict_to_inner_class):
15936 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
15937 use speculation_consistent_p to do so; Add CONSDER_BASES
15938 and CONSIDER_PLACEMENT_NEW parameters.
15939 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
15940 short circuit obvious cases.
15941 (ipa_polymorphic_call_context::dump): Improve formatting.
15942 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
15943 combine_speculation_with to record speculations; Do not ICE when
15944 object is located in pointer type decl; do not ICE for methods
15945 of UNION_TYPE; do not record nonpolymorphic types.
15946 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
15947 (ipa_polymorphic_call_context::combine_speculation_with): New method.
15948 (ipa_polymorphic_call_context::combine_with): New method.
15949 (ipa_polymorphic_call_context::make_speculative): Move here; use
15950 combine speculation.
15951 * cgraph.h (ipa_polymorphic_call_context): Update
15952 restrict_to_inner_class prototype; add offset_by, make_speculative,
15953 combine_with, useless_p, combine_speculation_with and
15954 speculation_consistent_p methods.
15955 (ipa_polymorphic_call_context::offset_by): New method.
15956 (ipa_polymorphic_call_context::useless_p): New method.
15958 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
15960 PR rtl-optimization/62151
15961 * combine.c (can_combine_p): Allow the destination register of INSN
15962 to be clobbered in I3.
15963 (subst): Do not substitute into clobbers of registers.
15965 2014-10-01 Jakub Jelinek <jakub@redhat.com>
15968 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
15969 offset, TARGET_MEM_REF and SSA_NAME.
15971 * config/i386/i386.c (expand_vec_perm_palignr): Handle
15972 256-bit vectors for TARGET_AVX2.
15974 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
15975 dfirst permutation.
15978 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
15979 argument to avx2_permv2ti.
15981 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15983 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
15985 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
15987 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
15988 (fmod<mode>3): Ditto.
15989 (fpremxf4_i387): Ditto.
15990 (reminderxf3): Ditto.
15991 (reminder<mode>3): Ditto.
15992 (fprem1xf4_i387): Ditto.
15994 2014-09-30 Teresa Johnson <tejohnson@google.com>
15996 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
15997 duplicate_blocks bitmap.
15998 (remove_ctrl_stmt_and_useless_edges): Ditto.
15999 (create_block_for_threading): Ditto.
16000 (compute_path_counts): New function.
16001 (update_profile): Ditto.
16002 (recompute_probabilities): Ditto.
16003 (update_joiner_offpath_counts): Ditto.
16004 (freqs_to_counts_path): Ditto.
16005 (clear_counts_path): Ditto.
16006 (ssa_fix_duplicate_block_edges): Update profile info.
16007 (ssa_create_duplicates): Pass new parameter.
16008 (ssa_redirect_edges): Remove old profile update.
16009 (thread_block_1): New duplicate_blocks bitmap,
16010 remove old profile update.
16011 (thread_single_edge): Pass new parameter.
16013 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
16015 PR middle-end/62120
16016 * varasm.c (decode_reg_name_and_count): Check availability for
16017 registers from ADDITIONAL_REGISTER_NAMES.
16019 2014-09-30 David Malcolm <dmalcolm@redhat.com>
16022 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
16023 (PLUGIN_HEADERS): Add pass-instances.def.
16025 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
16027 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
16029 * config/aarch64/aarch64-simd.md
16030 (aarch64_sqdmull_laneq<mode>): Expand iterator.
16031 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
16032 (vqdmulls_lane_s32): Fix return type.
16033 (vqdmulls_laneq_s32): New.
16035 2014-09-30 Jakub Jelinek <jakub@redhat.com>
16037 PR inline-asm/63282
16038 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
16039 or invert_jump_1 if jump isn't any_condjump_p.
16041 2014-09-30 Terry Guo <terry.guo@arm.com>
16043 * config/arm/arm-cores.def (cortex-m7): New core name.
16044 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
16046 * config/arm/arm-tables.opt: Regenerated.
16047 * config/arm/arm-tune.md: Regenerated.
16048 * config/arm/arm.h (TARGET_VFP5): New macro.
16049 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
16050 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
16051 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
16052 * doc/invoke.texi: Document new cpu and fpu names.
16054 2014-09-30 Jiong Wang <jiong.wang@arm.com>
16056 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
16057 before sinking insn.
16059 2014-09-30 David Sherwood <david.sherwood@arm.com>
16061 * ira-int.h (ira_allocno): Add "wmode" field.
16062 * ira-build.c (create_insn_allocnos): Add new "parent" function
16064 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
16065 that cannot be accessed in wmode.
16067 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
16069 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
16072 2014-09-29 Andi Kleen <ak@linux.intel.com>
16074 * opts.c (print_filtered_help): Print --param min/max/default
16077 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
16079 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
16081 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
16083 * tree-vrp.c (get_single_symbol): New function.
16084 (build_symbolic_expr): Likewise.
16085 (symbolic_range_based_on_p): New predicate.
16086 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
16087 for PLUS and MINUS. Do not drop symbolic ranges at the end.
16088 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
16089 operand is symbolic and based on the other operand.
16091 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
16093 * config/microblaze/microblaze.md (call_internal1): Use VOID
16094 instead of SI to fix "((void (*)(void)) 0)()" issue
16096 2014-09-29 Nick Clifton <nickc@redhat.com>
16098 * config/msp430/msp430.c (msp430_expand_prologue): Return a
16099 CLOBBER rtx for naked functions.
16100 (msp430_expand_epilogue): Likewise.
16101 (msp430_use_f5_series_hwmult): Cache result.
16102 (use_32bit_hwmult): Cache result.
16103 (msp430_no_hwmult): New function.
16104 (msp430_output_labelref): Use it.
16106 2014-09-29 Jakub Jelinek <jakub@redhat.com>
16108 PR middle-end/63247
16109 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
16110 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
16111 use the alignment of avar rather than ovar.
16113 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
16115 * config/pa/pa.c (pa_output_function_epilogue): Only update
16116 last_address when a nonnote insn is found.
16118 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
16121 * ipa-devirt.c (possible_polymorphic_call_targets): Silence
16124 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
16127 * ipa-polymorphic-call.c
16128 (ipa_polymorphic_call_context::restrict_to_inner_class): Fix pasto
16129 in checking array size.
16131 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
16133 PR middle-end/35545
16134 * passes.def (pass_tracer): Move before last dominator pass.
16136 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
16138 * gcc.c (try_generate_repro): Remove argument "prog". Change all
16140 (run_attempt): Handle errors of "pex_run" invocation.
16142 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
16144 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
16145 (CC1_SPEC): Define.
16146 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
16147 (TARGET_ASAN_SHADOW_OFFSET): Define.
16149 2014-09-26 Martin Liska <mliska@suse.cz>
16151 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
16153 * cgraph.h: Likewise.
16154 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new
16155 argument introduced.
16156 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos
16158 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function
16159 transformed to global.
16160 * tree-ssa-alias.h: Likewise.
16162 2014-09-26 Jakub Jelinek <jakub@redhat.com>
16163 Max Ostapenko <m.ostapenko@partner.samsung.com>
16165 * common.opt: New option.
16166 * doc/invoke.texi: Describe new option.
16167 * gcc.c (execute): Don't free first string early, but at the end
16168 of the function. Call retry_ice if compiler exited with
16170 (main): Factor out common code.
16171 (print_configuration): New function.
16172 (files_equal_p): Likewise.
16173 (check_repro): Likewise.
16174 (run_attempt): Likewise.
16175 (do_report_bug): Likewise.
16176 (append_text): Likewise.
16177 (try_generate_repro): Likewise
16179 2014-09-25 Andi Kleen <ak@linux.intel.com>
16181 * config/i386/i386.c (x86_print_call_or_nop): New function.
16182 (x86_function_profiler): Support -mnop-mcount and
16184 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
16185 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
16187 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
16189 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
16190 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
16191 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
16194 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
16196 * ipa-utils.h (subbinfo_with_vtable_at_offset,
16197 type_all_derivations_known_p, type_known_to_have_no_deriavations_p,
16198 types_must_be_same_for_odr, types_odr_comparable): Declare.
16199 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
16200 * ipa-polymorphic-call.c: New file.
16201 (contains_polymorphic_type_p, possible_placement_new,
16202 ipa_polymorphic_call_context::restrict_to_inner_class,
16203 contains_type_p, decl_maybe_in_construction_p,
16204 ipa_polymorphic_call_context::stream_out,
16205 ipa_polymorphic_call_context::debug,
16206 ipa_polymorphic_call_context::stream_in,
16207 ipa_polymorphic_call_context::set_by_decl,
16208 ipa_polymorphic_call_context::set_by_invariant,
16210 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16211 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
16212 extr_type_from_vtbl_ptr_store, record_known_type
16213 check_stmt_for_type_change,
16214 ipa_polymorphic_call_context::get_dynamic_type): Move here from
16216 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
16217 and streamer-hooks.h
16218 (contains_polymorphic_type_p, possible_placement_new,
16219 ipa_polymorphic_call_context::restrict_to_inner_class,
16220 contains_type_p, decl_maybe_in_construction_p,
16221 ipa_polymorphic_call_context::stream_out,
16222 ipa_polymorphic_call_context::debug,
16223 ipa_polymorphic_call_context::stream_in,
16224 ipa_polymorphic_call_context::set_by_decl,
16225 ipa_polymorphic_call_context::set_by_invariant,
16227 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16228 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
16229 extr_type_from_vtbl_ptr_store, record_known_type
16230 check_stmt_for_type_change,
16231 ipa_polymorphic_call_context::get_dynamic_type): Move to
16232 ipa-polymorphic-call.c
16233 (type_all_derivations_known_p, types_odr_comparable,
16234 types_must_be_same_for_odr): Export.
16235 (type_known_to_have_no_deriavations_p): New function.
16236 * Makefile.in: Add ipa-polymorphic-call.c
16238 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
16240 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
16241 for better storage.
16242 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
16243 (possible_polymorphic_call_targets): Instead of computing both
16244 speculative and non-speculative answers, do just one at a time.
16245 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
16246 (dump_targets): Break out from ...
16247 (dump_possible_polymorphic_call_targets): ... here; dump both
16248 speculative and non-speculative lists.
16249 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
16250 * ipa-utils.h (possible_polymorphic_call_targets): Update.
16252 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
16254 PR rtl-optimization/63348
16255 * emit-rtl.c (try_split): Do not emit extra barrier.
16257 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
16259 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
16260 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
16262 (aarch64_<sur>shll2_n<mode>): Likewise.
16263 (aarch64_<sur>shr_n<mode>): Likewise.
16264 (aarch64_<sur>sra_n<mode>: Likewise.
16265 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
16266 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
16267 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
16268 * config/aarch64/iterators.md (ve_mode): New.
16269 (offsetlr): Remap to infix text for use in new predicates.
16270 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
16271 (aarch64_simd_shift_imm_hi): Likewise.
16272 (aarch64_simd_shift_imm_si): Likewise.
16273 (aarch64_simd_shift_imm_di): Likewise.
16274 (aarch64_simd_shift_imm_offset_qi): Likewise.
16275 (aarch64_simd_shift_imm_offset_hi): Likewise.
16276 (aarch64_simd_shift_imm_offset_si): Likewise.
16277 (aarch64_simd_shift_imm_offset_di): Likewise.
16278 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
16279 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
16280 (aarch64_simd_shift_imm_bitsize_si): Likewise.
16281 (aarch64_simd_shift_imm_bitsize_di): Likewise.
16283 2014-09-25 Jiong Wang <jiong.wang@arm.com>
16285 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
16286 new created BB as the intersection of live-in from "old_dest" and
16287 live-out from "bb".
16289 2014-09-25 Felix Yang <felix.yang@huawei.com>
16291 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
16292 * genautomata.c (merge_states): Ditto.
16294 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
16297 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
16298 in instruction sequence.
16300 2014-09-25 Nick Clifton <nickc@redhat.com>
16303 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
16304 in instruction sequence.
16306 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16309 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
16310 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
16312 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16313 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16314 Anna Tikhonova <anna.tikhonova@intel.com>
16315 Ilya Tocar <ilya.tocar@intel.com>
16316 Andrey Turetskiy <andrey.turetskiy@intel.com>
16317 Ilya Verbin <ilya.verbin@intel.com>
16318 Kirill Yukhin <kirill.yukhin@intel.com>
16319 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16321 * config/i386/sse.md
16322 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
16323 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
16324 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
16325 (define_expand "<avx512>_perm<mode>_mask"): ... this.
16326 Use VI8F_256_512 mode iterator.
16327 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
16328 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
16330 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16331 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16332 Anna Tikhonova <anna.tikhonova@intel.com>
16333 Ilya Tocar <ilya.tocar@intel.com>
16334 Andrey Turetskiy <andrey.turetskiy@intel.com>
16335 Ilya Verbin <ilya.verbin@intel.com>
16336 Kirill Yukhin <kirill.yukhin@intel.com>
16337 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16339 * config/i386/sse.md
16340 (define_insn "avx_movshdup256<mask_name>"): Add masking.
16341 (define_insn "sse3_movshdup<mask_name>"): Ditto.
16342 (define_insn "avx_movsldup256<mask_name>"): Ditto.
16343 (define_insn "sse3_movsldup<mask_name>"): Ditto.
16344 (define_insn "vec_dupv2df<mask_name>"): Ditto.
16345 (define_insn "*vec_concatv2df"): Add EVEX version.
16347 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16348 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16349 Anna Tikhonova <anna.tikhonova@intel.com>
16350 Ilya Tocar <ilya.tocar@intel.com>
16351 Andrey Turetskiy <andrey.turetskiy@intel.com>
16352 Ilya Verbin <ilya.verbin@intel.com>
16353 Kirill Yukhin <kirill.yukhin@intel.com>
16354 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16356 * config/i386/sse.md
16357 (define_insn "vec_set<mode>_0"): Add EVEX version.
16359 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16360 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16361 Anna Tikhonova <anna.tikhonova@intel.com>
16362 Ilya Tocar <ilya.tocar@intel.com>
16363 Andrey Turetskiy <andrey.turetskiy@intel.com>
16364 Ilya Verbin <ilya.verbin@intel.com>
16365 Kirill Yukhin <kirill.yukhin@intel.com>
16366 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16368 * config/i386/sse.md
16370 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
16372 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
16373 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
16374 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
16375 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
16376 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
16377 (define_expand "sse2_cvtpd2ps_mask): New.
16378 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
16379 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
16381 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16382 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16383 Anna Tikhonova <anna.tikhonova@intel.com>
16384 Ilya Tocar <ilya.tocar@intel.com>
16385 Andrey Turetskiy <andrey.turetskiy@intel.com>
16386 Ilya Verbin <ilya.verbin@intel.com>
16387 Kirill Yukhin <kirill.yukhin@intel.com>
16388 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16390 * config/i386/i386.c
16391 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
16392 (ufix_notruncv8dfv8si2_mask_round): ... this.
16393 * config/i386/sse.md
16394 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
16395 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
16396 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
16397 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
16398 (define_expand "sse2_cvtpd2dq"): Delete.
16399 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
16400 make 2nd operand const0 vector.
16401 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
16403 (define_mode_attr pd2udqsuff): New.
16405 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
16406 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
16407 (define_insn "*avx_cvttpd2dq256_2"): Delete.
16408 (define_expand "sse2_cvttpd2dq"): Ditto.
16409 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
16410 make 2nd operand const0 vector.
16412 2014-09-25 Jakub Jelinek <jakub@redhat.com>
16414 PR tree-optimization/63341
16415 * tree-vectorizer.h (vect_create_data_ref_ptr,
16416 vect_create_addr_base_for_vector_ref): Add another tree argument
16417 defaulting to NULL_TREE.
16418 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
16419 argument, pass it down to vect_create_addr_base_for_vector_ref.
16420 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
16421 add that to base_offset too if non-NULL.
16422 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
16423 for dr_explicit_realign_optimized set it to vector byte size
16424 - 1 instead of setting offset, pass byte_offset down to
16425 vect_create_data_ref_ptr.
16427 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
16429 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
16430 forgotten debug output; canonicalize querries more wtih LTO.
16432 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
16434 * cgraph.h (class ipa_polymorphic_call_context): Move here from
16435 ipa-utils.h; add stream_int and stream_out methods.
16436 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
16437 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
16438 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
16440 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16441 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16442 ipa_polymorphic_call_context::clear_speculation,
16443 ipa_polymorphic_call_context::clear_outer_type): Move here from
16445 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
16446 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16447 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16448 ipa_polymorphic_call_context::clear_speculation,
16449 ipa_polymorphic_call_context::clear_outer_type): Likewise.
16450 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
16452 (ipa_polymorphic_call_context::stream_out): New method.
16453 (ipa_polymorphic_call_context::stream_in): New method.
16454 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
16455 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
16457 (ipa_analyze_call_uses): Simplify.
16458 (update_indirect_edges_after_inlining): Do not care about outer_type.
16459 (ipa_write_indirect_edge_info): Update.
16460 (ipa_write_indirect_edge_info): Likewise.
16461 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
16462 (dump_edge_flags): Break out from ...
16463 (cgraph_node::dump): ... here; dump indirect edges.
16465 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
16467 * ipa-utils.h (polymorphic_call_context): Add
16468 metdhos dump, debug and clear_outer_type.
16469 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
16470 (ipa_polymorphic_call_context::clear_outer_type): New method.
16471 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
16472 * ipa-devirt.c (types_odr_comparable): New function.
16473 (types_must_be_same_for_odr): New function.
16474 (odr_subtypes_equivalent_p): Simplify.
16475 (possible_placement_new): Break out from ...
16476 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
16477 be more cuatious about returning false in cases the context may be
16478 valid in derived type or via placement new.
16479 (contains_type_p): Clear maybe_derived_type
16480 (ipa_polymorphic_call_context::dump): New method.
16481 (ipa_polymorphic_call_context::debug): New method.
16482 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
16483 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
16484 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
16485 (possible_polymorphic_call_targets): Trust
16486 context.restrict_to_inner_class to suceed on all valid cases;
16487 remove confused sanity check.
16488 (dump_possible_polymorphic_call_targets): Simplify.
16490 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
16492 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
16493 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
16494 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
16495 varpool.c: Rename all instances of DECL_ABSTRACT to
16498 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16500 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
16501 special handling for stores whose SET_SRC is an UNSPEC (such as
16504 2014-09-24 Jiong Wang <jiong.wang@arm.com>
16506 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
16507 !REG_P (src) to release more instruction sink opportunities.
16509 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
16511 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
16512 move costs for 128-bit types.
16514 2014-09-24 Martin Jambor <mjambor@suse.cz>
16516 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
16517 when duplicating a PASS_THROUGH jump function when creating a
16520 2014-09-24 Marek Polacek <polacek@redhat.com>
16524 * asan.c (maybe_instrument_call): Add default case.
16525 * ipa-pure-const.c (special_builtin_state): Likewise.
16526 * predict.c (expr_expected_value_1): Likewise.
16527 * lto-streamer-out.c (write_symbol): Initialize variable.
16529 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16531 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
16533 (vmuld_laneq_f64): Likewise.
16534 (vmuls_lane_f32): Likewise.
16535 (vmuls_laneq_f32): Likewise.
16537 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
16540 * varpool.c (varpool_node::add): Pass decl attributes
16541 to lookup_attribute.
16543 2014-09-24 Jakub Jelinek <jakub@redhat.com>
16546 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
16548 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
16550 PR tree-optimization/63266
16551 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
16552 marker for unknown byte value.
16553 (MARKER_MASK): New macro.
16554 (MARKER_BYTE_UNKNOWN): New macro.
16555 (HEAD_MARKER): New macro.
16556 (do_shift_rotate): Mark bytes with unknown values due to sign
16557 extension when doing an arithmetic right shift. Replace hardcoded
16558 mask for marker by new MARKER_MASK macro.
16559 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
16560 numbers accordingly.
16562 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16563 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16564 Anna Tikhonova <anna.tikhonova@intel.com>
16565 Ilya Tocar <ilya.tocar@intel.com>
16566 Andrey Turetskiy <andrey.turetskiy@intel.com>
16567 Ilya Verbin <ilya.verbin@intel.com>
16568 Kirill Yukhin <kirill.yukhin@intel.com>
16569 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16571 * config/i386/sse.md
16573 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
16575 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
16576 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
16578 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16579 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16580 Anna Tikhonova <anna.tikhonova@intel.com>
16581 Ilya Tocar <ilya.tocar@intel.com>
16582 Andrey Turetskiy <andrey.turetskiy@intel.com>
16583 Ilya Verbin <ilya.verbin@intel.com>
16584 Kirill Yukhin <kirill.yukhin@intel.com>
16585 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16587 * config/i386/sse.md
16588 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
16589 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
16590 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
16591 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
16592 (define_expand "avx512vl_pshuflw_mask"): New.
16593 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
16594 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
16595 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
16596 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
16597 (define_expand "avx512vl_pshufhw_mask"): New.
16598 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
16600 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16601 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16602 Anna Tikhonova <anna.tikhonova@intel.com>
16603 Ilya Tocar <ilya.tocar@intel.com>
16604 Andrey Turetskiy <andrey.turetskiy@intel.com>
16605 Ilya Verbin <ilya.verbin@intel.com>
16606 Kirill Yukhin <kirill.yukhin@intel.com>
16607 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16609 * config/i386/i386.c
16610 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
16611 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
16612 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
16613 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
16614 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
16615 * config/i386/sse.md
16616 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
16618 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
16619 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
16621 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
16622 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
16623 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
16624 (define_expand "avx512vl_pshufd_mask"): New.
16625 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
16627 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16628 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16629 Anna Tikhonova <anna.tikhonova@intel.com>
16630 Ilya Tocar <ilya.tocar@intel.com>
16631 Andrey Turetskiy <andrey.turetskiy@intel.com>
16632 Ilya Verbin <ilya.verbin@intel.com>
16633 Kirill Yukhin <kirill.yukhin@intel.com>
16634 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16636 * config/i386/i386.c
16637 (CODE_FOR_avx2_extracti128): Rename to ...
16638 (CODE_FOR_avx_vextractf128v4di): this.
16639 (CODE_FOR_avx2_inserti128): Rename to ...
16640 (CODE_FOR_avx_vinsertf128v4di): this.
16641 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
16642 CODE_FOR_avx_vextractf128v4di.
16643 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
16644 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
16645 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
16646 CODE_FOR_avx512vl_vinsertv8si.
16647 * config/i386/sse.md
16649 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
16650 AVX512_VEC mode iterator.
16652 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
16655 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
16656 AVX512_VEC_2 mode iterator.
16657 (define_insn "vec_set_lo_<mode><mask_name>"): New.
16658 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16659 (define_expand "avx512vl_vinsert<mode>"): Ditto.
16660 (define_insn "avx2_vec_set_lo_v4di"): Delete.
16661 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
16662 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
16663 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16664 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
16665 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16666 (define_expand "avx2_extracti128"): Delete.
16667 (define_expand "avx2_inserti128"): Ditto.
16669 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16670 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16671 Anna Tikhonova <anna.tikhonova@intel.com>
16672 Ilya Tocar <ilya.tocar@intel.com>
16673 Andrey Turetskiy <andrey.turetskiy@intel.com>
16674 Ilya Verbin <ilya.verbin@intel.com>
16675 Kirill Yukhin <kirill.yukhin@intel.com>
16676 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16678 * config/i386/sse.md
16679 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
16680 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
16681 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
16682 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
16683 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
16684 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
16685 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
16686 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
16687 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
16688 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
16689 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
16690 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
16691 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
16693 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
16695 PR rtl-optimization/63210
16696 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
16697 HARD_REGNO is not available for CONFLICT_A.
16699 2014-09-23 Andi Kleen <ak@linux.intel.com>
16701 * cgraph.h (symtab_node): Add no_reorder attribute.
16702 (symbol_table::output_asm_statements): Remove.
16703 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
16704 (cgraph_node::create_version_clone): Dito.
16705 (symbol_table::output_asm_statements): Remove.
16706 * trans-mem.c (ipa_tm_create_version_alias): Dito.
16707 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
16708 (output_in_order): Add no_reorder flag. Only handle no_reorder
16710 (symbol_table::compile): Add separate pass for no_reorder nodes.
16711 (process_common_attributes): Set no_reorder flag in symtab node.
16713 (process_function_and_variable_attributes): Pass symtab nodes to
16714 process_common_attributes.
16715 * doc/extend.texi (no_reorder): Document no_reorder attribute.
16716 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
16717 (lto_output_varpool_node): Dito.
16718 (input_overwrite_node): Dito.
16719 (input_varpool_node): Dito.
16720 * varpool.c (varpool_node::add): Set no_reorder attribute.
16721 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
16722 (symbol_table::output_variables): Dito.
16723 * symtab.c (symtab_node::dump_base): Print no_reorder.
16725 2014-09-23 Jiong Wang <jiong.wang@arm.com>
16727 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM
16728 not be INVALID_REGNUM.
16730 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
16732 * configure: Regenerate.
16734 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
16736 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
16737 when result_mode == shift_mode.
16739 2014-09-23 Kostya Serebryany <kcc@google.com>
16741 Update to match the changed asan API.
16742 * asan.c (asan_global_struct): Update the __asan_global definition
16743 to match the new API.
16744 (asan_add_global): Ditto.
16745 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
16748 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16750 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
16751 refine the constraints used on 32/64-bit floating point moves.
16752 (f32_av): Likewise.
16753 (f64_vsx): Likewise.
16754 (f64_dm): Likewise.
16755 (f64_av): Likewise.
16756 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
16757 (BOOL_REGS_OP1): Likewise.
16758 (BOOL_REGS_OP2): Likewise.
16759 (BOOL_REGS_UNARY): Likewise.
16760 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
16761 32/64-bit floating point moves. Do not use wa, instead use ww/ws
16762 for moves involving VSX registers. Do not use constraints that
16763 target VSX registers for decimal types.
16764 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
16765 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
16767 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
16769 * tree.h (int_bit_position): Turn into inline function;
16770 implement using wide int.
16771 * tree.c (int_bit_position): Remove.
16773 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
16776 * target-globals.c (target_globals::~target_globals): Fix location
16777 of ira_int destruction.
16779 2014-09-23 Renlin Li <renlin.li@arm.com>
16781 * config/aarch64/aarch64.md (return): New.
16782 (simple_return): Likewise.
16783 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
16784 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
16786 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
16788 * common/config/aarch64/aarch64-common.c:
16789 (default_options aarch_option_optimization_table):
16790 Default to -fsched-pressure.
16792 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
16794 * cfgcleanup.c (try_optimize_cfg): Do not remove label
16795 with LABEL_PRESERVE_P flag set.
16797 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16798 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16799 Anna Tikhonova <anna.tikhonova@intel.com>
16800 Ilya Tocar <ilya.tocar@intel.com>
16801 Andrey Turetskiy <andrey.turetskiy@intel.com>
16802 Ilya Verbin <ilya.verbin@intel.com>
16803 Kirill Yukhin <kirill.yukhin@intel.com>
16804 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16806 * config/i386/sse.md
16807 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
16808 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
16809 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
16810 (define_insn "sse2_shufpd_v2df_mask"): New.
16812 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16813 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16814 Anna Tikhonova <anna.tikhonova@intel.com>
16815 Ilya Tocar <ilya.tocar@intel.com>
16816 Andrey Turetskiy <andrey.turetskiy@intel.com>
16817 Ilya Verbin <ilya.verbin@intel.com>
16818 Kirill Yukhin <kirill.yukhin@intel.com>
16819 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16821 * config/i386/sse.md
16822 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
16823 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
16824 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
16825 (define_insn "sse_shufps_v4sf_mask"): New.
16827 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16828 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16829 Anna Tikhonova <anna.tikhonova@intel.com>
16830 Ilya Tocar <ilya.tocar@intel.com>
16831 Andrey Turetskiy <andrey.turetskiy@intel.com>
16832 Ilya Verbin <ilya.verbin@intel.com>
16833 Kirill Yukhin <kirill.yukhin@intel.com>
16834 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16836 * config/i386/sse.md
16837 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
16838 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
16839 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
16840 (define_insn "unpcklps128_mask"): New.
16842 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16843 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16844 Anna Tikhonova <anna.tikhonova@intel.com>
16845 Ilya Tocar <ilya.tocar@intel.com>
16846 Andrey Turetskiy <andrey.turetskiy@intel.com>
16847 Ilya Verbin <ilya.verbin@intel.com>
16848 Kirill Yukhin <kirill.yukhin@intel.com>
16849 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16851 * config/i386/sse.md
16852 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
16853 (define_insn "avx512vl_unpckhpd128_mask"): New.
16854 (define_expand "avx_movddup256<mask_name>"): Add masking.
16855 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
16856 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
16857 (define_insn "avx512vl_unpcklpd128_mask"): New.
16859 2014-09-22 Joseph Myers <joseph@codesourcery.com>
16861 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16862 * doc/tm.texi: Regenerate.
16863 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
16864 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16865 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
16867 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16868 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16869 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16870 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16871 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
16873 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16874 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16875 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16876 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16877 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16878 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16879 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16880 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16881 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16882 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16883 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
16886 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
16888 * tree-ssa-ccp.c (prop_value_d): Rename to ...
16889 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
16890 * ipa-prop.c (struct type_change_info): Rename to ...
16891 (prop_type_change_info): ... this; update uses.
16892 * ggc-page.c (globals): Rename to ...
16893 (static struct ggc_globals): ... this; update uses.
16894 * tree-ssa-loop-im.c (mem_ref): Rename to ...
16895 (im_mem_ref): ... this; update uses.
16896 * ggc-common.c (loc_descriptor): Rename to ...
16897 (ggc_loc_descriptor): ... this; update uses.
16898 * lra-eliminations.c (elim_table): Rename to ...
16899 (lra_elim_table): ... this; update uses.
16900 * bitmap.c (output_info): Rename to ...
16901 (bitmap_output_info): ... this; update uses.
16902 * gcse.c (expr): Rename to ...
16903 (gcse_expr) ... this; update uses.
16904 (occr): Rename to ...
16905 (gcse_occr): .. this; update uses.
16906 * tree-ssa-copy.c (prop_value_d): Rename to ...
16907 (prop_value_t): ... this.
16908 * predict.c (block_info_def): Rename to ...
16909 (block_info): ... this; update uses.
16910 (edge_info_def): Rename to ...
16911 (edge_info): ... this; update uses.
16912 * profile.c (bb_info): Rename to ...
16913 (bb_profile_info): ... this; update uses.
16914 * alloc-pool.c (output_info): Rename to ...
16915 (pool_output_info): ... this; update uses.
16916 * ipa-cp.c (topo_info): Rename to ..
16917 (ipa_topo_info): ... this; update uses.
16918 * tree-nrv.c (nrv_data): Rename to ...
16919 (nrv_data_t): ... this; update uses.
16920 * ipa-split.c (bb_info): Rename to ...
16921 (split_bb_info): ... this one.
16922 * profile.h (edge_info): Rename to ...
16923 (edge_profile_info): ... this one; update uses.
16924 * dse.c (bb_info): Rename to ...
16925 (dse_bb_info): ... this one; update uses.
16926 * cprop.c (occr): Rename to ...
16927 (cprop_occr): ... this one; update uses.
16928 (expr): Rename to ...
16929 (cprop_expr): ... this one; update uses.
16931 2014-09-22 Jason Merrill <jason@redhat.com>
16933 * Makefile.in (check-parallel-%): Add @.
16935 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
16937 * config/aarch64/geniterators.sh: New.
16938 * config/aarch64/iterators.md (VDQF_DF): New.
16939 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
16940 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
16942 2014-09-22 Peter A. Bigot <pab@pabigot.com>
16944 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
16945 -lnosys when -msim absent.
16947 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
16949 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
16951 2014-09-22 Richard Biener <rguenther@suse.de>
16953 * gimplify.c (gimplify_init_constructor): Do not leave
16954 non-GIMPLE vector constructors around.
16955 * tree-cfg.c (verify_gimple_assign_single): Verify that
16956 CONSTRUCTORs have gimple elements.
16958 2014-09-22 Jakub Jelinek <jakub@redhat.com>
16961 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
16962 insert a debug source bind stmt setting DEBUG_EXPR_DECL
16963 instead of a normal gimple assignment stmt.
16965 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
16967 * config/bfin/bfin.md: Fix use of constraints in define_split.
16969 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
16971 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
16972 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
16974 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
16976 * hard-reg-set.h: Include hash-table.h.
16977 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
16979 * target-globals.c (target_globals::~target_globals): Call
16980 hard_regs->finalize.
16981 * rtl.h (subreg_shape): New structure.
16982 (shape_of_subreg): New function.
16983 (simplifiable_subregs): Declare.
16984 * reginfo.c (simplifiable_subreg): New structure.
16985 (simplifiable_subregs_hasher): Likewise.
16986 (simplifiable_subregs): New function.
16987 (invalid_mode_changes): Delete.
16988 (alid_mode_changes, valid_mode_changes_obstack): New variables.
16989 (record_subregs_of_mode): Remove subregs_of_mode parameter.
16990 Record valid mode changes in valid_mode_changes.
16991 (find_subregs_of_mode): Remove subregs_of_mode parameter.
16992 Update calls to record_subregs_of_mode.
16993 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
16994 handling. Initialize new variables. Update call to
16995 find_subregs_of_mode.
16996 (invalid_mode_change_p): Check new variables instead of
16997 invalid_mode_changes.
16998 (finish_subregs_of_mode): Finalize new variables instead of
16999 invalid_mode_changes.
17000 (target_hard_regs::finalize): New function.
17001 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
17002 even when CLASS_CANNOT_CHANGE_MODE is undefined.
17004 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17006 * combine.c (subst): Use simplify_subreg_regno rather than
17007 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
17009 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17011 * rtl.h (subreg_info): Expand commentary
17012 * rtlanal.c (subreg_get_info): Likewise.
17014 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17016 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
17017 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
17018 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
17020 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
17022 * config/arm/arm.c: #include "tm-constrs.h"
17023 (thumb1_size_rtx_costs): Adjust rtx costs.
17025 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
17027 * configure.ac (target_header_dir): Move block defining
17028 this to before the block setting inhibit_libc.
17029 (inhibit_libc): When considering $with_headers, just
17030 check it it's explicitly "no". If not, also check if
17031 $target_header_dir/stdio.h is present. If not, set
17033 * configure: Regenerate.
17035 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
17037 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
17039 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17041 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
17042 insn for divides by integer powers of two.
17043 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
17044 (mod<mode>3): Fix formatting.
17045 (three anonymous define_insn and two define_split): Delete.
17047 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17049 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
17050 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
17051 (floatdisf2_internal2): Ditto.
17052 (ashrdi3_no_power): Ditto. Fix formatting.
17054 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17056 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
17057 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
17060 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17062 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
17063 constant, use addsi3 directly.
17064 (three anonymous define_insn, two define_split): Delete.
17065 (sub<mode>3): Move. Do not allow constant second operand.
17066 Generate different insn for constant first operand.
17067 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
17068 (subf<mode>3_imm): New.
17069 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
17070 (*plus_ltu<mode>): Only handle registers.
17071 (*plus_ltu<mode>_1): New. Handle integer third operand.
17072 (*plus_gtu<mode>): Only handle registers.
17073 (*plus_gtu<mode>_1): New. Handle integer third operand.
17075 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17077 * config/rs6000/rs6000.md (iorxor): New code_iterator.
17078 (iorxor): New code_attr.
17079 (IORXOR): New code_attr.
17080 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
17081 (ior<mode>3, xor<mode>3): Delete.
17082 (<iorxor><mode>3): New.
17083 (splitter for "big" integer ior, xor): New.
17084 (*bool<mode>3): Move. Also handle AND.
17085 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
17086 (splitter for "big" integer ior, xor): Delete.
17088 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17090 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
17091 (two anonymous define_insn and two define_split): Delete.
17092 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
17094 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17096 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
17097 (two anonymous define_insn and two define_split): Delete.
17098 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
17100 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17102 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
17104 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17106 * config/rs6000/predicates.md (ca_operand): Allow subregs.
17107 (input_operand): Do not allow ca_operand.
17108 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
17109 carry bit, allow SImode and Pmode.
17110 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
17112 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
17114 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
17115 clobbered registers using clobber_reg. Remove UNSPEC decoration.
17116 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
17117 (*call_rex64_ms_sysv): Remove.
17118 (*call_value_rex64_ms_sysv): Ditto.
17119 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
17121 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
17123 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
17124 operand 3 to "CnL".
17126 2014-09-20 Andreas Schwab <schwab@suse.de>
17128 * config/ia64/ia64.md: Remove constraints from define_split
17131 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17133 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class;
17135 (possible_polymorphic_call_targets,
17136 dump_possible_polymorphic_call_targets,
17137 possible_polymorphic_call_target_p,
17138 possible_polymorphic_call_target_p): Simplify.
17139 (get_dynamic_type): Remove.
17140 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
17141 (clear_speculation): Bring to ipa-deivrt.h
17142 (get_class_context): Rename to ...
17143 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
17144 (contains_type_p): Update.
17145 (get_dynamic_type): Rename to ...
17146 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
17147 (possible_polymorphic_call_targets): UPdate.
17148 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
17149 * ipa-prop.c (ipa_analyze_call_uses): Update.
17151 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17153 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
17154 privatize dynamic TLS variables.
17156 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17158 * diagnostic.c (warning_n): New function.
17159 * diagnostic-core.h (warning_n): Declare.
17160 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
17161 output dynamic counts when available.
17163 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17165 PR tree-optimization/63255
17166 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
17167 issue in setting body_removed flag.
17169 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17172 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
17173 that visibility change is possible
17174 (handle_weakref_attribute): Likewise.
17175 * cgraph.h (symtab_node): Add method get_create and
17176 field refuse_visibility_changes.
17177 (symtab_node::get_create): New method.
17178 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
17179 * varasm.c (mark_weak): Verify that visibility change is possible.
17181 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
17183 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
17184 for base_reg_operand to be common between LO_SUM and PLUS.
17185 (fusion_gpr_mem_combo): New predicate to match a fused address
17186 that combines the addis and memory offset address.
17188 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
17190 (emit_fusion_gpr_load): Likewise.
17192 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
17193 signature to pass each argument separately, rather than
17194 using an operands array. Rewrite the insns found by peephole2 to
17195 be a single insn, rather than hoping the insns will still be
17196 together when the peephole pass is done. Drop being called via a
17198 (emit_fusion_gpr_load): Change calling signature to be called from
17199 the fusion_gpr_load_<mode> insns with a combined memory address
17200 instead of the peephole pass passing the addis and offset
17203 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
17205 (power8 fusion peephole): Drop support for doing power8 via a
17206 normal peephole that was created by the peephole2 pass.
17207 (power8 fusion peephole2): Create a new insn with the fused
17208 address, so that the fused operation is kept together after
17209 register allocation is done.
17210 (fusion_gpr_load_<mode>): Likewise.
17212 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17215 * tree.c (need_assembler_name_p): Do not mangle variadic types.
17217 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
17219 * recog.c (scratch_operand): Do not simply allow all hard registers:
17220 only allow those that are allocatable.
17222 2014-09-19 Felix Yang <felix.yang@huawei.com>
17224 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
17225 comments and fix spacing to conform to coding style.
17227 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17229 * genrecog.c (validate_pattern): Allow empty constraints in
17232 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
17234 * dwarf2out.c (decl_ultimate_origin): Update comment.
17235 * tree.c (block_ultimate_origin): Same.
17237 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17239 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
17240 Update GCC version name to GCC 5.
17241 (rs6000_function_arg_boundary): Likewise.
17242 (rs6000_function_arg): Likewise.
17244 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17246 * config/sh/sh.md: Fix use of constraints in define_split.
17248 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
17251 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
17253 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17255 * doc/md.texi (Modifiers): Consistently use "read/write"
17256 nomenclature rather than "input/output".
17257 * genrecog.c (constraints_supported_in_insn_p): New.
17258 (validate_pattern): If needed, also check constraints on
17259 MATCH_SCRATCH operands.
17260 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
17261 operands with no '=' or '+' modifier.
17263 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17265 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
17266 scratch register as written.
17268 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17270 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
17273 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17275 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
17278 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17281 * config/s390/s390.c (s390_emit_epilogue): When doing the return
17282 address load optimization force s390_optimize_prologue to leave it
17283 that way. Only do the optimization if we already decided to push
17284 r14 into a stack slot.
17286 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
17288 * asan.c (build_check_stmt): Alignment arg was added.
17289 (asan_expand_check_ifn): Optimization for alignment >= 8.
17291 2014-09-19 Olivier Hainque <hainque@adacore.com>
17293 * config/i386/vxworksae.h: Remove obsolete definitions.
17294 (STACK_CHECK_PROTECT): Define.
17295 * config/i386/vx-common.h: Remove. Merge contents within
17296 config/i386/vxworks.h.
17297 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
17300 2014-09-19 Olivier Hainque <hainque@adacore.com>
17302 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
17303 * config/rs6000/t-vxworksmils: New file.
17304 * config/rs6000/vxworksmils.h: New file.
17306 2014-09-19 Olivier Hainque <hainque@adacore.com>
17308 * varasm.c (default_section_type_flags): Flag .persistent.bss
17309 sections as SECTION_BSS.
17311 2014-09-19 Nick Clifton <nickc@redhat.com>
17313 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
17314 pop'ed registers so that DCE does not eliminate them.
17316 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
17319 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
17321 2014-09-18 Joseph Myers <joseph@codesourcery.com>
17323 * system.h (LIBGCC2_TF_CEXT): Poison.
17324 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
17325 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
17326 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
17327 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
17328 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
17329 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
17330 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
17331 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
17332 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
17334 2014-09-19 Kito Cheng <kito@0xlab.org>
17336 * except.h: Fix header guard.
17337 * addresses.h: Add missing header guard.
17338 * cfghooks.h: Likewise.
17339 * collect-utils.h: Likewise.
17340 * collect2-aix.h: Likewise.
17341 * conditions.h: Likewise.
17342 * cselib.h: Likewise.
17343 * dwarf2asm.h: Likewise.
17344 * graphds.h: Likewise.
17345 * graphite-scop-detection.h: Likewise.
17346 * gsyms.h: Likewise.
17347 * hw-doloop.h: Likewise.
17348 * incpath.h: Likewise.
17349 * ipa-inline.h: Likewise.
17350 * ipa-ref.h: Likewise.
17351 * ira-int.h: Likewise.
17353 * lra-int.h: Likewise.
17355 * lto-section-names.h: Likewise.
17356 * read-md.h: Likewise.
17357 * reload.h: Likewise.
17358 * rtl-error.h: Likewise.
17359 * sdbout.h: Likewise.
17360 * targhooks.h: Likewise.
17361 * tree-affine.h: Likewise.
17362 * xcoff.h: Likewise.
17363 * xcoffout.h: Likewise.
17365 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
17368 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
17371 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
17374 * lra.c (lra): Call recog_init.
17376 2014-09-18 Jakub Jelinek <jakub@redhat.com>
17379 * asan.c (transform_statements): Don't instrument clobber statements.
17381 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17383 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
17384 to neon_load1_1reg<q>.
17386 2014-09-17 Jakub Jelinek <jakub@redhat.com>
17389 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
17390 if there are only debug stmts after the noreturn call, instead
17391 remove the debug stmts.
17393 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
17395 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
17396 (odr_types_equivalent_p): Use pair hash.
17397 (odr_subtypes_equivalent_p): Likewise, do structural compare
17398 on ODR types that may be mismatched.
17399 (warn_odr): Support warning when only one field is given.
17400 (odr_types_equivalent_p): Strenghten comparsions made;
17402 (add_type_duplicate): Update VISITED hash set.
17404 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
17406 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
17407 Enable selection of 'posix' or no thread model.
17409 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
17411 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
17412 when architecture is older than ARMv7.
17414 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
17417 * config/pa/pa.c (pa_function_value): Directly handle aggregates
17418 that fit exactly in a word or double word.
17420 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
17422 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
17423 zmm/k regs support.
17425 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
17426 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17427 Anna Tikhonova <anna.tikhonova@intel.com>
17428 Ilya Tocar <ilya.tocar@intel.com>
17429 Andrey Turetskiy <andrey.turetskiy@intel.com>
17430 Ilya Verbin <ilya.verbin@intel.com>
17431 Kirill Yukhin <kirill.yukhin@intel.com>
17432 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17434 * config/i386/i386.c
17435 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
17436 * config/i386/sse.md
17437 (define_mode_iterator VI48F_256): New.
17438 (define_mode_attr extract_type): Ditto.
17439 (define_mode_attr extract_suf): Ditto.
17440 (define_mode_iterator AVX512_VEC): Ditto.
17442 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
17444 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
17446 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
17448 (define_mode_attr extract_type_2): Ditto.
17449 (define_mode_attr extract_suf_2): Ditto.
17450 (define_mode_iterator AVX512_VEC_2): Ditto.
17452 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
17453 AVX512_VEC_2 mode iterator.
17454 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
17455 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
17456 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
17457 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
17458 (define_split for V16FI mode): Ditto.
17459 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
17460 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
17461 (define_split for VI8F_256 mode): Ditto.
17462 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
17463 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
17464 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
17465 (define_split for VI4F_256 mode): Ditto.
17466 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
17467 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
17468 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
17469 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
17470 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
17471 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
17472 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
17473 Update `type' attribute, remove explicit `memory' attribute calculation.
17475 2014-09-16 Kito Cheng <kito@0xlab.org>
17477 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
17478 ira_spilled_reg_stack_slots_num if using lra.
17479 (do_reload): Remove release ira_spilled_reg_stack_slots part.
17480 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
17481 make sure not using lra.
17482 (ira_reuse_stack_slot): Likewise.
17483 (ira_mark_new_stack_slot): Likewise.
17485 2014-09-15 Andi Kleen <ak@linux.intel.com>
17487 * function.c (allocate_struct_function): Force
17488 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
17489 profiling is disabled.
17491 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
17493 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
17494 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
17495 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
17496 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
17497 macro with statically checked member functions.
17498 * rtl.h (rtx_insn::deleted): New method.
17499 (rtx_insn::set_deleted): Likewise.
17500 (rtx_insn::set_undeleted): Likewise.
17501 (INSN_DELETED_P): Remove.
17503 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
17505 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
17506 result of emit_jump_insn_before to a new variable.
17507 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
17508 (mark_jump_label_1): Likewise.
17509 (mark_jump_label_asm): Likewise.
17510 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
17511 * rtl.h (mark_jump_label): Adjust.
17513 2014-09-15 Jakub Jelinek <jakub@redhat.com>
17515 * Makefile.in (dg_target_exps): Remove.
17516 (check_gcc_parallelize): Change to just an upper bound number.
17517 (check-%-subtargets): Always print the non-parallelized goals.
17518 (check_p_vars, check_p_comma, check_p_subwork): Remove.
17519 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
17520 check_p_numbers3, check_p_numbers4, check_p_numbers5,
17521 check_p_numbers6): New variables.
17522 (check_p_numbers): Set to sequence from 1 to 9999.
17523 (check_p_subdirs): Set to sequence from 1 to minimum of
17524 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
17526 (check-%, check-parallel-%): Rewritten so that for parallelized
17527 testing each job runs all the *.exp files, with
17528 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
17530 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17532 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
17534 (arc_sets_cc_p): Likewise.
17535 * config/arc/arc.c (arc_print_operand): Use methods of
17536 "final_sequence" for clarity, and to enable strengthening of
17537 locals "jump" and "delay" from rtx to rtx_insn *.
17538 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
17539 rtx_insn *; use method of rtx_sequence for typesafety.
17540 (arc_get_insn_variants): Use insn method of rtx_sequence for
17542 (arc_pad_return): Likewise.
17543 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
17544 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
17545 dyn_cast to rtx_sequence *, using insn method for typesafety.
17546 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
17547 rtx_sequence * and use insn method when invoking get_attr_length.
17548 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
17549 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
17550 rtx_sequence *, introducing a local "seq", using its insn method
17551 from typesafety and clarity.
17552 (add_sched_insns_for_speculation): Strengthen local "next" from
17554 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
17555 (predicate_insn): Likewise.
17556 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
17558 * config/cris/cris.c (cris_notice_update_cc): Likewise.
17559 * config/epiphany/epiphany-protos.h
17560 (extern void epiphany_insert_mode_switch_use): Likewise for param
17562 (get_attr_sched_use_fpu): Likewise for param.
17563 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
17564 Likewise for param "insn".
17565 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
17566 param "insn" of "target_insert_mode_switch_use" callback.
17567 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
17568 (frv_issues_to_branch_unit_p): Likewise.
17569 (frv_pack_insn_p): Likewise.
17570 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
17571 const rtx * (i.e. mutable rtx_def * const *) to
17572 rtx_insn * const *.
17573 * config/i386/i386-protos.h (standard_sse_constant_opcode):
17574 Strengthen first param from rtx to rtx_insn *.
17575 (output_fix_trunc): Likewise.
17576 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
17577 (output_fix_trunc): Likewise.
17578 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
17580 (min_insn_size): Likewise for param "insn".
17581 (get_mem_group): Likewise.
17582 (is_cmp): Likewise.
17583 (get_insn_path): Likewise.
17584 (get_insn_group): Likewise.
17585 (count_num_restricted): Likewise.
17586 (fits_dispatch_window): Likewise.
17587 (add_insn_window): Likewise.
17588 (add_to_dispatch_window): Likewise.
17589 (debug_insn_dispatch_info_file): Likewise.
17590 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
17592 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
17593 "cmp" and local "prev".
17594 (m32c_output_compare): Likewise for param "insn".
17595 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
17596 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
17597 (define_predicate "large_insn_p"): Likewise.
17598 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
17599 param from rtx to rtx_insn *.
17600 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
17601 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
17602 (m68k_sched_attr_size): Likewise.
17603 (sched_get_opxy_mem_type): Likewise for param "insn".
17604 (m68k_sched_attr_op_mem): Likewise.
17605 (sched_mem_operand_p): Likewise.
17606 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
17607 * config/mep/mep.c (mep_multi_slot): Likewise.
17608 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
17610 (mips_sync_loop_insns): Likewise.
17611 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
17612 method of "final_sequence" for typesafety.
17613 (mips_process_sync_loop): Strengthen param "insn" from rtx to
17615 (mips_output_sync_loop): Likewise.
17616 (mips_sync_loop_insns): Likewise.
17617 (mips_74k_agen_init): Likewise.
17618 (mips_sched_init): Use NULL rather than NULL_RTX when working with
17620 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
17621 Strengthen param "insn" from rtx to rtx_insn *.
17622 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
17624 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for param.
17625 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
17626 "insn". Use method of rtx_sequence for typesafety.
17627 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
17629 (branch_needs_nop_p): Likewise.
17630 (use_skip_p): Likewise.
17631 (pa_insn_refs_are_delayed): Likewise.
17632 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
17633 for locals "insn", "ninsn".
17634 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
17636 (is_cracked_insn): Likewise.
17637 (is_branch_slot_insn): Likewise.
17638 (is_nonpipeline_insn): Likewise.
17639 (insn_terminates_group_p): Likewise.
17640 (insn_must_be_first_in_group): Likewise.
17641 (insn_must_be_last_in_group): Likewise.
17642 (force_new_group): Likewise for param "next_insn".
17643 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
17645 (s390_sched_score): Likewise.
17646 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
17647 (rtx sfunc_uses_reg): Likewise for sole param.
17648 * config/sh/sh.c (sh_print_operand): Use insn method of
17649 final_sequence for typesafety.
17650 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
17651 Use insn method of final_sequence for typesafety.
17652 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
17653 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
17655 (eligible_for_return_delay): Likewise.
17656 (eligible_for_sibcall_delay): Likewise.
17657 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
17658 (eligible_for_return_delay): Likewise.
17659 (eligible_for_sibcall_delay): Likewise.
17660 * config/stormy16/stormy16-protos.h
17661 (xstormy16_output_cbranch_hi): Likewise for final param.
17662 (xstormy16_output_cbranch_si): Likewise.
17663 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
17664 (xstormy16_output_cbranch_si): Likewise.
17665 * config/v850/v850-protos.h (notice_update_cc): Likewise.
17666 * config/v850/v850.c (notice_update_cc): Likewise.
17668 * final.c (get_attr_length_1): Strengthen param "insn" and param
17669 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
17670 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
17671 (get_attr_min_length): Likewise.
17672 (shorten_branches): Likewise for signature of locals "length_fun"
17673 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
17674 from a checked cast and use its methods for clarity and to enable
17675 strengthening local "inner_insn" from rtx to rtx_insn *.
17676 * genattr.c (gen_attr): When writing out the prototypes of the
17677 various generated "get_attr_" functions, strengthen the params of
17678 the non-const functions from rtx to rtx_insn *.
17679 Similarly, strengthen the params of insn_default_length,
17680 insn_min_length, insn_variable_length_p, insn_current_length.
17681 (main): Similarly, strengthen the param of num_delay_slots,
17682 internal_dfa_insn_code, insn_default_latency, bypass_p,
17683 insn_latency, min_issue_delay, print_reservation,
17684 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
17685 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
17686 to hook_int_rtx_insn_unreachable.
17687 * genattrtab.c (write_attr_get): When writing out the generated
17688 "get_attr_" functions, strengthen the param "insn" from rtx to
17689 rtx_insn *, eliminating a checked cast.
17690 (make_automaton_attrs): When writing out prototypes of
17691 "internal_dfa_insn_code_", "insn_default_latency_" functions
17692 and the "internal_dfa_insn_code" and "insn_default_latency"
17693 callbacks, strengthen their params from rtx to rtx_insn *
17694 * genautomata.c (output_internal_insn_code_evaluation): When
17695 writing out code, add a checked cast from rtx to rtx_insn * when
17696 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
17697 (output_dfa_insn_code_func): Strengthen param of generated
17698 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
17699 (output_trans_func): Likewise for generated function
17700 "state_transition".
17701 (output_internal_insn_latency_func): When writing out generated
17702 function "internal_insn_latency", rename params from "insn" and
17703 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
17704 locals "insn" and "insn2" as rtx_insn * with checked casts once
17705 we've proven that we're not dealing with const0_rtx.
17706 (output_insn_latency_func): Strengthen param of generated
17707 function "insn_latency" from rtx to rtx_insn *.
17708 (output_print_reservation_func): Likewise for generated function
17709 "print_reservation".
17710 (output_insn_has_dfa_reservation_p): Likewise for generated
17711 function "insn_has_dfa_reservation_p".
17712 * hooks.c (hook_int_rtx_unreachable): Rename to...
17713 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
17714 from rtx to rtx_insn *.
17715 * hooks.h (hook_int_rtx_unreachable): Likewise.
17716 (extern int hook_int_rtx_insn_unreachable): Likewise.
17717 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
17718 (get_attr_min_length): Likewise.
17719 * recog.c (get_enabled_alternatives): Likewise.
17720 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
17721 * reorg.c (find_end_label): Introduce local rtx "pat" and
17722 strengthen local "insn" from rtx to rtx_insn *.
17723 (redundant_insn): Use insn method of "seq" rather than element for
17724 typesafety; strengthen local "control" from rtx to rtx_insn *.
17725 * resource.c (mark_referenced_resources): Add checked cast to
17726 rtx_insn * within INSN/JUMP_INSN case.
17727 (mark_set_resources): Likewise.
17728 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
17731 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17733 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
17734 param "label" from rtx to rtx_insn *.
17735 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
17737 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
17738 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
17739 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
17740 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
17741 * final.c (default_label_align_after_barrier_max_skip): Strengthen
17742 param from rtx to rtx_insn *.
17743 (default_loop_align_max_skip): Likewise.
17744 (default_label_align_max_skip): Likewise.
17745 (default_jump_align_max_skip): Likewise.
17746 * target.def (label_align_after_barrier_max_skip): Likewise.
17747 (loop_align_max_skip): Likewise.
17748 (label_align_max_skip): Likewise.
17749 (jump_align_max_skip): Likewise.
17750 * targhooks.h (default_label_align_after_barrier_max_skip): Likewise.
17751 (default_loop_align_max_skip): Likewise.
17752 (default_label_align_max_skip): Likewise.
17753 (default_jump_align_max_skip): Likewise.
17755 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17757 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
17758 from const_rtx to const rtx_insn *. Update union members from rtx
17760 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
17761 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
17762 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
17763 strengthen both params from const_rtx to const rtx_insn *.
17764 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
17765 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
17766 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
17768 * target.def (can_follow_jump): Strengthen both params from
17769 const_rtx to const rtx_insn *, and update default implementation
17770 from hook_bool_const_rtx_const_rtx_true to
17771 hook_bool_const_rtx_insn_const_rtx_insn_true.
17773 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17775 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
17776 "insn" from rtx to rtx_insn *.
17777 * sched-int.h (deps_start_bb): Likewise for 2nd param.
17779 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
17780 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17781 Anna Tikhonova <anna.tikhonova@intel.com>
17782 Ilya Tocar <ilya.tocar@intel.com>
17783 Andrey Turetskiy <andrey.turetskiy@intel.com>
17784 Ilya Verbin <ilya.verbin@intel.com>
17785 Kirill Yukhin <kirill.yukhin@intel.com>
17786 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17788 * config/i386/sse.md
17789 (define_insn "vcvtph2ps<mask_name>"): Add masking.
17790 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
17791 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
17792 (define_expand "vcvtps2ph_mask"): New.
17793 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
17794 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
17795 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
17797 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
17798 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17799 Anna Tikhonova <anna.tikhonova@intel.com>
17800 Ilya Tocar <ilya.tocar@intel.com>
17801 Andrey Turetskiy <andrey.turetskiy@intel.com>
17802 Ilya Verbin <ilya.verbin@intel.com>
17803 Kirill Yukhin <kirill.yukhin@intel.com>
17804 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17806 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
17808 (define_mode_iterator VI24_AVX512BW_1): Ditto.
17809 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
17810 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
17811 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
17812 also for TARGET_AVX512VL.
17813 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
17815 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
17817 * doc/install.texi (Options specification): add
17818 --disable-libsanitizer item.
17820 2014-09-14 James Clarke <jrtc27@jrtc27.com>
17821 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17824 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
17826 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
17827 kernel version check to avoid incrementing it after every major OS X
17829 (darwin_default_min_version): Avoid static memory buffer.
17831 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
17833 * tree.c (need_assembler_name_p): Store C++ type mangling only
17836 2014-09-13 Marek Polacek <polacek@redhat.com>
17838 * tree.c (protected_set_expr_location): Don't check whether T is
17841 2014-09-12 DJ Delorie <dj@redhat.com>
17843 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
17844 (extend_and_shift1_hipsi2): Likewise.
17845 (extend_and_shift2_hipsi2): Likewise.
17847 2014-09-12 David Malcolm <dmalcolm@redhat.com>
17849 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
17850 with NULL when dealing with an insn.
17851 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
17852 from rtx to rtx_insn *.
17853 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
17854 const_rtx to const rtx_insn *.
17855 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
17857 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
17859 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
17862 2014-09-12 Joseph Myers <joseph@codesourcery.com>
17864 * target.def (libgcc_floating_mode_supported_p): New hook.
17865 * targhooks.c (default_libgcc_floating_mode_supported_p): New
17867 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
17868 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
17869 (LIBGCC2_HAS_TF_MODE): Remove.
17870 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
17871 * doc/tm.texi: Regenerate.
17872 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
17874 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
17875 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
17876 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
17877 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
17878 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17879 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
17880 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
17881 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
17882 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
17883 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
17885 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
17886 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17887 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17888 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17889 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17890 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17891 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17892 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
17893 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
17894 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
17895 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17896 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
17897 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
17898 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
17900 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
17902 (ia64_libgcc_floating_mode_supported_p): New function.
17903 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
17904 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
17905 (IA64_NO_LIBGCC_TFMODE): Define.
17906 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
17907 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
17908 (pdp11_scalar_mode_supported_p): New function.
17909 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
17910 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
17912 2014-09-12 Richard Biener <rguenther@suse.de>
17914 PR middle-end/63237
17915 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
17917 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
17919 * tree.c (integer_each_onep): New function.
17920 * tree.h (integer_each_onep): Declare it.
17921 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
17922 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
17923 (X & 1) == 0 for vector and complex.
17925 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
17927 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
17929 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
17930 cost to spilling from integer to FP registers.
17932 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
17934 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
17936 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
17937 are now handled correctly.
17939 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
17941 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
17942 handling of CALLER_SAVE_REGS and POINTER_REGS.
17944 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
17946 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
17947 the number of hard registers.
17949 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
17950 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17951 Anna Tikhonova <anna.tikhonova@intel.com>
17952 Ilya Tocar <ilya.tocar@intel.com>
17953 Andrey Turetskiy <andrey.turetskiy@intel.com>
17954 Ilya Verbin <ilya.verbin@intel.com>
17955 Kirill Yukhin <kirill.yukhin@intel.com>
17956 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17958 * config/i386/sse.md
17959 (define_mode_iterator VI48_AVX512VL): New.
17960 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
17961 "avx512f_vternlog<mode>_maskz" and update mode iterator.
17962 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
17963 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
17964 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
17965 "avx512f_vternlog<mode>_mask" and update mode iterator.
17966 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
17967 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
17969 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
17970 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
17971 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
17972 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
17973 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
17974 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
17976 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
17977 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17978 Anna Tikhonova <anna.tikhonova@intel.com>
17979 Ilya Tocar <ilya.tocar@intel.com>
17980 Andrey Turetskiy <andrey.turetskiy@intel.com>
17981 Ilya Verbin <ilya.verbin@intel.com>
17982 Kirill Yukhin <kirill.yukhin@intel.com>
17983 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17985 * config/i386/sse.md (VI128_256): Delete.
17986 (define_mode_iterator VI124_256): New.
17987 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
17988 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
17989 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
17990 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
17991 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
17992 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
17993 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
17994 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
17996 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
17997 in presence of AVX-512.
17999 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
18000 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18001 Anna Tikhonova <anna.tikhonova@intel.com>
18002 Ilya Tocar <ilya.tocar@intel.com>
18003 Andrey Turetskiy <andrey.turetskiy@intel.com>
18004 Ilya Verbin <ilya.verbin@intel.com>
18005 Kirill Yukhin <kirill.yukhin@intel.com>
18006 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18008 * config/i386/sse.md
18009 (define_expand "<avx512>_gathersi<mode>"): Rename from
18010 "avx512f_gathersi<mode>".
18011 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
18012 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
18013 (define_expand "<avx512>_gatherdi<mode>"): Rename from
18014 "avx512f_gatherdi<mode>".
18015 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
18016 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
18018 (define_expand "<avx512>_scattersi<mode>"): Rename from
18019 "avx512f_scattersi<mode>".
18020 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
18021 (define_expand "<avx512>_scatterdi<mode>"): Rename from
18022 "avx512f_scatterdi<mode>".
18023 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
18025 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
18027 * ira.h (ira_finish_once): Delete.
18028 * ira-int.h (target_ira_int::~target_ira_int): Declare.
18029 (target_ira_int::free_ira_costs): Likewise.
18030 (target_ira_int::free_register_move_costs): Likewise.
18031 (ira_finish_costs_once): Delete.
18032 * ira.c (free_register_move_costs): Replace with...
18033 (target_ira_int::free_register_move_costs): ...this new function.
18034 (target_ira_int::~target_ira_int): Define.
18035 (ira_init): Call free_register_move_costs as a member function rather
18036 than a global function.
18037 (ira_finish_once): Delete.
18038 * ira-costs.c (free_ira_costs): Replace with...
18039 (target_ira_int::free_ira_costs): ...this new function.
18040 (ira_init_costs): Call free_ira_costs as a member function rather
18041 than a global function.
18042 (ira_finish_costs_once): Delete.
18043 * target-globals.c (target_globals::~target_globals): Call the
18044 target_ira_int destructor.
18045 * toplev.c: Include lra.h.
18046 (finalize): Call lra_finish_once rather than ira_finish_once.
18048 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
18050 * common.opt (flto-odr-type-merging): New flag.
18051 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
18052 (types_same_for_odr): Likewise.
18053 (odr_subtypes_equivalent_p): Likewise.
18054 (add_type_duplicate): Do not walk type variants.
18055 (register_odr_type): New function.
18056 * ipa-utils.h (register_odr_type): Declare.
18057 (odr_type_p): New function.
18058 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
18060 * doc/invoke.texi (-flto-odr-type-merging): Document.
18061 * tree.c (need_assembler_name_p): Compute ODR names when asked
18063 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
18065 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
18068 * config/i386/i386.c (ix86_option_override_internal): Also turn
18069 off OPTION_MASK_ABI_X32 for -m16.
18071 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
18073 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
18076 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
18079 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
18080 Directly forward to __*_DENORM_MIN__.
18082 2014-09-11 David Malcolm <dmalcolm@redhat.com>
18084 * rtl.h (LABEL_REF_LABEL): New macro.
18086 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
18087 of XEXP (, 0), where we know that we have a LABEL_REF.
18088 * cfgbuild.c (make_edges): Likewise.
18089 (purge_dead_tablejump_edges): Likewise.
18090 * cfgexpand.c (convert_debug_memory_address): Likewise.
18091 * cfgrtl.c (patch_jump_insn): Likewise.
18092 * combine.c (distribute_notes): Likewise.
18093 * cse.c (hash_rtx_cb): Likewise.
18094 (exp_equiv_p): Likewise.
18095 (fold_rtx): Likewise.
18096 (check_for_label_ref): Likewise.
18097 * cselib.c (rtx_equal_for_cselib_1): Likewise.
18098 (cselib_hash_rtx): Likewise.
18099 * emit-rtl.c (mark_label_nuses): Likewise.
18100 * explow.c (convert_memory_address_addr_space): Likewise.
18101 * final.c (output_asm_label): Likewise.
18102 (output_addr_const): Likewise.
18103 * gcse.c (add_label_notes): Likewise.
18104 * genconfig.c (walk_insn_part): Likewise.
18105 * genrecog.c (validate_pattern): Likewise.
18106 * ifcvt.c (cond_exec_get_condition): Likewise.
18107 (noce_emit_store_flag): Likewise.
18108 (noce_get_alt_condition): Likewise.
18109 (noce_get_condition): Likewise.
18110 * jump.c (maybe_propagate_label_ref): Likewise.
18111 (mark_jump_label_1): Likewise.
18112 (redirect_exp_1): Likewise.
18113 (rtx_renumbered_equal_p): Likewise.
18114 * lra-constraints.c (operands_match_p): Likewise.
18115 * reload.c (operands_match_p): Likewise.
18116 (find_reloads): Likewise.
18117 * reload1.c (set_label_offsets): Likewise.
18118 * reorg.c (get_branch_condition): Likewise.
18119 * rtl.c (rtx_equal_p_cb): Likewise.
18120 (rtx_equal_p): Likewise.
18121 * rtlanal.c (reg_mentioned_p): Likewise.
18122 (rtx_referenced_p): Likewise.
18123 (get_condition): Likewise.
18124 * sched-vis.c (print_value): Likewise.
18125 * varasm.c (const_hash_1): Likewise.
18126 (compare_constant): Likewise.
18127 (const_rtx_hash_1): Likewise.
18128 (output_constant_pool_1): Likewise.
18130 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
18132 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
18133 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
18135 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
18136 cr6_test_for_lt_reverse): Ditto.
18138 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
18141 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
18143 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
18145 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
18146 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
18147 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
18148 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
18151 (aarch64_fold_builtin): Remove all reinterpret cases.
18153 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
18155 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
18157 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
18158 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
18159 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
18160 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
18161 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
18162 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
18163 aarch64_reinterpretv2df<mode>): Delete.
18165 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
18167 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
18168 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
18169 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
18170 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
18171 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
18172 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
18173 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
18174 vreinterpret_u32_f64): Use cast.
18176 * config/aarch64/iterators.md (VD_RE): Delete.
18178 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
18180 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
18181 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
18182 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
18183 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
18184 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
18185 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
18186 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
18187 Replace inline assembler with __aarch64_vset_lane_any.
18189 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
18191 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
18193 (vmull_high_lane_s32): Likewise.
18194 (vmull_high_lane_u16): Likewise.
18195 (vmull_high_lane_u32): Likewise.
18197 2014-09-11 Jason Merrill <jason@redhat.com>
18200 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
18202 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
18205 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
18206 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
18207 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
18209 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18210 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18211 Anna Tikhonova <anna.tikhonova@intel.com>
18212 Ilya Tocar <ilya.tocar@intel.com>
18213 Andrey Turetskiy <andrey.turetskiy@intel.com>
18214 Ilya Verbin <ilya.verbin@intel.com>
18215 Kirill Yukhin <kirill.yukhin@intel.com>
18216 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18218 * config/i386/sse.md
18219 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
18220 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
18221 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
18223 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
18224 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
18226 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
18228 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
18229 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
18230 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
18231 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
18232 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
18233 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
18234 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
18235 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
18237 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
18239 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
18240 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
18241 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
18243 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
18245 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
18246 to access removed nodes.
18248 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
18250 PR tree-optimization/63186
18251 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
18252 (mark_nonssa_use): Likewise.
18253 (verify_non_ssa_vars): Verify all header blocks for label
18256 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18257 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18258 Anna Tikhonova <anna.tikhonova@intel.com>
18259 Ilya Tocar <ilya.tocar@intel.com>
18260 Andrey Turetskiy <andrey.turetskiy@intel.com>
18261 Ilya Verbin <ilya.verbin@intel.com>
18262 Kirill Yukhin <kirill.yukhin@intel.com>
18263 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18265 * config/i386/sse.md
18266 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
18267 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
18268 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
18269 "<avx2_avx512f>_permvar<mode><mask_name>".
18270 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
18271 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
18272 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
18273 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
18275 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
18276 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
18277 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
18278 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
18280 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
18282 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
18283 V2DF, V4SF, DF, and DI modes.
18284 (vsx_fmav2df2): Likewise.
18285 (vsx_float_fix_<mode>2): Likewise.
18286 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
18288 2014-09-10 Xinliang David Li <davidxl@google.com>
18291 * config/arm/arm.md (movcond_addsi): Handle case where source
18292 and target operands are the same.
18294 2014-09-10 David Malcolm <dmalcolm@redhat.com>
18296 * final.c (this_is_asm_operands): Strengthen this variable from
18297 rtx to const rtx_insn *.
18298 * output.h (this_is_asm_operands): Likewise.
18299 * rtl-error.c (location_for_asm): Strengthen param "insn" from
18300 const_rtx to const rtx_insn *.
18301 (diagnostic_for_asm): Likewise.
18302 * rtl-error.h (error_for_asm): Likewise.
18303 (warning_for_asm): Likewise.
18305 2014-09-10 David Malcolm <dmalcolm@redhat.com>
18307 * genextract.c (print_header): When writing out insn_extract to
18308 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
18309 * recog.h (insn_extract): Strengthen the param from rtx to
18312 2014-09-10 Mike Stump <mikestump@comcast.net>
18314 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
18317 2014-09-10 Martin Jambor <mjambor@suse.cz>
18319 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
18320 (analyze): Do not set analyze flag if expand_thunk returns false;.
18321 (create_wrapper): Likewise.
18322 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
18324 2014-09-10 Martin Jambor <mjambor@suse.cz>
18327 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
18328 new decl properly. Analyze the new thunk if it is expanded.
18330 2014-09-10 Andreas Schwab <schwab@suse.de>
18332 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
18333 [USED_FOR_TARGET]: Define.
18335 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
18337 * config/mips/mips.c (mips_secondary_reload_class): Handle
18340 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
18342 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
18345 2014-09-10 Jakub Jelinek <jakub@redhat.com>
18347 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
18348 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
18349 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
18350 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
18351 flag_delete_null_pointer_checks for them.
18352 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
18353 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
18354 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
18355 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
18356 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
18358 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
18359 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
18360 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
18361 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
18362 * doc/invoke.texi (-fsanitize=nonnull-attribute,
18363 -fsanitize=returns-nonnull-attribute): Document.
18365 * ubsan.h (struct ubsan_mismatch_data): Removed.
18366 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
18367 * ubsan.c (ubsan_source_location): For unknown locations,
18368 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
18369 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
18370 Allow more than one location and arbitrary extra arguments passed
18371 in ... instead of through MISMATCH pointer.
18372 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
18373 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
18374 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
18377 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18378 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18379 Anna Tikhonova <anna.tikhonova@intel.com>
18380 Ilya Tocar <ilya.tocar@intel.com>
18381 Andrey Turetskiy <andrey.turetskiy@intel.com>
18382 Ilya Verbin <ilya.verbin@intel.com>
18383 Kirill Yukhin <kirill.yukhin@intel.com>
18384 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18386 * config/i386/sse.md
18387 (define_mode_iterator VI48F): New.
18388 (define_insn "<avx512>_compress<mode>_mask"): Rename from
18389 "avx512f_compress<mode>_mask" and update mode iterator.
18390 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
18391 "avx512f_compressstore<mode>_mask" and update mode iterator.
18392 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
18393 "avx512f_expand<mode>_maskz" and update mode iterator.
18394 (define_insn "<avx512>_expand<mode>_mask"): Rename from
18395 "avx512f_expand<mode>_mask" and update mode iterator.
18397 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18398 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18399 Anna Tikhonova <anna.tikhonova@intel.com>
18400 Ilya Tocar <ilya.tocar@intel.com>
18401 Andrey Turetskiy <andrey.turetskiy@intel.com>
18402 Ilya Verbin <ilya.verbin@intel.com>
18403 Kirill Yukhin <kirill.yukhin@intel.com>
18404 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18406 * config/i386/i386.c
18407 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
18408 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
18409 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
18410 avx512dq_rangepv4sf_mask.
18411 * config/i386/sse.md
18412 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
18414 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
18415 (define_insn "reduces<mode>"): Ditto.
18416 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
18418 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
18419 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
18420 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
18422 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18423 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18424 Anna Tikhonova <anna.tikhonova@intel.com>
18425 Ilya Tocar <ilya.tocar@intel.com>
18426 Andrey Turetskiy <andrey.turetskiy@intel.com>
18427 Ilya Verbin <ilya.verbin@intel.com>
18428 Kirill Yukhin <kirill.yukhin@intel.com>
18429 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18431 * config/i386/i386.c
18432 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
18433 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
18434 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
18435 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
18436 avx512vl_getmantv2df_mask.
18437 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
18438 avx512f_vgetmantv4sf_round.
18439 * config/i386/sse.md
18440 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
18441 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
18443 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
18444 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
18445 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
18446 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
18448 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
18449 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
18450 update mode iterator.
18452 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
18453 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
18456 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
18457 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
18458 update mode iterator.
18459 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
18460 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
18463 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
18464 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
18466 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
18467 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
18468 update mode iterator.
18469 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
18470 "avx512f_getmant<mode><round_saeonly_name>".
18472 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
18475 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
18477 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18478 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18479 Anna Tikhonova <anna.tikhonova@intel.com>
18480 Ilya Tocar <ilya.tocar@intel.com>
18481 Andrey Turetskiy <andrey.turetskiy@intel.com>
18482 Ilya Verbin <ilya.verbin@intel.com>
18483 Kirill Yukhin <kirill.yukhin@intel.com>
18484 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18486 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
18487 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
18488 (define_mode_iterator FMAMODE_AVX512): New.
18489 (define_mode_iterator FMAMODE): Remove conditions.
18490 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
18491 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
18492 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
18494 (define_mode_iterator FMAMODE_NOVF512): Remove.
18495 (define_insn "*fma_fmadd_<mode>"): Rename from
18496 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
18497 FMAMODE mode iterator.
18498 (define_mode_iterator VF_SF_AVX512VL): New.
18499 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
18500 Use VF_SF_AVX512VL mode iterator.
18501 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
18502 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
18504 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
18505 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18507 (define_insn "*fma_fmsub_<mode>"): Rename from
18508 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
18509 FMAMODE mode iterator.
18510 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
18511 Use VF_SF_AVX512VL mode iterator.
18512 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
18513 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
18515 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
18516 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18518 (define_insn "*fma_fnmadd_<mode>"): Rename from
18519 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
18520 use FMAMODE mode iterator.
18521 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
18522 Use VF_SF_AVX512VL mode iterator.
18523 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
18524 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
18526 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
18527 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18529 (define_insn "*fma_fnmsub_<mode>"): Rename from
18530 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
18531 FMAMODE mode iterator.
18532 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
18533 Use VF_SF_AVX512VL mode iterator.
18534 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
18535 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
18537 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
18538 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18540 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
18541 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
18542 use VF_AVX512VL mode iterator.
18543 (define_insn "*fma_fmaddsub_<mode>"): Rename from
18544 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
18545 remove subst usage.
18546 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
18547 Use VF_SF_AVX512VL mode iterator.
18548 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
18549 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
18551 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
18552 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18554 (define_insn "*fma_fmsubadd_<mode>"): Rename from
18555 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
18556 remove usage of subst.
18557 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
18558 Use VF_SF_AVX512VL mode iterator.
18559 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
18560 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
18562 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
18563 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18566 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
18569 * calls.c (precompute_arguments): Check
18570 promoted_for_signed_and_unsigned_p and set the promoted mode.
18571 (promoted_for_signed_and_unsigned_p): New function.
18572 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
18573 and set the promoted mode.
18574 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
18575 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
18576 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
18578 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18580 * opth-gen.awk: Generate mapping from cpp message reasons to the
18581 options that enable them.
18582 * doc/options.texi (CppReason): Document.
18584 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18586 * doc/invoke.texi (Wnormalized=): Update.
18588 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
18591 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
18592 operands. Split off the constant operand alternative to ...
18593 (*bool<mode>3_imm): New.
18595 2014-09-09 David Malcolm <dmalcolm@redhat.com>
18597 * rtl.h (single_set_2): Strengthen first param from const_rtx to
18598 const rtx_insn *, and move prototype to above...
18599 (single_set): ...this. Convert this from a macro to an inline
18600 function, enforcing the requirement that the param is a const
18602 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
18604 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
18605 Strengthen both params from rtx to rtx_insn *.
18606 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
18607 Likewise; introduce locals "producer_set", "consumer_set", using
18608 them in place of "producer" and "consumer" when dealing with SET
18610 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
18611 when invoking single_set in region guarded by INSN_P.
18612 (avr_out_bitop): Likewise.
18613 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
18614 region guarded by GET_CODE check, using methods to strengthen
18615 local "this_insn" from rtx to rtx_insn *, and for clarity.
18616 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
18617 Strengthen local "insn" from rtx to rtx_insn *.
18618 (define_insn_and_split "xload<mode>_A"): Likewise.
18619 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
18621 (find_load): Likewise for return type.
18622 (workaround_speculation): Likewise for both locals named
18624 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
18626 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
18628 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
18630 * config/h8300/h8300.c (notice_update_cc): Likewise.
18631 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
18632 "insn" and "dep_insn".
18633 (exact_store_load_dependency): Likewise for both params.
18634 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
18635 since this now clashes with inline function. Instead, delay
18636 calling single_set until the point where its needed, and then
18637 assign the result to "compare_set" and rework the conditional that
18639 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
18640 local "last" from rtx to rtx_insn *.
18641 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
18643 (mips_store_data_bypass_p): Likewise for both params.
18644 * config/mips/mips.c (mips_load_store_insns): Likewise for second
18646 (mips_store_data_bypass_p): Likewise for both params.
18647 (mips_orphaned_high_part_p): Likewise for param "insn".
18648 * config/mn10300/mn10300.c (extract_bundle): Likewise.
18649 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
18650 Introduce local rtx "insn2_pat".
18651 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
18653 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
18654 Introduce local rtx "set", using it in place of "insn" for the
18655 result of single_set. This appears to fix a bug, since the call
18656 to find_regno_note on a SET does nothing.
18657 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
18658 params from rtx to rtx_insn *.
18659 (set_to_load_agen): Likewise.
18660 * config/s390/s390.c (s390_label_align): Likewise for local
18661 "prev_insn". Introduce new rtx locals "set" and "src", using
18662 them in place of "prev_insn" for the results of single_set
18663 and SET_SRC respectively.
18664 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
18665 Introduce new rtx local "set" using in place of "jump" for the
18666 result of single_set. Use SET_SRC (set) rather than plain
18668 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
18670 (noncall_uses_reg): Likewise.
18671 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
18672 guarded by GET_CODE check, using its methods for clarity, and to
18673 enable strengthening local "this_insn" from rtx to rtx_insn *.
18674 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
18675 "insn" from rtx to rtx_insn *.
18676 (define_expand "umulhisi3"): Likewise.
18677 (define_expand "smulsi3_highpart"): Likewise.
18678 (define_expand "umulsi3_highpart"): Likewise.
18679 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
18680 local "after". Replace GET_CODE check with a dyn_cast,
18681 introducing new local rtx_sequence * "seq", using insn method for
18684 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
18685 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
18686 place of "insn" once we're dealing with patterns rather than the
18688 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
18689 (scan_trace): Likewise for local "elt", updating lookups within
18690 sequence to use insn method rather than element method.
18691 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
18693 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
18694 * ifcvt.c (noce_try_abs): Likewise for local "insn".
18695 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
18696 invoking single_set.
18697 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
18698 "insn" from rtx to rtx_insn *.
18699 (skip_usage_debug_insns): Likewise for return type, adding a
18701 (check_secondary_memory_needed_p): Likewise for local "insn".
18702 (inherit_reload_reg): Likewise.
18703 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
18704 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
18706 (store_data_bypass_p): Likewise for both params.
18707 (if_test_bypass_p): Likewise.
18708 * recog.h (store_data_bypass_p): Likewise for both params.
18709 (if_test_bypass_p): Likewise.
18710 * reload.c (find_equiv_reg): Likewise for local "where".
18711 * reorg.c (delete_jump): Likewise for param "insn".
18712 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
18713 to const rtx_insn *.
18714 * store-motion.c (replace_store_insn): Likewise for param "del".
18715 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
18716 and use its methods for clarity, and to strengthen local "del"
18717 from rtx to rtx_insn *.
18718 (build_store_vectors): Use insn method of "st" when calling
18719 replace_store_insn for typesafety and clarity.
18721 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18723 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
18724 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
18725 on how to make it legal in future.
18727 2014-09-09 David Malcolm <dmalcolm@redhat.com>
18729 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
18731 (restinsn): Likewise.
18732 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
18733 Likewise for param.
18734 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
18736 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
18738 (arc_hazard): Likewise for both params.
18739 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
18740 checked casts to rtx_sequence * and uses of the insn method for
18742 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
18743 (arc_adjust_insn_length): Likewise for param "insn".
18744 (struct insn_length_parameters_s): Likewise for first param of
18745 "get_variants" callback field.
18746 (arc_get_insn_variants): Likewise for first param and local
18747 "inner". Replace a check of GET_CODE with a dyn_cast to
18748 rtx_sequence *, using methods for type-safety and clarity.
18749 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
18750 rtx_sequence * and uses of the insn method for type-safety when
18751 invoking arc_adjust_insn_length.
18752 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
18754 (arm_address_offset_is_imm): Likewise.
18755 (struct tune_params): Likewise for params 1 and 3 of the
18756 "sched_adjust_cost" callback field.
18757 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
18758 params 1 and 3 ("insn" and "dep").
18759 (xscale_sched_adjust_cost): Likewise.
18760 (fa726te_sched_adjust_cost): Likewise.
18761 (cortexa7_older_only): Likewise for param "insn".
18762 (cortexa7_younger): Likewise.
18763 (arm_attr_length_move_neon): Likewise.
18764 (arm_address_offset_is_imm): Likewise.
18765 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
18766 * config/avr/avr.c (avr_notice_update_cc): Likewise.
18767 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
18768 (workaround_speculation): Likewise for local "last_condjump".
18769 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
18770 (shadow_or_blockage_p): Likewise.
18771 (get_unit_reqs): Likewise.
18772 (get_unit_operand_masks): Likewise.
18773 (c6x_registers_update): Likewise.
18774 (returning_call_p): Likewise.
18775 (can_use_callp): Likewise.
18776 (convert_to_callp): Likewise.
18777 (find_last_same_clock): Likwise for local "t".
18778 (reorg_split_calls): Likewise for local "shadow".
18779 (hwloop_pattern_reg): Likewise for param "insn".
18780 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
18781 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
18782 (frv_extract_membar): Likewise.
18783 (frv_optimize_membar_local): Strengthen param "last_membar" from
18784 rtx * to rtx_insn **.
18785 (frv_optimize_membar_global): Strengthen param "membar" from rtx
18787 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
18789 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
18790 both params from rtx to rtx_insn *.
18791 (ia64_ld_address_bypass_p): Likewise.
18792 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
18794 (ia64_safe_type): Likewise.
18795 (group_barrier_needed): Likewise.
18796 (safe_group_barrier_needed): Likewise.
18797 (ia64_single_set): Likewise.
18798 (is_load_p): Likewise.
18799 (record_memory_reference): Likewise.
18800 (get_mode_no_for_insn): Likewise.
18801 (important_for_bundling_p): Likewise.
18802 (unknown_for_bundling_p): Likewise.
18803 (ia64_st_address_bypass_p): Likewise for both params.
18804 (ia64_ld_address_bypass_p): Likewise.
18805 (expand_vselect): Introduce new local rtx_insn * "insn", using it
18806 in place of rtx "x" after the emit_insn call.
18807 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
18808 Strengthen param from rtx to rtx_insn *.
18809 (ix86_agi_dependent): Likewise for both params.
18810 (ix86_attr_length_immediate_default): Likewise for param 1.
18811 (ix86_attr_length_address_default): Likewise for param.
18812 (ix86_attr_length_vex_default): Likewise for param 1.
18813 * config/i386/i386.c (ix86_attr_length_immediate_default):
18814 Likewise for param "insn".
18815 (ix86_attr_length_address_default): Likewise.
18816 (ix86_attr_length_vex_default): Likewise.
18817 (ix86_agi_dependent): Likewise for both params.
18818 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
18819 (vselect_insn): Likewise for this variable.
18820 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
18822 (m68k_sched_attr_opy_type): Likewise.
18823 * config/m68k/m68k.c (sched_get_operand): Likewise.
18824 (sched_attr_op_type): Likewise.
18825 (m68k_sched_attr_opx_type): Likewise.
18826 (m68k_sched_attr_opy_type): Likewise.
18827 (sched_get_reg_operand): Likewise.
18828 (sched_get_mem_operand): Likewise.
18829 (m68k_sched_address_bypass_p): Likewise for both params.
18830 (sched_get_indexed_address_scale): Likewise.
18831 (m68k_sched_indexed_address_bypass_p): Likewise.
18832 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
18833 (m68k_sched_indexed_address_bypass_p): Likewise.
18834 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
18835 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
18837 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
18838 params from rtx to rtx_insn *.
18839 (mips_fmadd_bypass): Likewise.
18840 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
18841 (mips_linked_madd_p): Likewise.
18842 (mips_macc_chains_last_hilo): Likewise for this variable.
18843 (mips_macc_chains_record): Likewise for param.
18844 (vr4130_last_insn): Likewise for this variable.
18845 (vr4130_swap_insns_p): Likewise for both params.
18846 (mips_ls2_variable_issue): Likewise for param.
18847 (mips_need_noat_wrapper_p): Likewise for param "insn".
18848 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
18849 in place of "x" after the emit_insn.
18850 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
18851 params from rtx to rtx_insn *.
18852 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
18853 (pa_combine_instructions): Introduce local "par" for result of
18854 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
18856 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
18857 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
18858 (rl78_alloc_physical_registers_op1): Likewise.
18859 (rl78_alloc_physical_registers_op2): Likewise.
18860 (rl78_alloc_physical_registers_ro1): Likewise.
18861 (rl78_alloc_physical_registers_cmp): Likewise.
18862 (rl78_alloc_physical_registers_umul): Likewise.
18863 (rl78_alloc_address_registers_macax): Likewise.
18864 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
18865 * config/s390/predicates.md (execute_operation): Likewise for
18867 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
18869 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
18870 (addr_generation_dependency_p): Likewise for param "insn".
18871 (s390_agen_dep_p): Likewise for both params.
18872 (s390_fpload_toreg): Likewise for param "insn".
18873 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
18874 * config/sh/sh.c (sh_loop_align): Likewise for param and local
18876 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
18877 * config/sh/sh_treg_combine.cc
18878 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
18880 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
18881 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
18882 "and_insn", "load", "shift".
18883 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
18885 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
18886 for XEXP (note, 0) of the REG_CC_SETTER note.
18887 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
18888 rtx_insn *, eliminating a checked cast made redundant by this.
18889 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
18891 * genattr.c (main): When writing out the prototype to
18892 const_num_delay_slots, strengthen the param from rtx to
18894 * genattrtab.c (write_const_num_delay_slots): Likewise when
18895 writing out the implementation of const_num_delay_slots.
18896 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
18897 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
18898 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
18899 favor of new rtx locals "src" and "set" and new local rtx_insn *
18901 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
18903 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
18904 locals "cond", "if_then_else", "set" and new rtx_insn * locals
18906 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
18907 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
18908 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
18909 the top-level scope, replacing with new more tightly-scoped rtx
18910 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
18911 "new_insn", "copy_of_insn_b", and make local rtx "set" more
18913 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
18915 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
18917 (ira_setup_alts): Likewise for param "insn".
18918 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
18919 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
18921 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
18922 new more-tightly scoped rtx locals "add3_insn", "insn",
18923 "add2_insn" and rtx_insn * "move_insn".
18924 * postreload-gcse.c (eliminate_partially_redundant_load): Add
18925 checked cast on result of gen_move_insn when invoking
18927 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
18929 (verify_changes): Add a checked cast on "object" when invoking
18931 (extract_insn_cached): Strengthen param "insn" from rtx to
18933 (extract_constrain_insn_cached): Likewise.
18934 (extract_insn): Likewise.
18935 * recog.h (insn_invalid_p): Likewise for param 1.
18936 (recog_memoized): Likewise for param.
18937 (extract_insn): Likewise.
18938 (extract_constrain_insn_cached): Likewise.
18939 (extract_insn_cached): Likewise.
18940 * reload.c (can_reload_into): Likewise for local "test_insn".
18941 * reload.h (cleanup_subreg_operands): Likewise for param.
18942 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
18943 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
18944 result of emit_insn. Remove a checked cast made redundant by this
18946 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
18948 * sel-sched.c (get_reg_class): Likewise.
18950 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
18951 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18953 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
18954 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
18956 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
18958 2014-09-09 David Malcolm <dmalcolm@redhat.com>
18960 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
18961 const rtx_insn *, and from rtx to rtx_insn * for the other
18962 overloaded variant.
18963 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
18964 INSN_LOCATION, since we know INSN_P holds.
18965 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
18966 (insn_file): Likewise.
18967 (insn_scope): Likewise.
18968 (insn_location): Likewise.
18970 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
18971 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
18972 for the result of gen_load_const_gp.
18973 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
18974 param from rtx to rtx_insn *.
18975 * config/rs6000/rs6000.c (output_call): Likewise.
18976 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
18977 introducing a checked cast to rtx_sequence * and use of the insn
18979 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
18980 from rtx to rtx_insn *.
18981 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
18982 (insn_line): Likewise.
18983 (insn_file): Likewise.
18984 (insn_location): Likewise.
18985 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
18986 from rtx to rtx_insn *.
18987 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
18988 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
18989 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
18990 via a checked cast.
18991 * reorg.c (relax_delay_slots): Strengthen locals named "after"
18992 from rtx to rtx_insn *; use methods of "pat" for type-safety.
18994 2014-09-09 David Malcolm <dmalcolm@redhat.com>
18996 * combine.c (try_combine): Eliminate checked cast on result of
18998 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
18999 autogenerated one by strengthening the return type and params 2 and 3
19000 from rtx to rtx_insn *, and by naming the params.
19001 * gengenrtl.c (special_rtx): Add INSN to those that are
19003 * rtl.h (gen_rtx_INSN): New prototype.
19005 2014-09-09 David Malcolm <dmalcolm@redhat.com>
19007 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
19009 (no_equiv): Likewise.
19010 (update_equiv_regs): Likewise.
19011 (setup_reg_equiv): Likewise. Strengthen locals "elem",
19012 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
19013 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
19015 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
19016 from rtx to rtx_insn_list *.
19017 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
19018 rtx_insn_list * and use methods for clarity and typesafety.
19019 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
19021 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
19022 redundant check on INSN_P (insns): this cannot hold, as "insns" is
19023 an INSN_LIST, not an insn.
19024 (reverse_equiv_p): Strengthen local "insns" from rtx to
19025 rtx_insn_list * and use methods for clarity and typesafety.
19026 (contains_reloaded_insn_p): Likewise for local "list".
19028 2014-09-09 Jiong Wang <jiong.wang@arm.com>
19030 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
19031 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
19032 (arm_builtin_vectorized_function): Likewise.
19033 * config/arm/arm_neon_builtins.def: New macro for copysignf.
19034 * config/arm/neon.md (neon_copysignf<mode>): New pattern for
19037 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
19039 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
19040 * builtins.h (default_target_builtins): Likewise.
19041 * gcse.h (default_target_gcse): Likewise.
19042 * target-globals.h (target_globals): Add a destructor. Convert
19043 void-pointer fields back to their real type and change from
19044 GTY((atomic)) to GTY((skip)).
19045 (restore_target_globals): Remove casts accordingly.
19046 * target-globals.c (save_target_globals): Use XCNEW rather than
19047 ggc_internal_cleared_alloc to allocate non-GC structures.
19048 Use ggc_cleared_alloc to allocate the target_globals structure
19050 (target_globals::~target_globals): Define.
19052 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19054 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
19055 mnemonic instead of fldmfdd.
19056 * config/arm/arm.c (vfp_output_fstmd): Rename to...
19057 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
19058 Output vpush when address register is SP.
19059 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
19060 (vfp_output_vstmd): ... This.
19061 * config/arm/vfp.md (push_multi_vfp): Update call to
19064 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19066 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
19068 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19070 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
19071 (*sqrtdf2_vfp): Likewise.
19072 (*cmpsf_vfp): Likewise.
19073 (*cmpsf_trap_vfp): Likewise.
19074 (*cmpdf_vfp): Likewise.
19075 (*cmpdf_trap_vfp): Likewise.
19077 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19079 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
19080 (*truncdfsf2_vfp): Likewise.
19081 (*truncsisf2_vfp): Likewise.
19082 (*truncsidf2_vfp): Likewise.
19083 (fixuns_truncsfsi2): Likewise.
19084 (fixuns_truncdfsi2): Likewise.
19085 (*floatsisf2_vfp): Likewise.
19086 (*floatsidf2_vfp): Likewise.
19087 (floatunssisf2): Likewise.
19088 (floatunssidf2): Likewise.
19090 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19092 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
19093 (*muldf3_vfp): Likewise.
19094 (*mulsf3negsf_vfp): Likewise.
19095 (*muldf3negdf_vfp): Likewise.
19096 (*mulsf3addsf_vfp): Likewise.
19097 (*muldf3adddf_vfp): Likewise.
19098 (*mulsf3subsf_vfp): Likewise.
19099 (*muldf3subdf_vfp): Likewise.
19100 (*mulsf3negsfaddsf_vfp): Likewise.
19101 (*fmuldf3negdfadddf_vfp): Likewise.
19102 (*mulsf3negsfsubsf_vfp): Likewise.
19103 (*muldf3negdfsubdf_vfp): Likewise.
19105 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19107 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
19108 (*absdf2_vfp): Likewise.
19109 (*negsf2_vfp): Likewise.
19110 (*negdf2_vfp): Likewise.
19111 (*addsf3_vfp): Likewise.
19112 (*adddf3_vfp): Likewise.
19113 (*subsf3_vfp): Likewise.
19114 (*subdf3_vfp): Likewise.
19115 (*divsf3_vfp): Likewise.
19116 (*divdf3_vfp): Likewise.
19118 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19120 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
19122 (arm_print_operand): Don't convert real values to decimal
19123 representation in default case.
19124 (fp_immediate_constant): Delete.
19125 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
19126 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
19128 (*thumb2_movsi_vfp): Likewise.
19129 (*movdi_vfp): Likewise.
19130 (*movdi_vfp_cortexa8): Likewise.
19131 (*movhf_vfp_neon): Likewise.
19132 (*movhf_vfp): Likewise.
19133 (*movsf_vfp): Likewise.
19134 (*thumb2_movsf_vfp): Likewise.
19135 (*movdf_vfp): Likewise.
19136 (*thumb2_movdf_vfp): Likewise.
19137 (*movsfcc_vfp): Likewise.
19138 (*thumb2_movsfcc_vfp): Likewise.
19139 (*movdfcc_vfp): Likewise.
19140 (*thumb2_movdfcc_vfp): Likewise.
19142 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
19144 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
19145 (-mtune): Likewise.
19148 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19151 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
19152 Use qualifier_immediate for last operand. Rename to...
19153 (aarch64_types_ternop_lane_qualifiers): ... This.
19154 (TYPES_QUADOP): Rename to...
19155 (TYPES_TERNOP_LANE): ... This.
19156 (aarch64_simd_expand_args): Return const0_rtx when encountering user
19157 error. Change return of 0 to return of NULL_RTX.
19158 (aarch64_crc32_expand_builtin): Likewise.
19159 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
19160 ICE when expanding unknown builtin.
19161 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
19162 TERNOP_LANE qualifiers.
19163 (sqdmlsl_lane): Likewise.
19164 (sqdmlal_laneq): Likewise.
19165 (sqdmlsl_laneq): Likewise.
19166 (sqdmlal2_lane): Likewise.
19167 (sqdmlsl2_lane): Likewise.
19168 (sqdmlal2_laneq): Likewise.
19169 (sqdmlsl2_laneq): Likewise.
19171 2014-09-09 Nick Clifton <nickc@redhat.com>
19173 * doc/invoke.texi (Optimization Options): Add missing @gol to the
19175 (S/390 and zSeries Options): Remove superfluous word from the
19176 description of the -mhotpatch option.
19178 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
19180 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
19181 * ira.c: #include "shrink-wrap.h"
19182 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
19183 * ifcvt.c: #include "shrink-wrap.h"
19184 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
19186 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
19188 * common/config/picochip/picochip-common.c: Remove.
19189 * config.gcc: Remove support for picochip.
19190 * config/picochip/constraints.md: Remove.
19191 * config/picochip/dfa_space.md: Remove.
19192 * config/picochip/dfa_speed.md: Remove.
19193 * config/picochip/picochip-protos.h: Remove.
19194 * config/picochip/picochip.c: Remove.
19195 * config/picochip/picochip.h: Remove.
19196 * config/picochip/picochip.md: Remove.
19197 * config/picochip/picochip.opt: Remove.
19198 * config/picochip/predicates.md: Remove.
19199 * config/picochip/t-picochip: Remove.
19200 * doc/md.texi: Don't document picochi.
19202 2014-09-08 David Malcolm <dmalcolm@redhat.com>
19204 * basic-block.h (control_flow_insn_p): Strengthen param from
19205 const_rtx to const rtx_insn *.
19206 * cfgbuild.c (control_flow_insn_p): Likewise.
19208 2014-09-08 David Malcolm <dmalcolm@redhat.com>
19210 * gcse.c (modify_mem_list): Strengthen this variable from
19211 vec<rtx> * to vec<rtx_insn *> *.
19212 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
19214 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
19215 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
19216 (record_last_mem_set_info): Strengthen param "insn" from rtx to
19218 (record_last_set_info): Likewise for local "last_set_insn".
19220 2014-09-08 DJ Delorie <dj@redhat.com>
19222 * doc/invoke.texi (MSP430 Options): Add -minrt.
19224 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19226 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
19227 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
19228 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
19230 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
19232 (adjust_splat): New function.
19233 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
19234 (dump_swap_insn_table): Add case for SH_SPLAT.
19236 2014-09-08 Richard Biener <rguenther@suse.de>
19239 * tree-inline.c (copy_loops): The source loop header should
19240 always be non-NULL.
19241 (tree_function_versioning): If loops need fixup after removing
19242 unreachable blocks fix them.
19243 * omp-low.c (simd_clone_adjust): Do not add incr block to
19244 loop under construction.
19246 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
19248 * config/aarch64/aarch64-builtins.c
19249 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
19251 2014-09-08 Joseph Myers <joseph@codesourcery.com>
19253 * config/i386/cygming.h (TF_SIZE): Remove.
19254 * config/i386/darwin.h (TF_SIZE): Remove.
19255 * config/i386/dragonfly.h (TF_SIZE): Remove.
19256 * config/i386/freebsd.h (TF_SIZE): Remove.
19257 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
19258 * config/i386/openbsdelf.h (TF_SIZE): Remove.
19259 * config/i386/sol2.h (TF_SIZE): Remove.
19260 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
19261 * config/ia64/linux.h (TF_SIZE): Remove.
19262 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
19263 * doc/tm.texi: Regenerate.
19264 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
19266 2014-09-08 Joseph Myers <joseph@codesourcery.com>
19268 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
19270 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
19272 * doc/tm.texi: Regenerate.
19273 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
19275 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
19276 * config/cris/cris.h (__make_dp): Remove.
19278 2014-09-08 Richard Biener <rguenther@suse.de>
19281 * cfgloop.c (mark_loop_for_removal): Track former header
19283 * cfgloop.h (struct loop): Add former_header member unconditionally.
19284 * loop-init.c (fix_loop_structure): Enable bogus loop removal
19285 diagnostic unconditionally.
19287 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19290 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
19291 constraint for operand0 and remove write only modifier from operand3.
19293 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
19295 PR rtl-optimization/62208
19296 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
19297 rather than const0_rtx in eq/ne-xor simplifications.
19299 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
19301 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
19302 (arc_output_mi_thunk): Likewise.
19304 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
19305 arguments to silence bogus warning.
19307 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
19309 PR middle-end/63171
19310 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
19312 2014-09-06 Tom de Vries <tom@codesourcery.com>
19314 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
19315 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
19316 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
19318 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
19321 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
19322 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
19324 2014-09-05 Easwaran Raman <eraman@google.com>
19326 PR rtl-optimization/62146
19327 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
19328 hoisted instruction unconditional.
19330 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
19333 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
19334 Do not allow any_mask_operand for operands[2].
19335 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
19337 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19339 * config/arc/arc.c (arc_print_operand): Use insn method of
19340 final_sequence for type-safety.
19341 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
19342 "insn" from rtx to rtx_insn *.
19343 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
19344 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
19345 Likewise for locals "branch", "label".
19346 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
19347 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
19348 (same_cmp_following_p): Likewise for locals "i2", "i3".
19349 * config/sh/sh_optimize_sett_clrt.cc
19350 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
19351 param "cbranch_insn".
19352 * function.c (convert_jumps_to_returns): Likewis for local "jump".
19353 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
19354 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
19356 (condjump_p): Likewise.
19357 (condjump_in_parallel_p): Likewise.
19358 (pc_set): Likewise.
19359 (any_uncondjump_p): Likewise.
19360 (any_condjump_p): Likewise.
19361 (condjump_label): Likewise.
19362 (returnjump_p): Strengthen param "insn" from rtx to
19364 (onlyjump_p): Strengthen param "insn" from const_rtx to
19366 (jump_to_label_p): Likewise.
19367 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
19368 (invert_jump): Likewise.
19369 * reorg.c (simplejump_or_return_p): Add checked cast when calling
19371 (get_jump_flags): Strengthen param "insn" from rtx to
19373 (get_branch_condition): Likewise.
19374 (condition_dominates_p): Likewise.
19375 (make_return_insns): Move declaration of local "pat" earlier, to
19376 after we've handled NONJUMP_INSN_P and non-sequences, using its
19377 methods to simplify the code and for type-safety.
19378 * rtl.h (find_constant_src): Strengthen param from const_rtx to
19380 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
19381 (condjump_p): Strengthen param from const_rtx to
19383 (any_condjump_p): Likewise.
19384 (any_uncondjump_p): Likewise.
19385 (pc_set): Likewise.
19386 (condjump_label): Likewise.
19387 (simplejump_p): Likewise.
19388 (returnjump_p): Likewise.
19389 (onlyjump_p): Likewise.
19390 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
19391 (invert_jump): Likewise.
19392 (condjump_in_parallel_p): Strengthen param from const_rtx to
19394 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
19395 to const rtx_insn *.
19396 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
19397 to const rtx_insn *.
19398 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
19400 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19402 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
19403 above the conditional, and convert the check on GET_CODE to a
19404 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
19405 the conditional. Simplify the conditional by using methods of
19408 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19410 * haifa-sched.c (check_clobbered_conditions): Strengthen local
19411 "link" from rtx to rtx_insn_list *, and use its methods for
19412 clarity and type-safety.
19413 (toggle_cancelled_flags): Likewise.
19414 (restore_last_backtrack_point): Likewise.
19415 (queue_to_ready): Use insn method of "link" in one place.
19416 (schedule_block): Strengthen local "link" from rtx to
19417 rtx_insn_list *, and use its methods for clarity and type-safety.
19419 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19421 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
19422 param "insn" from const_rtx to const rtx_insn *.
19423 (sched_get_reverse_condition_uncached): Likewise.
19424 (sched_get_condition_with_rev): Likewise.
19425 (sched_has_condition_p): Likewise.
19426 (sched_insns_conditions_mutex_p): Likewise for both params.
19427 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
19428 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
19429 (setup_insn_reg_uses): Move local "list" to be more tightly
19430 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
19431 its methods for clarity and type-safety.
19432 (sched_analyze_1): Strengthen local "pending" from rtx to
19433 rtx_insn_list *, and local "pending_mem" from rtx to
19434 rtx_expr_list *. Use methods of each for clarity and type-safety.
19435 (sched_analyze_2): Likewise.
19436 (sched_analyze_insn): Likewise.
19438 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
19439 param from const_rtx to const rtx_insn *.
19440 (sched_insns_conditions_mutex_p): Likewise for both params.
19441 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
19444 * system.h (CONST_CAST_RTX_INSN): New macro.
19446 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19448 * recog.c (peep2_attempt): Strengthen return type from rtx to
19450 (peep2_update_life): Likewise for params "last", "prev", removing
19451 a checked cast made redundant by this.
19452 (peephole2_optimize): Likewise for local "last".
19454 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19456 * basic-block.h (set_block_for_insn): Eliminate this macro in
19458 * rtl.h (set_block_for_insn): New inline function, imposing the
19459 requirement that the "insn" param is an rtx_insn *.
19461 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19463 * caller-save.c (setup_save_areas): Strengthen local "insn" from
19465 * final.c (get_call_reg_set_usage): Likewise for first param,
19466 eliminating a checked cast.
19467 * regs.h (get_call_reg_set_usage): Likewise for first param.
19468 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
19469 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
19470 cast, replacing references to "x" with "call_insn" where
19472 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
19473 rtx_insn *, adding a checked cast.
19475 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19477 * output.h (final_scan_insn): Strengthen first param from rtx to
19480 * final.c (final_scan_insn): Likewise, renaming it back from
19481 "uncast_insn" to "insn", eliminating the checked cast.
19483 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
19484 "vec" with an rtx_sequence * "seq", taking a copy of
19485 "final_sequence", and using methods of "seq" for clarity, and for
19486 type-safety in the calls to final_scan_insn.
19487 * config/mips/mips.c (mips_output_conditional_branch): Use methods
19488 of "final_sequence" for clarity, and for type-safety in the call to
19490 * config/sh/sh.c (print_slot): Strengthen param from rtx to
19491 rtx_sequence * and rename from "insn" to "seq".
19493 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19495 * jump.c (delete_related_insns): Introduce a new local "table" by
19496 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
19497 get_labels method of "table" to simplify access to the labels in
19500 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19502 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
19503 f_minmaxs, f_minmaxd types.
19505 2014-09-05 Richard Biener <rguenther@suse.de>
19507 * cfgloop.c (mark_loop_for_removal): Record former header
19508 when ENABLE_CHECKING.
19509 * cfgloop.h (strut loop): Add former_header member when
19511 * loop-init.c (fix_loop_structure): Sanity check loops
19512 marked for removal if they re-appeared.
19514 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19516 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
19517 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
19519 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
19520 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
19521 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
19522 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
19523 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
19524 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
19525 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
19526 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
19527 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
19528 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
19529 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
19530 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
19531 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
19532 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
19533 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
19534 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
19535 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
19536 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
19537 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
19538 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
19539 with int{32,16,8}_t.
19541 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19543 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
19544 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
19545 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
19546 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
19547 Remove temporary __asm__ and reimplement.
19549 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19551 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
19552 handling cmge, cmgt, cmeq, cmtst.
19554 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
19555 cmlt, cmgeu, cmgtu, cmtst): Remove.
19557 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
19558 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
19559 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
19560 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
19562 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19564 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
19565 TYPES_TST): Define.
19566 (aarch64_fold_builtin): Update pattern for cmtst.
19568 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
19571 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
19573 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
19574 Switch operands, separate out more cases, refactor.
19576 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
19578 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
19579 argument; rename old version to...
19580 (aarch64_const_vec_all_same_in_range_p): ...this.
19581 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
19583 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
19585 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19587 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19588 Remove qualifier_const_pointer, update comment.
19590 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19592 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
19594 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19596 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
19597 varargs with pointer parameter.
19598 (aarch64_simd_expand_builtin): pass pointer into previous.
19600 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19602 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
19605 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19607 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
19608 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
19609 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
19610 Replace temporary asm with call to builtin.
19611 (vrbit_p8, vrbitq_p8): New functions.
19613 2014-09-05 Richard Biener <rguenther@suse.de>
19615 * cfgloop.c (mark_loop_for_removal): New function.
19616 * cfgloop.h (mark_loop_for_removal): Declare.
19617 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
19618 (merge_blocks): Likewise.
19619 (duplicate_block): Likewise.
19620 * except.c (sjlj_emit_dispatch_table): Likewise.
19621 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
19622 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
19623 (thread_through_loop_header): Likewise.
19625 2014-09-05 Richard Biener <rguenther@suse.de>
19627 PR middle-end/63148
19628 * fold-const.c (try_move_mult_to_index): Remove.
19629 (fold_binary_loc): Do not call it.
19630 * tree-data-ref.c (dr_analyze_indices): Strip conversions
19631 from the base object again.
19633 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19635 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
19638 2014-09-05 Bin Cheng <bin.cheng@arm.com>
19641 * config/arm/arm.md (setmem): New pattern.
19642 * config/arm/arm-protos.h (struct tune_params): New fields.
19643 (arm_gen_setmem): New prototype.
19644 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
19645 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
19646 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
19647 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
19648 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
19649 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
19650 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
19651 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
19652 (arm_const_inline_cost): New function.
19653 (arm_block_set_max_insns): New function.
19654 (arm_block_set_non_vect_profit_p): New function.
19655 (arm_block_set_vect_profit_p): New function.
19656 (arm_block_set_unaligned_vect): New function.
19657 (arm_block_set_aligned_vect): New function.
19658 (arm_block_set_unaligned_non_vect): New function.
19659 (arm_block_set_aligned_non_vect): New function.
19660 (arm_block_set_vect, arm_gen_setmem): New functions.
19662 2014-09-05 Bin Cheng <bin.cheng@arm.com>
19664 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
19666 2014-09-05 Bin Cheng <bin.cheng@arm.com>
19668 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
19670 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19672 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
19674 * valtrack.h: Adjust.
19676 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19678 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
19680 (emit_jump_insn_before_noloc): Likewise.
19681 (emit_call_insn_before_noloc): Likewise.
19682 (emit_label_before): Likewise.
19683 (emit_label_after): Likewise.
19684 (emit_insn_before_setloc): Likewise.
19685 (emit_jump_insn_before_setloc): Likewise.
19686 (emit_call_insn_before_setloc): Likewise.
19687 (emit_call_insn_before): Likewise.
19690 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19692 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
19693 rtx_insn *, eliminating a checked cast.
19695 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19697 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
19698 const_rtx to const rtx_insn *.
19699 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
19702 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19704 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
19705 fixup_args_size_notes.
19706 * expr.c (fixup_args_size_notes): Strengthen first two params from
19707 rtx to rtx_insn *, eliminating a checked cast.
19708 * rtl.h (fixup_args_size_notes): Strengthen first two params from
19711 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19713 * haifa-sched.c (get_ready_element): Strengthen return type from
19715 * sched-int.h (get_ready_element): Likewise.
19717 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
19720 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
19721 indexed_or_indirect_operand instead of memory_operand.
19722 (floatsi<mode>2_lfiwzx_mem): Ditto.
19724 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19726 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
19727 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
19728 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
19730 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19732 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
19734 (get_last_nonnote_insn): Likewise.
19735 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
19736 * resource.c (find_basic_block): Likewise.
19738 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
19741 2014-09-04 David Malcolm <dmalcolm@redhat.com>
19743 * genattr.c (main): Within the prototype of insn_latency written
19744 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
19745 * genautomata.c (output_internal_maximal_insn_latency_func):
19746 Within the implementation of insn_latency written out to
19747 insn-automata.c, strengthen both params from rtx to rtx_insn *,
19748 eliminating a pair of checked casts.
19750 2014-09-04 David Malcolm <dmalcolm@redhat.com>
19752 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
19755 * rtl.h (eh_returnjump_p): Likewise.
19757 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
19759 * Makefile.in (TAGS): Handle constructs in timevar.def.
19761 2014-09-04 Guozhi Wei <carrot@google.com>
19764 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
19765 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
19766 it into two patterns.
19767 (move_lo_quad_internal_be_<mode>): Likewise.
19769 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
19771 * doc/options.texi: Document that Var and Init are required if CPP
19773 * optc-gen.awk: Require Var and Init if CPP is given.
19774 * common.opt (Wpedantic): Use Init.
19776 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19778 * config/rs6000/rs6000.c (special_handling_values): Add
19780 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
19781 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
19782 as swappable with special handling SH_EXTRACT. Remove
19783 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
19785 (adjust_extract): New function.
19786 (handle_special_swappables): Add default to case statement; add
19787 case for SH_EXTRACT that calls adjust_extract.
19788 (dump_swap_insn_table): Handle SH_EXTRACT.
19790 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19792 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
19793 selection of 0th memory doubleword, regardless of endianness.
19795 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19797 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
19799 2014-09-04 Alan Modra <amodra@gmail.com>
19802 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
19805 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
19807 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
19808 * targhooks.c (default_dwarf_frame_reg_mode): New function.
19809 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
19810 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
19811 * doc/tm.texi: Regenerate.
19812 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
19813 selection logic to default_dwarf_frame_reg_mode.
19815 2014-09-03 Marek Polacek <polacek@redhat.com>
19817 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
19820 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
19822 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
19823 the automodified register.
19825 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
19827 * output.h (get_some_local_dynamic_name): Declare.
19828 * final.c (some_local_dynamic_name): New variable.
19829 (get_some_local_dynamic_name): New function.
19830 (final_end_function): Clear some_local_dynamic_name.
19831 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
19832 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
19833 (print_operand): Report an error if '%&' is used inappropriately.
19834 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
19835 (get_some_local_dynamic_name_1): Delete.
19836 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
19837 (rs6000_get_some_local_dynamic_name): Delete.
19838 (rs6000_get_some_local_dynamic_name_1): Delete.
19839 (print_operand): Report an error if '%&' is used inappropriately.
19840 * config/s390/s390.c (machine_function): Remove some_ld_name.
19841 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
19842 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
19843 * config/sparc/sparc.c: Include rtl-iter.h.
19844 (machine_function): Remove some_ld_name.
19845 (sparc_print_operand): Report an error if '%&' is used inappropriately.
19846 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
19848 2014-09-03 Richard Henderson <rth@redhat.com>
19850 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
19851 (aarch64_popwb_pair_reg): Remove.
19852 (aarch64_set_frame_expr): Remove.
19853 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
19854 the restore ops performed by the insns generated.
19855 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
19856 insn. Perform the calls_eh_return addition later; do not attempt to
19857 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
19858 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
19859 special markup at all. Load cfun->machine->frame.hard_fp_offset
19860 into a local variable.
19861 (aarch64_frame_pointer_required): Don't check calls_alloca.
19863 2014-09-03 Richard Biener <rguenther@suse.de>
19865 * opts.c (default_options_optimization): Adjust
19866 max-combine-insns to 2 for -Og.
19868 2014-09-03 Martin Jambor <mjambor@suse.cz>
19871 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
19872 pass-trough jump functions correctly.
19874 2014-09-03 Martin Jambor <mjambor@suse.cz>
19877 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
19878 created replacements in ascending order of offsets.
19879 (known_aggs_to_agg_replacement_list): Likewise.
19881 2014-09-03 Martin Liska <mliska@suse.cz>
19883 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
19884 is set to set uninitialized value for vnresult.
19886 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19888 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
19889 for TARGET_MUST_PASS_IN_STACK.
19891 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19893 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
19894 for TARGET_ARG_PARTIAL_BYTES.
19896 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19898 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
19899 instructions for varargs implementation.
19900 (nds32_expand_epilogue): Emit stack adjustment instructions for
19901 varargs implementation.
19903 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19905 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
19906 optimization detection.
19908 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19910 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
19912 (nds32_function_arg_advance): Deal with nameless arguments.
19913 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
19914 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
19915 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
19917 2014-09-03 Richard Biener <rguenther@suse.de>
19919 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
19920 (struct bb_bitmap_sets): Remove deferred member.
19921 (BB_DEFERRED): Remove.
19922 (defer_or_phi_translate_block): Remove.
19923 (compute_antic_aux): Remove deferring of blocks, assert
19924 proper iteration order.
19925 (compute_antic): Do not set BB_DEFERRED.
19926 (eliminate): Allocate el_avail of proper size initially.
19928 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19930 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
19931 according to the value of crtl->args.pretend_args_size.
19933 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19935 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
19936 varargs information.
19938 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19940 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
19941 implementation for TARGET_SETUP_INCOMING_VARARGS.
19942 (nds32_strict_argument_naming): Refine comment.
19943 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
19944 Define for future implementation.
19946 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
19948 * config/i386/adxintrin.h (_subborrow_u32): New.
19949 (_addcarry_u32): Ditto.
19950 (_subborrow_u64): Ditto.
19951 (_addcarry_u64): Ditto.
19952 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
19953 IX86_BUILTIN_SBB64.
19954 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
19955 __builtin_ia32_sbb_u64
19957 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19959 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
19960 GPR-specific stuff.
19961 (nds32_function_arg_advance): Likewise.
19962 (nds32_init_cumulative_args): Likewise.
19963 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
19964 (NDS32_FIRST_GPR_REGNUM): Define.
19965 (NDS32_LAST_GPR_REGNUM): Define.
19966 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
19967 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
19968 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
19969 (machine_function): Use GRP-specific stuff.
19971 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19973 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
19974 (nds32_expand_epilogue): Likewise.
19975 (nds32_expand_prologue_v3push): Likewise.
19976 (nds32_expand_epilogue_v3pop): Likewise.
19978 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19980 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
19981 v3push/v3pop for variadic function.
19982 * config/nds32/nds32.md (prologue, epilogue): Likewise.
19984 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19986 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
19987 Check rtx for varargs implementation.
19988 (nds32_output_stack_pop): Likewise.
19989 * config/nds32/nds32-protos.h: Have a rtx argument for
19990 nds32_output_stack_push and nds32_output_stack_pop.
19991 * config/nds32/nds32.md: Likewise.
19993 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19995 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
19996 to check if FUNC is an interrupt service routine.
19997 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
19999 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20001 * config/nds32/nds32.h (machine_function): Add some fields for variadic
20002 arguments implementation.
20004 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20006 * config/nds32/nds32-predicates.c
20007 (nds32_valid_stack_push_pop): Rename to ...
20008 (nds32_valid_stack_push_pop_p): ... this.
20009 * config/nds32/nds32-protos.h: Likewise.
20010 * config/nds32/predicates.md: Likewise.
20012 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20014 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
20015 (nds32_emit_stack_v3push): ... this.
20016 (nds32_gen_stack_v3pop): Rename to ...
20017 (nds32_emit_stack_v3pop): ... this and consider CFA restore
20020 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20022 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
20023 (nds32_emit_stack_push_multiple): ... this.
20024 (nds32_gen_stack_pop_multiple): Rename to ...
20025 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
20028 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20031 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
20032 and add a second splitter to handle the remaining cases.
20034 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20036 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
20038 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
20040 * cfgexpand.c (label_rtx_for_bb): Change type to
20041 hash_map<basic_block, rtx_code_label *> *.
20042 (expand_gimple_basic_block): Adjust.
20043 (pass_expand::execute): Likewise.
20045 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
20047 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
20048 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
20049 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
20050 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
20051 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
20052 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
20053 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
20056 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
20058 * alloc-pool.c: Include coretypes.h.
20059 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
20060 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
20061 hash_set instead of htab.
20062 * ggc-page.c (in_gc): New variable.
20063 (ggc_free): Do nothing if a collection is taking place.
20064 (ggc_collect): Set in_gc appropriately.
20065 * ggc.h (gt_ggc_mx(const char *)): New function.
20066 (gt_pch_nx(const char *)): Likewise.
20067 (gt_ggc_mx(int)): Likewise.
20068 (gt_pch_nx(int)): Likewise.
20069 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
20070 (hash_map::hash_entry::pch_nx): Likewise.
20071 (hash_map::hash_entry::pch_nx_helper): Likewise.
20072 (hash_map::hash_map): Adjust.
20073 (hash_map::create_ggc): New function.
20074 (gt_ggc_mx): Likewise.
20075 (gt_pch_nx): Likewise.
20076 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
20077 (default_hashset_traits::pch_nx): Likewise.
20078 (hash_set::hash_entry::ggc_mx): Likewise.
20079 (hash_set::hash_entry::pch_nx): Likewise.
20080 (hash_set::hash_entry::pch_nx_helper): Likewise.
20081 (hash_set::hash_set): Adjust.
20082 (hash_set::create_ggc): New function.
20083 (hash_set::elements): Likewise.
20084 (gt_ggc_mx): Likewise.
20085 (gt_pch_nx): Likewise.
20086 * hash-table.h (hash_table::hash_table): Adjust.
20087 (hash_table::m_ggc): New member.
20088 (hash_table::~hash_table): Adjust.
20089 (hash_table::expand): Likewise.
20090 (hash_table::empty): Likewise.
20091 (gt_ggc_mx): New function.
20092 (hashtab_entry_note_pointers): Likewise.
20093 (gt_pch_nx): Likewise.
20095 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20097 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
20098 built-in definition.
20099 (XVCVUXDDP_SCALE): Likewise.
20100 (XVCVDPSXDS_SCALE): Likewise.
20101 (XVCVDPUXDS_SCALE): Likewise.
20102 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20103 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
20104 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
20105 VSX_BUILTIN_XVCVDPUXDS_SCALE.
20106 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
20108 * config/rs6000/rs6000.c (real.h): New include.
20109 (rs6000_scale_v2df): New function.
20110 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
20111 (UNSPEC_VSX_XVCVUXDDP): Likewise.
20112 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
20113 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
20114 (vsx_xvcvsxddp_scale): New define_expand.
20115 (vsx_xvcvsxddp): New define_insn.
20116 (vsx_xvcvuxddp_scale): New define_expand.
20117 (vsx_xvcvuxddp): New define_insn.
20118 (vsx_xvcvdpsxds_scale): New define_expand.
20119 (vsx_xvcvdpsxds): New define_insn.
20120 (vsx_xvcvdpuxds_scale): New define_expand.
20121 (vsx_xvcvdpuxds): New define_insn.
20122 * doc/extend.texi (vec_ctf): Add new prototypes.
20123 (vec_cts): Likewise.
20124 (vec_ctu): Likewise.
20125 (vec_splat): Likewise.
20126 (vec_div): Likewise.
20127 (vec_mul): Likewise.
20129 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20132 * config/arm/neon.md
20133 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
20134 <v_cmp_result>): New pattern.
20135 * config/arm/iterators.md (NEON_VCVT): New int iterator.
20136 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
20137 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
20138 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
20139 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
20140 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
20142 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20145 * config/arm/iterators.md (FIXUORS): New code iterator.
20146 (VCVT): New int iterator.
20147 (su_optab): New code attribute.
20149 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
20151 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20153 * config/aarch64/predicates.md (aarch64_comparison_operation):
20154 New special predicate.
20155 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
20156 aarch64_comparison_operation instead of matching an operator.
20157 Update operand numbers.
20158 (csinc3<mode>_insn): Likewise.
20159 (*csinv3<mode>_insn): Likewise.
20160 (*csneg3<mode>_insn): Likewise.
20161 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
20162 * config/aarch64/aarch64.c (aarch64_get_condition_code):
20163 Return -1 instead of aborting on invalid condition codes.
20164 (aarch64_print_operand): Update aarch64_get_condition_code callsites
20165 to assert that the returned condition code is valid.
20166 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
20168 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
20170 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
20171 tree.def, and gimple.def
20173 2014-09-02 Jakub Jelinek <jakub@redhat.com>
20174 Balaji V. Iyer <balaji.v.iyer@intel.com>
20175 Igor Zamyatin <igor.zamyatin@intel.com>
20177 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
20178 (__cilkrts_cilk_for_64): Likewise.
20179 * cilk-common.c (declare_cilk_for_builtin): New function.
20180 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
20181 __cilkrts_cilk_for_64 bultins.
20182 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
20184 (cilk_for_32_fndecl): New define.
20185 (cilk_for_64_fndecl): Likewise.
20186 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
20187 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
20188 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
20189 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
20190 GF_OMP_FOR_COMBINED_INTO.
20191 * gimplify.c (gimplify_scan_omp_clauses): Added
20192 OMP_CLAUSE__CILK_FOR_COUNT_ case.
20193 (gimplify_adjust_omp_clauses): Ditto.
20194 (gimplify_omp_for): Added CILK_FOR case.
20195 (gimplify_expr): Ditto.
20196 * omp-low.c: Include cilk.h.
20197 (extract_omp_for_data): Set appropriate kind for
20198 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
20199 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
20200 (create_omp_child_function_name): Added second argument to handle
20202 (cilk_for_check_loop_diff_type): New function.
20203 (expand_cilk_for_call): Likewise.
20204 (expand_cilk_for): Likewise.
20205 (create_omp_child_function): Set cilk_for_count; handle the cases when
20206 it is true; call create_omp_child_function_name with second argument.
20207 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
20208 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
20209 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
20210 * tree-nested.c (convert_nonlocal_omp_clauses): Added
20211 OMP_CLAUSE__CILK_FOR_COUNT_ case.
20212 (convert_local_omp_clauses): Ditto.
20213 * tree-pretty-print.c (dump_omp_clause): Added
20214 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
20215 (dump_generic_node): Added CILK_FOR case.
20216 * tree.c (omp_clause_num_ops): New element
20217 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
20218 (omp_clause_code_name): New element _Cilk_for_count_.
20219 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
20220 * tree.def: Add tree code for CILK_FOR.
20222 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20224 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
20225 (ppc403-compare): Add "exts with dot" case.
20226 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
20227 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
20228 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
20229 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
20230 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
20231 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
20232 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
20233 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20234 cell-cmp-microcoded): Similarly.
20235 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
20236 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
20237 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
20238 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
20239 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
20240 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
20241 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
20242 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
20243 (power6-compare): Add "exts with dot" case.
20244 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
20245 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
20246 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
20248 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
20249 if avoiding Cell microcode.
20250 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
20251 (is_cracked_insn): Ditto.
20252 (insn_must_be_first_in_group): Ditto.
20253 * config/rs6000/rs6000.md (dot): Adjust comment.
20254 (cell_micro): Handle exts+dot.
20255 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
20256 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
20257 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
20258 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
20259 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
20260 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
20261 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
20263 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20265 * config/rs6000/rs6000.md (QHSI): Delete.
20266 (EXTQI, EXTHI, EXTSI): New mode iterators.
20267 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
20268 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
20269 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
20270 9 anonymous instructions, and 8 splitters): Delete.
20271 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
20272 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
20273 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
20274 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
20275 *zero_extendsi<mode>2_dot2): New.
20277 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20279 * config/rs6000/rs6000.md (any_extend): New code iterator.
20280 (u, su): New code attributes.
20281 (dmode, DMODE): New mode attributes.
20282 (<su>mul<mode>3_highpart): New.
20283 (*<su>mul<mode>3_highpart): New.
20284 (<su>mulsi3_highpart_le): New.
20285 (<su>muldi3_highpart_le): New.
20286 (<su>mulsi3_highpart_64): New.
20287 (<u>mul<mode><dmode>3): New.
20288 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
20289 splitters): Delete.
20290 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
20291 splitters): Delete.
20293 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20295 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
20296 *mulsi3_internal2, and two splitters): Delete.
20297 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
20299 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
20301 2014-09-02 Richard Biener <rguenther@suse.de>
20303 PR tree-optimization/62695
20304 * tree-ssa-structalias.c (find_func_clobbers): Add missing
20307 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
20310 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
20312 2014-09-01 Andi Kleen <ak@linux.intel.com>
20314 * file-find.c (add_prefix_begin): Add.
20315 (do_add_prefix): Rename from add_prefix with first argument.
20316 (add_prefix): Add new wrapper.
20317 * file-find.h (add_prefix_begin): Add.
20318 * gcc-ar.c (main): Support -B option.
20320 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
20322 * genemit.c: Include dumpfile.h.
20323 (gen_split): Print name of splitter function to dump file.
20325 2014-09-01 Richard Biener <rguenther@suse.de>
20327 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
20328 Use stack auto_vecs for constraint expressions.
20329 (find_func_aliases_for_call): Likewise.
20330 (find_func_aliases): Likewise.
20331 (find_func_clobbers): Likewise.
20333 2014-09-01 Richard Biener <rguenther@suse.de>
20335 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
20336 operands vector in most cases. Remove redundant code.
20338 2014-09-01 Olivier Hainque <hainque@adacore.com>
20340 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
20341 $WIND_BASE instead of designating a harcoded arbitrary home dir.
20342 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
20344 2014-09-01 Richard Biener <rguenther@suse.de>
20346 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
20347 copy_reference_ops_from_call, vn_nary_op_compute_hash,
20348 vn_reference_compute_hash, vn_reference_insert): Remove.
20349 (vn_reference_lookup_call): New function.
20350 * tree-ssa-sccvn.c (vn_reference_compute_hash,
20351 copy_reference_ops_from_ref, copy_reference_ops_from_call,
20352 vn_reference_insert, vn_nary_op_compute_hash): Make static.
20353 (create_reference_ops_from_call): Remove.
20354 (vn_reference_lookup_3): Properly update shared_lookup_references.
20355 (vn_reference_lookup_pieces): Assert that we updated
20356 shared_lookup_references properly.
20357 (vn_reference_lookup): Likewise.
20358 (vn_reference_lookup_call): New function.
20359 (visit_reference_op_call): Use it. Avoid re-building the
20361 (visit_reference_op_load): Remove redundant lookup.
20362 (visit_reference_op_store): Perform special tail-merging work
20363 only when possibly doing tail-merging.
20364 (visit_use): Likewise.
20365 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
20367 2014-09-01 Jakub Jelinek <jakub@redhat.com>
20370 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
20371 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
20372 (find_inc): Revert 2014-08-13 change.
20374 2014-09-01 Marek Polacek <polacek@redhat.com>
20376 PR middle-end/61903
20377 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
20378 Change the type of V to unsigned HOST_WIDE_INT.
20380 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
20382 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
20383 the size of byte markers.
20384 (do_shift_rotate): Fix confusion between host, target and marker byte
20386 (verify_symbolic_number_p): Likewise.
20387 (find_bswap_or_nop_1): Likewise.
20388 (find_bswap_or_nop): Likewise.
20390 2014-09-01 Olivier Hainque <hainque@adacore.com>
20392 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
20393 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
20395 2014-09-01 Jakub Jelinek <jakub@redhat.com>
20397 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
20398 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
20399 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
20401 2014-09-01 Yury Gribov <y.gribov@samsung.com>
20405 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
20406 (build_check_stmt): Likewise.
20407 (instrument_strlen_call): Likewise.
20408 (asan_expand_check_ifn): Likewise and fix types.
20409 (maybe_cast_to_ptrmode): New function.
20411 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20413 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
20415 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
20417 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
20419 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
20421 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
20422 prefix to function labels when generating fast indirect calls.
20424 2014-08-30 David Malcolm <dmalcolm@redhat.com>
20428 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
20429 param back from rtx_insn * to rtx. Rename param from "label" to
20430 "label_or_return", reintroducing "label" as an rtx_insn * after
20431 we've ensured it's not a RETURN.
20432 (first_active_target_insn): Likewise for return type and param;
20433 add a checked cast to rtx_insn * once we've ensured "insn" is not
20435 (steal_delay_list_from_target): Convert param "pnew_thread" back
20436 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
20438 (own_thread_p): Convert param "thread" back from an rtx_insn * to
20439 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
20440 cast once we've established we're not dealing with a RETURN,
20441 renaming subsequent uses of "thread" to "thread_insn".
20442 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
20444 (follow_jumps): Convert return type and param "label" from
20445 rtx_insn * back to rtx. Move initialization of "value" to after
20446 the handling for ANY_RETURN_P, adding a checked cast there to
20447 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
20448 rename to "this_label_or_return", reintroducing "this_label" as
20449 an rtx_insn * once we've handled the case where it could be an
20451 (fill_slots_from_thread): Rename param "thread" to
20452 "thread_or_return", converting from an rtx_insn * back to an rtx.
20453 Reintroduce name "thread" as an rtx_insn * local with a checked
20454 cast once we've handled the case of it being an ANY_RETURN_P.
20455 Convert local "new_thread" from an rtx_insn * back to an rtx.
20456 Add a checked cast when assigning to "trial" from "new_thread".
20457 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
20458 checked cast to rtx_insn * from "new_thread" when invoking
20460 (fill_eager_delay_slots): Convert locals "target_label",
20461 "insn_at_target" from rtx_insn * back to rtx.
20462 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
20463 (relax_delay_slots): Convert locals "trial", "target_label" from
20464 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
20465 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
20466 invoking update_block.
20467 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
20468 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
20470 * resource.h (mark_target_live_regs): Undo erroneous conversion
20471 of second param of r214693, converting it back from rtx_insn * to
20472 rtx, since it could be a RETURN.
20474 * resource.c (find_dead_or_set_registers): Similarly, convert
20475 param "jump_target" back from an rtx_insn ** to an rtx *, as we
20476 could be writing back a RETURN. Rename local rtx_insn * "next" to
20477 "next_insn", and introduce "lab_or_return" as a local rtx,
20478 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
20479 (mark_target_live_regs): Undo erroneous conversion
20480 of second param of r214693, converting it back from rtx_insn * to
20481 rtx, since it could be a RETURN. Rename it from "target" to
20482 "target_maybe_return", reintroducing the name "target" as a local
20483 rtx_insn * with a checked cast, after we've handled the case of
20486 2014-08-29 DJ Delorie <dj@redhat.com>
20488 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
20489 pointer size up to a power of two.
20490 * defaults.h (DWARF2_ADDR_SIZE): Round up.
20491 (POINTER_SIZE_UNITS): New, rounded up value.
20492 * dwarf2asm.c (size_of_encoded_value): Use it.
20493 (dw2_output_indirect_constant_1): Likewise.
20494 * expmed.c (init_expmed_one_conv): We now know the sizes of
20496 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
20497 * optabs.c (expand_float): Use precision, not size.
20498 (expand_fix): Likewise.
20499 * simplify-rtx (simplify_unary_operation_1): Likewise.
20500 * tree-dfa.c (get_ref_base_and_extent): Likewise.
20501 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
20502 (default_assemble_integer) Likewise.
20503 (dump_tm_clone_pairs): Likewise.
20504 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
20505 * var-tracking.c (adjust_mems): Allow partial-int modes also.
20506 (prepare_call_arguments): Likewise.
20507 * stor-layout.c (finalize_type_size): Preserve precision.
20508 (layout_type): Use precision, not size.
20510 * expr.c (convert_move): If the target has an explicit converter,
20513 2014-08-29 David Malcolm <dmalcolm@redhat.com>
20515 * gdbinit.in: Skip various inline functions in rtl.h when
20518 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
20521 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
20523 2014-08-29 Richard Biener <rguenther@suse.de>
20525 PR tree-optimization/62291
20526 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
20527 exactly the vector size needed and use quick_push.
20528 (phi_translate_1): Adjust comment.
20529 (valid_in_sets): Remove block argument and remove pointless
20531 (dependent_clean): Adjust for removal of block argument.
20533 (compute_antic_aux): Likewise.
20534 (compute_partial_antic_aux): Likewise.
20536 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
20537 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20538 Anna Tikhonova <anna.tikhonova@intel.com>
20539 Ilya Tocar <ilya.tocar@intel.com>
20540 Andrey Turetskiy <andrey.turetskiy@intel.com>
20541 Ilya Verbin <ilya.verbin@intel.com>
20542 Kirill Yukhin <kirill.yukhin@intel.com>
20543 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20545 * config/i386/sse.md
20546 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
20547 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
20548 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
20549 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
20551 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
20552 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20553 Anna Tikhonova <anna.tikhonova@intel.com>
20554 Ilya Tocar <ilya.tocar@intel.com>
20555 Andrey Turetskiy <andrey.turetskiy@intel.com>
20556 Ilya Verbin <ilya.verbin@intel.com>
20557 Kirill Yukhin <kirill.yukhin@intel.com>
20558 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20560 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
20561 * config/i386/sse.md
20562 (define_mode_iterator VI4_128_8_256): New.
20563 (define_mode_iterator VI2_128_4_256): Ditto.
20564 (define_mode_iterator PMOV_DST_MODE): Rename into
20565 (define_mode_iterator PMOV_DST_MODE_1): this.
20566 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
20567 Use PMOV_DST_MODE_1 mode iterator.
20568 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
20570 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
20572 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
20573 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
20574 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
20575 (define_mode_iterator PMOV_DST_MODE_2): New.
20576 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
20577 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
20578 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
20580 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
20581 (define_mode_attr pmov_dst_3): Ditto.
20582 (define_mode_attr pmov_dst_zeroed_3): Ditto.
20583 (define_mode_attr pmov_suff_3): Ditto.
20584 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
20585 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
20586 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
20587 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
20588 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
20589 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
20590 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
20591 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
20592 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
20593 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
20594 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
20595 (define_mode_attr pmov_dst_4): Ditto.
20596 (define_mode_attr pmov_dst_zeroed_4): Ditto.
20597 (define_mode_attr pmov_suff_4): Ditto.
20598 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
20599 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
20600 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
20601 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
20602 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
20603 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
20604 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
20605 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
20606 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
20607 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
20608 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
20610 2014-08-29 Richard Biener <rguenther@suse.de>
20612 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
20613 NON_LVALUE_EXPR in gimple.
20615 2014-08-29 Richard Biener <rguenther@suse.de>
20617 PR middle-end/62292
20618 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
20619 from previous refactoring.
20620 (gimple_fold_builtin_strncpy): Likewise.
20622 2014-08-29 David Malcolm <dmalcolm@redhat.com>
20625 * function.c (assign_parm_setup_reg): Remove erroneous checked
20626 cast to rtx_insn * on result of gen_extend_insn in favor of
20627 introducing a new local rtx "pat".
20629 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20631 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
20632 to silence warning.
20633 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
20635 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20637 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
20638 (next_insn): Likewise.
20639 * emit-rtl.c (next_insn): Likewise.
20640 (previous_insn): Likewise.
20641 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
20642 "insn" and "next" from rtx to rtx_insn *.
20643 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
20644 "insn", "insn1", "vliw_start", "prologue_end_note",
20645 "last_insn_in_packet".
20647 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20649 * shrink-wrap.h (active_insn_between): Strengthen both params from
20651 * function.c (active_insn_between): Likewise.
20653 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20655 * genattr.c (main): When writing out insn-attr.h, strengthen param
20656 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
20657 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
20658 writing out the definition of dfa_clear_single_insn_cache to the
20659 generated insn-automata.c
20661 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20663 * resource.h (clear_hashed_info_for_insn): Strengthen param from
20665 (incr_ticks_for_insn): Likewise.
20666 (init_resource_info): Likewise.
20668 * resource.c (init_resource_info): Likewise.
20669 (clear_hashed_info_for_insn): Likewise.
20670 (incr_ticks_for_insn): Likewise.
20672 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
20674 (steal_delay_list_from_target): Use methods of "seq".
20675 (try_merge_delay_insns): Use methods of "merged_insns".
20676 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
20677 (reorg_redirect_jump): Likewise for param "jump".
20679 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20681 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
20683 * config/s390/s390.c (s390_split_branches): Eliminate top-level
20684 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
20686 (s390_mainpool_finish): In three places, split out a local rtx
20687 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
20688 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
20689 and split another local rtx "insn" out into rtx "pat" and
20691 * config/sh/sh.c (output_branchy_insn): Rather than working
20692 directly on operands[9], introduce local rtx_code_label *
20693 variables named "lab" in two places, working on them, and then
20694 assigning them to operands[9], so that the intervening operations
20695 are known by the type system to be on insns.
20697 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20699 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
20702 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
20703 in invocation of INSN_HAS_LOCATION.
20705 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20707 * config/rs6000/altivec.h (vec_xl): New #define.
20708 (vec_xst): Likewise.
20709 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
20710 (XXSPLTD_V2DI): Likewise.
20711 (DIV_V2DI): Likewise.
20712 (UDIV_V2DI): Likewise.
20713 (MUL_V2DI): Likewise.
20714 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20715 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
20716 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
20717 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
20718 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
20719 (UNSPEC_VSX_DIVSD): Likewise.
20720 (UNSPEC_VSX_DIVUD): Likewise.
20721 (UNSPEC_VSX_MULSD): Likewise.
20722 (vsx_mul_v2di): New insn-and-split.
20723 (vsx_div_v2di): Likewise.
20724 (vsx_udiv_v2di): Likewise.
20725 (vsx_xxspltd_<mode>): New insn.
20727 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20729 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
20731 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
20732 (NEXT_INSN): Likewise.
20733 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
20734 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
20736 (no_labels_between_p): Likewise for both params.
20738 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
20739 cast when using NEXT_INSN on operands[2].
20740 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
20741 "insn" from rtx to rtx_insn *, adding a checked cast.
20742 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
20744 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
20746 (arc_text_label): Likewise for param "insn".
20747 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
20749 (arc_ccfsm_record_condition): Likewise for param "jump".
20750 (arc_text_label): Likewise for local "label".
20751 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
20752 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
20753 a method for typesafety. Add a checked cast.
20754 * config/arc/constraints.md (Clb): Add a checked cast when getting
20755 the CODE_LABEL from a LABEL_REF.
20756 * config/arm/arm.c (require_pic_register): Strengthen locals
20757 "seq", "insn" from rtx to rtx_insn *.
20758 (create_fix_barrier): Likewise for locals "selected", "next".
20759 (thumb1_reorg): Likewise for locals "prev", "insn".
20760 (arm_expand_prologue): Likewise for local "last".
20761 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
20763 (thumb2_output_casesi): Likewise for operands[2].
20764 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
20765 strengthen local "insn" from rtx to rtx_insn *.
20766 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
20767 type and param "insn".
20768 (find_prev_insn_start): Likewise.
20769 (hwloop_optimize): Likewise for locals "insn", "last_insn",
20771 (gen_one_bundle): Likewise for loal "t".
20772 (find_load): Likewise for param "insn".
20773 (workaround_speculation): Likewise for locals "insn", "next",
20774 "target", "next_tgt".
20775 * config/c6x/c6x.c (assign_reservations): Likewise for both params
20776 and for locals "insn", "within", "last".
20777 (count_unit_reqs): Likewise for params "head", "tail" and local
20779 (try_rename_operands): Likewise for params "head", "tail".
20780 (reshuffle_units): Likewise for locals "head", "tail", "insn".
20781 (struct c6x_sched_context): Likewise for fields
20782 "last_scheduled_insn", "last_scheduled_iter0".
20783 (init_sched_state): Replace NULL_RTX with NULL.
20784 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
20786 (undo_split_delayed_nonbranch): Likewise for param and for local
20788 (conditionalize_after_sched): Likewise for local "insn".
20789 (bb_earliest_end_cycle): Likewise.
20790 (filter_insns_above): Likewise for locals "insn", "next".
20791 (hwloop_optimize): Remove redundant checked cast.
20792 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
20793 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
20794 NULL_RTX with NULL.
20795 (cris_simple_epilogue): Likewise.
20796 (cris_expand_prologue): Likewise.
20797 (cris_expand_epilogue): Likewise.
20798 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
20799 local "insn" from rtx to rtx_insn *.
20800 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
20801 (struct frv_packet_group): Likewise for the elements within array
20802 fields "insns", "sorted", and for field "nop".
20803 (frv_packet): Likewise for the elements within array field
20805 (frv_add_insn_to_packet): Likewise for param "insn".
20806 (frv_insert_nop_in_packet): Likewise for param "insn" and local
20808 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
20809 (frv_sort_insn_group_1): Likewise for local "insn".
20810 (frv_optimize_membar_local): Likewise.
20811 (frv_align_label): Likewise for locals "x", "last", "barrier",
20813 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
20815 (ia64_sched_init): Likewise for local "insn".
20816 (scheduled_good_insn): Likewise for param "last".
20817 (struct _ia64_sched_context): Likewise for field
20818 "last_scheduled_insn".
20819 (ia64_init_sched_context): Replace NULL_RTX with NULL.
20820 (struct bundle_state): Likewise for field "insn".
20821 (issue_nops_and_insn): Likewise for param "insn".
20822 (get_next_important_insn): Likewise for return type and both
20824 (ia64_add_bundle_selector_before): Likewise for param "insn".
20825 (bundling): Likewise for params "prev_head_insn", "tail" and
20826 locals "insn", "next_insn", "b". Eliminate top-level local rtx
20827 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
20828 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
20829 Strengthen final param from rtx to rtx_insn *.
20830 (iq2000_move_1word): Likewise for second param.
20831 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
20832 param "cur_insn" and local "next_insn".
20833 (iq2000_move_1word): Likewise for param "insn".
20834 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
20835 casts when using NEXT_INSN on operands[1].
20836 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
20837 "insn" from rtx to rtx_insn *.
20838 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
20839 "x", introducing local rtx_insn * "insn" for when working with the
20840 CODE_LABEL of the LABEL_REF.
20841 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
20843 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
20845 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
20847 (conditionalize_block): Likewise for return type and param.
20848 (mcore_is_dead): Likewise for param "first" and local "insn".
20849 (emit_new_cond_insn): Likewise for return type.
20850 (conditionalize_block): Likewise for return type, param, and
20851 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
20853 (conditionalize_optimization): Likewise for local "insn".
20854 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
20856 * config/microblaze/microblaze.md: Add checked casts when using
20858 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
20859 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
20860 and rtx_insn * "insn".
20861 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
20862 checked cast when using NEXT_INSN on operands[2].
20863 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
20864 local "insn" from rtx to rtx_insn *.
20865 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
20867 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
20868 Add a checked cast when using NEXT_INSN on operands[1].
20869 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
20871 (pa_output_cbranch): Likewise for final param.
20872 (pa_output_lbranch): Likewise for second param.
20873 (pa_output_bb): Likewise for third param.
20874 (pa_output_bvb): Likewise.
20875 (pa_output_dbra): Likewise for second param.
20876 (pa_output_movb): Likewise.
20877 (pa_output_parallel_movb): Likewise.
20878 (pa_output_parallel_addb): Likewise.
20879 (pa_output_millicode_call): Likewise for first param.
20880 (pa_output_mul_insn): Likewise for second param.
20881 (pa_output_div_insn): Likewise for third param.
20882 (pa_output_mod_insn): Likewise for second param.
20883 (pa_jump_in_call_delay): Likewise for param.
20884 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
20885 (pa_output_div_insn): Likewise.
20886 (pa_output_mod_insn): Likewise.
20887 (pa_output_cbranch): Likewise.
20888 (pa_output_lbranch): Likewise.
20889 (pa_output_bb): Likewise.
20890 (pa_output_bvb): Likewise.
20891 (pa_output_dbra): Likewise.
20892 (pa_output_movb): Likewise.
20893 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
20894 to simplify and for typesafety.
20895 (pa_output_call): Use method of rtx_sequence *.
20896 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
20897 (pa_jump_in_call_delay): Likewise.
20898 (pa_output_parallel_movb): Likewise.
20899 (pa_output_parallel_addb): Likewise.
20900 (pa_following_call): Likewise.
20901 (pa_combine_instructions): Likewise for locals "anchor",
20903 (pa_can_combine_p): Likewise for params "anchor", "floater" and
20904 locals "start", "end".
20905 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
20906 param "insn" and local "local_insn".
20907 (picochip_final_prescan_insn): Likewise for local "local_insn".
20908 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
20910 (uses_TOC): Likewise.
20911 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
20912 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
20913 splitting out to more tightly-scoped locals, 3 as rtx and one as
20915 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
20917 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
20919 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
20921 (fixup_addr_diff_vecs): Likewise.
20922 (reg_unused_after): Likewise for param 2.
20923 (sh_can_redirect_branch): Likewise for both params.
20924 (check_use_sfunc_addr): Likewise for param 1.
20925 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
20926 (find_barrier): Likewise for local "last_got".
20927 (gen_block_redirect): Likewise for return type, param "jump" and
20928 locals "prev", "scan", "next", "insn".
20929 (struct far_branch): Likewise for fields "near_label",
20930 "insert_place", "far_label".
20931 (gen_far_branch): Likewise for local "jump".
20932 (fixup_addr_diff_vecs): Likewise for param "first" and locals
20934 (barrier_align): Likewise for param and for locals "prev", "x".
20935 Introduce local rtx_sequence * "prev_seq" and use insn method for
20936 typesafety and clarity.
20937 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
20938 (get_dest_uid): Likewise for local "dest".
20939 (split_branches): Likewise for locals "next", "beyond", "label",
20940 "block", "far_label". Add checked casts when assigning to
20941 bp->far_label and "far_label".
20942 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
20943 (sequence_insn_p): Likewise.
20944 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
20945 more loop-scoped rtx "insn" when walking LABEL_REFS.
20946 (sh_can_redirect_branch): Strengthen both params from rtx to
20948 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
20949 new local rtx_sequence * "seq" via a dyn_cast, and use a method
20950 for clarity and typesafety.
20951 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
20952 "insn" from rtx to rtx_insn *.
20953 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
20954 when using NEXT_INSN on the CODE_LABEL in operands[2].
20955 (define_insn "casesi_worker_2"): Likewise.
20956 (define_insn "casesi_shift_media"): Likewise.
20957 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
20959 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
20960 Strengthen field "insn" from rtx to rtx_insn *.
20961 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
20962 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
20963 param "start_insn" and local "start_insn".
20964 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
20966 (find_set_of_reg_bb): Likewise for param "insn".
20967 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
20968 (trace_reg_uses): Likewise for param "start_insn".
20969 (sh_treg_combine::cbranch_trace): Likewise for field
20971 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
20973 (sh_treg_combine::record_set_of_reg): Likewise for param
20974 "start_insn" and local "i".
20975 (sh_treg_combine::can_remove_cstore): Likewise for local
20977 (sh_treg_combine::try_optimize_cbranch): Likewise for param
20979 (sh_treg_combine::execute): Likewise for local "i".
20980 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
20982 (sparc_check_64): Likewise for second param.
20983 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
20984 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
20985 dyn_cast, using its insn method for typesafety and clarity.
20986 (empty_delay_slot): Strengthen param "insn" from rtx to
20988 (set_extends): Likewise.
20989 (sparc_check_64): Likewise.
20990 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
20991 for locals "seq", "last_insn".
20992 (combine_bnp): Likewise for param "insn".
20993 (xstormy16_reorg): Likewise for local "insn".
20994 * config/v850/v850.c (substitute_ep_register): Likewise for params
20995 "first_insn", "last_insn" and local "insn".
20996 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
20997 elements of "regs" array, and local "insn".
20998 * except.c (emit_note_eh_region_end): Likewise for param "insn".
20999 * final.c (final_sequence): Strengthen this global from rtx to
21001 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
21003 (final_scan_insn): Update assignment to "final_sequence" to be
21004 from "seq", the cast version of "body", for type-safety.
21005 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
21006 "insns" from rtx to rtx_insn *.
21007 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
21008 * genattr.c (main): When writing out generated insn-attr.h,
21009 strengthen params 1 and 3 of eligible_for_delay,
21010 eligible_for_annul_true, eligible_for_annul_false from rtx to
21012 * genattrtab.c (write_eligible_delay): Likewise when writing out
21013 generated insn-attrtab.c; also local "insn" the generated
21015 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
21017 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
21018 "start_label" from rtx to rtx_insn *.
21019 * ira.c (decrease_live_ranges_number): Likewise for local "p".
21020 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
21021 "insns" and local "insn".
21022 (validate_equiv_mem): Likewise for param "start" and local "insn".
21023 (memref_used_between_p): Likewise for params "start", "end" and
21025 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
21027 * loop-doloop.c (doloop_optimize): Within region guarded by
21028 INSN_P (doloop_pat), introduce a new local rtx_insn *
21029 "doloop_insn" via a checked cast, and use it for typesafety,
21030 eventually writing the value back into doloop_pat.
21031 * output.h (final_sequence): Strengthen this global from rtx to
21033 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
21034 reintroducing "insn" as an rtx_insn * via a checked cast.
21035 Strengthen param "attempt" and local "new_insn"from rtx to
21037 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
21039 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
21040 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
21041 "p" in favor of more tightly-scoped replacements, sometimes rtx
21042 and sometimes rtx_insn *, as appropriate.
21043 (delete_output_reload): Eliminate top-level rtx "i1", splitting
21044 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
21045 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
21046 local "trial" from rtx to rtx_insn *.
21047 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
21048 rtx to rtx_insn *. Strenghten local "pat" from rtx to
21049 rtx_sequence * and use methods for clarity and typesafety.
21050 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
21051 rtx to rtx_insn *. Strenghten local "li" from rtx to
21052 rtx_insn_list * and use its methods for clarity and typesafety.
21053 (steal_delay_list_from_target): Strengthen param "insn" from rtx
21055 (steal_delay_list_from_fallthrough): Likewise.
21056 (try_merge_delay_insns): Likewise for param "thread" and locals
21057 "trial", "next_trial", "delay_insn".
21058 (redundant_insn): Likewise for param "target" and local "trial".
21059 (own_thread_p): Likewise for param "thread" and locals
21060 "active_insn", "insn".
21061 (get_label_before): Likewise for param "insn".
21062 (fill_simple_delay_slots): Likewise for local "new_label"; use
21063 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
21064 (label_before_next_insn): Strengthen return type and local "insn"
21065 from rtx to rtx_insn *.
21066 (relax_delay_slots): Likewise for locals "other", "tmp".
21067 (make_return_insns): Likewise for param "first" and locals "insn",
21068 "jump_insn", "prev". Move declaration of "pat" to its assignment
21069 and strengthen from rtx to rtx_sequence *. Use its methods for
21070 clarity and typesafety.
21071 * rtlanal.c (no_labels_between_p): Strengthen params from
21072 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
21074 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
21075 from const_rtx to const rtx_insn *.
21076 (reg_set_between_p): Rename param "from_insn" to
21077 "uncast_from_insn", and reintroduce "from_insn" as a
21078 const rtx_insn * via a checked cast.
21079 (modified_between_p): Likewise for param "start" as "uncast_start".
21080 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
21081 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
21082 "tmp", head" from rtx to rtx_insn *.
21083 (recompute_rev_top_order): Likewise for local "insn".
21084 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
21085 * store-motion.c (build_store_vectors): Likewise for local "insn".
21086 Strengthen local "st" from rtx to rtx_insn_list * and use methods
21087 for clarity and typesafety.
21088 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
21090 (computation_cost): Likewise for local "seq".
21091 (get_address_cost): Likewise.
21093 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21095 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
21097 (label_is_jump_target_p): Likewise for second param.
21099 * rtlanal.c (tablejump_p): Likewise for param "insn".
21100 (label_is_jump_target_p): Likewise for param "jump_insn".
21102 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21104 * rtl.h (find_first_parameter_load): Strengthen return type and
21105 both params from rtx to rtx_insn *.
21106 * rtlanal.c (find_first_parameter_load): Strengthen return type,
21107 both params and locals "before", "first_set" from rtx to
21108 rtx_insn *. Remove now-redundant cast.
21109 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
21111 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21113 * rtl.h (find_last_value): Delete.
21114 * rtlanal.c (find_last_value): Delete.
21116 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21118 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
21119 from rtx to rtx_insn *.
21120 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
21121 rtx "note" with new local rtx_insn * "new_head" when calculating
21122 head insn of new basic block.
21123 * combine.c (combine_split_insns): Strengthen return type and local
21124 "ret" from rtx to rtx_insn *.
21125 (likely_spilled_retval_p): Likewise for locals "use" and "p".
21126 (try_combine): Eliminate local "m_split", splitting into new
21127 locals "m_split_insn" and "m_split_pat".
21128 (find_split_point): Strengthen local "seq" from rtx into
21130 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
21131 locals "label", "branch".
21132 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
21134 (define_expand "umulsi3_highpart"): Likewise for local "insn".
21135 * dse.c (note_add_store_info): Likewise for fields "first",
21137 (note_add_store): Likewise for local "insn".
21138 (emit_inc_dec_insn_before): Likewise for locals "insn",
21140 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
21141 (replace_read): Likewise for locals "insns", "this_insn".
21142 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
21143 (notice_eh_throw): Likewise for param "insn".
21144 (before_next_cfi_note): Likewise for return type, param, and local
21146 (connect_traces): Likewise for local "note".
21147 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
21148 (verify_rtl_sharing): Likewise.
21149 (unshare_all_rtl_in_chain): Likewise for param "insn".
21150 (get_first_nonnote_insn): Likewise for local "insn".
21151 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
21152 "seq" and use its methods to clarify things.
21153 (next_insn): Strengthen return type from rtx to rtx_insn *.
21154 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
21155 local rtx_insn * using a checked cast, dropping a checked cast
21156 made redundant by this change. Use a cast to and method of
21157 rtx_sequence to clarify the code.
21158 (previous_insn): Rename param "insn" to "uncast_insn" and
21159 reintroduce "insn" as a local rtx_insn * using a checked cast,
21160 dropping a checked cast made redundant by this change. Use a cast
21161 to and method of rtx_sequence to clarify the code.
21162 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
21163 reintroduce "insn" as a local rtx_insn * using a checked cast,
21164 dropping a checked cast made redundant by this change.
21165 (next_nonnote_insn_bb): Likewise.
21166 (prev_nonnote_insn): Likewise.
21167 (prev_nonnote_insn_bb): Likewise.
21168 (next_nondebug_insn): Likewise.
21169 (prev_nondebug_insn): Likewise.
21170 (next_nonnote_nondebug_insn): Likewise.
21171 (prev_nonnote_nondebug_insn): Likewise.
21172 (next_real_insn): Likewise.
21173 (prev_real_insn): Likewise.
21174 (next_active_insn): Likewise.
21175 (prev_active_insn): Likewise.
21176 (next_cc0_user): Likewise. Use rtx_sequence and a method for
21178 (prev_cc0_setter): Likewise.
21179 (try_split): Rename param "trial" to "uncast_trial" and
21180 reintroduce "insn" as a local rtx_insn * using a checked cast,
21181 dropping checked casts made redundant by this change.
21182 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
21184 (remove_insn): Rename param "insn" to "uncast_insn" and
21185 reintroduce "insn" as a local rtx_insn * using a checked cast.
21186 (emit_pattern_after_setloc): Likewise for param "after", as
21188 (emit_pattern_after): Likewise. Strengthen local "prev" from
21190 (emit_pattern_before_setloc): Rename param "before" to
21191 "uncast_before" and reintroduce "before" as a local rtx_insn *
21192 using a checked cast. Strengthen locals "first", "last" from
21194 (emit_pattern_before): Likewise rename/cast param "before" to
21195 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
21196 * except.c (copy_reg_eh_region_note_forward): Strengthen param
21197 "first" and local "insn" from rtx to rtx_insn *.
21198 (copy_reg_eh_region_note_backward): Likewise for param "last"
21200 * expr.c (fixup_args_size_notes): Rename param "last" to
21201 "uncast_last" and reintroduce "last" as a local rtx_insn *
21202 using a checked cast. Strengthen local "insn" from rtx to
21204 * function.c (set_insn_locations): Strengthen param "insn" from
21206 (record_insns): Likewise for param "insns" and local "tmp".
21207 (active_insn_between): Rename param "tail" to
21208 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
21209 using a checked cast.
21210 (thread_prologue_and_epilogue_insns): Split out top-level local
21211 rtx "seq" into three different rtx_insn * locals. Strengthen
21212 local "prologue_seq" from rtx to rtx_insn *.
21213 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
21214 from rtx to rtx_insn *.
21215 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
21216 (priority): Likewise for locals "prev_first", "twin".
21217 (setup_insn_max_reg_pressure): Likewise for param "after".
21218 (sched_setup_bb_reg_pressure_info): Likewise.
21219 (no_real_insns_p): Strengthen params from const_rtx to
21221 (schedule_block): Strengthen local "next_tail" from rtx to
21223 * ifcvt.c (find_active_insn_before): Strengthen return type and
21224 param "insn" from rtx to rtx_insn *.
21225 (find_active_insn_after): Likewise.
21226 (cond_exec_process_insns): Likewise for param "start" and local "insn".
21227 (cond_exec_process_if_block): Likewise for locals "then_start",
21228 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
21229 (noce_process_if_block): Likewise for local "jump".
21230 (merge_if_block): Likewise for two locals named "end".
21231 (cond_exec_find_if_block): Likewise for local "last_insn".
21232 * jump.c (delete_related_insns): Rename param "insn" to
21233 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
21234 checked cast. Strengthen local "p" from rtx to rtx_insn *.
21235 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
21237 (split_reg): Likewise.
21238 * lra.c (lra_process_new_insns): Likewise.
21239 * modulo-sched.c (permute_partial_schedule): Strengthen param
21240 "last" from rtx to rtx_insn *.
21241 * optabs.c (add_equal_note): Likewise for param "insns" and local
21243 (expand_binop_directly): Add checked casts to rtx_insn * within
21244 NEXT_INSN (pat) uses.
21245 (expand_unop_direct): Likewise.
21246 (maybe_emit_unop_insn): Likewise.
21247 * recog.c (peep2_attempt): Strengthen locals "last",
21248 "before_try", "x" from rtx to rtx_insn *.
21249 * reorg.c (optimize_skip): Strengthen return type and local
21250 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
21251 and locals "trial", "next_trial" from rtx to rtx_insn *.
21252 * resource.c (next_insn_no_annul): Strengthen return type and
21253 param "insn" from rtx to rtx_insn *. Use a cast to and method of
21254 rtx_sequence to clarify the code.
21255 (mark_referenced_resources): Add a checked cast to rtx_insn *
21256 within PREV_INSN (x).
21257 (find_dead_or_set_registers): Strengthen return type, param
21258 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
21259 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
21261 (mark_target_live_regs): Strengthen params "insns" and "target",
21262 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
21263 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
21265 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
21266 from rtx to rtx_insn *.
21267 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
21268 from rtx to rtx_insn *.
21269 (copy_reg_eh_region_note_backward): Likewise.
21270 (unshare_all_rtl_in_chain): Likewise for sole param.
21271 (dump_rtl_slim): Strengthen second and third params from const_rtx
21272 to const rtx_insn *.
21273 * sched-deps.c (sched_free_deps): Strengthen params "head" and
21274 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
21275 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
21276 "next_tail" from rtx to rtx_insn *.
21277 (begin_move_insn): Likewise for local "next".
21278 * sched-int.h (sched_free_deps): Likewise for first and second
21280 (no_real_insns_p): Strengthen both params from const_rtx to
21282 (sched_setup_bb_reg_pressure_info): Strengthen second params from
21284 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
21286 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
21287 and locals "insn", "tail" from const_rtx to const rtx_insn *.
21288 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
21290 (debug_rtl_slim): Strengthen params "first" and "last" from
21291 const_rtx to const rtx_insn *.
21292 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
21293 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
21294 (convert_to_simple_return): Likewise for param "returnjump".
21295 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
21297 (convert_to_simple_return): Likewise for param "returnjump".
21298 * valtrack.c (propagate_for_debug): Likewise for params
21300 * valtrack.h (propagate_for_debug): Likewise for second param.
21302 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21304 * output.h (insn_current_reference_address): Strengthen param
21305 from rtx to rtx_insn *.
21306 * final.c (insn_current_reference_address): Likewise.
21308 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21310 * basic-block.h (inside_basic_block_p): Strengthen param from
21311 const_rtx to const rtx_insn *.
21312 * cfgbuild.c (inside_basic_block_p): Likewise.
21314 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21316 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
21318 (get_trace_info): Likewise for param "insn".
21319 (save_point_p): Likewise.
21320 (maybe_record_trace_start): Likewise for both params.
21321 (maybe_record_trace_start_abnormal): Likewise.
21322 (create_trace_edges): Likewise for sole param and for three of the
21323 locals named "lab".
21324 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
21325 to rtx_insn *, and update a call to pat->element to pat->insn.
21327 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21329 * function.h (struct expr_status): Convert field "x_forced_labels"
21330 from rtx_expr_list * to rtx_insn_list *.
21332 * cfgbuild.c (make_edges): Convert local "x" from an
21333 rtx_expr_list * to an rtx_insn_list *, replacing use of
21334 "element" method with "insn" method.
21335 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
21336 * except.c (sjlj_emit_dispatch_table): Replace use of
21337 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
21339 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
21340 rtx_expr_list * to an rtx_insn_list *, replacing use of
21341 "element" method with "insn" method.
21342 * reload1.c (set_initial_label_offsets): Likewise for local "x".
21343 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
21344 rtx_insn *, adding a checked cast. Replace use of
21345 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
21347 (expand_label): Likewise for local "label_r".
21349 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21351 * function.h (struct rtl_data): Convert field
21352 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
21354 * rtl.h (remove_node_from_insn_list): New prototype.
21356 * builtins.c (expand_builtin): When prepending to
21357 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
21359 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
21360 to rtx_insn_list *, and use its "insn" method rather than
21362 * cfgrtl.c (delete_insn): Use new function
21363 remove_node_from_insn_list rather than
21364 remove_node_from_expr_list.
21365 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
21366 to rtx_insn_list *, and use its "insn" method rather than
21368 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
21369 * reload1.c (set_initial_label_offsets): Likewise for local "x".
21370 * rtlanal.c (remove_node_from_insn_list): New function, adapted
21371 from remove_node_from_expr_list.
21372 * stmt.c (expand_label): When prepending to
21373 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
21376 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21378 * function.h (struct rtl_data): Strengthen fields "x_return_label"
21379 and "x_naked_return_label" from rtx to rtx_code_label *.
21381 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21383 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
21384 (SET_NEXT_INSN): Likewise.
21385 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
21387 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
21388 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
21389 to split out the SEQUENCE from local "bundle", strengthening the
21390 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
21391 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
21392 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
21393 and the type of the elements of the "slot" array from rtx to
21395 (reorg_split_calls): Likewise for locals "insn" and "next", and
21396 the type of the elements of the "slot" array.
21398 * config/frv/frv.c (frv_nops): Likewise for the elements of this
21400 (frv_function_prologue): Likewise for locals "insn", "next",
21402 (frv_register_nop): Introduce a local "nop_insn" to be the
21403 rtx_insn * containing rtx "nop".
21405 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
21406 used as an insn and sometimes as a pattern, so rename it to
21407 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
21408 using it where dealing with the core insn.
21410 * config/picochip/picochip.c (reorder_var_tracking_notes):
21411 Strengthen locals "insn", "next", "last_insn", "queue",
21412 "next_queue", "prev" from rtx to rtx_insn *.
21414 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
21415 the second param is an rtx_insn ** rather than an rtx **.
21416 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
21417 from rtx to rtx_sequence *, and introduce local named "sequence",
21418 using methods of rtx_sequence to clarify the code.
21419 (remove_insn): Introduce local rtx_sequence * named "sequence" and
21421 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
21422 Rename param "after" to "uncast_after", reintroducing "after" as a
21423 local rtx_insn * with a checked cast.
21424 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
21425 reintroducing "after" as a local rtx_insn * with a checked cast.
21426 Strengthen local "last" from rtx to rtx_insn * and remove the
21427 now-redundant checked casts.
21428 (copy_delay_slot_insn): Strengthen return type and param from rtx
21431 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
21432 "last" from rtx to rtx_insn *.
21434 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21436 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
21437 param from rtx to rtx_insn *.
21439 * emit-rtl.c (copy_delay_slot_insn): Likewise.
21441 * reorg.c (skip_consecutive_labels): Strengthen return type, param
21442 and local "insn" from rtx to rtx_insn *.
21443 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
21444 (unfilled_slots_next): Likewise.
21445 (function_return_label): Strengthen from rtx to rtx_code_label *.
21446 (function_simple_return_label): Likewise.
21447 (first_active_target_insn): Strengthen return type and param from
21449 (find_end_label): Strengthen return type from rtx to
21450 rtx_code_label *; strengthen locals as appropriate.
21451 (emit_delay_sequence): Strengthen return type, param "insn" and
21452 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
21453 and local "li" from rtx to rtx_insn_list *, using methods of
21454 rtx_insn_list for clarity and typesafety.
21455 (add_to_delay_list): Strengthen return type and param "insn" from
21456 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
21457 rtx_insn_list * and use methods of rtx_insn_list.
21458 (delete_from_delay_slot): Strengthen return type, param "insn",
21459 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
21460 Strengthen local "seq" from rtx to rtx_sequence *, and local
21461 "delay_list" from rtx to rtx_insn_list *, using methods of
21462 rtx_sequence for clarity and type-safety.
21463 (delete_scheduled_jump): Add checked cast when invoking
21464 delete_from_delay_slot. Strengthen local "trial" from rtx to
21466 (optimize_skip): Strengthen return type and local "delay_list"
21467 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
21469 (steal_delay_list_from_target): Strengthen return type, param
21470 "delay_list" and local "new_delay_list" from rtx to
21471 rtx_insn_list *. Strengthen param "seq" from rtx to
21472 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
21474 Split out local "temp" into multiple more-tightly scoped locals:
21475 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
21476 of rtx_insn_list and rtx_sequence for clarity and typesafety.
21477 Strengthen locals named "trial" from rtx to rtx_insn *.
21478 (steal_delay_list_from_fallthrough): Strengthen return type and
21479 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
21480 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
21481 Strengthen local "trial" from rtx to rtx_insn *.
21482 (try_merge_delay_insns): Strength local "merged_insns" from rtx
21483 to rtx_insn_list * and use its methods. Strengthen local "pat"
21484 from rtx to rtx_sequence * and use its methods. Strengthen locals
21485 "dtrial" and "new_rtx" from rtx to rtx_insn *.
21486 (get_label_before): Strengthen return type and local "label" from
21488 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
21489 "next_trial", "next", prev". Strengthen local "delay_list" from
21490 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
21492 (follow_jumps): Strengthen return type, param "label" and locals
21493 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
21494 (fill_slots_from_thread): Strengthen return type, param
21495 "delay_list" from rtx to rtx_insn_list *. Strengthen params
21496 "insn", "thread", "opposite_thread" and locals "new_thread",
21497 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
21498 "sequence" from a checked cast to rtx_sequence so that we can call
21499 steal_delay_list_from_target and steal_delay_list_from_fallthrough
21500 with an rtx_sequence *.
21501 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
21502 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
21503 Strengthen local "delay_list" from rtx to rtx_insn_list *.
21504 (relax_delay_slots): Strengthen param "first" and locals "insn",
21505 "next", "trial", "delay_insn", "target_label" from rtx to
21506 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
21507 Introduce a local "trial_seq" for PATTERN (trial) of type
21508 rtx_sequence *, in both cases using methods of rtx_sequence.
21509 (dbr_schedule): Strengthen param "first" and locals "insn",
21510 "next", "epilogue_insn" from rtx to rtx_insn *.
21512 2014-08-28 Richard Biener <rguenther@suse.de>
21514 PR tree-optimization/62283
21515 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21516 Do not peel loops for alignment where the vector loop likely
21517 doesn't run at least VF times.
21519 2014-08-28 Bin Cheng <bin.cheng@arm.com>
21521 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
21522 important_candidates. Consider all important candidates if
21523 IVS doesn't give any result. Remove check on ivs->upto.
21524 (try_add_cand_for): Call iv_ca_add_use only once.
21526 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21527 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21528 Anna Tikhonova <anna.tikhonova@intel.com>
21529 Ilya Tocar <ilya.tocar@intel.com>
21530 Andrey Turetskiy <andrey.turetskiy@intel.com>
21531 Ilya Verbin <ilya.verbin@intel.com>
21532 Kirill Yukhin <kirill.yukhin@intel.com>
21533 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21535 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
21536 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
21538 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
21539 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
21540 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
21541 (define_insn "*mul<mode>3"): Add EVEX version.
21543 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21544 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21545 Anna Tikhonova <anna.tikhonova@intel.com>
21546 Ilya Tocar <ilya.tocar@intel.com>
21547 Andrey Turetskiy <andrey.turetskiy@intel.com>
21548 Ilya Verbin <ilya.verbin@intel.com>
21549 Kirill Yukhin <kirill.yukhin@intel.com>
21550 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21552 * config/i386/sse.md
21553 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
21554 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
21555 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
21556 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
21557 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
21558 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
21559 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
21560 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
21561 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
21562 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
21563 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
21564 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
21565 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
21566 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
21567 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
21568 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"):
21571 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21572 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21573 Anna Tikhonova <anna.tikhonova@intel.com>
21574 Ilya Tocar <ilya.tocar@intel.com>
21575 Andrey Turetskiy <andrey.turetskiy@intel.com>
21576 Ilya Verbin <ilya.verbin@intel.com>
21577 Kirill Yukhin <kirill.yukhin@intel.com>
21578 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21580 * config/i386/sse.md
21581 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
21582 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
21583 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
21585 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21586 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21587 Anna Tikhonova <anna.tikhonova@intel.com>
21588 Ilya Tocar <ilya.tocar@intel.com>
21589 Andrey Turetskiy <andrey.turetskiy@intel.com>
21590 Ilya Verbin <ilya.verbin@intel.com>
21591 Kirill Yukhin <kirill.yukhin@intel.com>
21592 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21594 * config/i386/sse.md
21595 (define_mode_iterator VI128_256): New.
21596 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
21598 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21599 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21600 Anna Tikhonova <anna.tikhonova@intel.com>
21601 Ilya Tocar <ilya.tocar@intel.com>
21602 Andrey Turetskiy <andrey.turetskiy@intel.com>
21603 Ilya Verbin <ilya.verbin@intel.com>
21604 Kirill Yukhin <kirill.yukhin@intel.com>
21605 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21607 * config/i386/sse.md
21608 (define_mode_iterator VI8_256_512): New.
21609 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
21611 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
21612 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
21614 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
21616 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21618 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
21619 pointer to the cumulative reloc value and return the value for
21620 this reloc instead.
21621 (compute_reloc_for_rtx): Take a const_rtx. Call
21622 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
21623 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
21624 for_each_rtx for the CONST case.
21626 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21628 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
21629 (mark_constants_in_pattern): ...this new function to iterate over
21631 (mark_constants): Update accordingly.
21633 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21635 * varasm.c: Include rtl-iter.h.
21636 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
21637 Remove the pointer to the cumulative hashval_t and just return
21638 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
21639 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21640 Accumulate the hashval_ts here instead of const_rtx_hash_1.
21642 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21644 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
21645 Give real type of data parameter. Remove return value.
21646 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
21647 to iterate over subrtxes.
21649 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21651 * var-tracking.c (use_narrower_mode_test): Turn from being a
21652 for_each_rtx callback to being a function that examines each
21654 (adjust_mems): Update accordingly.
21656 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21658 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
21659 callback to being a function that examines each subrtx itself.
21660 Remove handling of null rtxes.
21661 (add_uses): Update accordingly.
21663 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21665 * var-tracking.c: Include rtl-iter.h.
21666 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
21667 to being a function that examines each subrtx itself.
21668 (use_type): Update accordingly.
21670 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21672 * store-motion.c: Include rtl-iter.h.
21673 (extract_mentioned_regs_1): Delete.
21674 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
21675 for_each_rtx to iterate over subrtxes.
21677 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21679 * sel-sched.c: Include rtl-iter.h
21680 (count_occurrences_1): Delete.
21681 (count_occurrences_equiv): Turn rtxes into const_rtxes.
21682 Use FOR_EACH_SUBRTX rather than for_each_rtx.
21684 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21686 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
21687 * rtlanal.c (tls_referenced_p_1): Delete.
21688 (tls_referenced_p): Take a const_rtx rather than an rtx.
21689 Use FOR_EACH_SUBRTX rather than for_each_rtx.
21691 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21693 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
21694 (for_each_inc_dec): Take an rtx rather than an rtx *.
21695 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
21696 (cselib_record_sets): Likewise.
21697 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
21698 (check_for_inc_dec): Likewise.
21699 * rtlanal.c (for_each_inc_dec_ops): Delete.
21700 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
21701 rather than a pointer to the memory address. Replace
21702 for_each_inc_dec_ops argument with separate function and data
21703 arguments. Abort on non-autoinc addresses.
21704 (for_each_inc_dec_find_mem): Delete.
21705 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
21706 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
21708 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21710 * rtl.h (find_all_hard_regs): Declare.
21711 * rtlanal.c (find_all_hard_regs): New function.
21712 (record_hard_reg_uses_1): Delete.
21713 (record_hard_reg_uses): Use find_all_hard_regs.
21715 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21717 * rtl.h (replace_label_data): Delete.
21718 (replace_label): Take the old label, new label and update-nuses flag
21719 as direct arguments. Return void.
21720 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
21721 * rtlanal.c (replace_label): Update interface as above. Handle
21722 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
21723 iterator. Use FOR_EACH_SUBRTX_PTR.
21725 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21727 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
21728 with const_rtx parameters.
21729 * varasm.c (get_pool_constant): Likewise.
21730 * rtlanal.c (rtx_referenced_p_1): Delete.
21731 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21732 Assert that the rtx we're looking for is nonnull. Allow searches
21733 for constant pool SYMBOL_REFs.
21735 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21737 * reload1.c: Include rtl-iter.h.
21738 (note_reg_elim_costly): Turn from being a for_each_rtx callback
21739 to being a function that examines each subrtx itself.
21740 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
21742 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21744 * regcprop.c (cprop_find_used_regs_1): Delete.
21745 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21747 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21749 * regcprop.c: Include rtl-iter.h.
21750 (kill_value): Take a const_rtx.
21751 (kill_autoinc_value): Turn from being a for_each_rtx callback
21752 to being a function that examines each subrtx itself.
21753 (copyprop_hardreg_forward_1): Update accordingly.
21755 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21757 * reg-stack.c: Include rtl-iter.h.
21758 (subst_stack_regs_in_debug_insn): Delete.
21759 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
21760 instead of for_each_rtx.
21762 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21764 * lower-subreg.c (find_decomposable_subregs): Turn from being
21765 a for_each_rtx callback to being a function that examines each
21766 subrtx itself. Remove handling of null rtxes.
21767 (decompose_multiword_subregs): Update accordingly.
21769 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21771 * lower-subreg.c (adjust_decomposed_uses): Delete.
21772 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
21773 Remove handling of null rtxes.
21775 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21777 * lower-subreg.c: Include rtl-iter.h.
21778 (resolve_subreg_use): Turn from being a for_each_rtx callback
21779 to being a function that examines each subrtx itself. Remove
21780 handling of null rtxes.
21781 (resolve_reg_notes, resolve_simple_move): Update accordingly.
21782 (decompose_multiword_subregs): Likewise.
21784 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21786 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
21787 to being a function that examines each subrtx itself.
21788 (simplify_using_condition, simplify_using_initial_values): Update
21791 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21793 * loop-iv.c: Include rtl-iter.h.
21794 (find_single_def_src): New function.
21795 (replace_single_def_regs): Turn from being a for_each_rtx callback
21796 to being a function that examines each subrtx itself.
21797 (replace_in_expr, simplify_using_initial_values): Update accordingly.
21799 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21801 * jump.c (eh_returnjump_p_1): Delete.
21802 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
21803 Remove handling of null rtxes.
21805 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21807 * jump.c: Include rtl-iter.h.
21808 (returnjump_p_1): Delete.
21809 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
21810 Remove handling of null rtxes.
21812 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21814 * ira.c: Include rtl-iter.h.
21815 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
21816 to being a function that examines each subrtx itself. Remove
21817 handling of null rtxes.
21818 (update_equiv_regs): Update call accordingly.
21820 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21822 * fwprop.c: Include rtl-iter.h.
21823 (varying_mem_p): Turn from being a for_each_rtx callback to being
21824 a function that examines each subrtx itself.
21825 (propagate_rtx): Update accordingly.
21827 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21829 * function.c: Include rtl-iter.h
21830 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
21831 callback to being a function that examines each subrtx itself.
21832 Return the changed flag.
21833 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
21834 (instantiate_virtual_regs): Update calls accordingly.
21836 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21838 * final.c: Include rtl-iter.h.
21839 (mark_symbol_ref_as_used): Delete.
21840 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
21843 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21845 * emit-rtl.c: Include rtl-iter.h.
21846 (find_auto_inc): Turn from being a for_each_rtx callback to being
21847 a function that examines each subrtx itself. Assume the first operand
21848 to an RTX_AUTOINC is the automodified register.
21849 (try_split): Update call accordingly.
21851 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21853 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
21854 Return a bool, inverting the result so that 0/false means "not ok".
21855 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
21856 subrtxes of a CONST.
21857 (mem_loc_descriptor, add_const_value_attribute)
21858 (resolve_addr_in_expr): Update calls accordingly.
21860 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21862 * dwarf2out.c: Include rtl-iter.h.
21863 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
21864 Remove unused data parameter. Return a bool, inverting the result
21865 so that 0/false means "not ok".
21866 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
21867 instead of for_each_rtx.
21869 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21871 * dse.c: Include rtl-iter.h.
21872 (check_mem_read_rtx): Change void * parameter to real type.
21873 Remove return value.
21874 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
21875 for_each_rtx. Don't handle null rtxes.
21877 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21879 * df-problems.c: Include rtl-iter.h.
21880 (find_memory): Turn from being a for_each_rtx callback to being
21881 a function that examines each subrtx itself. Continue to look for
21882 volatile references even after a nonvolatile one has been found.
21883 (can_move_insns_across): Update calls accordingly.
21885 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21887 * ddg.c (walk_mems_2, walk_mems_1): Delete.
21888 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
21889 to iterate over subrtxes. Return a bool rather than an int.
21891 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21893 * ddg.c: Include rtl-iter.h.
21894 (mark_mem_use_1): Rename to...
21895 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
21896 instead of for_each_rtx.
21897 (mem_read_insn_p): Update accordingly.
21899 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21901 * cse.c (change_cc_mode_args): Delete.
21902 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
21903 a function that examines each subrtx itself. Take the fields of
21904 change_cc_mode_args as argument and return void.
21905 (cse_change_cc_mode_insn): Update calls accordingly.
21907 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21909 * cse.c (is_dead_reg): Change argument to const_rtx.
21910 (dead_debug_insn_data): Delete.
21911 (is_dead_debug_insn): Expand commentary. Turn from being a
21912 for_each_rtx callback to being a function that examines
21913 each subrtx itself. Take the fields of dead_debug_insn_data
21915 (delete_trivially_dead_insns): Update call accordingly.
21917 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21919 * cse.c (check_for_label_ref): Move earlier in file. Turn from
21920 being a for_each_rtx callback to being a function that examines
21921 each subrtx itself.
21922 (cse_extended_basic_block): Update call accordingly.
21924 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21926 * cse.c (check_dependence_data): Delete.
21927 (check_dependence): Change from being a for_each_rtx callback to being
21928 a function that examines all subrtxes itself. Don't handle null rtxes.
21929 (invalidate): Update call accordingly.
21931 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21933 * cse.c: Include rtl-iter.h.
21934 (approx_reg_cost_1): Delete.
21935 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21936 Don't handle null rtxes.
21938 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21940 * cfgcleanup.c: Include rtl-iter.h.
21941 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
21942 to being a function that examines each subrtx itself.
21943 (thread_jump): Update accordingly.
21945 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21947 * combine-stack-adj.c: Include rtl-iter.h.
21948 (record_stack_refs_data): Delete.
21949 (record_stack_refs): Turn from being a for_each_rtx callback
21950 to being a function that examines each subrtx itself.
21951 Take a pointer to the reflist. Invert sense of return value
21952 so that true means success and false means failure. Don't
21954 (combine_stack_adjustments_for_block): Update accordingly.
21956 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21958 * combine.c (record_truncated_value): Turn from being a for_each_rtx
21959 callback to a function that takes an rtx and returns a bool
21960 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
21963 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21965 * combine.c: Include rtl-iter.h.
21966 (unmentioned_reg_p_1): Delete.
21967 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
21968 Don't handle null rtxes.
21970 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21972 * calls.c: Include rtl-iter.h.
21973 (internal_arg_pointer_based_exp_1): Delete.
21974 (internal_arg_pointer_based_exp): Take a const_rtx.
21975 Use FOR_EACH_SUBRTX to iterate over subrtxes.
21977 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21979 * caller-save.c: Include rtl-iter.h.
21980 (add_used_regs_1): Delete.
21981 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
21982 to iterate over subrtxes. Assert that any remaining pseudos
21985 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21987 * bt-load.c: Include rtl-iter.h.
21988 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
21989 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
21990 to iterate over subrtxes.
21991 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
21992 find_btr_use rather than btr_referenced_p.
21994 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21996 * alias.c: Include rtl-iter.h.
21997 (refs_newer_value_cb): Delete.
21998 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
22000 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22002 * rtl-iter.h: New file.
22003 * rtlanal.c: Include it.
22004 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
22005 (generic_subrtx_iterator <T>::add_single_to_queue)
22006 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
22007 (generic_subrtx_iterator <T>::free_array): New functions.
22008 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
22009 (generic_subrtx_iterator <const_rtx_accessor>)
22010 (generic_subrtx_iterator <rtx_var_accessor>
22011 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
22012 (setup_reg_subrtx_bounds): New function.
22013 (init_rtlanal): Call it.
22015 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
22018 * config/sh/sh.md (ashlsi3): Handle negative shift count for
22020 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
22022 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
22024 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
22026 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22028 * rtl.h (JUMP_LABEL_AS_INSN): New.
22030 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22032 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
22034 (alloc_EXPR_LIST): Strengthen return type from rtx to
22036 (remove_free_EXPR_LIST_node): Likewise for param.
22037 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
22038 from rtx to rtx_expr_list *.
22039 * sched-int.h (struct deps_desc): Strengthen fields
22040 "pending_read_mems" and "pending_write_mems" from rtx to
22043 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
22044 rtx to rtx_expr_list *.
22045 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
22046 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
22048 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
22049 from rtx to rtx_expr_list *.
22050 * loop-iv.c (simplify_using_initial_values): Strengthen local
22051 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
22052 "pnote_next" from rtx * to rtx_expr_list **.
22053 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
22054 param "exprp" from rtx * to rtx_expr_list **.
22055 (add_insn_mem_dependence): Strengthen local "mem_list" from
22056 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
22057 to rtx_expr_list *.
22058 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
22059 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
22060 param "old_mems_p" from rtx * to rtx_expr_list **.
22061 * var-tracking.c (struct adjust_mem_data): Strengthen field
22062 "side_effects" from rtx to rtx_expr_list *.
22063 (adjust_insn): Replace NULL_RTX with NULL when assigning to
22065 (prepare_call_arguments): Likewise.
22067 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22069 * function.h (struct rtl_data): Strengthen field
22070 "x_stack_slot_list" from rtx to rtx_expr_list *.
22072 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
22073 when assigning to stack_slot_list.
22075 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22077 * function.h (struct rtl_data): Strengthen field
22078 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
22079 * rtl.h (remove_node_from_expr_list): Strengthen second param from
22080 rtx * to rtx_expr_list **.
22082 * cfgbuild.c (make_edges): In loop over
22083 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
22084 rtx_expr_list *, and use methods of the latter class to clarify
22086 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
22087 rtx_expr_list *, and use methods of the latter class to clarify
22089 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
22090 * reload1.c (set_initial_label_offsets): Likewise for local "x".
22091 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
22092 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
22093 to rtx_expr_list *. Use methods of the latter class to clarify
22096 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22098 * function.h (struct expr_status): Strengthen field
22099 "x_forced_labels" from rtx to rtx_expr_list *.
22101 * cfgbuild.c (make_edges): Split local "x" into two locals,
22102 strengthening one from rtx to rtx_expr_list *, and using methods
22104 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
22105 loop over forced_labels, introduce strengthen it from rtx to
22106 rtx_expr_list *, using methods to clarify the code.
22107 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
22108 to rtx_expr_list *, using methods of said class to clarify the
22110 * reload1.c (set_initial_label_offsets): Split local "x" into two
22111 per-loop variables, strengthening the first from rtx to
22112 rtx_expr_list * and using methods.
22114 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22116 * coretypes.h (class rtx_expr_list): Add forward declaration.
22117 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
22118 * gengenrtl.c (special_rtx): Add EXPR_LIST.
22119 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
22120 invariant: GET_CODE (X) == EXPR_LIST.
22121 (is_a_helper <rtx_expr_list *>::test): New.
22122 (rtx_expr_list::next): New.
22123 (rtx_expr_list::element): New.
22124 (gen_rtx_EXPR_LIST): New.
22126 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22128 * varasm.c (mark_constants): Convert a GET_CODE check into a
22129 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
22130 Use methods of rtx_sequence to clarify the code.
22132 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22134 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
22135 local "seq" via a checked cast, and use methods of rtx_sequence
22136 to simplify the code.
22138 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22140 * resource.c (mark_referenced_resources): Strengthen local
22141 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
22142 using methods of rtx_sequence to clarify the code.
22143 (find_dead_or_set_registers): Within the switch statement, convert
22144 a GET_CODE check to a dyn_cast, introducing local "seq". Within
22145 the JUMP_P handling, introduce another local "seq", adding a
22146 checked cast to rtx_sequence *. In both cases, use methods of
22147 rtx_sequence to clarify the code.
22148 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
22149 via a checked cast, and use methods of rtx_sequence to simplify
22152 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22154 * reorg.c (redundant_insn): In two places in the function, replace
22155 a check of GET_CODE with a dyn_cast, introducing local "seq", and
22156 usings methods of rtx_sequence to clarify the code.
22158 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22160 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
22161 local "seq" with a checked cast, and use methods of rtx_sequence
22162 to clarify the code.
22164 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22166 * function.c (contains): Introduce local "seq" for PATTERN (insn),
22167 with a checked cast, in the region for where we know it's a
22168 SEQUENCE. Use methods of rtx_sequence.
22170 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22172 * final.c (get_attr_length_1): Replace GET_CODE check with a
22173 dyn_cast, introducing local "seq" and the use of methods of
22175 (shorten_branches): Likewise, introducing local "body_seq".
22176 Strengthen local "inner_insn" from rtx to rtx_insn *.
22177 (reemit_insn_block_notes): Replace GET_CODE check with a
22178 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
22179 Use methods of rtx_sequence.
22180 (final_scan_insn): Likewise, introducing local "seq" for when
22181 "body" is known to be a SEQUENCE, using its methods.
22183 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22185 * except.c (can_throw_external): Strengthen local "seq" from rtx
22186 to rtx_sequence *. Use methods of rtx_sequence.
22187 (insn_nothrow_p): Likewise.
22189 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22191 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
22192 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
22193 Use methods of rtx_sequence.
22194 (scan_trace): Likewise for local "pat".
22196 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22198 * coretypes.h (class rtx_sequence): Add forward declaration.
22199 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
22200 invariant: GET_CODE (X) == SEQUENCE.
22201 (is_a_helper <rtx_sequence *>::test): New.
22202 (is_a_helper <const rtx_sequence *>::test): New.
22203 (rtx_sequence::len): New.
22204 (rtx_sequence::element): New.
22205 (rtx_sequence::insn): New.
22207 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22209 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
22211 (alloc_INSN_LIST): Strengthen return type from rtx to
22213 (copy_INSN_LIST): Likewise for return type and param.
22214 (concat_INSN_LIST): Likewise for both params and return type.
22215 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
22216 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
22217 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
22218 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
22220 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
22221 "implicit_sets", "control_uses", "clobbers" from rtx to
22223 (struct deps_desc): Likewise for fields "pending_read_insns",
22224 "pending_write_insns", "pending_jump_insns",
22225 "last_pending_memory_flush", "last_function_call",
22226 "last_function_call_may_noreturn", "sched_before_next_call",
22227 "sched_before_next_jump".
22228 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
22229 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
22231 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
22232 from rtx to rtx_insn_list *.
22233 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
22236 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
22237 to rtx_insn_list **.
22238 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
22240 (queue_insn): Likewise for local "link".
22241 (struct haifa_saved_data): Strengthen field "insn_queue" from
22242 rtx * to rtx_insn_list **.
22243 (save_backtrack_point): Update allocation of save->insn_queue to
22244 reflect the strengthening of elements from rtx to rtx_insn_list *.
22245 (queue_to_ready): Strengthen local "link" from rtx to
22246 rtx_insn_list *; use methods "next" and "insn" when traversing the
22248 (early_queue_to_ready): Likewise for locals "link", "next_link",
22250 (schedule_block): Update allocation of insn_queue to reflect the
22251 strengthening of elements from rtx to rtx_insn_list *. Strengthen
22252 local "link" from rtx to rtx_insn_list *, and use methods when
22254 (add_to_speculative_block): Strengthen locals "twins" and
22255 "next_node" from rtx to rtx_insn_list *, and use methods when
22256 working with them. Strengthen local "twin" from rtx to
22257 rtx_insn *, eliminating a checked cast.
22258 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
22259 from rtx to rtx_insn_list *, and use methods when working with
22262 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
22263 from rtx to rtx_insn_list *, adding a checked cast.
22264 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
22266 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
22267 "newlink" from rtx to rtx_insn_list *. Strengthen local
22268 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
22269 from rtx to rtx_insn *.
22270 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
22271 from rtx to rtx_insn_list *. Use methods of the latter class.
22272 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
22273 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
22274 (remove_free_INSN_LIST_node): Strengthen return type and local
22275 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
22276 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
22277 rtx_insn_list *, using "insn" method.
22279 * sched-deps.c (add_dependence_list): Strengthen param "list"
22280 from rtx to rtx_insn_list *, and use methods when working with it.
22281 (add_dependence_list_and_free): Strengthen param "listp" from
22282 rtx * to rtx_insn_list **.
22283 (remove_from_dependence_list): Strenghten param "listp" from rtx *
22284 to rtx_insn_list **, and use methods when working with *listp.
22285 (remove_from_both_dependence_lists): Strengthen param "listp" from
22286 rtx * to rtx_insn_list **
22287 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
22288 to rtx_insn_list **. Eliminate local "link", in favor of two new
22289 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
22291 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
22292 by introducing local "cond_deps".
22293 (remove_from_deps): Strengthen param "insn" from rtx to
22296 * sched-rgn.c (concat_insn_mem_list): Strengthen param
22297 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
22298 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
22299 Use methods of rtx_insn_list.
22301 * store-motion.c (struct st_expr): Strengthen fields
22302 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
22303 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
22305 (find_moveable_store): Split out "tmp" into multiple more-tightly
22306 scoped locals. Use methods of rtx_insn_list *.
22307 (compute_store_table): Strengthen local "tmp" from rtx to
22308 rtx_insn *. Use methods of rtx_insn_list *.
22310 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22312 * coretypes.h (class rtx_insn_list): Add forward declaration.
22313 * rtl.h (class rtx_insn_list): New subclass of rtx_def
22314 (is_a_helper <rtx_insn_list *>::test): New.
22315 (rtx_insn_list::next): New.
22316 (rtx_insn_list::insn): New.
22317 (gen_rtx_INSN_LIST): Add prototype.
22318 * emit-rtl.c (gen_rtx_INSN_LIST): New.
22319 * gengenrtl.c (special_rtx): Add INSN_LIST.
22321 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22323 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
22324 "prev" from rtx to rtx_insn *.
22326 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22328 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
22329 functions. Require merely an rtx for now, not an rtx_insn *.
22330 (BLOCK_FOR_INSN): Likewise.
22331 (INSN_LOCATION): Likewise.
22332 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
22334 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22336 * rtl.h (PATTERN): Convert this macro into a pair of inline
22337 functions, for now, requiring const_rtx and rtx.
22339 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22341 * target.def (unwind_emit): Strengthen param "insn" from rtx to
22343 (final_postscan_insn): Likewise.
22344 (adjust_cost): Likewise.
22345 (adjust_priority): Likewise.
22346 (variable_issue): Likewise.
22347 (macro_fusion_pair_p): Likewise.
22348 (dfa_post_cycle_insn): Likewise.
22349 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
22350 (first_cycle_multipass_issue): Likewise.
22351 (dfa_new_cycle): Likewise.
22352 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
22353 (speculate_insn): Likewise for param "insn".
22354 (gen_spec_check): Likewise for params "insn" and "label".
22355 (get_insn_spec_ds): Likewise for param "insn".
22356 (get_insn_checked_ds): Likewise.
22357 (dispatch_do): Likewise.
22358 (dispatch): Likewise.
22359 (cannot_copy_insn_p): Likewise.
22360 (invalid_within_doloop): Likewise.
22361 (legitimate_combined_insn): Likewise.
22362 (needed): Likewise.
22365 * doc/tm.texi: Automatically updated to reflect changes to
22368 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
22370 (schedule_block): Likewise.
22371 (sched_init): Likewise.
22372 (sched_speculate_insn): Strengthen param "insn" from rtx to
22374 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
22376 * hooks.c (hook_bool_rtx_true): Rename to...
22377 hook_bool_rtx_insn_true): ...this, and strengthen first param from
22379 (hook_constcharptr_const_rtx_null): Rename to...
22380 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
22381 first param from const_rtx to const rtx_insn *.
22382 (hook_bool_rtx_int_false): Rename to...
22383 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
22384 param from rtx to rtx_insn *.
22385 (hook_void_rtx_int): Rename to...
22386 (hook_void_rtx_insn_int): ...this, and strengthen first param from
22389 * hooks.h (hook_bool_rtx_true): Rename to...
22390 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
22392 (hook_bool_rtx_int_false): Rename to...
22393 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
22394 param from rtx to rtx_insn *.
22395 (hook_void_rtx_int): Rename to...
22396 (hook_void_rtx_insn_int): ...this, and strengthen first param from
22398 (hook_constcharptr_const_rtx_null): Rename to...
22399 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
22400 first param from const_rtx to const rtx_insn *.
22402 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
22403 and local "prev" from rtx to rtx_insn *.
22405 * sched-int.h (sched_speculate_insn): Strengthen first param from
22408 * sel-sched.c (create_speculation_check): Likewise for local "label".
22409 * targhooks.c (default_invalid_within_doloop): Strengthen param
22410 "insn" from const_rtx to const rtx_insn *.
22411 * targhooks.h (default_invalid_within_doloop): Strengthen param
22412 from const_rtx to const rtx_insn *.
22414 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
22415 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
22417 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
22419 (arc_invalid_within_doloop): Likewise, with const.
22421 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
22422 (arm_cannot_copy_insn_p): Likewise for param "insn".
22423 (arm_unwind_emit): Likewise.
22425 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
22428 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
22429 (c6x_variable_issue): Likewise. Removed now-redundant checked
22431 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
22433 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
22434 Likewise for param "insn".
22435 (epiphany_mode_after): Likewise.
22436 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
22437 params "insn", "dep_insn".
22438 (epiphany_mode_needed): Likewise for param "insn".
22439 (epiphany_mode_after): Likewise.
22441 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
22442 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22443 (ix86_avx_u128_mode_needed): Likewise.
22444 (ix86_i387_mode_needed): Likewise.
22445 (ix86_mode_needed): Likewise.
22446 (ix86_avx_u128_mode_after): Likewise.
22447 (ix86_mode_after): Likewise.
22448 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
22449 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
22450 (ix86_adjust_priority): Likewise for param "insn".
22451 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
22452 (do_dispatch): Likewise.
22453 (has_dispatch): Likewise.
22454 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
22456 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
22457 reflect renaming of default hook implementation from
22458 hook_constcharptr_const_rtx_null to
22459 hook_constcharptr_const_rtx_insn_null.
22460 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
22462 (ia64_variable_issue): Likewise for param "insn".
22463 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
22464 (ia64_dfa_new_cycle): Likewise.
22465 (ia64_get_insn_spec_ds): Likewise.
22466 (ia64_get_insn_checked_ds): Likewise.
22467 (ia64_speculate_insn): Likewise.
22468 (ia64_gen_spec_check): Likewise for params "insn", "label".
22469 (ia64_asm_unwind_emit): Likewise for param "insn".
22471 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
22473 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
22474 "insn", "def_insn".
22475 (m68k_sched_variable_issue): Likewise for param "insn".
22477 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
22480 * config/microblaze/microblaze.c (microblaze_adjust_cost):
22481 Likewise for params "insn", "dep".
22483 * config/mips/mips.c (mips_adjust_cost): Likewise.
22484 (mips_variable_issue): Likewise for param "insn".
22485 (mips_final_postscan_insn): Likewise.
22487 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
22488 for params "insn", "dep".
22490 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
22492 (pa_adjust_priority): Likewise for param "insn".
22494 * config/picochip/picochip.c (picochip_sched_adjust_cost):
22495 Likewise for params "insn", "dep_insn".
22497 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
22499 (rs6000_variable_issue): Likewise.
22500 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
22501 (rs6000_debug_adjust_cost): Likewise.
22502 (rs6000_adjust_priority): Likewise for param "insn".
22503 (rs6000_use_sched_lookahead_guard): Likewise.
22504 (get_next_active_insn): Likewise for return type and both params.
22505 (redefine_groups): Likewise for params "prev_head_insn", "tail"
22506 and locals "insn", "next_insn".
22507 (pad_groups): Likewise.
22509 * config/s390/s390.c (s390_adjust_priority): Likewise for param
22511 (s390_cannot_copy_insn_p): Likewise.
22512 (s390_sched_variable_issue): Likewise for third param, eliminating
22514 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
22515 default hook implementation from hook_constcharptr_const_rtx_null
22516 to hook_constcharptr_const_rtx_insn_null.
22518 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
22519 from rtx to rtx_insn *.
22520 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
22521 (sh_variable_issue): Likewise for param "insn".
22522 (sh_dfa_new_cycle): Likewise.
22523 (sh_mode_needed): Likewise.
22524 (sh_mode_after): Likewise.
22526 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
22527 params "insn", "dep_insn".
22528 (hypersparc_adjust_cost): Likewise.
22529 (sparc_adjust_cost): Likewise.
22531 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
22532 param, eliminated checked cast.
22533 (spu_sched_adjust_cost): Likewise for first and third params.
22535 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
22536 params "insn" and "dep_insn" from rtx to rtx_insn *.
22538 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
22540 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22542 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
22543 (set_is_load_p): ...this, updating to work on a SET pattern rather
22545 (is_store_insn): Rename to...
22546 (set_is_store_p): ...this, updating to work on a SET pattern
22547 rather than an insn.
22548 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
22549 top of function to where it is needed. Rewrite the bogus
22550 condition that checks for "insn" and "dep" being PARALLEL to
22551 instead use single_set, introducing locals "insn_set" and
22552 "dep_set". Given that we only ever returned "cost" for a non-pair
22553 of SETs, bail out early if we don't have a pair of SET.
22554 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
22555 use the new locals "insn_set" and "dep_set", and update calls to
22556 is_load_insn and is_store_insn to be calls to set_is_load_p and
22559 2014-08-27 Guozhi Wei <carrot@google.com>
22562 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
22563 amount before using it.
22565 2014-08-27 Richard Biener <rguenther@suse.de>
22567 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
22568 get_maxval_strlen inside a more useful API.
22569 (gimple_fold_builtin_with_strlen): Remove and fold into ...
22570 (gimple_fold_builtin): ... caller.
22571 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
22572 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
22573 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
22574 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
22575 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
22576 gimple_fold_builtin_sprintf): Adjust to compute maxval
22579 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
22582 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
22584 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
22585 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22586 Anna Tikhonova <anna.tikhonova@intel.com>
22587 Ilya Tocar <ilya.tocar@intel.com>
22588 Andrey Turetskiy <andrey.turetskiy@intel.com>
22589 Ilya Verbin <ilya.verbin@intel.com>
22590 Kirill Yukhin <kirill.yukhin@intel.com>
22591 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22593 * config/i386/sse.md
22594 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
22595 Use `concat_tg_mode' attribute to determine asm register size.
22597 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
22598 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22599 Anna Tikhonova <anna.tikhonova@intel.com>
22600 Ilya Tocar <ilya.tocar@intel.com>
22601 Andrey Turetskiy <andrey.turetskiy@intel.com>
22602 Ilya Verbin <ilya.verbin@intel.com>
22603 Kirill Yukhin <kirill.yukhin@intel.com>
22604 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22606 * config/i386/sse.md
22607 (define_mode_iterator VI48_AVX512VL): New.
22608 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
22609 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
22610 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
22611 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22612 with VI1): Change mode iterator.
22613 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22614 with VI_ULOADSTORE_BW_AVX512VL): New.
22615 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22616 with VI_ULOADSTORE_F_AVX512VL): Ditto.
22617 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22618 with VI1): Change mode iterator.
22619 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22620 with VI_ULOADSTORE_BW_AVX512VL): New.
22621 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22622 with VI_ULOADSTORE_F_AVX512VL): Ditto.
22623 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
22624 with VI1): Change mode iterator.
22625 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
22626 with VI_ULOADSTORE_BW_AVX512VL): New.
22627 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
22628 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
22629 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
22630 (define_insn "<avx512>_storedqu<mode>_mask" with
22631 VI48_AVX512VL): New.
22632 (define_insn "<avx512>_storedqu<mode>_mask" with
22633 VI12_AVX512VL): Ditto.
22635 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
22636 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22637 Anna Tikhonova <anna.tikhonova@intel.com>
22638 Ilya Tocar <ilya.tocar@intel.com>
22639 Andrey Turetskiy <andrey.turetskiy@intel.com>
22640 Ilya Verbin <ilya.verbin@intel.com>
22641 Kirill Yukhin <kirill.yukhin@intel.com>
22642 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22644 * config/i386/sse.md
22645 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
22646 (define_mode_iterator VI48_AVX512BW): New.
22647 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
22648 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
22649 with VI48_AVX2_48_AVX512F): New.
22650 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
22651 with VI2_AVX512VL): Ditto.
22653 2014-08-27 Richard Biener <rguenther@suse.de>
22655 PR middle-end/62239
22656 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
22657 (fold_builtin_3): Do not fold strcat_chk here.
22658 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
22660 (gimple_fold_builtin): Fold strcat_chk here.
22662 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
22664 * dwarf2out.h (dwarf2out_decl): Remove prototype.
22665 * dwarf2out.c (dwarf2out_decl): Make static.
22667 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
22669 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
22671 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22673 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
22674 from rtx to rtx_insn *.
22675 (cselib_lookup_from_insn): Likewise for final param.
22676 (cselib_subst_to_values_from_insn): Likewise.
22677 (cselib_add_permanent_equiv): Likewise.
22679 * cselib.c (cselib_current_insn): Likewise for this variable.
22680 (cselib_subst_to_values_from_insn): Likewise for param "insn".
22681 (cselib_lookup_from_insn): Likewise.
22682 (cselib_add_permanent_equiv): Likewise for param "insn" and local
22683 "save_cselib_current_insn".
22684 (cselib_process_insn): Replace use of NULL_RTX with NULL.
22686 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
22687 from rtx to rtx_insn *.
22689 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22691 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
22694 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22696 * df.h (df_dump_insn_problem_function): Strengthen first param of
22697 this callback from const_rtx to const rtx_insn *.
22698 (struct df_insn_info): Strengthen field "insn" from rtx to
22700 (DF_REF_INSN): Eliminate this function, reinstating the older
22702 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
22703 (df_reg_defined): Likewise.
22704 (df_find_use): Likewise.
22705 (df_reg_used): Likewise.
22706 (df_dump_insn_top): Strengthen param 1 from const_rtx to
22708 (df_dump_insn_bottom): Likewise.
22709 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
22710 (df_insn_debug_regno): Likewise.
22711 (debug_df_insn): Likewise.
22712 (df_rd_simulate_one_insn): Likewise for param 2.
22713 (df_word_lr_simulate_defs): Likewise for param 1.
22714 (df_word_lr_simulate_uses): Likewise.
22715 (df_md_simulate_one_insn): Likewise for param 2.
22716 (df_simulate_find_noclobber_defs): Likewise for param 1.
22717 (df_simulate_find_defs): Likewise.
22718 (df_simulate_defs): Likewise.
22719 (df_simulate_uses): Likewise.
22720 (df_simulate_one_insn_backwards): Likewise for param 2.
22721 (df_simulate_one_insn_forwards): Likewise.
22722 (df_uses_create): Likewise for param 2.
22723 (df_insn_create_insn_record): Likewise for param 1.
22724 (df_insn_delete): Likewise.
22725 (df_insn_rescan): Likewise.
22726 (df_insn_rescan_debug_internal): Likewise.
22727 (df_insn_change_bb): Likewise.
22728 (df_notes_rescan): Likewise.
22729 * rtl.h (remove_death): Likewise for param 2.
22730 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
22732 * sched-int.h (reemit_notes): Strengthen param from rtx to
22734 * valtrack.h (propagate_for_debug): Likewise for param 1.
22736 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
22737 local "tmp_rtx" from const_rtx to const rtx_insn *.
22738 * combine.c (remove_death): Strengthen param "insn" from rtx to
22740 (move_deaths): Likewise for local "where_dead".
22741 * cse.c (delete_trivially_dead_insns): Introduce local
22742 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
22743 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
22745 (df_reg_defined): Likewise.
22746 (df_find_use): Likewise.
22747 (df_reg_used): Likewise.
22748 (df_dump_insn_problem_data): Strengthen param "insn" from
22749 const_rtx to const rtx_insn *.
22750 (df_dump_insn_top): Likewise.
22751 (df_dump_insn_bottom): Likewise.
22752 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
22753 (df_insn_debug_regno): Likewise.
22754 (debug_df_insn): Likewise.
22755 (DF_REF_INSN): Delete.
22756 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
22757 from rtx to rtx_insn *.
22758 (df_chain_insn_top_dump): Strengthen param "insn" from
22759 const_rtx to const rtx_insn *.
22760 (df_chain_insn_bottom_dump): Likewise.
22761 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
22763 (df_word_lr_simulate_uses): Likewise.
22764 (df_print_note): Likewise.
22765 (df_remove_dead_and_unused_notes): Likewise.
22766 (df_set_unused_notes_for_mw): Likewise.
22767 (df_set_dead_notes_for_mw): Likewise.
22768 (df_create_unused_note): Likewise.
22769 (df_simulate_find_defs): Likewise.
22770 (df_simulate_find_uses): Likewise.
22771 (df_simulate_find_noclobber_defs): Likewise.
22772 (df_simulate_defs): Likewise.
22773 (df_simulate_uses): Likewise.
22774 (df_simulate_one_insn_backwards): Likewise.
22775 (df_simulate_one_insn_forwards): Likewise.
22776 (df_md_simulate_one_insn): Likewise.
22777 * df-scan.c (df_uses_create): Likewise.
22778 (df_insn_create_insn_record): Likewise.
22779 (df_insn_delete): Likewise.
22780 (df_insn_rescan): Likewise.
22781 (df_insn_rescan_debug_internal): Likewise.
22782 (df_insn_change_bb): Likewise.
22783 (df_notes_rescan): Likewise.
22784 (df_refs_add_to_chains): Likewise.
22785 (df_insn_refs_verify): Likewise.
22786 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
22787 when invoking df_insn_delete.
22788 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
22789 (set_unique_reg_note): Add checked cast.
22790 * final.c (cleanup_subreg_operands): Likewise.
22791 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
22792 "insn" from rtx to rtx_insn *.
22793 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
22794 "last" from rtx to rtx_insn *.
22795 * ira-emit.c (change_regs_in_insn): New function.
22796 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
22797 Invoke change_regs_in_insn rather than change_regs.
22798 * ira.c (update_equiv_regs): Strengthen locals "insn",
22799 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
22800 for_each_rtx_in_insn rather than for_each_rtx.
22801 * recog.c (confirm_change_group): Add checked casts.
22802 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
22804 (peep2_fill_buffer): Add checked cast.
22805 * rtlanal.c (remove_note): Likewise.
22806 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
22807 locals "next" "end" from rtx to rtx_insn *.
22809 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22811 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
22813 (struct reg_use_data): Likewise for field "insn".
22814 (insn_cost): Likewise for param.
22815 (real_insn_for_shadow): Likewise for return type and param.
22816 (increase_insn_priority): Likewise for param 1.
22817 (debug_dependencies): Likewise for both params.
22819 * haifa-sched.c (insn_delay): Likewise for param "insn".
22820 (real_insn_for_shadow): Likewise for return type and param "insn".
22821 (update_insn_after_change): Likewise for param "insn".
22822 (recompute_todo_spec): Likewise for param "next" and locals "pro",
22824 (insn_cost): Likewise for param "insn".
22825 (increase_insn_priority): Likewise.
22826 (calculate_reg_deaths): Likewise.
22827 (setup_insn_reg_pressure_info): Likewise.
22828 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
22829 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
22830 (model_recompute): Likewise.
22831 (must_restore_pattern_p): Likewise for param "next".
22832 (model_excess_cost): Likewise for param "insn".
22833 (queue_remove): Likewise.
22834 (adjust_priority): Likewise for param "prev".
22835 (update_register_pressure): Likewise for param "insn".
22836 (setup_insn_max_reg_pressure): Likewise for local "insn".
22837 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
22838 (model_add_to_schedule): Likewise.
22839 (model_reset_queue_indices): Likewise for local "insn".
22840 (unschedule_insns_until): Strengthen local "recompute_vec" from
22841 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
22842 "con" from rtx to rtx_insn *.
22843 (restore_last_backtrack_point): Likewise for both locals "x". Add
22845 (estimate_insn_tick): Likewise for param "insn".
22846 (commit_schedule): Likewise for params "prev_head", "tail" and
22848 (verify_shadows): Likewise for locals "i1", "i2".
22849 (dump_insn_stream): Likewise for params "head", "tail" and locals
22850 "next_tail", "insn".
22851 (schedule_block): Likewise for locals "insn", "x". Add a checked
22853 (fix_inter_tick): Likewise for params "head", "tail".
22854 (create_check_block_twin): Likewise for local "jump".
22855 (haifa_change_pattern): Likewise for param "insn".
22856 (haifa_speculate_insn): Likewise.
22857 (dump_new_block_header): Likewise for params "head", "tail".
22858 (fix_jump_move): Likewise for param "jump".
22859 (move_block_after_check): Likewise.
22860 (sched_init_insn_luid): Likewise for param "insn".
22861 (sched_init_luids): Likewise for local "insn".
22862 (insn_luid): Likewise for param "insn".
22863 (init_h_i_d): Likewise.
22864 (haifa_init_h_i_d): Likewise for local "insn".
22865 (haifa_init_insn): Likewise for param "insn".
22866 * sched-deps.c (add_dependence): Likewise for local "real_pro",
22868 (create_insn_reg_use): Likewise for param "insn".
22869 (setup_insn_reg_uses): Likewise. Add a checked cast.
22870 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
22871 "tail" from rtx to rtx_insn *.
22872 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
22873 "insn", "next_tail".
22875 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22877 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
22878 from rtx to rtx_insn *.
22879 (model_add_to_schedule): Likewise for locals "start", "end",
22882 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22884 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
22886 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
22887 "to" and locals "insn", "next", "copy". Remove now-redundant
22890 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22892 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
22893 rtx_insn * and param 4 from rtx * to rtx_insn **.
22894 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
22895 param 2 from rtx * to rtx_insn **.
22897 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
22898 rtx_insn * and final param from rtx * to rtx_insn **.
22900 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
22901 from rtx to rtx_insn *.
22902 (try_head_merge_bb): Likewise for both locals named "move_upto".
22903 * df-problems.c (can_move_insns_across): Likewise for params
22904 "from", "to", "across_from", "across_to" and locals "insn",
22905 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
22907 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
22908 from rtx to rtx_insn *.
22909 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
22910 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
22911 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
22913 (noce_try_abs): Likewise.
22914 (noce_get_condition): Likewise for param "jump". Strengthen param
22915 "earliest" from rtx * to rtx_insn **.
22916 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
22918 (find_cond_trap): Likewise.
22919 (dead_or_predicable): Likewise for local "earliest".
22920 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
22922 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
22923 and local "prev". Strengthen param "earliest" from rtx * to
22925 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
22926 Strengthen param "earliest" from rtx * to rtx_insn **.
22928 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22930 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
22931 "to" and local "insn" from rtx to rtx_insn *.
22933 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22935 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
22936 from rtx to rtx_insn *.
22937 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
22938 (code_motion_path_driver): Likewise for local "last_insn".
22939 (simplify_changed_insns): Likewise for local "insn".
22941 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22943 * rtl.h (push_to_sequence): Strengthen param from rtx to
22945 (push_to_sequence2): Likewise for both params.
22946 (delete_insns_since): Likewise for param.
22947 (reorder_insns_nobb): Likewise for all three params.
22948 (set_new_first_and_last_insn): Likewise for both params.
22950 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
22951 rtx_insn *. Remove now-redundant cast.
22952 (set_last_insn): Likewise.
22954 * builtins.c (expand_builtin_return): Strengthen local
22955 "call_fusage" from rtx to rtx_insn *.
22956 * cfgrtl.c (create_basic_block_structure): Likewise for local
22958 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
22959 "first", "last" and local "insn".
22960 (delete_insns_since): Likewise for param "from".
22961 (reorder_insns_nobb): Likewise for params "from", "to", "after"
22963 (push_to_sequence): Likewise for param "first" and local "last".
22964 (push_to_sequence2): Likewise for params "first" and "last".
22965 * lra.c (emit_add3_insn): Likewise for local "last".
22966 (lra_emit_add): Likewise.
22967 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
22969 (process_address_1): Likewise for locals "insn", last".
22970 * modulo-sched.c (ps_first_note): Likewise for return type.
22971 * optabs.c (expand_binop_directly): Likewise for param "last".
22973 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22975 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
22977 * emit-rtl.c (get_last_insn_anywhere): Likewise.
22979 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22981 * function.h (struct sequence_stack): Strengthen fields "first"
22982 and "last" from rtx to rtx_insn *.
22983 (struct emit_status): Likewise for fields "x_first_insn" and
22986 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
22987 (set_first_insn): Add checked cast.
22988 (get_last_insn): Remove now-redundant checked cast.
22989 (set_last_insn): Add checked cast.
22991 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
22992 "saved_first" and "saved_last" from rtx to rtx_insn *.
22994 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22996 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
22997 (unlink_insn_chain): Strengthen both params from rtx to
23000 * cfgrtl.c (cfg_layout_function_header): Likewise for this
23002 (unlink_insn_chain): Likewise for params "first" and "last".
23003 Remove now-redundant checked cast.
23004 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
23005 (fixup_reorder_chain): Strengthen local "insn" from rtx to
23007 * emit-rtl.c (link_insn_into_chain): Likewise for all three
23009 (add_insn): Likewise for param "insn" and local "prev".
23010 (add_insn_after_nobb): Likewise for both params and local "next".
23011 (add_insn_before_nobb): Likewise for both params and local "prev".
23012 (add_insn_after): Rename param "after" to "uncast_after",
23013 introducing local "after" with another checked cast.
23014 (add_insn_before): Rename params "insn" and "before", giving them
23015 "uncast_" prefixes, adding the old names back using checked casts.
23016 (emit_note_after): Likewise for param "after".
23017 (emit_note_before): Likewise for param "before".
23018 (emit_label): Add a checked cast.
23020 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23022 * cselib.h (cselib_record_sets_hook): Strengthen initial param
23023 "insn" from rtx to rtx_insn *.
23025 * cselib.c (cselib_record_sets_hook): Likewise.
23027 * var-tracking.c (add_with_sets): Likewise, renaming back from
23028 "uncast_insn" to "insn" and eliminating the checked cast from rtx
23031 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23033 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
23034 and "header_" from rtx to rtx_insn *.
23035 (struct basic_block_d): Likewise for field "head_" within "x"
23036 field of union basic_block_il_dependent.
23037 (BB_HEAD): Drop function...
23038 (SET_BB_HEAD): ...and this function in favor of...
23039 (BB_HEAD): ...reinstate macro.
23040 (BB_END): Drop function...
23041 (SET_BB_END): ...and this function in favor of...
23042 (BB_END): ...reinstate macro.
23043 (BB_HEADER): Drop function...
23044 (SET_BB_HEADER): ...and this function in favor of...
23045 (BB_HEADER): ...reinstate macro.
23047 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
23048 (fix_crossing_unconditional_branches): Likewise.
23049 * caller-save.c (save_call_clobbered_regs): Likewise.
23050 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
23051 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
23052 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
23053 (merge_blocks_move_successor_nojumps): Likewise.
23054 (outgoing_edges_match): Update use of for_each_rtx to
23055 for_each_rtx_in_insn.
23056 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
23057 (expand_gimple_cond): Likewise.
23058 (expand_gimple_tailcall): Likewise.
23059 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
23061 (construct_exit_block): Drop use of SET_BB_END.
23062 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
23064 (delete_insn): Rename param "insn" to "uncast_insn", introducing
23065 a new local "insn" with a checked cast to rtx_insn *. Drop use of
23066 SET_BB_HEAD and SET_BB_END.
23067 (create_basic_block_structure): Drop use of SET_BB_HEAD and
23069 (rtl_delete_block): Drop use of SET_BB_HEAD.
23070 (rtl_split_block): Drop use of SET_BB_END.
23071 (emit_nop_for_unique_locus_between): Likewise.
23072 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
23073 (block_label): Drop use of SET_BB_HEAD.
23074 (fixup_abnormal_edges): Drop use of SET_BB_END.
23075 (record_effective_endpoints): Drop use of SET_BB_HEADER.
23076 (relink_block_chain): Likewise.
23077 (fixup_reorder_chain): Drop use of SET_BB_END.
23078 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
23079 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
23080 rtx_insn **. Drop use of SET_BB_HEADER.
23081 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
23083 (BB_HEAD): Delete this function.
23084 (SET_BB_HEAD): Likewise.
23085 (BB_END): Likewise.
23086 (SET_BB_END): Likewise.
23087 (BB_HEADER): Likewise.
23088 (SET_BB_HEADER): Likewise.
23089 * emit-rtl.c (add_insn_after): Rename param "insn" to
23090 "uncast_insn", adding a new local "insn" and a checked cast to
23091 rtx_insn *. Drop use of SET_BB_END.
23092 (remove_insn): Strengthen locals "next" and "prev" from rtx to
23093 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
23094 (reorder_insns): Drop use of SET_BB_END.
23095 (emit_insn_after_1): Strengthen param "first" and locals "last",
23096 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
23097 (emit_pattern_after_noloc): Add checked cast.
23098 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
23099 (restore_other_notes): Likewise.
23100 (move_insn): Likewise.
23101 (sched_extend_bb): Likewise.
23102 (fix_jump_move): Likewise.
23103 * ifcvt.c (noce_process_if_block): Likewise.
23104 (dead_or_predicable): Likewise.
23105 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
23106 * reg-stack.c (change_stack): Drop use of SET_BB_END.
23107 * sel-sched-ir.c (sel_move_insn): Likewise.
23108 * sel-sched.c (move_nop_to_previous_block): Likewise.
23110 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
23112 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
23114 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23116 * basic-block.h (create_basic_block_structure): Strengthen params
23117 1 "head" and 2 "end" from rtx to rtx_insn *.
23118 * cfgrtl.c (create_basic_block_structure): Likewise.
23119 (rtl_create_basic_block): Update casts from void * to rtx to
23120 rtx_insn *, so that we can pass them as rtx_insn * to
23121 create_basic_block_structure.
23122 * sel-sched-ir.c (sel_create_basic_block): Likewise.
23124 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23126 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
23128 (check_for_inc_dec): Strengthen param "insn" from rtx to
23131 * cselib.h (cselib_process_insn): Likewise.
23133 * cselib.c (cselib_record_sets): Likewise.
23134 (cselib_process_insn): Likewise.
23136 * dse.c (struct insn_info): Likewise for field "insn".
23137 (check_for_inc_dec_1): Likewise for local "insn".
23138 (check_for_inc_dec): Likewise for param "insn".
23139 (scan_insn): Likewise.
23140 (dse_step1): Likewise for local "insn".
23142 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
23143 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
23145 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23147 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
23148 from rtx to rtx_insn *.
23149 (DEP_PRO): Delete this function and...
23150 (SET_DEP_PRO): ...this function in favor of...
23151 (DEP_PRO): ...reinstate this macro.
23152 (DEP_CON): Delete this function and...
23153 (SET_DEP_CON): ...this function in favor of...
23154 (DEP_CON): ...reinstate this old macro.
23155 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
23156 (init_dep): Likewise.
23157 (set_priorities): Likewise for both params.
23158 (sd_copy_back_deps): Likewise for params 1 and 2.
23160 * haifa-sched.c (priority): Likewise for param "insn" and local
23162 (set_priorities): Likewise for params "head" and "tail" and local
23164 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
23166 (add_to_speculative_block): Add a checked cast.
23167 (create_check_block_twin): Drop use of SET_DEP_CON.
23168 (add_jump_dependencies): Strengthen params "insn" and "jump" from
23171 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
23172 Drop use of SET_DEP_PRO
23173 (init_dep): Strengthen params "pro" and "con" from rtx to
23175 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
23176 use of SET_DEP_CON.
23179 (SET_DEP_PRO): Delete.
23180 (SET_DEP_CON): Delete.
23182 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23184 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
23185 from rtx to rtx_insn *.
23186 (VINSN_INSN_RTX): Eliminate rvalue function and...
23187 (SET_VINSN_INSN): ...lvalue function in favor of...
23188 (VINSN_INSN_RTX): reinstate this old macro.
23190 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
23191 in favor of VINSN_INSN_RTX.
23192 (VINSN_INSN_RTX): Delete this function.
23193 (SET_VINSN_INSN_RTX): Likewise.
23195 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23197 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
23198 (BND_TO): Delete this function and...
23199 (SET_BND_TO): ...this functions in favor of...
23200 (BND_TO): ...reinstating this macro.
23201 (struct _fence): Strengthen field "executing_insns" from
23202 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
23203 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
23204 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
23205 and param "insn" from rtx to insn_t.
23206 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
23209 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
23211 (rtx_vec_t): Likewise.
23212 (struct sched_deps_info_def): Strengthen param of "start_insn"
23213 callback from rtx to rtx_insn *. Likewise for param "insn2" of
23214 "note_mem_dep" callback and first param of "note_dep" callback.
23216 * haifa-sched.c (add_to_speculative_block): Strengthen param
23217 "insn" from rtx to rtx_insn *.
23218 (clear_priorities): Likewise.
23219 (calc_priorities): Likewise for local "insn".
23221 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
23222 Remove redundant checked cast.
23223 (haifa_note_mem_dep): Likewise for param "pending_insn".
23224 (haifa_note_dep): Likewise for param "elem".
23225 (note_mem_dep): Likewise for param "e".
23226 (sched_analyze_1): Add checked casts.
23227 (sched_analyze_2): Likewise.
23229 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
23230 from rtx to rtx_insn *.
23231 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
23232 from vec<rtx> * to vec<rtx_insn *> *.
23234 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
23236 (flist_add): Strengthen param "executing_insns" from
23237 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
23238 (advance_deps_context): Remove now-redundant checked cast.
23239 (init_fences): Replace uses of NULL_RTX with NULL.
23240 (merge_fences): Strengthen params "last_scheduled_insn" and
23241 "sched_next" from rtx to rtx_insn * and "executing_insns" from
23242 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
23243 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
23244 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
23245 an instruction, rather than doing double-duty as a pattern.
23246 (return_nop_to_pool): Update for change of insn_t.
23247 (deps_init_id): Remove now-redundant checked cast.
23248 (struct sched_scan_info_def): Strengthen param of "init_insn"
23249 callback from rtx to insn_t.
23250 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
23251 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
23253 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
23254 "end" from rtx to rtx_insn *.
23255 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
23256 (rtx insn_rtx, bool force_unique_p)
23257 (BND_TO): Delete function.
23258 (SET_BND_TO): Delete function.
23260 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
23262 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
23263 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
23265 (undo_transformations): Likewise for param "insn".
23266 (update_liveness_on_insn): Likewise.
23267 (compute_live_below_insn): Likewise for param "insn" and local
23269 (update_data_sets): Likewise for param "insn".
23270 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
23271 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
23272 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
23274 (move_cond_jump): Likewise for param "insn".
23275 (move_cond_jump): Drop use of SET_BND_TO.
23276 (compute_av_set_on_boundaries): Likewise.
23277 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
23278 (update_and_record_unavailable_insns): Strengthen local "bb_end"
23279 from rtx to rtx_insn *.
23280 (maybe_emit_renaming_copy): Likewise for param "insn".
23281 (maybe_emit_speculative_check): Likewise.
23282 (handle_emitting_transformations): Likewise.
23283 (remove_insn_from_stream): Likewise.
23284 (code_motion_process_successors): Strengthen local "succ" from rtx
23287 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23289 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
23290 ilist_t, not _xlist_t;
23291 (ILIST_INSN): Define in terms of new union field "insn".
23292 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
23294 (struct _list_node): Add new field "insn" to the union, of type
23296 (ilist_add): Replace macro with an inline function, requiring an
23298 (ilist_remove): Define this macro directly in terms of
23299 _list_remove, rather than indirectly via _xlist_remove.
23300 (ilist_clear): Likewise, in terms of _list_clear rather than
23302 (ilist_is_in_p): Replace macro with an inline function, requiring
23304 (_list_iter_cond_insn): New function.
23305 (ilist_iter_remove): Define this macro directly in terms of
23306 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
23307 (ilist_iterator): Define directly in terms of _list_iterator
23308 rather than indirectly through _xlist_iterator.
23309 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
23310 than in terms of _FOR_EACH_X.
23311 (FOR_EACH_INSN_1): Likewise.
23313 2014-08-26 Joseph Myers <joseph@codesourcery.com>
23317 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
23318 DECL_HARD_REGISTER and return for invalid register specifications.
23319 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
23320 DECL_HARD_REGISTER, call expand_one_error_var.
23321 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
23322 CC_REGNUM with non-MODE_CC modes.
23323 (arm_regno_class): Return NO_REGS for PC_REGNUM.
23325 2014-08-26 Marek Polacek <polacek@redhat.com>
23328 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
23330 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
23332 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
23333 qi cost; add di cost.
23334 (cortexa57_addrcost_table): Likewise.
23336 2014-08-26 Marek Polacek <polacek@redhat.com>
23339 * expr.c (is_aligning_offset): Remove logical not.
23341 2014-08-26 Marek Polacek <polacek@redhat.com>
23344 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
23345 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
23347 2014-08-26 Richard Biener <rguenther@suse.de>
23349 PR tree-optimization/62175
23350 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
23351 expand possibly trapping operations.
23353 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23355 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
23356 "insn" from rtx to rtx_insn *.
23357 (permute_load): Likewise for param "insn".
23358 (permute_store): Likewise.
23359 (handle_special_swappables): Likewise for local "insn".
23360 (replace_swap_with_copy): Likewise for locals "insn" and
23362 (rs6000_analyze_swaps): Likewise for local "insn".
23364 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23366 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
23369 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23371 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
23372 "note_list" from rtx to rtx_insn *.
23373 (BB_NOTE_LIST): Replace this function and...
23374 (SET_BB_NOTE_LIST): ...this function with...
23375 (BB_NOTE_LIST): ...the former macro implementation.
23377 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
23378 local "from_start" from rtx to rtx_insn *. Strengthen param
23379 "to_endp" from rtx * to rtx_insn **.
23381 * haifa-sched.c (concat_note_lists): Likewise.
23382 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
23384 (sel_restore_notes): Likewise.
23385 (move_bb_info): Likewise.
23386 (BB_NOTE_LIST): Delete this function.
23387 (SET_BB_NOTE_LIST): Delete this function.
23388 * sel-sched.c (create_block_for_bookkeeping): Eliminate
23389 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
23391 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23393 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
23394 from rtx * to rtx_insn **.
23395 (reorder2): Likewise.
23396 (dependencies_evaluation_hook): Strengthen params "head", "tail"
23397 from rtx to rtx_insn *.
23399 * doc/tm.texi: Update mechanically for above change to target.def.
23401 * sched-int.h (note_list): Strengthen this variable from rtx to
23403 (remove_notes): Likewise for both params.
23404 (restore_other_notes): Likewise for return type and first param.
23405 (struct ready_list): Strengthen field "vec" from rtx * to
23407 (struct dep_replacement): Strenghten field "insn" from rtx to
23409 (struct deps_desc): Likewise for fields "last_debug_insn",
23411 (struct haifa_sched_info): Likewise for callback field
23412 "can_schedule_ready_p"'s param, for first param of "new_ready"
23413 callback field, for both params of "rank" callback field, for
23414 first field of "print_insn" callback field (with a const), for
23415 both params of "contributes_to_priority" callback, for param
23416 of "insn_finishes_block_p" callback, for fields "prev_head",
23417 "next_tail", "head", "tail", for first param of "add_remove_insn"
23418 callback, for first param of "begin_schedule_ready" callback, for
23419 both params of "begin_move_insn" callback, and for second param
23420 of "advance_target_bb" callback.
23421 (add_dependence): Likewise for params 1 and 2.
23422 (sched_analyze): Likewise for params 2 and 3.
23423 (deps_analyze_insn): Likewise for param 2.
23424 (ready_element): Likewise for return type.
23425 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
23426 (try_ready): Strenghten param from rtx to rtx_insn *.
23427 (sched_emit_insn): Likewise for return type.
23428 (record_delay_slot_pair): Likewise for params 1 and 2.
23429 (add_delay_dependencies): Likewise for param.
23430 (contributes_to_priority): Likewise for both params.
23431 (find_modifiable_mems): Likewise.
23433 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
23434 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
23435 "first_older_only_insn" from rtx to rtx_insn *.
23436 (arm_sched_reorder): Strengthen param "ready" from rtx * to
23439 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
23440 "last_scheduled_iter0" from rtx to rtx_insn *.
23441 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
23442 (c6x_sched_reorder_1): Strengthen param "ready" and locals
23443 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
23444 "insn" from rtx to rtx_insn *.
23445 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
23447 (c6x_sched_reorder2): Strengthen param "ready" and locals
23448 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
23449 "insn" from rtx to rtx_insn *.
23450 (c6x_variable_issue): Add a checked cast when assigning from insn
23451 to ss.last_scheduled_iter0.
23452 (split_delayed_branch): Strengthen param "insn" and local "i1"
23453 from rtx to rtx_insn *.
23454 (split_delayed_nonbranch): Likewise.
23455 (undo_split_delayed_nonbranch): Likewise for local "insn".
23456 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
23457 "entry_after", "end_packet", "head_insn", "tail_insn",
23458 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
23459 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
23460 to rtx_insn **. Remove now-redundant checked cast on last_insn,
23461 but add a checked cast on loop->start_label. Consolidate calls to
23462 avoid assigning result of gen_spkernel to "insn", now an
23465 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
23466 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
23468 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
23469 rtx_insn **. Strengthen locals "top", "next" from rtx to
23471 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
23472 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
23473 (add_parameter_dependencies): Strengthen params "call", "head" and
23474 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
23475 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
23476 (add_dependee_for_func_arg): Likewise for param "arg" and local
23478 (ix86_dependencies_evaluation_hook): Likewise for params "head",
23479 "tail" and locals "insn", "first_arg".
23481 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
23482 for params "head", "tail" and locals "insn", "next", "next_tail".
23483 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
23484 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
23485 "insn", "lowest", "highest" from rtx to rtx_insn *.
23486 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
23488 (ia64_sched_reorder2): Likewise.
23490 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
23491 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
23492 from rtx * to rtx_insn **.
23493 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
23495 (mep_print_sched_insn): Strengthen param "insn" from rtx to
23497 (mep_sched_reorder): Strengthen param "ready" from rtx * to
23498 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
23501 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
23502 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
23504 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
23505 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
23506 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
23508 (vr4130_reorder): Likewise.
23509 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
23511 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
23513 (mips_sched_reorder): Likewise.
23514 (mips_sched_reorder2): Likewise.
23516 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
23518 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
23519 Strengthen local "tmp" from rtx to rtx_insn *.
23520 (rs6000_sched_reorder2): Likewise.
23522 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
23523 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
23524 (s390_sched_reorder): Strengthen param "ready" from rtx * to
23525 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
23527 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
23528 "tmp2" from rtx to rtx_insn *.
23529 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
23530 Strengthen local "insn" from rtx to rtx_insn *.
23531 (ready_reorder): Strengthen param "ready" from rtx * to
23532 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
23533 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
23534 (sh_reorder2): Likewise.
23536 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
23537 local "insn" from rtx to rtx_insn *.
23539 * haifa-sched.c (note_list): Strengthen this variable from rtx to
23541 (scheduled_insns): Strengthen this variable from vec<rtx> to
23543 (set_modulo_params): Likewise for locals "i1", "i2".
23544 (record_delay_slot_pair): Likewise for params "i1", "i2".
23545 (add_delay_dependencies): Likewise for param "insn".
23546 (cond_clobbered_p): Likewise.
23547 (recompute_todo_spec): Likewise for local "prev".
23548 (last_scheduled_insn): Likewise for this variable.
23549 (nonscheduled_insns_begin): Likewise.
23550 (model_set_excess_costs): Strengthen param "insns" from rtx * to
23552 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
23554 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
23555 Strengthen local "insn" from rtx to rtx_insn *.
23556 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
23557 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
23558 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
23559 (ready_remove_first): Likewise for return type and local "t".
23560 (ready_element): Likewise for return type.
23561 (ready_remove): Likewise for return type and local "t".
23562 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
23563 (check_clobbered_conditions): Strengthen local "x" from rtx to
23564 rtx_insn *, adding a checked cast.
23565 (schedule_insn): Likewise for param "insn".
23566 (remove_notes): Likewise for params "head", "tail" and locals
23567 "next_tail", "insn", "next".
23568 (struct haifa_saved_data): Likewise for fields
23569 "last_scheduled_insn", "nonscheduled_insns_begin".
23570 (save_backtrack_point): Update for change to field "vec" of
23572 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
23574 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
23575 from rtx to rtx_insn *
23576 (resolve_dependencies): Strengthen param "insn" from rtx to
23578 (restore_other_notes): Likewise for return type, for param "head"
23579 and local "note_head".
23580 (undo_all_replacements): Likewise for local "insn".
23581 (first_nonscheduled_insn): Likewise for return type and local "insn".
23582 (queue_to_ready): Likewise for local "insn", adding checked casts.
23583 (early_queue_to_ready): Likewise for local "insn".
23584 (debug_ready_list_1): Strengthen local "p" from rtx * to
23586 (move_insn): Strengthen param "insn" and local "note" from rtx to
23588 (insn_finishes_cycle_p): Likewise for param "insn".
23589 (max_issue): Likewise for local "insn".
23590 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
23592 (commit_schedule): Strengthen param "prev_head" and local "insn"
23593 from rtx to rtx_insn *
23594 (prune_ready_list): Likewise for local "insn".
23595 (schedule_block): Likewise for locals "prev_head", "head", "tail",
23596 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
23597 (set_priorities): Likewise for local "prev_head".
23598 (try_ready): Likewise for param "next".
23599 (fix_tick_ready): Likewise.
23600 (change_queue_index): Likewise.
23601 (sched_extend_ready_list): Update for change to field "vec" of
23603 (generate_recovery_code): Strengthen param "insn" from rtx to
23605 (begin_speculative_block): Likewise.
23606 (create_check_block_twin): Likewise for param "insn" and locals
23607 "label", "check", "twin". Introduce local "check_pat" to avoid
23608 "check" being used as a plain rtx before being used as an insn.
23609 (fix_recovery_deps): Add a checked cast to rtx_insn * when
23610 extracting elements from ready_list.
23611 (sched_remove_insn): Strengthen param "insn" from rtx to
23613 (sched_emit_insn): Likewise for return type.
23614 (ready_remove_first_dispatch): Likewise for return type and local
23617 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
23619 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
23622 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
23623 from rtx to rtx_insn *.
23624 (add_dependence_list): Likewise for param "insn". Add a checked
23626 (add_dependence_list_and_free): Strengthen param "insn" from rtx
23627 to rtx_insn *. Strengthen param "list_p" from rtx * to
23629 (chain_to_prev_insn): Strengthen param "insn" and locals
23630 "prec_nonnote", "i" from rtx to rtx_insn *.
23631 (flush_pending_lists): Likewise for param "insn".
23632 (cur_insn): Likewise for this variable.
23633 (haifa_start_insn): Add a checked cast.
23634 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
23635 (sched_analyze_reg): Likewise for param "insn".
23636 (sched_analyze_1): Likewise.
23637 (sched_analyze_2): Likewise. Add checked casts.
23638 (sched_analyze_insn): Likewise. Also for local "prev".
23639 (deps_analyze_insn): Likewise for param "insn".
23640 (sched_analyze): Likewise for params "head", "tail" and local "insn".
23641 (add_dependence_1): Likewise for params "insn", "elem".
23642 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
23643 (parse_add_or_inc): Likewise for param "insn".
23644 (find_inc): Likewise for local "inc_cand".
23645 (find_modifiable_mems): Likewise for params "head", "tail" and
23646 locals "insn", "next_tail".
23648 * sched-ebb.c (init_ready_list): Likewise for local "insn".
23649 (begin_schedule_ready): Likewise for param "insn".
23650 (begin_move_insn): Likewise for params "insn" and "last".
23651 (ebb_print_insn): Strengthen param "insn" from const_rtx to
23653 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
23654 (ebb_contributes_to_priority): Likewise for params "next", "insn".
23655 (ebb_add_remove_insn): Likewise for param "insn".
23656 (advance_target_bb): Likewise.
23658 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
23660 (check_live): Likewise for param "insn".
23661 (init_ready_list): Likewise for local "insn".
23662 (can_schedule_ready_p): Likewise for param "insn".
23663 (begin_schedule_ready): Likewise.
23664 (new_ready): Likewise for param "next".
23665 (rgn_print_insn): Likewise for param "insn".
23666 (rgn_rank): Likewise for params "insn1", "insn2".
23667 (contributes_to_priority): Likewise for params "next", "insn".
23668 (rgn_insn_finishes_block_p): Likewise for param "insn".
23669 (add_branch_dependences): Likewise for params "head", "tail" and
23670 locals "insn", "last".
23671 (rgn_add_remove_insn): Likewise for param "insn".
23672 (advance_target_bb): Likewise.
23674 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
23675 const_rtx to const rtx_insn *.
23677 * sel-sched-dump.h (sel_print_insn): Likewise.
23679 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
23680 (deps_init_id): Likewise.
23682 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
23683 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
23686 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23688 * output.h (final_start_function): Strengthen param 1 from rtx to
23691 * final.c (final_start_function): Likewise, renaming back from
23692 "uncast_first" to "first", and dropping the checked cast from rtx
23695 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23697 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
23698 * final.c (final): Likewise. Rename param back from
23699 "uncast_first" to "first" and eliminate the checked cast from rtx
23702 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23704 * output.h (shorten_branches): Strengthen param from rtx to
23707 * final.c (shorten_branches): Likewise, renaming param back from
23708 "uncast_first" to "first", and dropping the checked cast from rtx
23711 * genattr.c (gen_attr): Likewise when writing out the prototype of
23714 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23716 * sched-int.h (struct haifa_sched_info): Strengthen fields
23717 "prev_head" and "next_tail" from rtx to rtx_insn *.
23719 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23721 * rtl.h (rtx_jump_table_data::get_labels): New method.
23722 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
23723 with use of the new rtx_jump_table_data::get_labels method.
23724 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
23725 to rtx_jump_table_data *. Simplify by using get_labels method.
23726 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
23727 a dyn_cast, introducing local "table", using it to replace
23728 label-lookup logic with a get_labels method call.
23729 (patch_jump_insn): Simplify using get_labels method.
23730 * dwarf2cfi.c (create_trace_edges): Likewise.
23731 * rtlanal.c (label_is_jump_target_p): Likewise.
23733 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23735 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
23738 * emit-rtl.c (unshare_all_rtl_1): Likewise.
23739 (unshare_all_rtl_again): Likewise, also for local "p".
23741 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23743 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
23745 * cfgrtl.c (delete_insn_and_edges): Likewise.
23747 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23749 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
23750 from rtx to rtx_insn *.
23752 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
23754 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23756 * function.c (thread_prologue_and_epilogue_insns): Likewise for
23757 locals "returnjump", "epilogue_end", "insn", "next".
23759 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
23760 "returnjump" from rtx * to rtx_insn **.
23761 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
23763 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23765 * basic-block.h (struct edge_def). Strengthen "r" within
23766 union edge_def_insns from rtx to rtx_insn *.
23768 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
23769 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
23771 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
23772 from rtx to rtx_insn *.
23773 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
23775 * postreload-gcse.c (reg_killed_on_edge): Likewise.
23776 (reg_used_on_edge): Likewise.
23777 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
23778 (gt_pch_nx): New overload for rtx_insn *&.
23779 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
23780 from rtx to rtx_insn *.
23782 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23784 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
23785 from rtx to rtx_insn *.
23786 (BB_FOOTER): Replace function with access macro.
23787 (SET_BB_FOOTER): Delete.
23789 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
23791 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
23792 (emit_barrier_after_bb): Likewise.
23793 (record_effective_endpoints): Likewise.
23794 (relink_block_chain): Likewise.
23795 (fixup_fallthru_exit_predecessor): Likewise.
23796 (cfg_layout_duplicate_bb): Likewise.
23797 (cfg_layout_split_block): Likewise.
23798 (cfg_layout_delete_block): Likewise.
23799 (cfg_layout_merge_blocks): Likewise.
23800 (BB_FOOTER): Delete function.
23801 (SET_BB_FOOTER): Delete function.
23802 * combine.c (update_cfg_for_uncondjump): Replace uses of
23803 SET_BB_FOOTER with BB_FOOTER.
23805 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23807 * except.h (struct eh_landing_pad_d): Strengthen field
23808 "landing_pad" from rtx to rtx_code_label *.
23810 * except.c (sjlj_emit_dispatch_table): Likewise for param
23812 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
23814 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23816 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
23817 first param from rtx to rtx_insn *.
23818 * config/xtensa/xtensa.c (struct machine_function): Likewise for
23819 field "set_frame_ptr_insn".
23820 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
23821 "csend" from rtx to rtx_code_label *.
23822 (xtensa_expand_atomic): Likewise for local "csloop".
23823 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
23825 (xtensa_call_tls_desc): Likewise for return type and locals
23826 "call_insn", "insns".
23827 (xtensa_legitimize_tls_address): Likewise for local "insns".
23828 (xtensa_expand_prologue): Likewise for locals "insn", "first".
23830 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23832 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
23833 first param from rtx to rtx_insn *.
23834 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
23837 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23839 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
23840 Strengthen param 1 from rtx to rtx_insn *.
23841 (tilepro_output_cbranch): Likewise.
23842 (tilepro_adjust_insn_length): Likewise.
23843 (tilepro_final_prescan_insn): Likewise for sole param.
23845 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
23846 Likewise for local "last".
23847 (cbranch_predicted_p): Likewise for param "insn".
23848 (tilepro_output_simple_cbranch_with_opcode): Likewise.
23849 (tilepro_output_cbranch_with_opcode): Likewise.
23850 (tilepro_output_cbranch): Likewise.
23851 (frame_emit_load): Likewise for return type and locals "seq",
23853 (emit_sp_adjust): Likewise for return type and local "insn".
23854 (tilepro_expand_epilogue): Likewise for locals "last_insn",
23856 (tilepro_adjust_insn_length): Likewise for param "insn".
23857 (next_insn_to_bundle): Likewise for return type and params
23859 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
23860 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
23862 (match_addli_pcrel): Likewise for param "insn".
23863 (replace_addli_pcrel): Likewise.
23864 (match_auli_pcrel): Likewise.
23865 (replace_auli_pcrel): Likewise.
23866 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
23868 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
23869 "queue", "next_queue", "prev".
23870 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
23871 (tilepro_final_prescan_insn): Likewise for param "insn".
23873 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23875 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
23876 Strengthen param 1 from rtx to rtx_insn *.
23877 (tilegx_output_cbranch): Likewise.
23878 (tilegx_adjust_insn_length): Likewise.
23879 (tilegx_final_prescan_insn): Likewise for sole param.
23881 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
23883 (cbranch_predicted_p): Likewise for param "insn".
23884 (tilegx_output_simple_cbranch_with_opcode): Likewise.
23885 (tilegx_output_cbranch_with_opcode): Likewise.
23886 (tilegx_output_cbranch): Likewise.
23887 (frame_emit_load): Likewise for return type.
23888 (set_frame_related_p): Likewise for locals "seq", "insn".
23889 (emit_sp_adjust): Likewise for return type, and for local "insn".
23890 Introduce local "pat" for use in place of "insn" where the latter
23891 isn't an instruction.
23892 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
23893 from rtx to rtx_insn *.
23894 (tilegx_adjust_insn_length): Likewise for param "insn".
23895 (next_insn_to_bundle): Likewise for return type and params "r" and
23897 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
23899 (replace_insns): Likewise for params "old_insn", "new_insns".
23900 (replace_mov_pcrel_step1): Likewise for param "insn" and local
23902 (replace_mov_pcrel_step2): Likewise.
23903 (replace_mov_pcrel_step3): Likewise.
23904 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
23906 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
23907 "queue", "next_queue", "prev".
23908 (tilegx_output_mi_thunk): Likewise for local "insn".
23909 (tilegx_final_prescan_insn): Likewise for param "insn".
23911 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23913 * config/spu/spu.c (frame_emit_store): Strengthen return type from
23915 (frame_emit_load): Likewise.
23916 (frame_emit_add_imm): Likewise, also for local "insn".
23917 (spu_expand_prologue): Likewise for local "insn".
23918 (struct spu_bb_info): Likewise for field "prop_jump".
23919 (emit_nop_for_insn): Likewise for param "insn" and local
23921 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
23923 (spu_emit_branch_hint): Likewise for params "before", "branch" and
23924 locals "hint", "insn".
23925 (get_branch_target): Likewise for param "branch".
23926 (insn_clobbers_hbr): Likewise for param "insn".
23927 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
23928 locals "insn", "before_4", "before_16".
23929 (insert_hbrp): Likewise for local "insn".
23930 (spu_machine_dependent_reorg): Likewise for locals "branch",
23931 "insn", "next", "bbend".
23932 (uses_ls_unit): Likewise for param "insn".
23933 (get_pipe): Likewise.
23934 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
23935 introducing a checked cast.
23936 (spu_sched_adjust_cost): Likewise for params "insn" and
23938 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
23939 (spu_sms_res_mii): Likewise.
23941 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23943 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
23944 from rtx to rtx_insn *.
23945 (output_cbranch): Likewise for param 6.
23946 (output_return): Likewise for param 1.
23947 (output_sibcall): Likewise.
23948 (output_v8plus_shift): Likewise.
23949 (output_v8plus_mult): Likewise.
23950 (output_v9branch): Likewise for param 7.
23951 (output_cbcond): Likewise for param 3.
23953 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
23955 (sparc_legitimize_pic_address): Likewise.
23956 (sparc_emit_call_insn): Likewise.
23957 (emit_save_or_restore_regs): Likewise.
23958 (emit_window_save): Likewise for return type and local "insn".
23959 (sparc_expand_prologue): Likewise for local "insn".
23960 (sparc_flat_expand_prologue): Likewise.
23961 (output_return): Likewise for param "insn".
23962 (output_sibcall): Likewise for param "insn" and local "delay".
23963 (output_ubranch): Likewise for param "insn".
23964 (output_cbranch): Likewise.
23965 (output_cbcond): Likewise.
23966 (output_v9branch): Likewise.
23967 (output_v8plus_shift): Likewise.
23968 (sparc_output_mi_thunk): Likewise for local "insn".
23969 (get_some_local_dynamic_name): Likewise.
23970 (output_v8plus_mult): Likewise for param "insn".
23972 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23974 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
23975 from rtx to rtx_insn *.
23976 (output_branchy_insn): Likewise for param 3.
23977 (output_far_jump): Likewise for param 1.
23978 (final_prescan_insn): Likewise.
23979 (sh_insn_length_adjustment): Likewise for sole param.
23981 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
23982 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
23984 (sh_emit_compare_and_set): Likewise for local "lab".
23985 (output_far_jump): Strengthen param "insn" and local "prev" from
23987 (output_branchy_insn): Likewise for param "insn" and local
23989 (output_ieee_ccmpeq): Likewise for param "insn".
23990 (struct label_ref_list_d): Strengthen field "label" from rtx to
23992 (pool_node): Likewise.
23993 (pool_window_label): Likewise for this global.
23994 (add_constant): Likewise for return type and locals "lab", "new_rtx".
23995 (dump_table): Strengthen params "start", "barrier" and local
23996 "scan" from rtx to rtx_insn *.
23997 (broken_move): Likewise for param "insn".
23998 (untangle_mova): Likewise for params "first_mova" and "new_mova".
23999 Strengthen param "first_mova" from rtx * to rtx_insn **.
24000 (mova_p): Likewise for param "insn".
24001 (fixup_mova): Likewise for param "mova".
24002 (find_barrier): Likewise for return type, params "mova" and
24003 "from", and locals "barrier_before_mova", "found_barrier",
24004 "good_barrier", "orig", "last_symoff", "next". Strengthen local
24005 "label" from rtx to rtx_code_label *.
24006 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
24008 (sh_reorg): Likewise for locals "link", "scan", "barrier".
24009 (split_branches): Likewise for param "first" and local "insn".
24010 (final_prescan_insn): Likewise for param "insn".
24011 (sequence_insn_p): Likewise for locals "prev", "next".
24012 (sh_insn_length_adjustment): Likewise for param "insn".
24013 (sh_can_redirect_branch): Likewise for local "insn".
24014 (find_r0_life_regions): Likewise for locals "end", "insn".
24015 (sh_output_mi_thunk): Likewise for local "insns".
24017 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24019 * config/score/score.c (score_output_mi_thunk): Strengthen local
24020 "insn" from rtx to rtx_insn *.
24021 (score_prologue): Likewise.
24023 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24025 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
24026 1 from rtx to rtx_insn *.
24027 (s390_emit_jump): Likewise for return type.
24028 (s390_emit_call): Likewise.
24029 (s390_load_got): Likewise.
24031 * config/s390/s390.c (last_scheduled_insn): Likewise for this
24033 (s390_match_ccmode): Likewise for param "insn".
24034 (s390_emit_jump): Likewise for return type.
24035 (s390_split_branches): Likewise for local "label".
24036 (struct constant): Strengthen field "label" from rtx to
24038 (struct constant_pool): Likewise for field "label". Strengthen
24039 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
24041 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
24043 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
24044 (s390_end_pool): Likewise.
24045 (s390_dump_pool): Likewise for local "insn".
24046 (s390_mainpool_start): Likewise.
24047 (s390_chunkify_start): Likewise.
24048 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
24049 with insns. Strengthen locals "label", "jump", "barrier", "next",
24050 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
24051 (s390_chunkify_finish): Strengthen local "insn" from rtx to
24053 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
24054 "jump", "label", "next_insn".
24055 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
24056 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
24058 (s390_load_got): Likewise for return type and local "insns".
24059 (s390_save_gprs_to_fprs): Likewise for local "insn".
24060 (s390_restore_gprs_from_fprs): Likewise.
24061 (pass_s390_early_mach::execute): Likewise.
24062 (s390_emit_prologue): Likewise for local "insns".
24063 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
24065 (s390_emit_call): Strengthen return type and local "insn" from
24067 (s390_emit_tpf_eh_return): Likewise for local "insn".
24068 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
24069 "next_insn", introducing locals "s_pat", "rpat" to allow this.
24070 (s390_fix_long_loop_prediction): Likewise for param "insn" and
24072 (s390_non_addr_reg_read_p): Likewise for param "insn".
24073 (find_cond_jump): Likewise for return type and param "insn".
24074 (s390_swap_cmp): Likewise for param "insn".
24075 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
24076 "prev_insn", "next_insn".
24077 (s390_reorg): Likewise for locals "insn", "target".
24078 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
24079 (s390_sched_variable_issue): For now, rename param "insn" to
24080 "uncast_insn", introducing a checked cast.
24081 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
24083 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
24084 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
24086 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24088 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
24089 param from rtx to rtx_insn *.
24090 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
24092 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24094 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
24095 4 from rtx to rtx_insn *.
24096 (rs6000_final_prescan_insn): Likewise for first param.
24097 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
24099 (rs6000_get_some_local_dynamic_name): Likewise.
24100 (output_cbranch): Likewise for param "insn".
24101 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
24102 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
24103 (rs6000_emit_allocate_stack): Likewise for local "insn".
24104 (load_cr_save): Likewise.
24105 (restore_saved_cr): Likewise.
24106 (restore_saved_lr): Likewise.
24107 (emit_cfa_restores): Likewise.
24108 (rs6000_output_function_epilogue): Likewise for locals "insn" and
24109 "deleted_debug_label".
24110 (rs6000_output_mi_thunk): Likewise for local "insn".
24111 (rs6000_final_prescan_insn): Likewise for param "insn".
24113 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24115 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
24116 Strengthen param "insn" from rtx to rtx_insn *.
24117 * config/picochip/picochip.c (picochip_current_prescan_insn):
24118 Likewise for this variable.
24119 (picochip_final_prescan_insn): Likewise for param "insn".
24121 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24123 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
24124 from rtx to rtx_insn *.
24125 (pa_output_indirect_call): Likewise.
24126 (pa_adjust_insn_length): Likewise.
24127 (pa_attr_length_millicode_call): Likewise.
24128 (pa_attr_length_call): Likewise.
24129 (pa_attr_length_indirect_call): Likewise.
24131 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
24133 (pa_attr_length_millicode_call): Likewise.
24134 (pa_attr_length_call): Likewise.
24135 (pa_output_call): Likewise.
24136 (pa_attr_length_indirect_call): Likewise.
24137 (pa_output_indirect_call): Likewise.
24139 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24141 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
24142 Strengthen first param from rtx to rtx_insn *.
24143 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
24146 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24148 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
24149 type from rtx to rtx_insn *.
24150 (mips_expand_call): Likewise.
24151 (mips_adjust_insn_length): Likewise for first param.
24152 (mips_output_conditional_branch): Likewise.
24153 (mips_output_order_conditional_branch): Likewise.
24154 (mips_final_prescan_insn): Likewise.
24156 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
24157 rtx_insn * for the SEQUENCE case.
24158 (SEQ_END): Likewise.
24159 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
24160 (mips_emit_call_insn): Likewise, also for local "insn".
24161 (mips16_gp_pseudo_reg): Likewise for local "scan".
24162 (mips16_build_call_stub): Likewise for return type and for local
24163 "insn". Introduce a new local "pattern" so that "insn" can indeed
24165 (mips_expand_call): Strengthen return type and local "insn" from
24167 (mips_block_move_loop): Strengthen local "label" from rtx to
24169 (mips_expand_synci_loop): Likewise for locals "label",
24171 (mips_set_frame_expr): Strengthen local "insn" from rtx to
24173 (mips16e_collect_argument_saves): Likewise for locals "insn",
24175 (mips_find_gp_ref): Likewise for param of callback for "pred"
24176 param, and for local "insn".
24177 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
24178 (mips_insn_has_flexible_gp_ref_p): Likewise.
24179 (mips_epilogue_emit_cfa_restores): Likewise for return type and
24181 (mips_epilogue_set_cfa): Likewise for local "insn".
24182 (mips_expand_epilogue): Likewise.
24183 (mips_adjust_insn_length): Likewise for param "insn".
24184 (mips_output_conditional_branch): Likewise.
24185 (mips_output_order_conditional_branch): Likewise.
24186 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
24187 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
24188 "falu2_turn_enabled_insn".
24189 (mips_builtin_branch_and_move): Strengthen locals "true_label",
24190 "done_label" from rtx to rtx_code_label *.
24191 (struct mips16_constant): Likewise for field "label".
24192 (mips16_add_constant): Likewise for return type.
24193 (mips16_emit_constants_1): Strengthen return type and param "insn"
24194 from rtx to rtx_insn *.
24195 (mips16_emit_constants): Likewise for param "insn".
24196 (mips16_insn_length): Likewise.
24197 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
24198 to rtx_code_label *.
24199 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
24200 from rtx to rtx_insn *.
24201 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
24202 "jump". Strengthen local "label" from rtx to rtx_code_label *.
24203 (r10k_simplify_address): Strengthen param "insn" and local
24204 "def_insn" from rtx to rtx_insn *.
24205 (r10k_safe_address_p): Strengthen param "insn" from rtx to
24207 (r10k_needs_protection_p_1): Update target type of cast of data
24208 from to rtx to rtx_insn *.
24209 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
24210 rtx * to rtx_insn **.
24211 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
24213 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
24214 (mips_call_expr_from_insn): Likewise for param "insn".
24215 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
24216 (mips_find_pic_call_symbol): Likewise for param "insn".
24217 (mips_annotate_pic_calls): Likewise for local "insn".
24218 (mips_sim_insn): Likewise for this variable.
24219 (struct mips_sim): Likewise for field "insn" within elements of
24221 (mips_sim_wait_reg): Likewise for param "insn".
24222 (mips_sim_wait_regs): Likewise.
24223 (mips_sim_wait_units): Likewise.
24224 (mips_sim_wait_insn): Likewise.
24225 (mips_sim_issue_insn): Likewise.
24226 (mips_sim_finish_insn): Likewise.
24227 (mips_seq_time): Likewise for param "seq" and local "insn".
24228 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
24229 locals "first", "second".
24230 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
24231 "last", "last2", "next".
24232 (mips_avoid_hazard): Likewise for params "after", "insn".
24233 (mips_reorg_process_insns): Likewise for locals "insn",
24234 "last_insn", "subinsn", "next_insn".
24235 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
24236 (mips16_split_long_branches): Likewise for locals "insn" "jump",
24238 (mips_output_mi_thunk): Likewise for local "insn".
24239 (mips_final_prescan_insn): Likewise for param "insn".
24241 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24243 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
24244 Strengthen return type and local "insns" from rtx to rtx_insn *.
24245 (microblaze_legitimize_tls_address): Likewise for local "insns".
24246 (microblaze_block_move_loop): Strengthen local "label" from rtx
24247 to rtx_code_label *.
24248 (microblaze_expand_prologue): Strengthen two locals named "insn"
24249 from rtx to rtx_insn *.
24250 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
24251 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
24252 "insn". Strengthen locals "div_label", "div_end_label" from rtx
24253 to rtx_code_label *.
24255 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24257 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
24258 param from rtx to rtx_insn *.
24259 (mep_reuse_lo): Likewise for third param.
24260 (mep_use_post_modify_p): Likewise for first param.
24261 (mep_core_address_length): Likewise.
24262 (mep_cop_address_length): Likewise.
24263 (mep_final_prescan_insn): Likewise.
24264 (mep_store_data_bypass_p): Likewise for both params.
24265 (mep_mul_hilo_bypass_p): Likewise.
24266 (mep_ipipe_ldc_p): Likewise for param.
24268 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
24269 (mep_rewrite_mult): Likewise.
24270 (mep_rewrite_mulsi3): Likewise.
24271 (mep_rewrite_maddsi3): Likewise.
24272 (mep_reuse_lo_p_1): Likewise.
24273 (mep_reuse_lo_p): Likewise.
24274 (mep_frame_expr): Likewise.
24275 (mep_make_parallel): Likewise for both params.
24276 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
24278 (mep_use_post_modify_p): Likewise for param "insn".
24279 (mep_core_address_length): Likewise.
24280 (mep_cop_address_length): Likewise.
24281 (mep_reg_set_in_function): Likewise for local "insn".
24282 (mep_asm_without_operands_p): Likewise.
24283 (F): Likewise for return type and param "x".
24284 (add_constant): Likewise for local "insn".
24285 (maybe_dead_move): Likewise for return type and local "insn".
24286 (mep_expand_prologue): Likewise for local "insn".
24287 (mep_final_prescan_insn): Likewise for param "insn".
24288 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
24289 "next", "follow", "x".
24290 (mep_insert_repeat_label_last): Likewise for return type, param
24291 "last_insn", and locals "next", "prev". Strengthen param "label"
24292 from rtx to rtx_code_label *.
24293 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
24295 (struct mep_doloop_end): Likewise for fields "insn" and
24297 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
24298 Strengthen local "repeat_label" from rtx to rtx_code_label *.
24299 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
24301 (mep_invert_branch): Likewise for params "insn" and "after".
24302 (mep_reorg_erepeat): Likewise for param "insns" and locals
24303 "insn", "prev", "new_last", "barrier", "user". Strengthen local
24304 "l" from rtx to rtx_code_label *.
24305 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
24306 from rtx to rtx_insn *.
24307 (mep_reorg_addcombine): Likewise for param "insns" and locals
24309 (add_sp_insn_p): Likewise for param "insn".
24310 (mep_reorg_noframe): Likewise for param "insns" and locals
24311 "start_frame_insn", "end_frame_insn", "next".
24312 (mep_reorg): Likewise for local "insns".
24313 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
24315 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
24316 (mep_mul_hilo_bypass_p): Likewise.
24317 (mep_ipipe_ldc_p): Likewise for param "insn".
24318 (mep_make_bundle): Likewise for return type, param "cop" and local
24319 "insn", splitting out the latter into a new local "seq" for when it
24320 is a SEQUENCE rather than an insn.
24321 (core_insn_p): Likewise for param "insn".
24322 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
24323 "last", "first", "note", "prev", "core_insn".
24325 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24327 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
24329 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
24330 (m68k_final_prescan_insn): Likewise for first param.
24332 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
24333 (m68k_set_frame_related): Likewise for param "insn".
24334 (output_btst): Likewise for param "insn".
24335 (m68k_final_prescan_insn): Likewise.
24336 (m68k_move_to_reg): Likewise for local "insn".
24337 (m68k_call_tls_get_addr): Likewise for local "insns".
24338 (m68k_call_m68k_read_tp): Likewise.
24339 (strict_low_part_peephole_ok): Likewise for param "first_insn".
24340 (m68k_output_mi_thunk): Likewise for local "insn".
24342 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24344 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
24345 first param from rtx to rtx_insn *.
24346 (iq2000_adjust_insn_length): Likewise.
24347 (iq2000_output_conditional_branch): Likewise.
24348 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
24349 "insn" and local "nop_insn".
24350 (iq2000_annotate_frame_insn): Likewise for param "insn".
24351 (iq2000_expand_prologue): Likewise for both locals "insn".
24352 (iq2000_adjust_insn_length): Likewise for param "insn".
24353 (iq2000_output_conditional_branch): Likewise.
24355 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24357 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
24358 "insns" from rtx to rtx_insn *.
24359 (ia64_emit_cond_move): Likewise for locals "insn", "first".
24360 (struct spill_fill_data): Likewise for field "init_after" and for
24361 elements of array field "prev_insn".
24362 (spill_restore_mem): Likewise for locals "insn", "first".
24363 (do_spill): Likewise for local "insn".
24364 (do_restore): Likewise.
24365 (ia64_expand_prologue): Likewise.
24366 (ia64_expand_epilogue): Likewise.
24367 (emit_insn_group_barriers): Likewise for locals "insn",
24369 (emit_all_insn_group_barriers): Likewise for locals "insn",
24371 (dfa_stop_insn): Likewise for this global.
24372 (dfa_pre_cycle_insn): Likewise.
24373 (ia64_nop): Likewise.
24374 (final_emit_insn_group_barriers): Likewise for locals "insn",
24376 (emit_predicate_relation_info): Likewise for locals "head", "n",
24378 (ia64_reorg): Likewise for local "insn".
24379 (ia64_output_mi_thunk): Likewise.
24380 (expand_vec_perm_interleave_2): Likewise for local "seq".
24382 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24384 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
24385 param 1 "insn" from rtx to rtx_insn *.
24386 (ix86_use_lea_for_mov): Likewise.
24387 (ix86_avoid_lea_for_addr): Likewise.
24388 (ix86_split_lea_for_addr): Likewise.
24389 (ix86_lea_for_add_ok): Likewise.
24390 (ix86_output_call_insn): Likewise.
24392 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
24393 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
24394 (ix86_output_function_epilogue): Likewise for locals "insn",
24395 "deleted_debug_label".
24396 (legitimize_tls_address): Likewise for local "insn".
24397 (get_some_local_dynamic_name): Likewise.
24398 (increase_distance): Likewise for params "prev", "next".
24399 (distance_non_agu_define_in_bb): Likewise for params "insn",
24400 "start" and locals "prev", "next".
24401 (distance_non_agu_define): Likewise for param "insn".
24402 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
24403 locals "next", "prev".
24404 (distance_agu_use): Likewise for param "insn".
24405 (ix86_lea_outperforms): Likewise.
24406 (ix86_ok_to_clobber_flags): Likewise.
24407 (ix86_avoid_lea_for_add): Likewise.
24408 (ix86_use_lea_for_mov): Likewise.
24409 (ix86_avoid_lea_for_addr): Likewise.
24410 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
24411 (ix86_split_lea_for_addr): Likewise for param "insn".
24412 (ix86_lea_for_add_ok): Likewise for param "insn".
24413 (ix86_expand_carry_flag_compare): Likewise for local
24415 (ix86_expand_int_movcc): Likewise.
24416 (ix86_output_call_insn): Likewise for param "insn".
24417 (ix86_output_call_insn): Likewise for local "i".
24418 (x86_output_mi_thunk): Introduce local "insn", using it in place
24419 of "tmp" when dealing with insns.
24420 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
24422 (ix86_pad_returns): Likewise for locals "ret", "prev".
24423 (ix86_count_insn_bb): Likewise for local "insn".
24424 (ix86_pad_short_function): Likewise for locals "ret", "insn".
24425 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
24426 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
24427 (expand_vec_perm_interleave2): Likewise for local "seq".
24428 (expand_vec_perm_vperm2f128_vblend): Likewise.
24429 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
24430 call to for_each_rtx with for_each_rtx_in_insn.
24432 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24434 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
24435 "label" from rtx to rtx_code_label *.
24436 (ix86_expand_prologue): Likewise.
24437 (ix86_expand_split_stack_prologue): Likewise for locals "label",
24439 (ix86_split_idivmod): Likewise for locals "end_label" and
24441 (ix86_expand_branch): Likewise for local "label2".
24442 (ix86_expand_aligntest): Likewise for return type and local "label".
24443 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
24445 (expand_movmem_epilogue): Likewise for the various locals named
24447 (expand_setmem_epilogue): Likewise.
24448 (expand_small_movmem_or_setmem): Likewise for local "label".
24449 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
24450 Strengthen param "done_label" from rtx * to rtx_code_label **.
24451 Strengthen locals "loop_label" and "label" from rtx to
24453 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
24454 Likewise for locals "loop_label", "label".
24455 (ix86_expand_set_or_movmem): Likewise for locals "label",
24456 "jump_around_label", "hot_label".
24457 (ix86_expand_strlensi_unroll_1): Likewise for locals
24458 "align_2_label", align_3_label", "align_4_label", "end_0_label",
24460 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
24461 (void ix86_emit_i387_log1p): Likewise for locals "label1",
24462 "label2", "jump_label".
24463 (ix86_expand_sse_compare_and_jump): Likewise for return type and
24465 (ix86_expand_lfloorceil): Likewise for local "label".
24466 (ix86_expand_rint): Likewise.
24467 (ix86_expand_floorceildf_32): Likewise.
24468 (ix86_expand_floorceil): Likewise.
24469 (ix86_expand_rounddf_32): Likewise.
24470 (ix86_expand_trunc): Likewise.
24471 (ix86_expand_truncdf_32): Likewise.
24472 (ix86_expand_round): Likewise.
24474 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24476 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
24477 first param from rtx to rtx_insn *.
24478 (h8300_insn_length_from_table): Likewise.
24479 * config/h8300/h8300.c (F): Likewise for return type and param
24481 (Fpa): Add a checked cast to rtx_insn *.
24482 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
24484 (final_prescan_insn): Likewise for param "insn".
24485 (h8300_binary_length): Likewise.
24486 (h8300_insn_length_from_table): Likewise.
24488 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24490 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
24491 Strengthen first param "insn" from rtx to rtx_insn *.
24493 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
24495 (frame_insn): Likewise for return type. Introduce local "insn"
24496 for use in place of local "x" for use as an rtx_insn *.
24497 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
24498 (epiphany_expand_prologue): Likewise for local "insn".
24499 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
24500 * config/epiphany/resolve-sw-modes.c
24501 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
24504 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24506 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
24507 param from rtx to rtx_insn *.
24508 (c6x_final_prescan_insn): Likewise for first param.
24510 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
24511 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
24512 (c6x_expand_compare): Strengthen local "insns" from rtx to
24514 (c6x_get_unit_specifier): Likewise for param "insn".
24515 (c6x_print_unit_specifier_field): Likewise.
24516 (c6x_final_prescan_insn): Likewise.
24517 (emit_add_sp_const): Likewise for local "insn".
24518 (c6x_expand_prologue): Likewise.
24520 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24522 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
24523 param 1 from rtx to rtx_insn *.
24524 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
24525 the various locals named "insn".
24526 (expand_epilogue_reg_restore): Likewise.
24527 (frame_related_constant_load): Likewise.
24528 (add_to_reg): Likewise.
24529 (emit_link_insn): Likewise.
24530 (do_link): Likewise.
24531 (expand_interrupt_handler_prologue): Likewise.
24532 (branch_dest): Likewise for param "branch".
24533 (asm_conditional_branch): Likewise for param "insn".
24534 (gen_one_bundle): Likewise for elements of param "slot" and local
24536 (bfin_gen_bundles): Likewise for locals "insn", "next" and
24537 elements of local "slot".
24538 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
24539 "queue", "next_queue", "prev".
24540 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
24541 (add_sched_insns_for_speculation): Likewise for local "insn".
24543 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24545 * config/avr/avr-protos.h (output_movqi): Strengthen first param
24546 from rtx to rtx_insn *.
24547 (output_movhi): Likewise.
24548 (output_movsisf): Likewise.
24549 (avr_out_tstsi): Likewise.
24550 (avr_out_tsthi): Likewise.
24551 (avr_out_tstpsi): Likewise.
24552 (avr_out_compare): Likewise.
24553 (avr_out_compare64): Likewise.
24554 (avr_out_movpsi): Likewise.
24555 (ashlqi3_out): Likewise.
24556 (ashlhi3_out): Likewise.
24557 (ashlsi3_out): Likewise.
24558 (ashrqi3_out): Likewise.
24559 (ashrhi3_out): Likewise.
24560 (ashrsi3_out): Likewise.
24561 (lshrqi3_out): Likewise.
24562 (lshrhi3_out): Likewise.
24563 (lshrsi3_out): Likewise.
24564 (avr_out_ashlpsi3): Likewise.
24565 (avr_out_ashrpsi3): Likewise.
24566 (avr_out_lshrpsi3): Likewise.
24567 (avr_out_fract): Likewise.
24568 (avr_out_sbxx_branch): Likewise.
24569 (avr_out_round): Likewise.
24570 (avr_out_xload): Likewise.
24571 (avr_out_movmem): Likewise.
24572 (adjust_insn_length): Likewise.
24573 (avr_out_lpm): Likewise.
24574 (reg_unused_after): Likewise.
24575 (_reg_unused_after): Likewise.
24576 (avr_jump_mode): Likewise for second param.
24577 (jump_over_one_insn): Likewise for first param.
24578 (avr_final_prescan_insn): Likewise.
24579 (out_shift_with_cnt): Likewise for second param.
24581 * config/avr/avr.c (get_sequence_length): Likewise for param
24582 "insns" and local "insn".
24583 (emit_push_byte): Likewise for local "insn".
24584 (emit_push_sfr): Likewise.
24585 (avr_prologue_setup_frame): Likewise for locals "insn",
24586 "fp_plus_insns", "sp_plus_insns".
24587 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
24589 (avr_jump_mode): Likewise for param "insn".
24590 (avr_final_prescan_insn): Likewise.
24591 (avr_find_unused_d_reg): Likewise.
24592 (avr_out_lpm_no_lpmx): Likewise.
24593 (avr_out_lpm): Likewise.
24594 (avr_out_xload): Likewise.
24595 (output_movqi): Likewise.
24596 (output_movhi): Likewise.
24597 (out_movqi_r_mr): Likewise.
24598 (out_movhi_r_mr): Likewise.
24599 (out_movsi_r_mr): Likewise.
24600 (out_movsi_mr_r): Likewise.
24601 (output_movsisf): Likewise.
24602 (avr_out_load_psi): Likewise.
24603 (avr_out_store_psi): Likewise.
24604 (avr_out_movpsi): Likewise.
24605 (out_movqi_mr_r): Likewise.
24606 (avr_out_movhi_mr_r_xmega): Likewise.
24607 (out_movhi_mr_r): Likewise.
24608 (compare_condition): Likewise for param "insn" and local "next".
24609 (compare_sign_p): Likewise for param "insn".
24610 (compare_diff_p): Likewise.
24611 (compare_eq_p): Likewise.
24612 (avr_out_compare): Likewise.
24613 (avr_out_compare64): Likewise.
24614 (avr_out_tsthi): Likewise.
24615 (avr_out_tstpsi): Likewise.
24616 (avr_out_tstsi): Likewise.
24617 (out_shift_with_cnt): Likewise.
24618 (ashlqi3_out): Likewise.
24619 (ashlhi3_out): Likewise.
24620 (avr_out_ashlpsi3): Likewise.
24621 (ashlsi3_out): Likewise.
24622 (ashrqi3_out): Likewise.
24623 (ashrhi3_out): Likewise.
24624 (avr_out_ashrpsi3): Likewise.
24625 (ashrsi3_out): Likewise.
24626 (lshrqi3_out): Likewise.
24627 (lshrhi3_out): Likewise.
24628 (avr_out_lshrpsi3): Likewise.
24629 (lshrsi3_out): Likewise.
24630 (avr_out_fract): Likewise.
24631 (avr_out_round): Likewise.
24632 (avr_adjust_insn_length): Likewise.
24633 (reg_unused_after): Likewise.
24634 (_reg_unused_after): Likewise.
24635 (avr_compare_pattern): Likewise.
24636 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
24637 and locals "branch1", "branch2", "insn2", "jump".
24638 (avr_reorg): Likewise for local "insn".
24639 (avr_2word_insn_p): Likewise for param "insn".
24640 (jump_over_one_insn_p): Likewise.
24641 (avr_out_sbxx_branch): Likewise.
24642 (avr_out_movmem): Likewise.
24644 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24646 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
24647 param from rtx to rtx_insn *.
24648 (thumb1_final_prescan_insn): Likewise.
24649 (thumb2_final_prescan_insn): Likewise.
24651 * config/arm/arm.c (emit_set_insn): Strengthen return type from
24653 (struct minipool_node): Likewise for field "insn".
24654 (dump_minipool): Likewise for param "scan".
24655 (create_fix_barrier): Likewise for local "from". Strengthen local
24656 "label" from rtx to rtx_code_label *.
24657 (push_minipool_barrier): Strengthen param "insn" from rtx to
24659 (push_minipool_fix): Likewise.
24660 (note_invalid_constants): Likewise.
24661 (thumb2_reorg): Likewise for local "insn".
24662 (arm_reorg): Likewise.
24663 (thumb2_final_prescan_insn): Likewise for param
24664 "insn" and local "first_insn".
24665 (arm_final_prescan_insn): Likewise for param "insn" and locals
24666 "start_insn", "this_insn".
24667 (arm_debugger_arg_offset): Likewise for param "insn".
24668 (thumb1_emit_multi_reg_push): Likewise for return type and local
24670 (thumb1_final_prescan_insn): Likewise for param "insn".
24671 (thumb_far_jump_used_p): Likewise for local "insn".
24672 (thumb1_expand_prologue): Likewise.
24673 (arm_expand_epilogue_apcs_frame): Likewise.
24674 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
24675 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
24676 from rtx to rtx_code_label *.
24677 (arm_split_atomic_op): Likewise for local "label".
24678 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
24680 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24682 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
24683 first param from rtx to rtx_insn *.
24684 (arc_verify_short): Likewise.
24685 (arc_short_long): Likewise.
24686 (arc_need_delay): Likewise.
24688 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
24690 (arc_ccfsm_advance): Likewise for param "insn" and locals
24691 "start_insn", "this_insn".
24692 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
24693 (arc_ccfsm_post_advance): Likewise for param "insn".
24694 (arc_next_active_insn): Likewise for return type and param "insn".
24695 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
24696 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
24697 (output_short_suffix): Likewise for local "insn".
24698 (arc_final_prescan_insn): Likewise for param "insn". Remove
24699 now-redundant checked cast.
24700 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
24701 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
24702 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
24703 for use where lc_set became an insn.
24704 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
24706 (arc_get_insn_variants): Likewise for local "prev".
24707 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
24709 (arc_predicate_delay_insns): Likewise for local "insn".
24710 (arc_pad_return): Likewise for local "prev". For now, add a
24711 checked cast when extracting the insn from "final_sequence".
24712 (arc_short_long): Likewise for param "insn".
24713 (arc_need_delay): Likewise for param "insn" and local "next".
24714 (arc_label_align): Likewise for locals "prev", "next".
24716 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24718 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
24719 "insn" from rtx to rtx_insn *.
24720 (alpha_gp_save_rtx): Likewise for local "seq".
24721 (alpha_instantiate_decls): Likewise for local "top".
24722 (get_some_local_dynamic_name): Likewise for local "insn".
24723 (alpha_does_function_need_gp): Likewise.
24724 (set_frame_related_p): Likewise for return type and for locals
24726 (emit_frame_store_1): Likewise for local "insn".
24727 (alpha_expand_prologue): Likewise for locals "insn", "seq".
24728 (alpha_end_function): Likewise for local "insn".
24729 (alpha_output_mi_thunk_osf): Likewise.
24730 (alphaev4_insn_pipe): Likewise for param "insn".
24731 (alphaev5_insn_pipe): Likewise.
24732 (alphaev4_next_group): Likewise for return type and param 1
24734 (alphaev5_next_group): Likewise.
24735 (alpha_align_insns_1): Likewise for return type and param 1 of
24736 callback param "next_group", and for locals "i", "next", "prev",
24737 "where", "where2", "insn".
24739 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
24741 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
24742 rather than modifying the stmt.
24744 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24746 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
24747 cgraph_state conversion.
24749 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24751 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
24752 Strengthen local "insns" from rtx to rtx_insn *.
24753 (aarch64_set_frame_expr): Likewise for local "insn".
24754 (aarch64_save_or_restore_fprs): Likewise.
24755 (aarch64_save_or_restore_callee_save_registers): Likewise.
24756 (aarch64_expand_prologue): Likewise.
24757 (aarch64_expand_epilogue): Likewise.
24758 (aarch64_output_mi_thunk): Likewise.
24759 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
24760 "label2" from rtx to rtx_code_label *.
24761 (aarch64_split_atomic_op): Likewise for local "label".
24763 2014-08-25 Martin Liska <mliska@suse.cz>
24765 * cgraph.h (symtab_node):
24766 (bool needed_p (void)): created from decide_is_symbol_needed
24767 (bool referred_to_p (void)): created from referred_to_p
24768 (static cgraph_node *get_for_asmname (tree asmname)):
24769 created from symtab_node_for_asm
24770 * cgraph.h (cgraph_node):
24771 (void assemble_thunks_and_aliases (void)):
24772 created from assemble_thunks_and_aliases
24773 (void expand (void)): created from expand_function
24774 (static void finalize_function (tree, bool)):
24775 created from cgraph_finalize_function
24776 (static cgraph_local_info *local_info (tree decl)):
24777 created from cgraph_local_info
24778 (static cgraph_global_info *global_info (tree)):
24779 created from cgraph_global_info
24780 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
24781 * cgraph.h (varpool_node):
24782 (static void add (tree decl): created from varpool_add_new_variable
24783 * cgraph.h (cgraph_edge):
24784 void remove (void);
24785 (void remove_caller (void)): created from cgraph_edge_remove_caller
24786 (void remove_callee (void)): created from cgraph_edge_remove_callee
24787 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
24788 created from cgraph_set_call_stmt
24789 (void redirect_callee (cgraph_node *n)): created from
24790 cgraph_redirect_edge_callee
24791 (cgraph_edge *make_direct (cgraph_node *callee)): created from
24792 cgraph_make_edge_direct
24793 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
24794 gimple redirect_call_stmt_to_callee (void)): created from
24795 cgraph_turn_edge_to_speculative
24796 (void speculative_call_info (cgraph_edge *&direct,
24797 cgraph_edge *&indirect, ipa_ref *&reference)): created from
24798 cgraph_speculative_call_info
24799 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt,
24800 unsigned stmt_uid, gcov_type count_scale,
24801 int freq_scale, bool update_original)): created from cgraph_clone_edge
24802 (cgraph_edge *resolve_speculation (tree callee_decl)):
24803 created from cgraph_resolve_speculation
24804 (bool cannot_lead_to_return_p (void)): created from
24805 cannot_lead_to_return_p
24806 (bool recursive_p (void)): created from cgraph_edge_recursive_p
24807 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
24808 (static unsigned int rebuild_edges (void)): created from
24809 rebuild_cgraph_edges
24810 (static void rebuild_references (void)): created from
24811 cgraph_rebuild_references
24812 * cgraph.h (symbol_table):
24813 (create_reference): renamed from add_reference
24814 (maybe_create_reference): renamed from maybe_add_reference
24815 (void register_symbol (symtab_node *node)): new function
24816 (void clear_asm_symbols (void)): new function
24817 (void unregister (symtab_node *node)): new function
24818 (void release_symbol (cgraph_node *node, int uid)): new function
24819 (cgraph_node * allocate_cgraph_symbol (void)): new function
24820 (void initialize (void)): created from cgraph_init
24821 (symtab_node *first_symbol (void)):new function
24822 (asm_node *first_asm_symbol (void)):new function
24823 (symtab_node *first_defined_symbol (void)):new function
24824 (varpool_node *first_variable (void)):new function
24825 (varpool_node *next_variable (varpool_node *node)):new function
24826 (varpool_node *first_static_initializer (void)):new function
24827 (varpool_node *next_static_initializer (varpool_node *node)):new
24829 (varpool_node *first_defined_variable (void)):new function
24830 (varpool_node *next_defined_variable (varpool_node *node)):new function
24831 (cgraph_node *first_defined_function (void)):new function
24832 (cgraph_node *next_defined_function (cgraph_node *node)):new function
24833 (cgraph_node *first_function (void)):new function
24834 (cgraph_node *next_function (cgraph_node *node)):new function
24835 (cgraph_node *first_function_with_gimple_body (void)):new function
24836 (asm_node *finalize_toplevel_asm (tree asm_str)): created from
24838 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
24839 created from symtab_remove_unreachable_nodes
24840 (void remove_unreferenced_decls (void)): created from
24841 varpool_remove_unreferenced_decls
24842 (void process_new_functions (void)): created from
24843 cgraph_process_new_functions
24844 (void process_same_body_aliases (void)): created from
24845 cgraph_process_same_body_aliases
24846 (bool output_variables (void)): created from
24847 varpool_node::output_variables
24848 (void output_asm_statements (void)): created from output_asm_statements
24849 (void finalize_compilation_unit (void)): created from
24850 finalize_compilation_unit
24851 (void compile (void)): created from compile
24852 (void output_weakrefs (void)): created from output_weakrefs
24853 (cgraph_node *create_empty (void)): created from
24854 cgraph_node::create_empty
24855 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee,
24856 gimple call_stmt, gcov_type count, int freq,
24857 bool indir_unknown_callee)): created from cgraph_node::create_edge
24858 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
24859 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
24860 created from cgraph_next_function_with_gimple_body
24861 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
24862 created from cgraph_remove_edge_removal_hook
24863 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook,
24864 void *)): created from cgraph_add_node_removal_hook
24865 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
24866 created from cgraph_remove_node_removal_hook
24867 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook,
24868 void *)): created from varpool_add_node_removal_hook
24869 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
24870 created from varpool_remove_node_removal_hook
24871 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook,
24872 void *)): created from cgraph_add_function_insertion_hook
24873 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
24874 created from cgraph_remove_function_insertion_hook
24875 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook,
24876 void *)): created from varpool_add_variable_insertion_hook
24877 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
24878 created from varpool_remove_variable_insertion_hook
24879 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook,
24880 void *)): created from cgraph_add_edge_duplication_hook
24881 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
24882 created from cgraph_remove_edge_duplication_hook
24883 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook,
24884 void *)): created from cgraph_add_node_duplication_hook
24885 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
24886 created from cgraph_remove_node_duplication_hook
24887 (void call_edge_removal_hooks (cgraph_edge *e)):
24888 created from cgraph_call_edge_removal_hooks
24889 (void call_cgraph_insertion_hooks (cgraph_node *node)):
24890 created from call_function_insertion_hooks
24891 (void call_cgraph_removal_hooks (cgraph_node *node)):
24892 created from cgraph_call_node_removal_hooks
24893 (void call_cgraph_duplication_hooks (cgraph_node *node,
24894 cgraph_node *node2)): created from cgraph_node::call_duplication_hooks
24895 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
24896 created from cgraph_call_edge_duplication_hooks
24897 (void call_varpool_removal_hooks (varpool_node *node)):
24898 created from varpool_call_node_removal_hooks
24899 (void call_varpool_insertion_hooks (varpool_node *node)):
24900 created from varpool_call_variable_insertion_hooks
24901 (void insert_to_assembler_name_hash (symtab_node *node,
24902 bool with_clones)): created from insert_to_assembler_name_hash
24903 (void unlink_from_assembler_name_hash (symtab_node *node,
24904 bool with_clones)): created from unlink_from_assembler_name_hash
24905 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
24906 created from symtab_prevail_in_asm_name_hash
24907 (void symtab_initialize_asm_name_hash (void)):
24908 created from symtab_initialize_asm_name_hash
24909 (void change_decl_assembler_name (tree decl, tree name)):
24910 created from change_decl_assembler_name
24911 (void materialize_all_clones (void)): created from
24912 cgraph_materialize_all_clones
24913 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
24914 created from decl_assembler_name_hash
24915 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
24916 created from decl_assembler_name_equal
24917 (static hashval_t hash_node_by_assembler_name (const void *p)):
24918 created from hash_node_by_assembler_name
24919 (static int eq_assembler_name (const void *p1, const void *p2)):
24920 created from eq_assembler_name
24922 2014-08-25 Marek Polacek <polacek@redhat.com>
24924 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
24926 2014-08-25 Petr Murzin <petr.murzin@intel.com>
24928 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
24929 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
24930 SWI1248_AVX512BW mode iterator.
24932 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
24935 * config/sh/predicates.md (general_extend_operand): Disable
24936 TRUNCATE before reload completes.
24938 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
24940 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
24942 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
24945 * config/sh/sh.opt (musermode): Allow negative form.
24946 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
24947 targets that don't support it.
24948 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
24949 Document -mno-usermode option.
24951 2014-08-24 Kito Cheng <kito@0xlab.org>
24953 * system.h (CALLER_SAVE_PROFITABLE): Poison.
24954 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
24955 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
24956 * doc/tm.texi: Regenerate.
24958 2014-08-24 Kito Cheng <kito@0xlab.org>
24960 * ira.c: Fix typo in comment.
24962 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
24964 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
24965 Deprecate c++1y. Change language to reflect greater confidence in C++14.
24967 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
24970 * config/pa/pa.c (pa_output_function_epilogue): Don't set
24971 last_address when the current function is a thunk.
24972 (pa_asm_output_mi_thunk): When we don't have named sections or they
24973 are not being used, check that thunk can reach the stub table with a
24976 2014-08-23 David Malcolm <dmalcolm@redhat.com>
24978 * web.c (union_match_dups): Strengthen param "insn" from rtx to
24980 (pass_web::execute): Likewise for local "insn".
24982 2014-08-23 David Malcolm <dmalcolm@redhat.com>
24984 * var-tracking.c (struct micro_operation_def): Strengthen field
24985 "insn" from rtx to rtx_insn *.
24986 (struct emit_note_data_def): Likewise.
24987 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
24988 (vt_stack_adjustments): Likewise for local "insn".
24989 (adjust_insn): Likewise for param "insn".
24990 (val_store): Likewise.
24991 (val_resolve): Likewise.
24992 (struct count_use_info): Likewise for field "insn".
24993 (log_op_type): Likewise for param "insn".
24994 (reverse_op): Likewise.
24995 (prepare_call_arguments): Likewise.
24996 (add_with_sets): The initial param takes an insn, but we can't
24997 yet strengthen it from rtx to rtx_insn * since it's used as a
24998 cselib_record_sets_hook callback. For now rename initial param
24999 from "insn" to "uncast_insn", and introduce a local "insn" of
25000 the stronger rtx_insn * type, with a checked cast.
25001 (compute_bb_dataflow): Strengthen local "insn" from rtx to
25003 (emit_note_insn_var_location): Likewise.
25004 (emit_notes_for_changes): Likewise.
25005 (emit_notes_for_differences): Likewise.
25006 (next_non_note_insn_var_location): Likewise for return type and
25008 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
25009 (vt_initialize): Likewise for local "insn".
25010 (delete_debug_insns): Likewise for locals "insn" and "next".
25012 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25014 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
25016 (mark_constant_pool): Likewise for local "insn".
25018 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25020 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
25022 (dead_debug_promote_uses): Likewise.
25023 (dead_debug_insert_temp): Likewise.
25025 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25027 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
25028 from const_rtx to const rtx_insn *.
25029 (store_killed_after): Likewise. Strengthen locals "last", "act"
25030 from rtx to rtx_insn *.
25031 (store_killed_before): Strengthen param "insn" from const_rtx to
25032 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
25033 (find_moveable_store): Strengthen param "insn" from rtx to
25035 (compute_store_table): Likewise for local "insn".
25036 (insert_insn_start_basic_block): Likewise for param "insn" and
25037 locals "prev", "before", "insn".
25038 (insert_store): For now, add a checked cast to rtx_insn * on the
25039 result of gen_move_insn.
25040 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
25042 (replace_store_insn): Likewise. For now, add a checked cast to
25043 rtx_insn * on the result of gen_move_insn.
25045 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25047 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
25049 (expand_sjlj_dispatch_table): Likewise.
25051 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25053 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
25054 "insn" from rtx to rtx_insn *.
25056 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25058 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
25059 "insn" from rtx to rtx_insn *.
25060 (dup_block_and_redirect): Likewise for param 3 "before".
25062 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
25063 from rtx to rtx_insn *.
25064 (move_insn_for_shrink_wrap): Likewise.
25065 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
25066 (dup_block_and_redirect): Likewise for param "before" and local
25068 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
25070 (convert_to_simple_return): Likewise for local "start".
25072 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
25073 Strengthen local "insn" from rtx to rtx_insn *, for use when
25074 invoking requires_stack_frame_p.
25076 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25078 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
25080 (speculate_expr): Likewise for locals "orig_insn_rtx",
25082 (eq_transformed_insns): Likewise for locals "i1", "i2".
25083 (check_for_new_jump): Likewise for return type and local "end".
25084 (find_new_jump): Likewise for return type and local "jump".
25085 (sel_split_edge): Likewise for local "jump".
25086 (sel_create_recovery_block): Likewise.
25087 (sel_redirect_edge_and_branch_force): Likewise.
25088 (sel_redirect_edge_and_branch): Likewise.
25090 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25092 * sel-sched.c (substitute_reg_in_expr): Strengthen local
25093 "new_insn" from rtx to rtx_insn *.
25094 (create_insn_rtx_with_rhs): Likewise for return type and for local
25096 (create_insn_rtx_with_lhs): Likewise.
25097 (create_speculation_check): Likewise for local "insn_rtx".
25098 (implicit_clobber_conflict_p): Likewise for local "insn".
25099 (get_expr_cost): Likewise.
25100 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
25101 (move_cond_jump): Likewise for locals "next", "prev", "link",
25102 "head", "from", "to".
25104 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25106 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
25107 "next" from rtx to rtx_insn *.
25108 (find_conditional_protection): Likewise for local "next".
25109 (is_conditionally_protected): Likewise for local "insn1".
25110 (is_pfree): Likewise for locals "insn1", "insn2".
25112 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25114 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
25115 from rtx to rtx_insn *.
25117 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
25118 locals "insn1", "insn2" from rtx to rtx_insn *.
25119 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
25120 locals "insn", "prev", "last_jump", "next_tail".
25121 (schedule_ebb): Likewise for params "head", "tail".
25122 (schedule_ebbs): Likewise for locals "tail", "head".
25124 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
25125 to rtx_insn on "last_insn" in one of the invocations of
25128 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25130 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
25131 "elem", "insn" from rtx to rtx_insn *.
25132 (change_spec_dep_to_hard): Likewise.
25133 (get_back_and_forw_lists): Likewise for local "con".
25134 (sd_add_dep): Likewise for locals "elem", "insn".
25135 (sd_resolve_dep): Likewise for locals "pro", "con".
25136 (sd_unresolve_dep): Likewise.
25137 (sd_delete_dep): Likewise.
25138 (chain_to_prev_insn): Likewise for local "pro".
25139 (find_inc): Likewise for locals "pro", "con".
25141 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25143 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
25145 (reg_set_between_p): Strengthen local "insn" from const_rtx to
25147 (modified_between_p): Strengthen local "insn" from rtx to
25149 (remove_reg_equal_equiv_notes_for_regno): Likewise.
25150 (keep_with_call_p): Strengthen local "i2" from const_rtx to
25153 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25155 * resource.c (next_insn_no_annul): Strengthen local "next" from
25157 (mark_referenced_resources): Likewise for local "insn".
25159 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25161 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
25163 (find_reloads): Likewise for param 1.
25164 (subst_reloads): Likewise for sole param.
25165 (find_equiv_reg): Likwise for param 2.
25166 (regno_clobbered_p): Likwise for param 2.
25167 (reload): Likewise for param 1.
25169 * caller-save.c (save_call_clobbered_regs): Strengthen local
25170 "insn" from rtx to rtx_insn *.
25171 (insert_one_insn): Likewise for local "insn".
25173 * reload.c (this_insn): Likewise for this global.
25174 (find_reloads): Likewise for param "insn".
25175 (find_reloads_toplev): Likewise.
25176 (find_reloads_address): Likewise.
25177 (subst_reg_equivs): Likewise.
25178 (update_auto_inc_notes): Likewise.
25179 (find_reloads_address_1): Likewise.
25180 (find_reloads_subreg_address): Likewise.
25181 (subst_reloads): Likewise.
25182 (find_equiv_reg): Likewise, also for local "p".
25183 (regno_clobbered_p): Likewise for param "insn".
25185 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
25187 (spill_reg_store): Likewise for the elements of this array.
25188 (remove_init_insns): Likewise for local "equiv_insn".
25189 (will_delete_init_insn_p): Likewise for param "insn".
25190 (reload): Likewise for param ""first" and local "insn".
25191 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
25193 (calculate_elim_costs_all_insns): Likewise.
25194 (delete_caller_save_insns): Likewise.
25195 (spill_failure): Likewise for param "insn".
25196 (delete_dead_insn): Likewise.
25197 (set_label_offsets): Likewise.
25198 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
25200 (elimination_costs_in_insn): Likewise for param "insn".
25201 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
25202 when referring to an insn.
25203 (set_initial_label_offsets): Likewise.
25204 (set_offsets_for_label): Strengthen param "insn" from rtx to
25206 (init_eliminable_invariants): Likewise for param "first" and local
25208 (fixup_eh_region_note): Likewise for param "insn".
25209 (reload_as_needed): Likewise for locals "prev", "insn",
25210 "old_next", "old_prev", "next".
25211 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
25213 (reload_inheritance_insn): Strengthen elements of this array from
25215 (failed_reload): Likewise for param "insn".
25216 (choose_reload_regs): Likewise for local "insn". Replace use of
25217 NULL_RTX with NULL when referring to an insn.
25218 (input_reload_insns): Strengthen elements of this array from rtx
25220 (other_input_address_reload_insns): Likewise for this global.
25221 (other_input_reload_insns): Likewise for this global.
25222 (input_address_reload_insns): Likwise for the elements of this
25224 (inpaddr_address_reload_insns): Likwise for the elements of this
25226 (output_reload_insns): Likewise for the elements of this array.
25227 (output_address_reload_insns): Likewise for the elements of this
25229 (outaddr_address_reload_insns): Likewise for the elements of this
25231 (operand_reload_insns): Likewise for this global.
25232 (other_operand_reload_insns): Likewise for this global.
25233 (other_output_reload_insns): Likewise for the elements of this
25235 (new_spill_reg_store): Likewise for the elements of this
25237 (emit_input_reload_insns): Likewise for locals "insn", "temp".
25238 Strengthen local "where" from rtx * to rtx_insn **.
25239 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
25240 from rtx to rtx_insn *.
25241 (do_input_reload): Likewise for local "insn".
25242 (do_output_reload): Likewise for local "insn".
25243 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
25244 (emit_insn_if_valid_for_reload): Likewise for return type and local
25245 "last". Add checked cast to rtx_insn when returning "insn" since
25246 this has been through emit_insn.
25247 (gen_reload): Strengthen return type and locals "last", "insn", "set"
25248 from rtx to rtx_insn *. Add checked cast to rtx_insn when
25249 returning "insn" since it's been through
25250 emit_insn_if_valid_for_reload at this point.
25251 (delete_output_reload): Strengthen param "insn" and locals
25252 "output_reload_insn", "i2" from rtx to rtx_insn *.
25253 (delete_address_reloads): Likewise for params "dead_insn",
25254 "current_insn" and locals "prev", "next".
25255 (delete_address_reloads_1): Likewise for params "dead_insn",
25256 "current_insn" and locals "prev", "i2".
25257 (inc_for_reload): Likewise for locals "last", "add_insn".
25258 (add_auto_inc_notes): Strengthen param "insn" from rtx to
25261 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
25262 param of this duplicate of the prototype from reload.h
25264 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25266 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
25268 (regstat_bb_compute_calls_crossed): Likewise.
25270 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25272 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
25274 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
25276 (regrename_analyze): Strengthen local "insn" from rtx to
25278 (scan_rtx_reg): Likewise for param "insn".
25279 (scan_rtx_address): Likewise.
25280 (scan_rtx): Likewise.
25281 (restore_operands): Likewise.
25282 (record_out_operands): Likewise.
25283 (build_def_use): Likewise for local "insn". Replace use of
25284 NULL_RTX with NULL when dealing with an insn.
25286 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25288 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
25289 * reginfo.c (reg_scan): Likewise, also for local "insn".
25290 (reg_scan_mark_refs): Likewise for param "insn".
25291 (init_subregs_of_mode): Likewise for local "insn".
25293 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25295 * regcprop.c (struct queued_debug_insn_change): Strengthen field
25296 "insn" from rtx to rtx_insn *.
25297 (replace_oldest_value_reg): Likewise for param "insn".
25298 (replace_oldest_value_addr): Likewise.
25299 (replace_oldest_value_mem): Likewise.
25300 (apply_debug_insn_changes): Likewise for local "last_insn".
25301 (copyprop_hardreg_forward_1): Likewise for local "insn".
25303 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25305 * reg-stack.c (next_flags_user): Strengthen return type and param
25306 "insn" from rtx to rtx_insn *.
25307 (straighten_stack): Likewise for param "insn".
25308 (check_asm_stack_operands): Likewise.
25309 (remove_regno_note): Likewise.
25310 (emit_pop_insn): Likewise for return type, param "insn", local
25312 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
25313 "limit" from rtx to rtx_insn *.
25314 (swap_to_top): Likewise for param "insn".
25315 (move_for_stack_reg): Likewise.
25316 (move_nan_for_stack_reg): Likewise.
25317 (swap_rtx_condition): Likewise.
25318 (compare_for_stack_reg): Likewise.
25319 (subst_all_stack_regs_in_debug_insn): Likewise.
25320 (subst_stack_regs_pat): Likewise, and local "insn2".
25321 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
25323 (subst_stack_regs): Likewise.
25324 (change_stack): Likewise.
25325 (convert_regs_1): Likewise for locals "insn", "next".
25327 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25329 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
25331 (combine_set_extension): Likewise for param "curr_insn".
25332 (transform_ifelse): Likewise for param "def_insn".
25333 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
25334 from vec<rtx> * to vec<rtx_insn *> *.
25335 (is_cond_copy_insn): Likewise for param "insn".
25336 (struct ext_state): Strengthen the four vec fields from vec<rtx>
25337 to vec<rtx_insn *>.
25338 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
25339 local "def_insn" from rtx to rtx_insn *.
25340 (get_sub_rtx): Likewise for param "def_insn".
25341 (merge_def_and_ext): Likewise.
25342 (combine_reaching_defs): Likewise.
25343 (add_removable_extension): Likewise for param "insn".
25344 (find_removable_extensions): Likewise for local "insn".
25345 (find_and_remove_re): Likewise for locals "curr_insn" and
25346 "def_insn". Strengthen locals "reinsn_del_list" and
25347 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
25349 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25351 * recog.c (split_insn): Strengthen param "insn" and locals
25352 "first", "last" from rtx to rtx_insn *.
25353 (split_all_insns): Likewise for locals "insn", "next".
25354 (split_all_insns_noflow): Likewise.
25356 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25358 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
25360 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
25361 (debug_rtx_find): Likewise for param 1 "x".
25363 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
25364 const_rtx to const rtx_insn *. Likewise for local "insn".
25365 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
25366 (debug_rtx_find): Likewise for param 1 "x".
25367 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
25368 from const_rtx to const rtx_insn * within the appropriate cases of
25369 the switch statement.
25371 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
25372 Strengthen local "insns" from rtx to rtx_insn * since this is
25373 passed to a call to debug_rtx_list.
25375 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25377 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
25380 * function.c (stack_protect_epilogue): Add checked cast to
25381 rtx_insn for now when invoking predict_insn_def.
25383 * predict.c (predict_insn): Strengthen param "insn" from rtx to
25385 (predict_insn_def): Likewise.
25386 (rtl_predict_edge): Likewise for local "last_insn".
25387 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
25389 (combine_predictions_for_insn): Strengthen param "insn" from rtx
25391 (bb_estimate_probability_locally): Likewise for local "last_insn".
25392 (expensive_function_p): Likewise for local "insn".
25394 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
25395 local "jmp", since this is used when invoking predict_insn_def.
25397 2014-08-22 Marek Polacek <polacek@redhat.com>
25400 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
25402 2014-08-22 Marek Polacek <polacek@redhat.com>
25405 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
25406 a comparison in parens.
25407 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
25410 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25412 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
25415 * cprop.c (fis_get_condition): Likewise.
25417 * postreload.c (reload_cse_regs): Likewise for param "first".
25418 (reload_cse_simplify): Likewise for param "insn".
25419 (reload_cse_regs_1): Likewise for local "insn".
25420 (reload_cse_simplify_set): Likewise for param "insn".
25421 (reload_cse_simplify_operands): Likewise.
25422 (struct reg_use): Likewise for field "insn".
25423 (reload_combine_purge_insn_uses): Likewise for param "insn".
25424 (fixup_debug_insns): Likewise for params "from", "to" and local
25426 (try_replace_in_use): Likewise for local "use_insn".
25427 (reload_combine_recognize_const_pattern): Likewise for param
25428 "insn" and locals "add_moved_after_insn", "use_insn".
25429 (reload_combine_recognize_pattern): Likewise for param "insn" and
25431 (reload_combine): Likewise for locals "insn", "prev".
25432 (reload_combine_note_use): Likewise for param "insn".
25433 (move2add_use_add2_insn): Likewise.
25434 (move2add_use_add3_insn): Likewise.
25435 (reload_cse_move2add): Likewise, also for local "next".
25436 (move2add_note_store): Likewise for local "insn".
25438 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25440 * postreload-gcse.c (struct occr): Strengthen field "insn" from
25442 (struct unoccr): Likewise.
25443 (struct modifies_mem): Likewise.
25444 (alloc_mem): Likewise for local "insn".
25445 (insert_expr_in_table): Likewise for param "insn".
25446 (dump_expr_hash_table_entry): Likewise for local "insn".
25447 (oprs_unchanged_p): Likewise for param "insn".
25448 (load_killed_in_block_p): Likewise for local "setter".
25449 (record_last_reg_set_info): Likewise for param "insn".
25450 (record_last_reg_set_info_regno): Likewise.
25451 (record_last_mem_set_info): Likewise.
25452 (record_last_set_info): Likewise for local "last_set_insn".
25453 (record_opr_changes): Likewise for param "insn".
25454 (hash_scan_set): Likewise.
25455 (compute_hash_table): Likewise for local "insn".
25456 (get_avail_load_store_reg): Likewise for param "insn".
25457 (eliminate_partially_redundant_load): Likewise, also for locals
25458 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
25460 (eliminate_partially_redundant_loads): Likewise for local "insn".
25462 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25464 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
25466 (expand_binop): Likewise for locals "entry_last", "last", "insns"
25467 (expand_twoval_unop): Likewise for locals entry_last", "last".
25468 (expand_twoval_binop): Likewise.
25469 (expand_twoval_binop_libfunc): Likewise for local "insns".
25470 (widen_leading): Likewise for local "last".
25471 (expand_doubleword_clz): Likewise for local "seq". Strengthen
25472 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
25473 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
25474 (expand_parity): Likewise for locals "last" and "seq".
25475 (expand_ffs): Likewise for local "seq". Strengthen local
25476 "nonzero_label" from rtx to rtx_code_label *.
25477 (expand_absneg_bit): Strengthen local "insns" from rtx to
25479 (expand_unop_direct): Likewise for local "last".
25480 (expand_unop): Likewise for locals "last", "insns".
25481 (expand_abs_nojump): Likewise for local "last".
25482 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
25483 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
25485 (expand_copysign_absneg): Strengthen local "label" from rtx to
25487 (expand_copysign_bit): Strengthen local "insns" from rtx to
25489 (struct no_conflict_data): Likewise for fields "first", "insn".
25490 (emit_libcall_block_1): Likewise for param "insns" and locals
25491 "next", "last", "insn".
25492 (emit_libcall_block): For now, add a checked cast to rtx_insn *
25493 on "insns" when invoking emit_libcall_block_1. Ultimately we
25494 want to strengthen insns itself.
25495 (prepare_cmp_insn): Strengthen local "last" from rtx to
25497 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
25498 (prepare_float_lib_cmp): Likewise for local "insns".
25499 (emit_conditional_move): Likewise for local "last".
25500 (emit_conditional_add): Likewise.
25501 (have_sub2_insn): Likewise for local "seq".
25502 (expand_float): Likewise for local "insns". Strengthen locals
25503 "label", "neglabel" from rtx to rtx_code_label *.
25504 (expand_fix): Likewise for locals "last", "insn", "insns" (to
25505 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
25506 (expand_fixed_convert): Likewise for local "insns" (to
25508 (expand_sfix_optab): Likewise for local "last".
25509 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
25510 to rtx_code_label *.
25511 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
25512 from rtx to rtx_insn *.
25513 (expand_atomic_fetch_op): Likewise for local "insn".
25514 (maybe_legitimize_operand_same_code): Likewise for local "last".
25515 (maybe_legitimize_operands): Likewise.
25517 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25519 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
25520 "insn" from rtx to rtx_insn *.
25521 (ps_rtl_insn): Likewise for return type.
25522 (doloop_register_get): Likewise for params "head", "tail" and
25523 locals "insn", "first_insn_not_to_check".
25524 (schedule_reg_move): Likewise for local "this_insn".
25525 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
25526 of gen_move_insn for now.
25527 (reset_sched_times): Strengthen local "insn" from rtx to
25529 (permute_partial_schedule): Likewise.
25530 (duplicate_insns_of_cycles): Likewise for local "u_insn".
25531 (dump_insn_location): Likewise for param "insn".
25532 (loop_canon_p): Likewise for local "insn".
25533 (sms_schedule): Likewise.
25534 (print_partial_schedule): Likewise.
25535 (ps_has_conflicts): Likewise.
25537 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25539 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
25540 "tailp" from rtx * to rtx_insn **.
25542 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
25543 from rtx to rtx_insn *.
25544 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
25545 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
25546 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
25548 * modulo-sched.c (const_iteration_count): Strengthen return type
25549 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
25550 use of NULL_RTX with NULL when working with insns.
25551 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
25553 (sms_schedule): Likewise.
25554 * sched-rgn.c (init_ready_list): Likewise, also for locals
25555 "src_head" and "src_next_tail".
25556 (compute_block_dependences): Likewise.
25557 (free_block_dependencies): Likewise.
25558 (debug_rgn_dependencies): Likewise.
25559 (free_rgn_deps): Likewise.
25560 (compute_priorities): Likewise.
25561 (schedule_region): Likewise.
25562 * sel-sched.c (find_ebb_boundaries): Likewise.
25564 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
25565 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
25567 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25569 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
25570 from rtx to rtx_insn *.
25571 (new_seginfo): Likewise for param "insn".
25572 (create_pre_exit): Likewise for locals "last_insn",
25573 "before_return_copy", "return_copy".
25574 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
25577 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25579 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
25580 from rtx to rtx_insn *.
25581 (lra_push_insn): Likewise for 1st param.
25582 (lra_push_insn_and_update_insn_regno_info): Likewise.
25583 (lra_pop_insn): Likewise for return type.
25584 (lra_invalidate_insn_data): Likewise for 1st param.
25585 (lra_set_insn_deleted): Likewise.
25586 (lra_delete_dead_insn): Likewise.
25587 (lra_process_new_insns): Likewise for first 3 params.
25588 (lra_set_insn_recog_data): Likewise for 1st param.
25589 (lra_update_insn_recog_data): Likewise.
25590 (lra_set_used_insn_alternative): Likewise.
25591 (lra_invalidate_insn_regno_info): Likewise.
25592 (lra_update_insn_regno_info): Likewise.
25593 (lra_former_scratch_operand_p): Likewise.
25594 (lra_eliminate_regs_1): Likewise.
25595 (lra_get_insn_recog_data): Likewise.
25597 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
25600 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
25602 (substitute_within_insn): New.
25603 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
25604 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
25605 Replace call to "substitute" with call to substitute_within_insn.
25607 * lra-constraints.c (curr_insn): Strengthen from rtx to
25609 (get_equiv_with_elimination): Likewise for param "insn".
25610 (match_reload): Strengthen params "before" and "after" from rtx *
25612 (emit_spill_move): Likewise for return type. Add a checked cast
25613 to rtx_insn * on result of gen_move_insn for now.
25614 (check_and_process_move): Likewise for local "before". Replace
25615 NULL_RTX with NULL when referring to insns.
25616 (process_addr_reg): Strengthen params "before" and "after" from
25617 rtx * to rtx_insn **.
25618 (insert_move_for_subreg): Likewise.
25619 (simplify_operand_subreg): Strengthen locals "before" and "after"
25620 from rtx to rtx_insn *.
25621 (process_address_1): Strengthen params "before" and "after" from
25622 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
25624 (process_address): Strengthen params "before" and "after" from
25625 rtx * to rtx_insn **.
25626 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
25627 (curr_insn_transform): Strengthen locals "before" and "after"
25628 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
25630 (loc_equivalence_callback): Update cast of "data", changing
25631 resulting type from rtx to rtx_insn *.
25632 (substitute_pseudo_within_insn): New.
25633 (inherit_reload_reg): Strengthen param "insn" from rtx to
25634 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
25635 NULL when referring to insns. Add a checked cast to rtx_insn *
25636 when using usage_insn to invoke lra_update_insn_regno_info.
25637 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
25638 likewise for locals "restore", "save". Add checked casts to
25639 rtx_insn * when using usage_insn to invoke
25640 lra_update_insn_regno_info and lra_process_new_insns. Replace
25641 NULL_RTX with NULL when referring to insns.
25642 (split_if_necessary): Strengthen param "insn" from rtx to
25644 (update_ebb_live_info): Likewise for params "head", "tail" and local
25646 (get_last_insertion_point): Likewise for return type and local "insn".
25647 (get_live_on_other_edges): Likewise for local "last".
25648 (inherit_in_ebb): Likewise for params "head", "tail" and locals
25649 "prev_insn", "next_insn", "restore".
25650 (remove_inheritance_pseudos): Likewise for local "prev_insn".
25651 (undo_optional_reloads): Likewise for local "insn".
25653 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
25655 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
25657 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
25659 (spill_pseudos): Likewise for local "insn".
25660 (init_elimination): Likewise.
25661 (process_insn_for_elimination): Likewise for param "insn".
25663 * lra-lives.c (curr_insn): Likewise.;
25665 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
25666 (remove_pseudos): Likewise for param "insn".
25667 (spill_pseudos): Likewise for local "insn".
25668 (lra_final_code_change): Likewise for locals "insn", "curr".
25670 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
25671 (lra_set_insn_deleted): Likewise.
25672 (lra_delete_dead_insn): Likewise, and for local "prev".
25673 (new_insn_reg): Likewise for param "insn".
25674 (lra_set_insn_recog_data): Likewise.
25675 (lra_update_insn_recog_data): Likewise.
25676 (lra_set_used_insn_alternative): Likewise.
25677 (get_insn_freq): Likewise.
25678 (invalidate_insn_data_regno_info): Likewise.
25679 (lra_invalidate_insn_regno_info): Likewise.
25680 (lra_update_insn_regno_info): Likewise.
25681 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
25683 (lra_push_insn_1): Strengthen param "insn" from rtx to
25685 (lra_push_insn): Likewise.
25686 (lra_push_insn_and_update_insn_regno_info): Likewise.
25687 (lra_pop_insn): Likewise for return type and local "insn".
25688 (push_insns): Likewise for params "from", "to", and local "insn".
25689 (setup_sp_offset): Likewise for params "from", "last" and locals
25691 (lra_process_new_insns): Likewise for params "insn", "before",
25692 "after" and local "last".
25693 (struct sloc): Likewise for field "insn".
25694 (lra_former_scratch_operand_p): Likewise for param "insn".
25695 (remove_scratches): Likewise for locals "insn", "last".
25696 (check_rtl): Likewise for local "insn".
25697 (add_auto_inc_notes): Likewise for param "insn".
25698 (update_inc_notes): Likewise for local "insn".
25699 (lra): Replace NULL_RTX with NULL when referring to insn.
25701 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25703 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
25705 (resolve_reg_notes): Likewise.
25706 (resolve_simple_move): Likewise for return type, param "insn", and
25707 locals "insns", "minsn".
25708 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
25709 (resolve_use): Likewise.
25710 (resolve_debug): Likewise.
25711 (find_decomposable_shift_zext): Likewise.
25712 (resolve_shift_zext): Likewise for return type, param "insn", and
25713 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
25714 (decompose_multiword_subregs): Likewise for local "insn",
25715 "orig_insn", "decomposed_shift", "end".
25717 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25719 * basic-block.h (basic_block split_edge_and_insert): Strengthen
25720 param "insns" from rtx to rtx_insn *.
25722 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
25724 (struct iv_to_split): Likewise.
25725 (loop_exit_at_end_p): Likewise for local "insn".
25726 (split_edge_and_insert): Likewise for param "insns".
25727 (compare_and_jump_seq): Likewise for return type, param "cinsn",
25728 and locals "seq", "jump".
25729 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
25730 "branch_code"; update invocations of compare_and_jump_seq to
25731 eliminate NULL_RTX in favor of NULL.
25732 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
25734 (reset_debug_uses_in_loop): Likewise.
25735 (analyze_insn_to_expand_var): Likewise for param "insn".
25736 (analyze_iv_to_split_insn): Likewise.
25737 (analyze_insns_in_loop): Likewise for local "insn".
25738 (insert_base_initialization): Likewise for param
25739 "insn" and local "seq".
25740 (split_iv): Likewise for param "insn" and local "seq".
25741 (expand_var_during_unrolling): Likewise for param "insn".
25742 (insert_var_expansion_initialization): Likewise for local "seq".
25743 (combine_var_copies_in_loop_exit): Likewise.
25744 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
25746 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
25747 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
25750 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25752 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
25754 (iv_analyze_result): Likewise.
25755 (iv_analyze_expr): Likewise.
25758 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
25759 local "def_insn" from rtx to rtx_insn *.
25760 (get_biv_step_1): Likewise for local "insn".
25761 (iv_analyze_expr): Likewise for param "insn".
25762 (iv_analyze_def): Likewise for local "insn".
25763 (iv_analyze_op): Likewise for param "insn".
25764 (iv_analyze): Likewise.
25765 (iv_analyze_result): Likewise.
25767 (suitable_set_for_replacement): Likewise.
25768 (simplify_using_initial_values): Likewise for local "insn".
25769 (iv_number_of_iterations): Likewise for param "insn".
25770 (check_simple_exit): Add checked cast to rtx_insn when invoking
25771 iv_number_of_iterations for now (until get_condition is
25774 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
25775 "insn" from rtx to rtx_insn *.
25776 (analyze_insns_in_loop): Likewise for local "insn".
25778 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25780 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
25782 (struct invariant): Likewise.
25783 (hash_invariant_expr_1): Likewise for param "insn".
25784 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
25785 (find_exits): Likewise for local "insn".
25786 (create_new_invariant): Likewise for param "insn".
25787 (check_dependencies): Likewise.
25788 (find_invariant_insn): Likewise.
25789 (record_uses): Likewise.
25790 (find_invariants_insn): Likewise.
25791 (find_invariants_bb): Likewise for local "insn".
25792 (get_pressure_class_and_nregs): Likewise for param "insn".
25793 (calculate_loop_reg_pressure): Likewise for local "insn".
25795 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25797 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
25799 (add_test): Likewise for locals "seq", "jump".
25800 (doloop_modify): Likewise for locals "sequence", "jump_insn".
25802 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25804 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
25806 (rebuild_jump_labels_chain): Likewise for param "chain".
25808 * cfgexpand.c (pass_expand::execute): Add checked cast to
25809 rtx_insn * when calling rebuild_jump_labels_chain in region where
25810 we know e->insns.r is non-NULL.
25812 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
25814 (rebuild_jump_labels): Likewise.
25815 (rebuild_jump_labels_chain): Likewise for param "chain".
25816 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
25817 (init_label_info): Likewise for param "f".
25818 (maybe_propagate_label_ref): Likewise for params "jump_insn",
25819 "prev_nonjump_insn".
25820 (mark_all_labels): Likewise for param "f" and locals "insn",
25821 "prev_nonjump_insn".
25823 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25825 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
25826 from rtx to rtx_insn *insn.
25827 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
25828 (ira_add_allocno_copy): Likewise.
25829 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
25831 (ira_create_copy): Likewise.
25832 (ira_add_allocno_copy): Likewise.
25833 (create_bb_allocnos): Likewise for local "insn".
25834 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
25835 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
25836 process_regs_for_copy for rtx_insn * param.
25837 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
25838 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
25839 process_regs_for_copy for rtx_insn * param.
25840 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
25841 * ira-costs.c (record_reg_classes): Likewise for param "insn".
25842 (record_operand_costs): Likewise.
25843 (scan_one_insn): Likewise for return type, and for param "insn".
25844 (process_bb_for_costs): Likewise for local "insn".
25845 (process_bb_node_for_hard_reg_moves): Likewise.
25846 * ira-emit.c (struct move): Likewise for field "insn".
25847 (create_move): Eliminate use of NULL_RTX when dealing with an
25849 (emit_move_list): Strengthen return type and locals "result",
25850 "insn" from rtx to rtx_insn *insn.
25851 (emit_moves): Likewise for locals "insns", "tmp".
25852 (ira_emit): Likewise for local "insn".
25853 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
25855 (find_call_crossed_cheap_reg): Likewise.
25856 (process_bb_node_lives): Likewise for local "insn".
25857 * ira.c (decrease_live_ranges_number): Likewise.
25858 (compute_regs_asm_clobbered): Likewise.
25859 (build_insn_chain): Likewise.
25860 (find_moveable_pseudos): Likewise, also locals "def_insn",
25861 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
25862 to rtx_insn **. Add a checked cast when assigning from
25863 "closest_use" into closest_uses array in a region where we know
25864 it's a non-NULL insn.
25865 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
25867 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
25868 "last_interesting_insn", "uin".
25869 (move_unallocated_pseudos): Likewise for locals "def_insn",
25870 "move_insn", "newinsn".
25872 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25874 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
25875 Strengthen locals "done_label", "do_error" from rtx to
25877 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
25878 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
25880 (ubsan_expand_si_overflow_neg_check): Likewise for locals
25881 "done_label", "do_error" to rtx_code_label * and local "last" to
25883 (ubsan_expand_si_overflow_mul_check): Likewise for locals
25884 "done_label", "do_error", "large_op0", "small_op0_large_op1",
25885 "one_small_one_large", "both_ops_large", "after_hipart_neg",
25886 "after_lopart_neg", "do_overflow", "hipart_different" to
25887 rtx_code_label * and local "last" to rtx_insn *.
25889 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25891 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
25892 "insn" and "move_insn" from rtx to rtx_insn *.
25894 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25896 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
25898 (cheap_bb_rtx_cost_p): Likewise.
25899 (first_active_insn): Likewise for return type and local "insn".
25900 (last_active_insn): Likewise for return type and locals "insn",
25902 (struct noce_if_info): Likewise for fields "jump", "insn_a",
25904 (end_ifcvt_sequence): Likewise for return type and locals "insn",
25906 (noce_try_move): Likewise for local "seq".
25907 (noce_try_store_flag): Likewise.
25908 (noce_try_store_flag_constants): Likewise.
25909 (noce_try_addcc): Likewise.
25910 (noce_try_store_flag_mask): Likewise.
25911 (noce_try_cmove): Likewise.
25912 (noce_try_minmax): Likewise.
25913 (noce_try_abs): Likewise.
25914 (noce_try_sign_mask): Likewise.
25915 (noce_try_bitop): Likewise.
25916 (noce_can_store_speculate_p): Likewise for local "insn".
25917 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
25919 (check_cond_move_block): Likewise for local "insn".
25920 (cond_move_convert_if_block): Likewise.
25921 (cond_move_process_if_block): Likewise for locals "seq",
25923 (noce_find_if_block): Likewise for local "jump".
25924 (merge_if_block): Likewise for local "last".
25925 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
25926 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
25927 (block_has_only_trap): Likewise for return type and local "trap".
25928 (find_if_case_1): Likewise for local "jump".
25929 (dead_or_predicable): Likewise for locals "head", "end", "jump",
25932 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25934 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
25935 "last_insn", "loop_end" from rtx to rtx_insn *.
25937 * hw-doloop.c (scan_loop): Likewise for local "insn".
25938 (discover_loop): Likewise for param "tail_insn".
25939 (discover_loops): Likewise for local "tail".
25941 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
25942 cast to rtx_insn * when assigning from an rtx local to a
25943 hwloop_info's "last_insn" field.
25945 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25947 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
25948 (add_delay_dependencies): Strengthen local "pro" from rtx to
25950 (recompute_todo_spec): Likewise.
25951 (dep_cost_1): Likewise for locals "insn", "used".
25952 (schedule_insn): Likewise for local "dbg".
25953 (schedule_insn): Likewise for locals "pro", "next".
25954 (unschedule_insns_until): Likewise for local "con".
25955 (restore_pattern): Likewise for local "next".
25956 (estimate_insn_tick): Likewise for local "pro".
25957 (resolve_dependencies): Likewise for local "next".
25958 (fix_inter_tick): Likewise.
25959 (fix_tick_ready): Likewise for local "pro".
25960 (add_to_speculative_block): Likewise for locals "check", "twin",
25962 (sched_extend_bb): Likewise for locals "end", "insn".
25963 (init_before_recovery): Likewise for local "x".
25964 (sched_create_recovery_block): Likewise for local "barrier".
25965 (create_check_block_twin): Likewise for local "pro".
25966 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
25968 (unlink_bb_notes): Update for change to type of bb_header.
25969 Strengthen locals "prev", "label", "note", "next" from rtx to
25971 (clear_priorities): Likewise for local "pro".
25973 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25975 * gcse.c (struct occr): Strengthen field "insn" from rtx to
25977 (test_insn): Likewise for this global.
25978 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
25980 (oprs_anticipatable_p): Likewise.
25981 (oprs_available_p): Likewise.
25982 (insert_expr_in_table): Strengthen param "insn" from rtx to
25984 (hash_scan_set): Likewise.
25985 (hash_scan_clobber): Likewise.
25986 (hash_scan_call): Likewise.
25987 (hash_scan_insn): Likewise.
25988 (compute_hash_table_work): Likewise for local "insn".
25989 (process_insert_insn): Likewise for return type and local "pat".
25990 (insert_insn_end_basic_block): Likewise for locals "new_insn",
25991 "pat", "pat_end", "maybe_cc0_setter".
25992 (pre_edge_insert): Likewise for local "insn".
25993 (pre_insert_copy_insn): Likewise for param "insn".
25994 (pre_insert_copies): Likewise for local "insn".
25995 (struct set_data): Likewise for field "insn".
25996 (single_set_gcse): Likewise for param "insn".
25997 (gcse_emit_move_after): Likewise.
25998 (pre_delete): Likewise for local "insn".
25999 (update_bb_reg_pressure): Likewise for param "from" and local
26001 (should_hoist_expr_to_dom): Likewise for param "from".
26002 (hoist_code): Likewise for local "insn".
26003 (get_pressure_class_and_nregs): Likewise for param "insn".
26004 (calculate_bb_reg_pressure): Likewise for local "insn".
26005 (compute_ld_motion_mems): Likewise.
26007 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26009 * genpeep.c (main): Rename param back from "uncast_ins1" to
26010 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
26013 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
26015 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26018 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
26019 documentation to state it is only for VSX operations.
26021 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
26022 constraint only active if VSX.
26024 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
26025 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
26026 (lfiwzx): Likewise.
26028 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26030 * fwprop.c (single_def_use_dom_walker::before_dom_children):
26031 Strengthen local "insn" from rtx to rtx_insn *.
26032 (use_killed_between): Likewise for param "target_insn".
26033 (all_uses_available_at): Likewise for param "target_insn" and
26035 (update_df_init): Likewise for params "def_insn", "insn".
26036 (update_df): Likewise for param "insn".
26037 (try_fwprop_subst): Likewise for param "def_insn" and local
26039 (free_load_extend): Likewise for param "insn".
26040 (forward_propagate_subreg): Likewise for param "def_insn" and
26042 (forward_propagate_asm): Likewise for param "def_insn" and local
26044 (forward_propagate_and_simplify): Likewise for param "def_insn"
26045 and local "use_insn".
26046 (forward_propagate_into): Likewise for locals "def_insn" and
26049 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26051 * function.c (emit_initial_value_sets): Strengthen local "seq"
26052 from rtx to rtx_insn *.
26053 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
26055 (instantiate_virtual_regs): Likewise for local "insn".
26056 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
26057 (reorder_blocks_1): Likewise for param "insns" and local "insn".
26058 (expand_function_end): Likewise for locals "insn" and "seq".
26059 (epilogue_done): Likewise for local "insn".
26060 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
26062 (reposition_prologue_and_epilogue_notes): Likewise for locals
26063 "insn", "last", "note", "first".
26064 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
26065 (pass_match_asm_constraints::execute): Likewise for local "insn".
26067 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26069 * output.h (final_scan_insn): Strengthen return type from rtx to
26071 (final_forward_branch_p): Likewise for param.
26072 (current_output_insn): Likewise for this global.
26074 * final.c (rtx debug_insn): Likewise for this variable.
26075 (current_output_insn): Likewise.
26076 (get_attr_length_1): Rename param "insn" to "uncast_insn",
26077 adding "insn" back in as an rtx_insn * with a checked cast, so
26078 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
26080 (compute_alignments): Strengthen local "label" from rtx to
26082 (shorten_branches): Rename param from "first" to "uncast_first",
26083 introducing a new local rtx_insn * "first" using a checked cast to
26084 effectively strengthen "first" from rtx to rtx_insn * without
26085 affecting the type signature. Strengthen locals "insn", "seq",
26086 "next", "label" from rtx to rtx_insn *.
26087 (change_scope): Strengthen param "orig_insn" and local "insn" from
26089 (final_start_function): Rename param from "first" to "uncast_first",
26090 introducing a new local rtx_insn * "first" using a checked cast to
26091 effectively strengthen "first" from rtx to rtx_insn * without
26092 affecting the type signature. Strengthen local "insn" from rtx to
26094 (dump_basic_block_info): Strengthen param "insn" from rtx to
26096 (final): Rename param from "first" to "uncast_first",
26097 introducing a new local rtx_insn * "first" using a checked cast to
26098 effectively strengthen "first" from rtx to rtx_insn * without
26099 affecting the type signature. Strengthen locals "insn", "next"
26100 from rtx to rtx_insn *.
26101 (output_alternate_entry_point): Strengthen param "insn" from rtx to
26103 (call_from_call_insn): Strengthen param "insn" from rtx to
26105 (final_scan_insn): Rename param from "insn" to "uncast_insn",
26106 introducing a new local rtx_insn * "insn" using a checked cast to
26107 effectively strengthen "insn" from rtx to rtx_insn * without
26108 affecting the type signature. Strengthen return type and locals
26109 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
26110 now-redundant checked cast to rtx_insn * from both invocations of
26111 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
26112 introducing a local "call_insn" for use when invoking
26113 call_from_call_insn.
26114 (notice_source_line): Strengthen param "insn" from rtx to
26116 (leaf_function_p): Likewise for local "insn".
26117 (final_forward_branch_p): Likewise.
26118 (leaf_renumber_regs): Likewise for param "first".
26119 (rest_of_clean_state): Likewise for locals "insn" and "next".
26120 (self_recursive_call_p): Likewise for param "insn".
26121 (collect_fn_hard_reg_usage): Likewise for local "insn".
26122 (get_call_fndecl): Likewise for param "insn".
26123 (get_call_cgraph_rtl_info): Likewise.
26124 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
26125 introducing a new local rtx_insn * "insn" using a checked cast to
26126 effectively strengthen "insn" from rtx to rtx_insn * without
26127 affecting the type signature.
26129 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
26130 cast when assigning from param "insn" to current_output_insn.
26131 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
26132 so that we can assign it back to current_output_insn.
26134 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
26136 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
26137 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
26138 atmxt540s and atmxt540sreva devices.
26139 * config/avr/avr-tables.opt: Regenerate.
26140 * config/avr/t-multilib: Regenerate.
26141 * doc/avr-mmcu.texi: Regenerate.
26143 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26145 * expr.c (convert_move): Strengthen local "insns" from rtx to
26147 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
26148 "top_label" from rtx to rtx_code_label *.
26149 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
26151 (emit_single_push_insn): Likewise for locals "prev", "last".
26152 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
26153 to rtx_code_label *.
26154 (store_constructor): Likewise for locals "loop_start", "loop_end".
26155 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
26157 (expand_expr_real_2): Likewise.
26158 (expand_expr_real_1): Strengthen local "label" from rtx to
26161 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26163 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
26164 from rtx to rtx_insn *.
26165 (store_bit_field_1): Likewise.
26166 (extract_bit_field_1): Likewise.
26167 (expand_mult_const): Likewise for local "insns".
26168 (expmed_mult_highpart): Strengthen local "label" from rtx to
26170 (expand_smod_pow2): Likewise.
26171 (expand_sdiv_pow2): Likewise.
26172 (expand_divmod): Strengthen locals "last", "insn" from rtx to
26173 rtx_insn *. Strengthen locals "label", "label1", "label2",
26174 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
26175 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
26176 (emit_store_flag): Likewise.
26177 (emit_store_flag_force): Strengthen local "label" from rtx to
26179 (do_cmp_and_jump): Likewise for param "label".
26181 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26183 * explow.c (force_reg): Strengthen local "insn" from rtx to
26185 (adjust_stack_1): Likewise.
26186 (allocate_dynamic_stack_space): Likewise. Strengthen locals
26187 "final_label", "available_label", "space_available" from rtx to
26189 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
26190 (anti_adjust_stack_and_probe): Likewise.
26192 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26194 * except.h (sjlj_emit_function_exit_after): Strengthen param
26195 "after" from rtx to rtx_insn *. This is only called with
26196 result of get_last_insn (in function.c) so type-change should be
26199 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
26200 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
26201 to rtx_insn *. These fields are only used from except.c so this
26202 type-change should be self-contained to this patch.
26204 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
26205 local "last" from rtx to rtx_insn *.
26206 (dw2_build_landing_pads): Likewise for local "seq".
26207 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
26208 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
26209 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
26211 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
26213 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
26214 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
26215 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
26216 referring to an insn. Strengthen local "dispatch_label" from
26217 rtx to rtx_code_label *.
26218 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
26220 (expand_eh_return): Strengthen local "around_label" from
26221 rtx to rtx_code_label *.
26222 (convert_to_eh_region_ranges): Strengthen locals "iter",
26223 "last_action_insn", "first_no_action_insn",
26224 "first_no_action_insn_before_switch",
26225 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
26227 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26229 * dwarf2out.c (last_var_location_insn): Strengthen this variable
26230 from rtx to rtx_insn *.
26231 (cached_next_real_insn): Likewise.
26232 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
26233 working with insns.
26234 (dwarf2out_var_location): Strengthen locals "next_real",
26235 "next_note", "expected_next_loc_note", "last_start", "insn" from
26238 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26240 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
26241 from rtx to rtx_insn *.
26242 (create_pseudo_cfg): Likewise for local "insn".
26244 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26246 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
26247 from rtx to rtx_insn *.
26248 (df_bb_regno_last_def_find): Likewise.
26250 * df-problems.c (df_rd_bb_local_compute): Likewise.
26251 (df_lr_bb_local_compute): Likewise.
26252 (df_live_bb_local_compute): Likewise.
26253 (df_chain_remove_problem): Likewise.
26254 (df_chain_create_bb): Likewise.
26255 (df_word_lr_bb_local_compute): Likewise.
26256 (df_remove_dead_eq_notes): Likewise for param "insn".
26257 (df_note_bb_compute): Likewise for local "insn".
26258 (simulate_backwards_to_point): Likewise.
26259 (df_md_bb_local_compute): Likewise.
26261 * df-scan.c (df_scan_free_bb_info): Likewise.
26262 (df_scan_start_dump): Likewise.
26263 (df_scan_start_block): Likewise.
26264 (df_install_ref_incremental): Likewise for local "insn".
26265 (df_insn_rescan_all): Likewise.
26266 (df_reorganize_refs_by_reg_by_insn): Likewise.
26267 (df_reorganize_refs_by_insn_bb): Likewise.
26268 (df_recompute_luids): Likewise.
26269 (df_bb_refs_record): Likewise.
26270 (df_update_entry_exit_and_calls): Likewise.
26271 (df_bb_verify): Likewise.
26273 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26275 * ddg.h (struct ddg_node): Strengthen fields "insn" and
26276 "first_note" from rtx to rtx_insn *.
26277 (get_node_of_insn): Likewise for param 2 "insn".
26278 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
26280 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
26282 (mem_write_insn_p): Likewise.
26283 (mem_access_insn_p): Likewise.
26284 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
26285 (def_has_ccmode_p): Likewise for param "insn".
26286 (add_cross_iteration_register_deps): Likewise for locals
26287 "def_insn" and "use_insn".
26288 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
26289 (build_intra_loop_deps): Likewise for local "src_insn".
26290 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
26292 (get_node_of_insn): Likewise for param "insn".
26294 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26296 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
26297 (deletable_insn_p): Strengthen param "insn" from rtx to
26298 rtx_insn *. Add checked cast to rtx_call_insn when invoking
26299 find_call_stack_args, since this is guarded by CALL_P (insn).
26300 (marked_insn_p): Strengthen param "insn" from rtx to
26302 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
26303 invoking find_call_stack_args, since this is guarded by
26305 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
26306 rtx_insn *; we know this is an insn since this was called by
26307 mark_nonreg_stores.
26308 (mark_nonreg_stores_2): Likewise.
26309 (mark_nonreg_stores): Strengthen param "insn" from rtx to
26311 (find_call_stack_args): Strengthen param "call_insn" from rtx to
26312 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
26314 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
26315 from rtx to rtx_insn *.
26316 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
26317 "next", "ref_insn".
26318 (delete_unmarked_insns): Likewise for locals "insn", "next".
26319 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
26320 (mark_reg_dependencies): Likewise for param "insn".
26321 (rest_of_handle_ud_dce): Likewise for local "insn".
26322 (word_dce_process_block): Likewise.
26323 (dce_process_block): Likewise.
26325 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26327 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
26328 from rtx to rtx_insn *.
26329 (struct change_cc_mode_args): Likewise for field "insn".
26330 (this_insn): Strengthen from rtx to rtx_insn *.
26331 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
26333 (validate_canon_reg): Strengthen param "insn" from rtx to
26335 (canon_reg): Likewise.
26336 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
26338 (record_jump_equiv): Strengthen param "insn" from rtx to
26340 (try_back_substitute_reg): Likewise, also for locals "prev",
26342 (find_sets_in_insn): Likewise for param "insn".
26343 (canonicalize_insn): Likewise.
26344 (cse_insn): Likewise. Add a checked cast.
26345 (invalidate_from_clobbers): Likewise for param "insn".
26346 (invalidate_from_sets_and_clobbers): Likewise.
26347 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
26349 (cse_prescan_path): Strengthen local "insn" from rtx to
26351 (cse_extended_basic_block): Likewise for locals "insn" and
26353 (cse_main): Likewise for param "f".
26354 (check_for_label_ref): Likewise for local "insn".
26355 (set_live_p): Likewise for second param ("insn").
26356 (insn_live_p): Likewise for first param ("insn") and for local
26358 (cse_change_cc_mode_insn): Likewise for first param "insn".
26359 (cse_change_cc_mode_insns): Likewise for first and second params
26361 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
26363 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
26366 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
26367 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26368 Anna Tikhonova <anna.tikhonova@intel.com>
26369 Ilya Tocar <ilya.tocar@intel.com>
26370 Andrey Turetskiy <andrey.turetskiy@intel.com>
26371 Ilya Verbin <ilya.verbin@intel.com>
26372 Kirill Yukhin <kirill.yukhin@intel.com>
26373 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26375 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
26377 * config/i386/sse.md
26378 (define_mode_iterator VI248_AVX2): Delete.
26379 (define_mode_iterator VI2_AVX2_AVX512BW): New.
26380 (define_mode_iterator VI48_AVX2): Ditto.
26381 (define_insn <shift_insn><mode>3): Delete.
26382 (define_insn "<shift_insn><mode>3<mask_name>" with
26383 VI2_AVX2_AVX512BW): New.
26384 (define_insn "<shift_insn><mode>3<mask_name>" with
26387 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
26388 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26389 Anna Tikhonova <anna.tikhonova@intel.com>
26390 Ilya Tocar <ilya.tocar@intel.com>
26391 Andrey Turetskiy <andrey.turetskiy@intel.com>
26392 Ilya Verbin <ilya.verbin@intel.com>
26393 Kirill Yukhin <kirill.yukhin@intel.com>
26394 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26396 * config/i386/sse.md
26397 (define_mode_iterator VI4F_BRCST32x2): New.
26398 (define_mode_attr 64x2_mode): Ditto.
26399 (define_mode_attr 32x2mode): Ditto.
26400 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
26401 with VI4F_BRCST32x2): Ditto.
26402 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
26403 with V16FI mode iterator): Ditto.
26404 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
26405 with V16FI): Ditto.
26406 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
26407 with VI8F_BRCST64x2): Ditto.
26409 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
26410 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26411 Anna Tikhonova <anna.tikhonova@intel.com>
26412 Ilya Tocar <ilya.tocar@intel.com>
26413 Andrey Turetskiy <andrey.turetskiy@intel.com>
26414 Ilya Verbin <ilya.verbin@intel.com>
26415 Kirill Yukhin <kirill.yukhin@intel.com>
26416 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26418 * config/i386/sse.md
26419 (define_mode_iterator VI8_AVX512VL): New.
26420 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
26422 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
26424 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
26425 (define_mode_iterator V48_AVX512VL): New.
26426 (define_mode_iterator V12_AVX512VL): Ditto.
26427 (define_insn <avx512>_load<mode>_mask): Split into two similar
26428 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
26429 Refactor output template.
26430 (define_insn "<avx512>_store<mode>_mask"): Ditto.
26432 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26434 * cprop.c (struct occr): Strengthen field "insn" from rtx to
26436 (reg_available_p): Likewise for param "insn".
26437 (insert_set_in_table): Likewise.
26438 (hash_scan_set): Likewise.
26439 (hash_scan_insn): Likewise.
26440 (make_set_regs_unavailable): Likewise.
26441 (compute_hash_table_work): Likewise for local "insn".
26442 (reg_not_set_p): Strengthen param "insn" from const_rtx to
26444 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
26445 (try_replace_reg): Likewise.
26446 (find_avail_set): Likewise.
26447 (cprop_jump): Likewise for params "setcc", "jump".
26448 (constprop_register): Likewise for param "insn".
26449 (cprop_insn): Likewise.
26450 (do_local_cprop): Likewise.
26451 (local_cprop_pass): Likewise for local "insn".
26452 (bypass_block): Likewise for params "setcc" and "jump".
26453 (bypass_conditional_jumps): Likewise for locals "setcc" and
26455 (one_cprop_pass): Likewise for local "insn".
26457 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26459 * compare-elim.c (struct comparison_use): Strengthen field "insn"
26460 from rtx to rtx_insn *.
26461 (struct comparison): Likewise, also for field "prev_clobber".
26462 (conforming_compare): Likewise for param "insn".
26463 (arithmetic_flags_clobber_p): Likewise.
26464 (find_flags_uses_in_insn): Likewise.
26465 (find_comparison_dom_walker::before_dom_children): Likewise for
26466 locals "insn", "next", "last_clobber".
26467 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
26469 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26471 * combine-stack-adj.c (struct csa_reflist): Strengthen field
26472 "insn" from rtx to rtx_insn *.
26473 (single_set_for_csa): Likewise for param "insn".
26474 (record_one_stack_ref): Likewise.
26475 (try_apply_stack_adjustment): Likewise.
26476 (struct record_stack_refs_data): Likewise for field "insn".
26477 (maybe_move_args_size_note): Likewise for params "last" and "insn".
26478 (prev_active_insn_bb): Likewise for return type and param "insn".
26479 (next_active_insn_bb): Likewise.
26480 (force_move_args_size_note): Likewise for params "prev" and "last"
26481 and locals "test", "next_candidate", "prev_candidate".
26482 (combine_stack_adjustments_for_block): Strengthen locals
26483 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
26486 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26488 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
26489 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
26490 (subst_insn): Likewise for this variable.
26491 (added_links_insn): Likewise.
26492 (struct insn_link): Likewise for field "insn".
26493 (alloc_insn_link): Likewise for param "insn".
26494 (struct undobuf): Likewise for field "other_insn".
26495 (find_single_use): Likewise for param "insn" and local "next".
26496 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
26497 (delete_noop_moves): Likewise for locals "insn", "next".
26498 (create_log_links): Likewise for locals "insn", "use_insn".
26499 Strengthen local "next_use" from rtx * to rtx_insn **.
26500 (insn_a_feeds_b): Likewise for params "a", "b".
26501 (combine_instructions): Likewise for param "f" and locals "insn",
26502 "next", "prev", "first", "last_combined_insn", "link", "link1",
26503 "temp". Replace use of NULL_RTX with NULL when referring to
26505 (setup_incoming_promotions): Likewise for param "first"
26506 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
26507 (can_combine_p): Likewise for params "insn", "i3", "pred",
26508 "pred2", "succ", "succ2" and for local "p".
26509 (combinable_i3pat): Likewise for param "i3".
26510 (cant_combine_insn_p): Likewise for param "insn".
26511 (likely_spilled_retval_p): Likewise.
26512 (adjust_for_new_dest): Likewise.
26513 (update_cfg_for_uncondjump): Likewise, also for local "insn".
26514 (try_combine): Likewise for return type and for params "i3", "i2",
26515 "i1", "i0", "last_combined_insn", and for locals "insn",
26516 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
26517 "i0_insn". Eliminate local "tem" in favor of new locals
26518 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
26519 checked cast for now to rtx_insn * on the return type of
26520 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
26522 (find_split_point): Strengthen param "insn" from rtx to
26524 (simplify_set): Likewise for local "other_insn".
26525 (recog_for_combine): Likewise for param "insn".
26526 (record_value_for_reg): Likewise.
26527 (record_dead_and_set_regs_1): Likewise for local
26528 "record_dead_insn".
26529 (record_dead_and_set_regs): Likewise for param "insn".
26530 (record_promoted_value): Likewise.
26531 (check_promoted_subreg): Likewise.
26532 (get_last_value_validate): Likewise.
26533 (reg_dead_at_p): Likewise.
26534 (move_deaths): Likewise for param "to_insn".
26535 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
26536 and locals "place", "place2", "cc0_setter". Eliminate local "tem
26537 in favor of new locals "tem_note" and "tem_insn", the latter being
26539 (distribute_links): Strengthen locals "place", "insn" from rtx to
26542 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26544 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
26546 (can_delete_label_p): Require a const rtx_code_label * rather than
26548 (delete_insn): Add checked cast to rtx_code_label * when we know
26549 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
26551 (delete_insn_chain): Strengthen locals "prev" and "current" from
26552 rtx to rtx_insn *. Add a checked cast when assigning from
26553 "finish" (strengthening the params will come later). Add a
26554 checked cast to rtx_note * in region where we know
26556 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
26558 (compute_bb_for_insn): Likewise.
26559 (free_bb_for_insn): Likewise for local "insn".
26560 (compute_bb_for_insn): Likewise.
26561 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
26562 local "insn" from rtx to rtx_insn *
26563 (flow_active_insn_p): Require a const rtx_insn * rather than a
26565 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
26567 (can_fallthru): Likewise for locals "insn" and "insn2".
26568 (bb_note): Likewise for local "note".
26569 (first_insn_after_basic_block_note): Likewise for local "note" and
26571 (rtl_split_block): Likewise for locals "insn" and "next".
26572 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
26574 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
26575 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
26577 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
26578 them), "kill_from", "barrier", "new_insn".
26579 (patch_jump_insn): Likewise for params "insn", "old_label".
26580 (redirect_branch_edge): Likewise for locals "old_label", "insn".
26581 (force_nonfallthru_and_redirect): Likewise for locals "insn",
26582 "old_label", "new_label".
26583 (rtl_tidy_fallthru_edge): Likewise for local "q".
26584 (rtl_split_edge): Likewise for locals "before", "last".
26585 (commit_one_edge_insertion): Likewise for locals "before",
26586 "after", "insns", "tmp", "last", adding a checked cast where
26587 currently necessary.
26588 (commit_edge_insertions): Likewise.
26589 (rtl_dump_bb): Likewise for locals "insn", "last".
26590 (print_rtl_with_bb): Likewise for local "x".
26591 (rtl_verify_bb_insns): Likewise for local "x".
26592 (rtl_verify_bb_pointers): Likewise for local "insn".
26593 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
26595 (rtl_verify_fallthru): Likewise for local "insn".
26596 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
26597 (purge_dead_edges): Likewise for local "insn".
26598 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
26599 (skip_insns_after_block): Likewise for return type and for locals
26600 "insn", "last_insn", "next_head", "prev".
26601 (record_effective_endpoints): Likewise for locals "next_insn",
26603 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
26604 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
26605 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
26606 (duplicate_insn_chain): For now, add checked cast from rtx to
26607 rtx_insn * when returning insn.
26608 (cfg_layout_duplicate_bb): Likewise for local "insn".
26609 (cfg_layout_delete_block): Likewise for locals "insn", "next",
26610 "prev", "remaints".
26611 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
26612 (rtl_block_empty_p): Likewise.
26613 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
26614 "split_point", "last".
26615 (rtl_block_ends_with_call_p): Likewise for local "insn".
26616 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
26618 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
26619 "split_at_insn" from rtx to rtx_insn *.
26620 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
26621 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
26622 to const rtx_insn *.
26623 (rtl_account_profile_record): Likewise.
26625 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26627 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
26629 (average_num_loop_insns): Likewise.
26630 (init_set_costs): Likewise for local "seq".
26631 (seq_cost): Likewise for param "seq", from const_rtx to const
26634 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26636 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
26639 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26641 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
26642 "f1" and "f2" from rtx * to rtx_insn **.
26643 (flow_find_head_matching_sequence): Likewise.
26645 * cfgcleanup.c (try_simplify_condjump): Strengthen local
26646 "cbranch_insn" from rtx to rtx_insn *.
26647 (thread_jump): Likewise for local "insn".
26648 (try_forward_edges): Likewise for local "last".
26649 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
26650 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
26652 (can_replace_by): Likewise for params "i1", "i2".
26653 (old_insns_match_p): Likewise.
26654 (merge_notes): Likewise.
26655 (walk_to_nondebug_insn): Likewise for param "i1".
26656 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
26657 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
26658 "afterlast1", "afterlast2" from rtx to rtx_insn *.
26659 (flow_find_head_matching_sequence): Strengthen params "f1" and
26660 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
26661 "last1", "last2", "beforelast1", "beforelast2" from rtx to
26663 (outgoing_edges_match): Likewise for locals "last1", "last2".
26664 (try_crossjump_to_edge): Likewise for local "insn".
26665 Replace call to for_each_rtx with for_each_rtx_in_insn.
26667 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
26668 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
26669 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
26670 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
26671 (try_optimize_cfg): Strengthen local "last" from rtx to
26673 (delete_dead_jumptables): Likewise for locals "insn", "next",
26676 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
26677 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
26678 "rtx else_first_tail", to reflect the basic-block.h changes above.
26680 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26682 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
26684 (purge_dead_tablejump_edges): Likewise.
26685 (find_bb_boundaries): Likewise for locals "insn", "end",
26686 "flow_transfer_insn".
26688 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26690 * caller-save.c (save_call_clobbered_regs): Strengthen locals
26691 "ins" and "prev" from rtx to rtx_insn *.
26693 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26695 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
26697 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
26698 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
26700 (load_register_parameters): Likewise for local "before_arg".
26701 (check_sibcall_argument_overlap): Likewise for param "insn".
26702 (expand_call): Likewise for locals "normal_call_insns",
26703 "tail_call_insns", "insns", "before_call", "after_args",
26704 "before_arg", "last", "prev". Strengthen one of the "last" from
26705 rtx to rtx_call_insn *.
26706 (fixup_tail_calls): Strengthen local "insn" from rtx to
26708 (emit_library_call_value_1): Likewise for locals "before_call" and
26711 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26713 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
26714 and "last" from rtx to rtx_insn *.
26715 (expand_builtin_nonlocal_goto): Likewise for local "insn".
26716 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
26718 (expand_errno_check): Strengthen local "lab" from rtx to
26720 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
26722 (expand_builtin_mathfn_2): Likewise.
26723 (expand_builtin_mathfn_ternary): Likewise.
26724 (expand_builtin_mathfn_3): Likewise.
26725 (expand_builtin_interclass_mathfn): Likewise for local "last".
26726 (expand_builtin_int_roundingfn): Likewise for local "insns".
26727 (expand_builtin_int_roundingfn_2): Likewise.
26728 (expand_builtin_strlen): Likewise for local "before_strlen".
26729 (expand_builtin_strncmp): Likewise for local "seq".
26730 (expand_builtin_signbit): Likewise for local "last".
26731 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
26732 from rtx to rtx_code_label *.
26733 (expand_stack_restore): Strengthen local "prev" from rtx to
26736 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26738 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
26740 (struct btr_def_s): Likewise.
26741 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
26743 (add_btr_def): Likewise.
26744 (new_btr_user): Likewise.
26745 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
26747 (link_btr_uses): Likewise.
26748 (move_btr_def): Likewise for locals "insp", "old_insn",
26749 "new_insn". Add checked cast to rtx_insn * for now on result of
26751 (can_move_up): Strengthen param "insn" from const_rtx to
26754 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26756 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
26758 (get_uncond_jump_length): Likewise for locals "label", "jump".
26759 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
26761 (add_labels_and_missing_jumps): Likewise for local "new_jump".
26762 (fix_up_fall_thru_edges): Likewise for local "old_jump".
26763 (find_jump_block): Likewise for local "insn".
26764 (fix_crossing_conditional_branches): Likewise for locals
26765 "old_jump", "new_jump".
26766 (fix_crossing_unconditional_branches): Likewise for locals
26767 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
26768 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
26770 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26772 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
26774 (struct mem_insn): Likewise for field "insn".
26775 (reg_next_use): Strengthen from rtx * to rtx_insn **.
26776 (reg_next_inc_use): Likewise.
26777 (reg_next_def): Likewise.
26778 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
26779 from rtx to rtx_insn *.
26780 (move_insn_before): Likewise for param "next_insn" and local "insns".
26781 (attempt_change): Likewise for local "mov_insn".
26782 (try_merge): Likewise for param "last_insn".
26783 (get_next_ref): Likewise for return type and local "insn".
26784 Strengthen param "next_array" from rtx * to rtx_insn **.
26785 (parse_add_or_inc): Strengthen param "insn" from rtx to
26787 (find_inc): Likewise for locals "insn" and "other_insn" (three of
26789 (merge_in_block): Likewise for locals "insn", "curr",
26791 (pass_inc_dec::execute): Update allocations of the arrays to
26792 reflect the stronger types.
26794 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26796 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
26797 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
26798 from rtx to rtx_code_label *.
26800 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26802 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
26805 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
26807 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
26808 generated a warning and prevented bootstrapping the compiler.
26810 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26812 * rtl.h (delete_related_insns): Strengthen return type from rtx to
26815 * jump.c (delete_related_insns): Likewise, also for locals "next"
26818 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26820 * genautomata.c (output_internal_insn_latency_func): When writing
26821 the function "internal_insn_latency" to insn-automata.c,
26822 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
26823 allowing the optional guard function of (define_bypass) clauses to
26824 expect a pair of rtx_insn *, rather than a pair of rtx.
26825 (output_insn_latency_func): When writing the function
26826 "insn_latency", add an "uncast_" prefix to params "insn" and
26827 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
26828 using checked casts from the params, thus enabling the above
26829 change to the generated "internal_insn_latency" function.
26831 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
26833 PR tree-optimization/62091
26834 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
26835 handle correctly arrays.
26836 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
26837 inheritance binfos.
26838 (record_known_type): Walk into inner type.
26839 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
26840 condition on no type changes.
26842 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26844 * genattrtab.c (write_attr_get): Within the generated get_attr_
26845 functions, rename param "insn" to "uncast_insn" and reintroduce
26846 "insn" as an local rtx_insn * using a checked cast, so that "insn"
26847 is an rtx_insn * within insn-attrtab.c
26849 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26851 * output.h (peephole): Strengthen return type from rtx to
26853 * rtl.h (delete_for_peephole): Likewise for both params.
26854 * genpeep.c (main): In generated "peephole" function, strengthen
26855 return type and local "insn" from rtx to rtx_insn *. For now,
26856 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
26857 rtx_insn *, with a checked cast.
26858 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
26859 locals "insn", "next", "prev" from rtx to rtx_insn *.
26861 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
26863 PR tree-optimization/62112
26864 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
26865 * gimple-iterator.h (gsi_replace): Return bool.
26866 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
26867 moved from ref_may_alias_global_p.
26868 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
26870 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
26871 (stmt_kills_ref_p_1): Rename...
26872 (stmt_kills_ref_p): ... to this.
26873 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
26874 stmt_kills_ref_p): Declare.
26875 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
26876 Move the self-assignment case...
26877 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
26879 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26881 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
26883 * emit-rtl.c (try_split): Likewise, also for locals "before" and
26884 "after". For now, don't strengthen param "trial", which requires
26885 adding checked casts when returning it.
26887 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26889 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
26890 "label" from rtx to rtx_code_label *. Strengthen param 1 of
26891 "var_location" hook from rtx to rtx_insn *.
26892 (debug_nothing_rtx): Delete in favor of...
26893 (debug_nothing_rtx_code_label): New prototype.
26894 (debug_nothing_rtx_rtx): Delete unused prototype.
26895 (debug_nothing_rtx_insn): New prototype.
26897 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
26898 invoking debug_hooks->var_location (in two places, one in a NOTE
26899 case of a switch statement, the other guarded by a CALL_P
26900 conditional. Add checked cast to rtx_code_label * when invoking
26901 debug_hooks->label (within CODE_LABEL case of switch statement).
26903 * dbxout.c (dbx_debug_hooks): Update "label" hook from
26904 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
26905 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
26906 (xcoff_debug_hooks): Likewise.
26907 * debug.c (do_nothing_debug_hooks): Likewise.
26908 (debug_nothing_rtx): Delete in favor of...
26909 (debug_nothing_rtx_insn): New function.
26910 (debug_nothing_rtx_rtx): Delete unused function.
26911 (debug_nothing_rtx_code_label): New function.
26912 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
26913 debug_nothing_rtx to debug_nothing_rtx_code_label.
26914 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
26916 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
26917 debug_nothing_rtx to debug_nothing_rtx_insn.
26918 (sdbout_label): Strengthen param "insn" from rtx to
26920 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
26921 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
26922 "var_location" hook from debug_nothing_rtx to
26923 debug_nothing_rtx_insn.
26925 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26927 * recog.h (insn_output_fn): Update this function typedef to match
26928 the changes below to the generated output functions, strengthening
26929 the 2nd param from rtx to rtx_insn *.
26931 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
26932 insn when invoking an output function, to match the new signature
26933 of insn_output_fn with a stronger second param.
26935 * genconditions.c (write_header): In the generated code for
26936 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
26937 to match the other changes in this patch.
26939 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
26940 the generated "gen_" functions from rtx to rtx_insn * within their
26943 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
26944 the subfunctions within the generated "recog_", "split", "peephole2"
26945 function trees from rtx to rtx_insn *. For now, the top-level
26946 generated functions ("recog", "split", "peephole2") continue to
26947 take a plain rtx for "insn", to avoid introducing dependencies on
26948 other patches. Rename this 2nd param from "insn" to
26949 "uncast_insn", and reintroduce "insn" as a local variable of type
26950 rtx_insn *, initialized at the top of the generated function with
26951 a checked cast on "uncast_insn".
26952 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
26953 the generated "gen_" functions from rtx to rtx_insn * within their
26956 * genoutput.c (process_template): Strengthen the 2nd param within
26957 the generated "output_" functions "insn" from rtx to rtx_insn *.
26959 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
26961 * tree-profile.c (tree_profiling): Skip external functions
26962 when doing coverage instrumentation.
26963 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
26965 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26967 * config/rs6000/altivec.h (vec_cpsgn): New #define.
26968 (vec_mergee): Likewise.
26969 (vec_mergeo): Likewise.
26970 (vec_cntlz): Likewise.
26971 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
26972 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
26973 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
26974 VMRGEW, and VMRGOW.
26975 * doc/extend.texi: Document various forms of vec_cpsgn,
26976 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
26977 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
26978 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
26979 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
26980 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
26982 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26984 * config/rs6000/rs6000.c (context.h): New include.
26985 (tree-pass.h): Likewise.
26986 (make_pass_analyze_swaps): New decl.
26987 (rs6000_option_override): Register pass_analyze_swaps.
26988 (swap_web_entry): New subsclass of web_entry_base (df.h).
26989 (special_handling_values): New enum.
26990 (union_defs): New function.
26991 (union_uses): Likewise.
26992 (insn_is_load_p): Likewise.
26993 (insn_is_store_p): Likewise.
26994 (insn_is_swap_p): Likewise.
26995 (rtx_is_swappable_p): Likewise.
26996 (insn_is_swappable_p): Likewise.
26997 (chain_purpose): New enum.
26998 (chain_contains_only_swaps): New function.
26999 (mark_swaps_for_removal): Likewise.
27000 (swap_const_vector_halves): Likewise.
27001 (adjust_subreg_index): Likewise.
27002 (permute_load): Likewise.
27003 (permute_store): Likewise.
27004 (handle_special_swappables): Likewise.
27005 (replace_swap_with_copy): Likewise.
27006 (dump_swap_insn_table): Likewise.
27007 (rs6000_analyze_swaps): Likewise.
27008 (pass_data_analyze_swaps): New pass_data.
27009 (pass_analyze_swaps): New rtl_opt_pass.
27010 (make_pass_analyze_swaps): New function.
27011 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
27013 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27015 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
27016 type from rtx to rtx_insn *.
27017 (create_copy_of_insn_rtx): Likewise.
27018 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
27019 (create_copy_of_insn_rtx): Likewise, also for local "res".
27021 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27023 * rtl.h (find_first_parameter_load): Strengthen return type from
27025 * rtlanal.c (find_first_parameter_load): Strengthen return type
27026 from rtx to rtx_insn *. Add checked cast for now, to postpone
27027 strengthening the params.
27029 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
27032 * diagnostic.c: Set default caret.
27033 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
27035 * diagnostic.h (struct diagnostic_context):
27037 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27039 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
27040 (sel_bb_head): Strengthen return type insn_t (currently just an
27041 rtx) to rtx_insn *.
27042 (sel_bb_end): Likewise.
27044 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
27045 (sel_bb_head): Strengthen return type and local "head" from
27046 insn_t (currently just an rtx) to rtx_insn *.
27047 (sel_bb_end): Likewise for return type.
27048 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
27051 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27053 * basic-block.h (get_last_bb_insn): Strengthen return type from
27055 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
27058 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
27061 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
27063 (diagnostic_report_diagnostic): ... from here.
27064 * toplev.c (general_init): Move code to c-family.
27066 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27068 * df.h (web_entry_base): Replace existing struct web_entry with a
27069 new class web_entry_base with only the predecessor member.
27070 (unionfind_root): Remove declaration and move to class member.
27071 (unionfind_union): Remove declaration and move to friend
27073 (union_defs): Remove declaration.
27074 * web.c (web_entry_base::unionfind_root): Modify to be member
27075 function and adjust accessors.
27076 (unionfind_union): Modify to be friend function and adjust
27078 (web_entry): New subclass of web_entry_base containing the reg
27080 (union_match_dups): Modify for struct -> class changes.
27081 (union_defs): Likewise.
27082 (entry_register): Likewise.
27083 (pass_web::execute): Likewise.
27085 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
27087 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
27088 builtin define __VEC_ELEMENT_REG_ORDER__.
27090 2014-08-20 Martin Jambor <mjambor@suse.cz>
27091 Wei Mi <wmi@google.com>
27094 PR middle-end/61776
27095 * tree-ssa-operands.c (update_stmt_operands): Remove
27096 MODIFIED_NORETURN_CALLS.
27097 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
27098 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
27099 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
27100 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
27101 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
27102 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
27103 (gimple_call_set_ctrl_altering): New func.
27104 (gimple_call_ctrl_altering_p): Ditto.
27105 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
27106 (make_blocks): Use gimple_call_initialize_ctrl_altering.
27107 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
27108 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
27109 remove MODIFIED_NORETURN_CALLS.
27111 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
27113 * coverage.c (coverage_compute_profile_id): Return non-0;
27114 also handle symbols with unique name.
27115 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
27117 2014-08-20 Steve Ellcey <sellcey@mips.com>
27119 PR middle-end/49191
27120 * doc/sourcebuild.texi (non_strict_align): New.
27122 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
27124 * cgraphunit.c (ipa_passes, compile): Reshedule
27125 symtab_remove_unreachable_nodes passes; update comments.
27126 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
27127 TODO_remove_functions before the pass; the functions ought to be
27129 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
27130 TODO_remove_functions.
27131 * passes.c (pass_data_early_local_passes): Do not schedule function
27133 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
27135 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27138 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
27139 before setting the option.
27140 * diagnostic.c (diagnostic_classify_diagnostic): Record
27141 command-line status.
27143 2014-08-20 Richard Biener <rguenther@suse.de>
27146 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
27147 to build uint{16,32,64}_type_node.
27149 2014-08-20 Terry Guo <terry.guo@arm.com>
27151 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
27152 with immediate_operand.
27154 2014-08-20 David Malcolm <dmalcolm@redhat.com>
27156 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
27157 "insn" from an as_a to a safe_as_a, for the case when "insn" is
27160 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27162 PR preprocessor/51303
27163 * incpath.c (remove_duplicates): Use cpp_warning.
27165 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27169 * doc/options.texi (CPP): Document it.
27170 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
27171 * optc-gen.awk: Handle CPP.
27172 * opth-gen.awk: Likewise.
27174 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27176 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
27178 (duplicate_insn_chain): Likewise.
27179 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
27180 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
27181 checked cast for now (until we can strengthen the params in the
27183 (duplicate_insn_chain): Likewise.
27185 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27187 * rtl.h (next_cc0_user): Strengthen return type from rtx to
27189 (prev_cc0_setter): Likewise.
27191 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
27192 rtx_insn *, adding checked casts for now as necessary.
27193 (prev_cc0_setter): Likewise.
27195 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27197 * expr.h (emit_move_insn): Strengthen return type from rtx to
27199 (emit_move_insn_1): Likewise.
27200 (emit_move_complex_push): Likewise.
27201 (emit_move_complex_parts): Likewise.
27203 * expr.c (emit_move_via_integer): Strengthen return type from rtx
27204 to rtx_insn *. Replace use of NULL_RTX with NULL when working
27206 (emit_move_complex_push): Strengthen return type from rtx to
27208 (emit_move_complex): Likewise, also for local "ret".
27209 (emit_move_ccmode): Likewise.
27210 (emit_move_multi_word): Likewise for return type and locals
27211 "last_insn", "seq".
27212 (emit_move_insn_1): Likewise for return type and locals "result",
27214 (emit_move_insn): Likewise for return type and local "last_insn".
27215 (compress_float_constant): Likewise.
27217 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27219 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
27220 from rtx to rtx_insn *.
27222 * rtl.h (emit_insn_before): Likewise.
27223 (emit_insn_before_noloc): Likewise.
27224 (emit_insn_before_setloc): Likewise.
27225 (emit_jump_insn_before): Likewise.
27226 (emit_jump_insn_before_noloc): Likewise.
27227 (emit_jump_insn_before_setloc): Likewise.
27228 (emit_call_insn_before): Likewise.
27229 (emit_call_insn_before_noloc): Likewise.
27230 (emit_call_insn_before_setloc): Likewise.
27231 (emit_debug_insn_before): Likewise.
27232 (emit_debug_insn_before_noloc): Likewise.
27233 (emit_debug_insn_before_setloc): Likewise.
27234 (emit_label_before): Likewise.
27235 (emit_insn_after): Likewise.
27236 (emit_insn_after_noloc): Likewise.
27237 (emit_insn_after_setloc): Likewise.
27238 (emit_jump_insn_after): Likewise.
27239 (emit_jump_insn_after_noloc): Likewise.
27240 (emit_jump_insn_after_setloc): Likewise.
27241 (emit_call_insn_after): Likewise.
27242 (emit_call_insn_after_noloc): Likewise.
27243 (emit_call_insn_after_setloc): Likewise.
27244 (emit_debug_insn_after): Likewise.
27245 (emit_debug_insn_after_noloc): Likewise.
27246 (emit_debug_insn_after_setloc): Likewise.
27247 (emit_label_after): Likewise.
27248 (emit_insn): Likewise.
27249 (emit_debug_insn): Likewise.
27250 (emit_jump_insn): Likewise.
27251 (emit_call_insn): Likewise.
27252 (emit_label): Likewise.
27253 (gen_clobber): Likewise.
27254 (emit_clobber): Likewise.
27255 (gen_use): Likewise.
27256 (emit_use): Likewise.
27259 (emit_barrier_before): Strengthen return type from rtx to
27261 (emit_barrier_after): Likewise.
27262 (emit_barrier): Likewise.
27264 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
27265 from rtx to rtx_insn *. Add checked casts for now when converting
27266 "last" from rtx to rtx_insn *.
27267 (emit_insn_before_noloc): Likewise for return type.
27268 (emit_jump_insn_before_noloc): Likewise.
27269 (emit_call_insn_before_noloc): Likewise.
27270 (emit_debug_insn_before_noloc): Likewise.
27271 (emit_barrier_before): Strengthen return type and local "insn"
27272 from rtx to rtx_barrier *.
27273 (emit_label_before): Strengthen return type from rtx to
27274 rtx_insn *. Add checked cast for now when returning param
27275 (emit_pattern_after_noloc): Strengthen return type from rtx to
27276 rtx_insn *. Add checked casts for now when converting "last" from
27278 (emit_insn_after_noloc): Strengthen return type from rtx to
27280 (emit_jump_insn_after_noloc): Likewise.
27281 (emit_call_insn_after_noloc): Likewise.
27282 (emit_debug_insn_after_noloc): Likewise.
27283 (emit_barrier_after): Strengthen return type from rtx to
27285 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
27286 Add checked cast for now when converting "label" from rtx to
27288 (emit_pattern_after_setloc): Strengthen return type from rtx to
27289 rtx_insn *. Add checked casts for now when converting "last" from
27291 (emit_pattern_after): Strengthen return type from rtx to
27293 (emit_insn_after_setloc): Likewise.
27294 (emit_insn_after): Likewise.
27295 (emit_jump_insn_after_setloc): Likewise.
27296 (emit_jump_insn_after): Likewise.
27297 (emit_call_insn_after_setloc): Likewise.
27298 (emit_call_insn_after): Likewise.
27299 (emit_debug_insn_after_setloc): Likewise.
27300 (emit_debug_insn_after): Likewise.
27301 (emit_pattern_before_setloc): Likewise. Add checked casts for now
27302 when converting "last" from rtx to rtx_insn *.
27303 (emit_pattern_before): Strengthen return type from rtx to
27305 (emit_insn_before_setloc): Likewise.
27306 (emit_insn_before): Likewise.
27307 (emit_jump_insn_before_setloc): Likewise.
27308 (emit_jump_insn_before): Likewise.
27309 (emit_call_insn_before_setloc): Likewise.
27310 (emit_call_insn_before): Likewise.
27311 (emit_debug_insn_before_setloc): Likewise.
27312 (emit_debug_insn_before): Likewise.
27313 (emit_insn): Strengthen return type and locals "last", "insn",
27314 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
27315 within cases where we know we have an insn.
27316 (emit_debug_insn): Likewise.
27317 (emit_jump_insn): Likewise.
27318 (emit_call_insn): Strengthen return type and local "insn" from rtx
27320 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
27321 a checked cast to rtx_insn * for now on "label".
27322 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
27323 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
27324 (emit_use): Likewise.
27325 (gen_use): Likewise, also for local "seq".
27326 (emit): Likewise for return type and local "insn".
27327 (rtx_insn): Likewise for return type and local "new_rtx".
27329 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
27330 from rtx to rtx_barrier *.
27332 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
27333 changed return type from rtx to rtx_insn *, we must update
27334 "emit_fn" type, and this in turn means updating...
27335 (frame_insn): ...this. Strengthen return type from rtx to
27336 rtx_insn *. Introduce a new local "insn" of the appropriate type.
27338 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27340 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
27341 rtx to rtx_jump_table_data *. Also for local.
27342 * rtl.h (emit_jump_table_data): Likewise.
27344 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27346 * basic-block.h (create_basic_block_structure): Strengthen third
27347 param "bb_note" from rtx to rtx_note *.
27348 * rtl.h (emit_note_before): Strengthen return type from rtx to
27350 (emit_note_after): Likewise.
27351 (emit_note): Likewise.
27352 (emit_note_copy): Likewise. Also, strengthen param similarly.
27353 * function.h (struct rtl_data): Strengthen field
27354 "x_stack_check_probe_note" from rtx to rtx_note *.
27356 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
27357 from rtx to rtx_note *.
27358 * cfgrtl.c (create_basic_block_structure): Strengthen third param
27359 "bb_note" from rtx to rtx_note *.
27360 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
27361 when calling emit_note_copy.
27362 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
27364 (emit_note_after): Likewise.
27365 (emit_note_before): Likewise.
27366 (emit_note_copy): Likewise. Also, strengthen param similarly.
27367 (emit_note): Likewise.
27368 * except.c (emit_note_eh_region_end): Likewise for return type.
27369 Strengthen local "next" from rtx to rtx_insn *.
27370 (convert_to_eh_region_ranges): Strengthen local "note"
27371 from rtx to rtx_note *.
27372 * final.c (change_scope): Likewise.
27373 (reemit_insn_block_notes): Likewise, for both locals named "note".
27374 Also, strengthen local "insn" from rtx to rtx_insn *.
27375 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
27377 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
27378 strengthen local "seq" from rtx to rtx_insn *.
27379 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
27381 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
27383 (get_bb_note_from_pool): Strengthen return type from rtx to
27385 (sel_create_basic_block): Strengthen local "new_bb_note" from
27386 insn_t to rtx_note *.
27387 * var-tracking.c (emit_note_insn_var_location): Strengthen local
27388 "note" from rtx to rtx_note *.
27389 (emit_notes_in_bb): Likewise.
27391 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27393 * function.h (struct rtl_data): Strengthen field
27394 "x_parm_birth_insn" from rtx to rtx_insn *.
27395 * function.c (struct assign_parm_data_all): Strengthen fields
27396 "first_conversion_insn" and "last_conversion_insn" from rtx to
27399 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27401 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
27402 to rtx_insn *; also for local "var_end_seq".
27403 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
27404 (maybe_cleanup_end_of_block): Likewise for param "last" and local
27406 (expand_gimple_cond): Likewise for locals "last2" and "last".
27407 (mark_transaction_restart_calls): Likewise for local "insn".
27408 (expand_gimple_stmt): Likewise for return type and locals "last"
27410 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
27411 (avoid_complex_debug_insns): Likewise for param "insn".
27412 (expand_debug_locations): Likewise for locals "insn", "last",
27413 "prev_insn" and "insn2".
27414 (expand_gimple_basic_block): Likewise for local "last".
27415 (construct_exit_block): Likewise for locals "head", "end",
27417 (pass_expand::execute): Likewise for locals "var_seq",
27418 "var_ret_seq", "next".
27420 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27422 * asan.h (asan_emit_stack_protection): Strengthen return type from
27424 * asan.c (asan_emit_stack_protection): Likewise. Add local
27425 "insns" to hold the return value.
27427 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27429 * basic-block.h (bb_note): Strengthen return type from rtx to
27431 * sched-int.h (bb_note): Likewise.
27432 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
27434 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27436 * rtl.h (make_insn_raw): Strengthen return type from rtx to
27439 * emit-rtl.c (make_insn_raw): Strengthen return type and local
27440 "insn" from rtx to rtx_insn *.
27441 (make_debug_insn_raw): Strengthen return type from rtx to
27442 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
27443 (make_jump_insn_raw): Strengthen return type from rtx to
27444 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
27445 (make_call_insn_raw): Strengthen return type from rtx to
27446 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
27447 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
27448 callback from rtx to rtx_insn *; likewise for local "insn" and
27449 "next", adding a checked cast to rtx_insn in the relevant cases of
27450 the switch statement.
27451 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
27452 callback from rtx to rtx_insn *.
27453 (emit_pattern_after_setloc): Likewise.
27454 (emit_pattern_after): Likewise.
27455 (emit_pattern_before_setloc): Likewise.
27456 (emit_pattern_before): Likewise.
27458 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27460 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
27462 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
27463 accepting an rtx_insn *.
27464 (last_call_insn): Strengthen return type from rtx to
27467 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27469 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
27470 "insns" from rtx to rtx_insn *.
27471 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
27472 locals "insn" and "prev".
27474 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27476 * rtl.h (tablejump_p): Strengthen third param from rtx * to
27477 rtx_jump_table_data **.
27479 * cfgbuild.c (make_edges): Introduce local "table", using it in
27480 place of "tmp" for jump table data.
27481 (find_bb_boundaries): Strengthen local "table" from rtx to
27482 rtx_jump_table_data *.
27483 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
27484 (outgoing_edges_match): Likewise for locals "table1" and "table2".
27485 (try_crossjump_to_edge): Likewise.
27486 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
27488 (patch_jump_insn): Introduce local "table", using it in place of
27489 "tmp" for jump table data.
27490 (force_nonfallthru_and_redirect): Introduce local "table", so that
27491 call to tablejump_p can receive an rtx_jump_table_data **. Update
27492 logic around the call to overwrite "note" appropriately if
27493 tablejump_p returns non-zero.
27494 (get_last_bb_insn): Introduce local "table", using it in place of
27495 "tmp" for jump table data.
27496 * dwarf2cfi.c (create_trace_edges): Likewise.
27498 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
27499 from rtx to rtx_jump_table_data *.
27500 (create_fix_barrier): Strengthen local "tmp" from rtx to
27501 rtx_jump_table_data *.
27502 (arm_reorg): Likewise for local "table".
27504 * config/s390/s390.c (s390_chunkify_start): Likewise.
27506 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
27508 * jump.c (delete_related_insns): Strengthen local "lab_next" from
27509 rtx to rtx_jump_table_data *.
27511 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
27512 rtx_jump_table_data **. Add a checked cast when writing through
27513 the pointer: we know there that local "table" is non-NULL and that
27514 JUMP_TABLE_DATA_P (table) holds.
27515 (label_is_jump_target_p): Introduce local "table", using it in
27516 place of "tmp" for jump table data.
27518 2014-08-19 Marek Polacek <polacek@redhat.com>
27521 * doc/invoke.texi: Document -Wbool-compare.
27523 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27525 * rtl.h (entry_of_function): Strengthen return type from rtx to
27527 * cfgrtl.c (entry_of_function): Likewise.
27529 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27531 * emit-rtl.h (get_insns): Strengthen return type from rtx to
27532 rtx_insn *, adding a checked cast for now.
27533 (get_last_insn): Likewise.
27535 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27537 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
27540 * emit-rtl.c (gen_label_rtx): Likewise.
27542 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27544 * rtl.h (previous_insn): Strengthen return type from rtx to
27546 (next_insn): Likewise.
27547 (prev_nonnote_insn): Likewise.
27548 (prev_nonnote_insn_bb): Likewise.
27549 (next_nonnote_insn): Likewise.
27550 (next_nonnote_insn_bb): Likewise.
27551 (prev_nondebug_insn): Likewise.
27552 (next_nondebug_insn): Likewise.
27553 (prev_nonnote_nondebug_insn): Likewise.
27554 (next_nonnote_nondebug_insn): Likewise.
27555 (prev_real_insn): Likewise.
27556 (next_real_insn): Likewise.
27557 (prev_active_insn): Likewise.
27558 (next_active_insn): Likewise.
27560 * emit-rtl.c (next_insn): Strengthen return type from rtx to
27561 rtx_insn *, adding a checked cast.
27562 (previous_insn): Likewise.
27563 (next_nonnote_insn): Likewise.
27564 (next_nonnote_insn_bb): Likewise.
27565 (prev_nonnote_insn): Likewise.
27566 (prev_nonnote_insn_bb): Likewise.
27567 (next_nondebug_insn): Likewise.
27568 (prev_nondebug_insn): Likewise.
27569 (next_nonnote_nondebug_insn): Likewise.
27570 (prev_nonnote_nondebug_insn): Likewise.
27571 (next_real_insn): Likewise.
27572 (prev_real_insn): Likewise.
27573 (next_active_insn): Likewise.
27574 (prev_active_insn): Likewise.
27576 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
27577 param "stepfunc" so that it returns an rtx_insn * rather than an
27578 rtx, to track the change to prev_nonnote_insn_bb, which is the
27579 only function this is called with.
27580 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
27582 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
27584 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
27587 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27589 * coretypes.h (class rtx_debug_insn): Add forward declaration.
27590 (class rtx_nonjump_insn): Likewise.
27591 (class rtx_jump_insn): Likewise.
27592 (class rtx_call_insn): Likewise.
27593 (class rtx_jump_table_data): Likewise.
27594 (class rtx_barrier): Likewise.
27595 (class rtx_code_label): Likewise.
27596 (class rtx_note): Likewise.
27598 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
27599 adding the invariant DEBUG_INSN_P (X).
27600 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
27601 the invariant NONJUMP_INSN_P (X).
27602 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
27603 the invariant JUMP_P (X).
27604 (class rtx_call_insn): New, a subclass of rtx_insn, adding
27605 the invariant CALL_P (X).
27606 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
27607 invariant JUMP_TABLE_DATA_P (X).
27608 (class rtx_barrier): New, a subclass of rtx_insn, adding the
27609 invariant BARRIER_P (X).
27610 (class rtx_code_label): New, a subclass of rtx_insn, adding
27611 the invariant LABEL_P (X).
27612 (class rtx_note): New, a subclass of rtx_insn, adding
27613 the invariant NOTE_P(X).
27614 (is_a_helper <rtx_debug_insn *>::test): New.
27615 (is_a_helper <rtx_nonjump_insn *>::test): New.
27616 (is_a_helper <rtx_jump_insn *>::test): New.
27617 (is_a_helper <rtx_call_insn *>::test): New.
27618 (is_a_helper <rtx_jump_table_data *>::test): New functions,
27619 overloaded for both rtx and rtx_insn *.
27620 (is_a_helper <rtx_barrier *>::test): New.
27621 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
27622 for both rtx and rtx_insn *.
27623 (is_a_helper <rtx_note *>::test): New.
27625 2014-08-19 Marek Polacek <polacek@redhat.com>
27627 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
27628 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
27629 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
27630 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
27632 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27634 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
27635 rtx_insn *. To help with transition, for now, convert from an
27636 access macro into a pair of functions: BND_TO, returning an
27638 (SET_BND_TO): New function, for use where BND_TO is used as an
27641 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
27643 (BND_TO): New function, adding a checked cast.
27644 (SET_BND_TO): New function.
27646 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
27648 (compute_av_set_on_boundaries): Likewise.
27650 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
27652 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
27653 destination if it is used in source.
27654 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
27655 (*popcount<mode>2_falsedep_1): Likewise.
27657 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
27660 * configure.ac: Set install_gold_as_default to no first.
27661 * configure: Regenerated.
27663 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27665 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
27666 "note_list" field will eventually be an rtx_insn *. To help with
27667 transition, for now, convert from an access macro into a pair of
27668 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
27669 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
27672 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
27673 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
27675 * sel-sched-ir.c (init_bb): Likewise.
27676 (sel_restore_notes): Likewise.
27677 (move_bb_info): Likewise.
27678 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
27679 (SET_BB_NOTE_LIST): New function.
27681 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27683 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
27684 field will eventually be an rtx_insn *. To help with transition,
27685 for now, convert from an access macro into a pair of functions:
27686 VINSN_INSN_RTX, returning an rtx_insn *, and...
27687 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
27688 is used as an lvalue.
27690 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
27691 SET_VINSN_INSN_RTX where it's used as an lvalue.
27692 (VINSN_INSN_RTX): New function.
27693 (SET_VINSN_INSN_RTX): New function.
27695 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27697 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
27698 eventually be rtx_insn *, but to help with transition, for now,
27699 convert from an access macro into a pair of functions: DEP_PRO
27700 returning an rtx_insn * and...
27701 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
27702 lvalue, returning an rtx&.
27703 (DEP_CON): Analogous changes to DEP_PRO above.
27704 (SET_DEP_CON): Likewise.
27706 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
27707 an lvalue to SET_DEP_CON.
27708 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
27709 (sd_copy_back_deps): Likewise for DEP_CON.
27710 (DEP_PRO): New function, adding a checked cast for now.
27711 (DEP_CON): Likewise.
27712 (SET_DEP_PRO): New function.
27713 (SET_DEP_CON): Likewise.
27715 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
27717 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
27718 (extra_options): Add i386/cygwin.opt.
27719 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
27720 (CPP_SPEC): Accept -pthread.
27721 (LINK_SPEC): Ditto.
27722 (GOMP_SELF_SPECS): Update comment.
27723 * config/i386/cygwin.opt: New file for -pthread flag.
27725 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27727 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
27728 * df.h (DF_REF_INSN): Convert from a macro to a function, so
27729 that we can return an rtx_insn *.
27731 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
27733 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
27734 when building executables, not DLLs. Add --large-address-aware
27735 under the same conditions.
27736 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
27737 when building executables, not DLLs. Add --large-address-aware
27738 under the same conditions when using -m32.
27740 * config/i386/cygwin-stdint.h: Throughout, make type
27741 definitions dependent on target architecture, not host.
27743 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27745 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
27746 the return type from rtx to rtx_insn *, which will enable various
27747 conversions in followup patches. For now this is is done by a
27749 (NEXT_INSN): Likewise.
27750 (SET_PREV_INSN): Convert to an inline function. This is intended
27751 for use as an lvalue, and so returns an rtx& to allow in-place
27753 (SET_NEXT_INSN): Likewise.
27755 2014-07-08 Mark Wielaard <mjw@redhat.com>
27758 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
27760 2014-08-19 Marek Polacek <polacek@redhat.com>
27763 * cgraphunit.c (handle_alias_pairs): Fix condition.
27765 2014-08-19 Richard Biener <rguenther@suse.de>
27767 * gimple-fold.c (fold_gimple_assign): Properly build a
27768 null-pointer constant when devirtualizing addresses.
27770 2014-07-07 Mark Wielaard <mjw@redhat.com>
27772 * dwarf2out.c (decl_quals): New function.
27773 (modified_type_die): Take one cv_quals argument instead of two,
27774 one for const and one for volatile.
27775 (add_type_attribute): Likewise.
27776 (generic_parameter_die): Call add_type_attribute with one modifier
27778 (base_type_for_mode): Likewise.
27779 (add_bounds_info): Likewise.
27780 (add_subscript_info): Likewise.
27781 (gen_array_type_die): Likewise.
27782 (gen_descr_array_type_die): Likewise.
27783 (gen_entry_point_die): Likewise.
27784 (gen_enumeration_type_die): Likewise.
27785 (gen_formal_parameter_die): Likewise.
27786 (gen_subprogram_die): Likewise.
27787 (gen_variable_die): Likewise.
27788 (gen_const_die): Likewise.
27789 (gen_field_die): Likewise.
27790 (gen_pointer_type_die): Likewise.
27791 (gen_reference_type_die): Likewise.
27792 (gen_ptr_to_mbr_type_die): Likewise.
27793 (gen_inheritance_die): Likewise.
27794 (gen_subroutine_type_die): Likewise.
27795 (gen_typedef_die): Likewise.
27796 (force_type_die): Likewise.
27798 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27800 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
27802 * configure: Regenerate.
27804 2014-08-19 Richard Biener <rguenther@suse.de>
27806 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
27807 DECL_EXTERNALs in BLOCKs as non-references.
27808 * tree-streamer-out.c (streamer_write_chain): Likewise.
27810 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
27811 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
27812 Anna Tikhonova <anna.tikhonova@intel.com>
27813 Ilya Tocar <ilya.tocar@intel.com>
27814 Andrey Turetskiy <andrey.turetskiy@intel.com>
27815 Ilya Verbin <ilya.verbin@intel.com>
27816 Kirill Yukhin <kirill.yukhin@intel.com>
27817 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
27819 * config/i386/sse.md
27820 (define_mode_iterator VI48_AVX512F): Delete.
27821 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
27822 (define_mode_iterator VI2_AVX512VL): Ditto.
27823 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
27826 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
27828 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
27829 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
27830 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
27831 with VI48_AVX512F_AVX512VL): New.
27832 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
27833 with VI2_AVX512VL): Ditto.
27835 2014-08-19 Marek Polacek <polacek@redhat.com>
27837 * doc/invoke.texi: Document -Wc99-c11-compat.
27839 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27841 * rtl.h (PREV_INSN): Split macro in two: the existing one,
27842 for rvalues, and...
27843 (SET_PREV_INSN): New macro, for use as an lvalue.
27844 (NEXT_INSN, SET_NEXT_INSN): Likewise.
27846 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
27847 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
27848 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
27849 (fixup_abnormal_edges): Likewise.
27850 (unlink_insn_chain): Likewise.
27851 (fixup_reorder_chain): Likewise.
27852 (cfg_layout_delete_block): Likewise.
27853 (cfg_layout_merge_blocks): Likewise.
27854 * combine.c (update_cfg_for_uncondjump): Likewise.
27855 * emit-rtl.c (link_insn_into_chain): Likewise.
27856 (remove_insn): Likewise.
27857 (delete_insns_since): Likewise.
27858 (reorder_insns_nobb): Likewise.
27859 (emit_insn_after_1): Likewise.
27860 * final.c (rest_of_clean_state): Likewise.
27861 (final_scan_insn): Likewise.
27862 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
27863 * haifa-sched.c (concat_note_lists): Likewise.
27864 (remove_notes): Likewise.
27865 (restore_other_notes): Likewise.
27866 (move_insn): Likewise.
27867 (unlink_bb_notes): Likewise.
27868 (restore_bb_notes): Likewise.
27869 * jump.c (delete_for_peephole): Likewise.
27870 * optabs.c (emit_libcall_block_1): Likewise.
27871 * reorg.c (emit_delay_sequence): Likewise.
27872 (fill_simple_delay_slots): Likewise.
27873 * sel-sched-ir.c (sel_move_insn): Likewise.
27874 (sel_remove_insn): Likewise.
27875 (get_bb_note_from_pool): Likewise.
27876 * sel-sched.c (move_nop_to_previous_block): Likewise.
27878 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
27879 * config/c6x/c6x.c (gen_one_bundle): Likewise.
27880 (c6x_gen_bundles): Likewise.
27881 (hwloop_optimize): Likewise.
27882 * config/frv/frv.c (frv_function_prologue): Likewise.
27883 (frv_register_nop): Likewise.
27884 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
27885 (ia64_reorg): Likewise.
27886 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
27887 (mep_make_bundle): Likewise.
27888 (mep_bundle_insns): Likewise.
27889 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
27890 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
27891 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
27893 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27895 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
27896 return type from rtx to rtx_insn *.
27897 (BB_END): Likewise.
27898 (BB_HEADER): Likewise.
27899 (BB_FOOTER): Likewise.
27900 (SET_BB_HEAD): Convert to a function.
27901 (SET_BB_END): Likewise.
27902 (SET_BB_HEADER): Likewise.
27903 (SET_BB_FOOTER): Likewise.
27905 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
27906 Strengthen the return type from rtx to rtx_insn *. For now, this
27907 is done by adding a checked cast, but this will eventually
27908 become a field lookup.
27909 (BB_END): Likewise.
27910 (BB_HEADER): Likewise.
27911 (BB_FOOTER): Likewise.
27912 (SET_BB_HEAD): New function, from macro of same name. This is
27913 intended for use as an lvalue, and so returns an rtx& to allow
27914 in-place modification.
27915 (SET_BB_END): Likewise.
27916 (SET_BB_HEADER): Likewise.
27917 (SET_BB_FOOTER): Likewise.
27919 2014-08-18 David Malcolm <dmalcolm@redhat.com>
27921 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
27922 for rvalues, and...
27923 (SET_BB_HEAD): New macro, for use as a lvalue.
27924 (BB_END, SET_BB_END): Likewise.
27925 (BB_HEADER, SET_BB_HEADER): Likewise.
27926 (BB_FOOTER, SET_BB_FOOTER): Likewise.
27928 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
27929 of BB_* macros into SET_BB_* macros.
27930 (fix_crossing_unconditional_branches): Likewise.
27931 * caller-save.c (save_call_clobbered_regs): Likewise.
27932 (insert_one_insn): Likewise.
27933 * cfgbuild.c (find_bb_boundaries): Likewise.
27934 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
27935 (outgoing_edges_match): Likewise.
27936 (try_optimize_cfg): Likewise.
27937 * cfgexpand.c (expand_gimple_cond): Likewise.
27938 (expand_gimple_tailcall): Likewise.
27939 (expand_gimple_basic_block): Likewise.
27940 (construct_exit_block): Likewise.
27941 * cfgrtl.c (delete_insn): Likewise.
27942 (create_basic_block_structure): Likewise.
27943 (rtl_delete_block): Likewise.
27944 (rtl_split_block): Likewise.
27945 (emit_nop_for_unique_locus_between): Likewise.
27946 (rtl_merge_blocks): Likewise.
27947 (block_label): Likewise.
27948 (try_redirect_by_replacing_jump): Likewise.
27949 (emit_barrier_after_bb): Likewise.
27950 (fixup_abnormal_edges): Likewise.
27951 (record_effective_endpoints): Likewise.
27952 (relink_block_chain): Likewise.
27953 (fixup_reorder_chain): Likewise.
27954 (fixup_fallthru_exit_predecessor): Likewise.
27955 (cfg_layout_duplicate_bb): Likewise.
27956 (cfg_layout_split_block): Likewise.
27957 (cfg_layout_delete_block): Likewise.
27958 (cfg_layout_merge_blocks): Likewise.
27959 * combine.c (update_cfg_for_uncondjump): Likewise.
27960 * emit-rtl.c (add_insn_after): Likewise.
27961 (remove_insn): Likewise.
27962 (reorder_insns): Likewise.
27963 (emit_insn_after_1): Likewise.
27964 * haifa-sched.c (get_ebb_head_tail): Likewise.
27965 (restore_other_notes): Likewise.
27966 (move_insn): Likewise.
27967 (sched_extend_bb): Likewise.
27968 (fix_jump_move): Likewise.
27969 * ifcvt.c (noce_process_if_block): Likewise.
27970 (dead_or_predicable): Likewise.
27971 * ira.c (update_equiv_regs): Likewise.
27972 * reg-stack.c (change_stack): Likewise.
27973 * sel-sched-ir.c (sel_move_insn): Likewise.
27974 * sel-sched.c (move_nop_to_previous_block): Likewise.
27976 * config/c6x/c6x.c (hwloop_optimize): Likewise.
27977 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
27979 2014-08-18 David Malcolm <dmalcolm@redhat.com>
27981 * rtl.h (for_each_rtx_in_insn): New function.
27982 * rtlanal.c (for_each_rtx_in_insn): Likewise.
27984 2014-08-18 David Malcolm <dmalcolm@redhat.com>
27986 * coretypes.h (class rtx_insn): Add forward declaration.
27988 * rtl.h: Include is-a.h.
27989 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
27990 workaround to ensure gengtype knows inheritance is occurring,
27991 whilst continuing to use the pre-existing special-casing for
27993 (class rtx_insn): New subclass of rtx_def, adding the
27994 invariant that we're dealing with something we can sanely use
27995 INSN_UID, NEXT_INSN, PREV_INSN on.
27996 (is_a_helper <rtx_insn *>::test): New.
27997 (is_a_helper <const rtx_insn *>::test): New.
27999 2014-08-18 David Malcolm <dmalcolm@redhat.com>
28001 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
28003 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
28005 * ipa-visibility.c (update_visibility_by_resolution_info): Do no
28006 turn UNDEF comdats as extern.
28008 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
28010 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
28011 to BUILT_IN_UNREACHABLE.
28013 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
28016 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
28018 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
28019 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
28020 (ffs<mode>2): Do not expand with tzcnt for
28021 TARGET_AVOID_FALSE_DEP_FOR_BMI.
28022 (ffssi2_no_cmove): Ditto.
28023 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
28024 (ctz<mode>2): New expander.
28025 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
28026 (*ctz<mode>2_falsedep): New insn.
28027 (*ctz<mode>2): Rename from ctz<mode>2.
28028 (clz<mode>2_lzcnt): New expander.
28029 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
28030 (*clz<mode>2_lzcnt_falsedep): New insn.
28031 (*clz<mode>2): Rename from ctz<mode>2.
28032 (popcount<mode>2): New expander.
28033 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
28034 (*popcount<mode>2_falsedep): New insn.
28035 (*popcount<mode>2): Rename from ctz<mode>2.
28036 (*popcount<mode>2_cmp): Remove.
28037 (*popcountsi2_cmp_zext): Ditto.
28039 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
28041 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
28042 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
28043 * config/microblaze/microblaze.h
28044 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
28046 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
28049 * configure.ac: Set install_gold_as_default to no for
28051 * configure: Regenerated.
28053 2014-08-18 Roman Gareev <gareevroman@gmail.com>
28055 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
28056 * config.in: Add undef of HAVE_isl.
28057 * configure: Regenerate.
28058 * configure.ac: Add definition of HAVE_isl.
28059 * graphite-blocking.c: Add checking of HAVE_isl.
28060 * graphite-dependences.c: Likewise.
28061 * graphite-interchange.c: Likewise.
28062 * graphite-isl-ast-to-gimple.c: Likewise.
28063 * graphite-optimize-isl.c: Likewise.
28064 * graphite-poly.c: Likewise.
28065 * graphite-scop-detection.c: Likewise.
28066 * graphite-sese-to-poly.c: Likewise.
28067 * graphite.c: Likewise.
28068 * toplev.c: Replace the checking of HAVE_cloog with the checking
28071 2014-08-18 Richard Biener <rguenther@suse.de>
28073 PR tree-optimization/62090
28074 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
28075 (fold_builtin_3): Do not fold snprintf.
28076 (fold_builtin_4): Likewise.
28077 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
28078 moved from builtins.c.
28079 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
28080 (gimple_fold_builtin): Do not fold sprintf here.
28082 2014-08-18 Richard Biener <rguenther@suse.de>
28084 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
28086 (maybe_canonicalize_mem_ref_addr): ... this function.
28087 (fold_stmt_1): Apply it here before all simplification.
28089 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
28092 * cgraph.h (cgraph_node::create_indirect_edge): Add
28093 compute_indirect_info param.
28094 * cgraph.c (cgraph_node::create_indirect_edge): Compute
28095 indirect_info only when it is required.
28096 * cgraphclones.c (cgraph_clone_edge): Do not recompute
28097 indirect_info fore cloned indirect edge.
28099 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28100 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28101 Anna Tikhonova <anna.tikhonova@intel.com>
28102 Ilya Tocar <ilya.tocar@intel.com>
28103 Andrey Turetskiy <andrey.turetskiy@intel.com>
28104 Ilya Verbin <ilya.verbin@intel.com>
28105 Kirill Yukhin <kirill.yukhin@intel.com>
28106 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28108 * config/i386/sse.md
28109 (define_mode_iterator VI8_AVX2_AVX512BW): New.
28110 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
28112 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28113 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28114 Anna Tikhonova <anna.tikhonova@intel.com>
28115 Ilya Tocar <ilya.tocar@intel.com>
28116 Andrey Turetskiy <andrey.turetskiy@intel.com>
28117 Ilya Verbin <ilya.verbin@intel.com>
28118 Kirill Yukhin <kirill.yukhin@intel.com>
28119 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28121 * config/i386/sse.md
28122 (define_mode_iterator VF1_AVX512VL): New.
28123 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
28124 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
28127 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28128 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28129 Anna Tikhonova <anna.tikhonova@intel.com>
28130 Ilya Tocar <ilya.tocar@intel.com>
28131 Andrey Turetskiy <andrey.turetskiy@intel.com>
28132 Ilya Verbin <ilya.verbin@intel.com>
28133 Kirill Yukhin <kirill.yukhin@intel.com>
28134 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28136 * config/i386/i386.c: Rename ufloatv8siv8df_mask to
28137 ufloatv8siv8df2_mask.
28138 * config/i386/i386.md
28139 (define_code_iterator any_float): New.
28140 (define_code_attr floatsuffix): New.
28141 * config/i386/sse.md
28142 (define_mode_iterator VF1_128_256VL): New.
28143 (define_mode_iterator VF2_512_256VL): New.
28144 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove
28145 unnecessary TARGET check.
28146 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
28147 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
28149 (define_mode_attr qq2pssuff): New.
28150 (define_mode_attr sselongvecmode): New.
28151 (define_mode_attr sselongvecmodelower): New.
28152 (define_mode_attr sseintvecmode3): New.
28153 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
28155 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
28156 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
28157 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
28158 (define_insn "ufloatv2siv2df2<mask_name>"): New.
28160 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28161 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28162 Anna Tikhonova <anna.tikhonova@intel.com>
28163 Ilya Tocar <ilya.tocar@intel.com>
28164 Andrey Turetskiy <andrey.turetskiy@intel.com>
28165 Ilya Verbin <ilya.verbin@intel.com>
28166 Kirill Yukhin <kirill.yukhin@intel.com>
28167 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28169 * config/i386/sse.md
28170 (define_mode_iterator VF2_AVX512VL): New.
28171 (define_mode_attr sseintvecmode2): New.
28172 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
28173 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
28174 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
28176 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
28178 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
28180 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
28183 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28184 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28185 Anna Tikhonova <anna.tikhonova@intel.com>
28186 Ilya Tocar <ilya.tocar@intel.com>
28187 Andrey Turetskiy <andrey.turetskiy@intel.com>
28188 Ilya Verbin <ilya.verbin@intel.com>
28189 Kirill Yukhin <kirill.yukhin@intel.com>
28190 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28192 * config/i386/i386.md
28193 (define_insn "*movoi_internal_avx"): Add evex version.
28194 (define_insn "*movti_internal"): Ditto.
28196 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28197 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28198 Anna Tikhonova <anna.tikhonova@intel.com>
28199 Ilya Tocar <ilya.tocar@intel.com>
28200 Andrey Turetskiy <andrey.turetskiy@intel.com>
28201 Ilya Verbin <ilya.verbin@intel.com>
28202 Kirill Yukhin <kirill.yukhin@intel.com>
28203 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28205 * config/i386/i386.md
28206 (define_attr "isa"): Add avx512dq, noavx512dq.
28207 (define_attr "enabled"): Ditto.
28208 * config/i386/sse.md
28209 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
28211 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28212 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28213 Anna Tikhonova <anna.tikhonova@intel.com>
28214 Ilya Tocar <ilya.tocar@intel.com>
28215 Andrey Turetskiy <andrey.turetskiy@intel.com>
28216 Ilya Verbin <ilya.verbin@intel.com>
28217 Kirill Yukhin <kirill.yukhin@intel.com>
28218 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28220 * config/i386/i386.c
28221 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
28222 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
28223 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
28224 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
28225 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
28226 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
28227 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
28228 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
28229 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
28230 * config/i386/sse.md
28231 (define_mode_iterator VMOVE): Allow V4TI mode.
28232 (define_mode_iterator V_AVX512VL): New.
28233 (define_mode_iterator V): New handling for AVX512VL.
28234 (define_insn "avx512f_load<mode>_mask"): Delete.
28235 (define_insn "<avx512>_load<mode>_mask"): New.
28236 (define_insn "avx512f_store<mode>_mask"): Delete.
28237 (define_insn "<avx512>_store<mode>_mask"): New.
28240 2014-08-18 Yury Gribov <y.gribov@samsung.com>
28243 * asan.c (instrument_derefs): Fix bitfield check.
28245 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28247 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
28248 * config/rs6000/htm.md (ttest): Remove clobber.
28249 * config/rs6000/predicates.md (any_mask_operand): New predicate.
28250 (and_operand): Reformat.
28251 (and_2rld_operand): New predicate.
28252 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
28254 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
28255 parameter. Handle AND directly.
28256 (rs6000_split_logical_di): Remove last parameter.
28257 (rs6000_split_logical): Remove last parameter. Remove obsolete
28259 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
28260 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
28261 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
28262 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
28263 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
28264 and 5 anonymous splitters): Delete.
28265 (and<mode>3): New expander.
28266 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
28267 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
28268 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
28269 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
28270 (floatdisf2_internal1): Remove clobbers.
28271 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
28272 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
28273 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
28274 (and<mode>3 for BOOL_128): Remove clobber.
28275 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
28276 rs6000_split_logical.
28277 (*bool<mode>3_internal for BOOL_128): Adjust call of
28278 rs6000_split_logical.
28279 (*boolc<mode>3_internal1 for BOOL_128,
28280 *boolc<mode>3_internal2 for BOOL_128,
28281 *boolcc<mode>3_internal1 for BOOL_128,
28282 *boolcc<mode>3_internal2 for BOOL_128,
28283 *eqv<mode>3_internal1 for BOOL_128,
28284 *eqv<mode>3_internal2 for BOOL_128,
28285 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
28286 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
28288 (*vec_reload_and_reg_<mptrsize>): Delete.
28290 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28292 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
28293 and split, *boolccsi3_internal3 and split): Delete.
28294 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
28295 *boolccdi3_internal3 and split): Delete.
28296 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
28297 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
28299 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28301 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
28302 and split, *boolcsi3_internal3 and split): Delete.
28303 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
28304 *boolcdi3_internal3 and split): Delete.
28305 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
28307 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28309 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
28310 <'u'>: Also support printing the low-order 16 bits.
28311 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
28312 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
28313 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
28314 *booldi3_internal3 and split): Delete.
28315 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
28316 *bool<mode>3_dot2): New.
28317 (two anonymous define_splits for non_logical_cint_operand): Merge.
28319 2014-08-17 Marek Polacek <polacek@redhat.com>
28320 Manuel López-Ibáñez <manu@gcc.gnu.org>
28323 * diagnostic.c (adjust_line): Add gcc_checking_assert.
28324 (diagnostic_show_locus): Don't print caret diagnostic
28325 if a column is larger than the line_width.
28327 2014-08-17 Roman Gareev <gareevroman@gmail.com>
28329 * common.opt: Make the ISL AST generator to be the main code generator
28332 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
28334 * wide-int.h (generic_wide_int): Declare as class instead of struct.
28336 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
28339 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
28341 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
28342 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
28343 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
28345 * config/pa/pa.md (begin_brtab): Delete insn.
28346 (end_brtab): Likewise.
28348 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
28350 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
28352 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
28354 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
28355 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
28356 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
28357 (get_dynamic_type): Remove.
28358 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
28359 (clear_speculation): Bring to ipa-deivrt.h
28360 (get_class_context): Rename to ...
28361 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
28362 (contains_type_p): Update.
28363 (get_dynamic_type): Rename to ...
28364 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
28365 (possible_polymorphic_call_targets): UPdate.
28366 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
28367 * ipa-prop.c (ipa_analyze_call_uses): Update.
28369 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
28371 * doc/invoke.texi (SH options): Document missing processor variant
28372 options. Remove references to Hitachi. Undocument deprecated mspace
28375 2014-08-15 Jason Merrill <jason@redhat.com>
28377 * tree.c (type_hash_canon): Uncomment assert.
28379 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28381 * input.h (in_system_header_at): Add comment.
28383 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28386 * diagnostic.c (build_message_string): Make it extern.
28387 * diagnostic.h (build_message_string): Make it extern.
28389 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
28391 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
28392 load/store from/to non-floating class pseudo.
28394 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28396 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
28398 2014-08-15 Richard Biener <rguenther@suse.de>
28400 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
28401 (get_constraint_for_ssa_var): Remove dead code.
28402 (get_constraint_for_1): Adjust.
28403 (find_what_var_points_to): Likewise.
28404 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
28406 2014-08-15 Ilya Tocar <tocarip@gmail.com>
28409 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
28410 (_mm512_mask_cmpge_epu32_mask): Ditto.
28411 (_mm512_cmpge_epu32_mask): Ditto.
28412 (_mm512_mask_cmpge_epi64_mask): Ditto.
28413 (_mm512_cmpge_epi64_mask): Ditto.
28414 (_mm512_mask_cmpge_epu64_mask): Ditto.
28415 (_mm512_cmpge_epu64_mask): Ditto.
28416 (_mm512_mask_cmple_epi32_mask): Ditto.
28417 (_mm512_cmple_epi32_mask): Ditto.
28418 (_mm512_mask_cmple_epu32_mask): Ditto.
28419 (_mm512_cmple_epu32_mask): Ditto.
28420 (_mm512_mask_cmple_epi64_mask): Ditto.
28421 (_mm512_cmple_epi64_mask): Ditto.
28422 (_mm512_mask_cmple_epu64_mask): Ditto.
28423 (_mm512_cmple_epu64_mask): Ditto.
28424 (_mm512_mask_cmplt_epi32_mask): Ditto.
28425 (_mm512_cmplt_epi32_mask): Ditto.
28426 (_mm512_mask_cmplt_epu32_mask): Ditto.
28427 (_mm512_cmplt_epu32_mask): Ditto.
28428 (_mm512_mask_cmplt_epi64_mask): Ditto.
28429 (_mm512_cmplt_epi64_mask): Ditto.
28430 (_mm512_mask_cmplt_epu64_mask): Ditto.
28431 (_mm512_cmplt_epu64_mask): Ditto.
28432 (_mm512_mask_cmpneq_epi32_mask): Ditto.
28433 (_mm512_mask_cmpneq_epu32_mask): Ditto.
28434 (_mm512_cmpneq_epu32_mask): Ditto.
28435 (_mm512_mask_cmpneq_epi64_mask): Ditto.
28436 (_mm512_cmpneq_epi64_mask): Ditto.
28437 (_mm512_mask_cmpneq_epu64_mask): Ditto.
28438 (_mm512_cmpneq_epu64_mask): Ditto.
28439 (_mm512_castpd_ps): Ditto.
28440 (_mm512_castpd_si512): Ditto.
28441 (_mm512_castps_pd): Ditto.
28442 (_mm512_castps_si512): Ditto.
28443 (_mm512_castsi512_ps): Ditto.
28444 (_mm512_castsi512_pd): Ditto.
28445 (_mm512_castpd512_pd128): Ditto.
28446 (_mm512_castps512_ps128): Ditto.
28447 (_mm512_castsi512_si128): Ditto.
28448 (_mm512_castpd512_pd256): Ditto.
28449 (_mm512_castps512_ps256): Ditto.
28450 (_mm512_castsi512_si256): Ditto.
28451 (_mm512_castpd128_pd512): Ditto.
28452 (_mm512_castps128_ps512): Ditto.
28453 (_mm512_castsi128_si512): Ditto.
28454 (_mm512_castpd256_pd512): Ditto.
28455 (_mm512_castps256_ps512): Ditto.
28456 (_mm512_castsi256_si512): Ditto.
28457 (_mm512_cmpeq_epu32_mask): Ditto.
28458 (_mm512_mask_cmpeq_epu32_mask): Ditto.
28459 (_mm512_mask_cmpeq_epu64_mask): Ditto.
28460 (_mm512_cmpeq_epu64_mask): Ditto.
28461 (_mm512_cmpgt_epu32_mask): Ditto.
28462 (_mm512_mask_cmpgt_epu32_mask): Ditto.
28463 (_mm512_mask_cmpgt_epu64_mask): Ditto.
28464 (_mm512_cmpgt_epu64_mask): Ditto.
28465 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
28466 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
28467 * config/i386/i386.c (enum ix86_builtins): Add
28468 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
28469 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
28470 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
28471 (bdesc_args): Add __builtin_ia32_si512_256si,
28472 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
28473 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
28474 __builtin_ia32_pd512_pd.
28475 (ix86_expand_args_builtin): Handle new FTYPEs.
28476 * config/i386/sse.md (castmode): Add 512-bit modes.
28477 (AVX512MODE2P): New.
28478 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
28479 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
28481 2014-08-15 Richard Biener <rguenther@suse.de>
28483 * fold-const.c (tree_swap_operands_p): Put all constants
28484 last, also strip sign-changing NOPs when considering further
28485 canonicalization. Canonicalize also when optimizing for size.
28487 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28489 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
28490 one_match > zero_match case to just before simple_sequence.
28492 2014-08-15 Richard Biener <rguenther@suse.de>
28494 * data-streamer.h (streamer_string_index, string_for_index):
28496 * data-streamer-out.c (streamer_string_index): Make static.
28497 * data-streamer-in.c (string_for_index): Likewise.
28498 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
28499 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
28501 2014-08-15 Richard Biener <rguenther@suse.de>
28503 PR tree-optimization/62031
28504 * tree-data-ref.c (dr_analyze_indices): Do not set
28505 DR_UNCONSTRAINED_BASE.
28506 (dr_may_alias_p): All indirect accesses have to go the
28507 formerly DR_UNCONSTRAINED_BASE path.
28508 * tree-data-ref.h (struct indices): Remove
28509 unconstrained_base member.
28510 (DR_UNCONSTRAINED_BASE): Remove.
28512 2014-08-15 Jakub Jelinek <jakub@redhat.com>
28514 PR middle-end/62092
28515 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
28516 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
28517 in OMP_CLAUSE_MAP in some outer target region.
28519 2014-08-15 Bin Cheng <bin.cheng@arm.com>
28521 * tree-ssa-loop-ivopts.c (ivopts_data): New field
28522 name_expansion_cache.
28523 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
28524 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
28525 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
28526 (difference_cannot_overflow_p): New parameter. Use affine
28527 expansion for equality check.
28528 (iv_elimination_compare_lt): Pass new argument.
28530 2014-08-14 DJ Delorie <dj@redhat.com>
28532 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
28533 variables to the accumulator.
28535 * config/rl78/predicates.md (rl78_near_mem_operand): New.
28536 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
28537 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
28538 with far-far moves.
28540 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
28541 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
28542 (umulqihi3_virt): Likewise.
28543 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
28544 (umulqihi3_real): Likewise.
28546 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
28548 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
28550 PR tree-optimization/62091
28551 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
28552 function_entry_reached.
28553 (walk_aliased_vdefs): Clear it here.
28554 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
28556 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
28558 * ipa-utils.h (compare_virtual_tables): Declare.
28559 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
28561 2014-08-14 Marek Polacek <polacek@redhat.com>
28564 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
28565 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
28567 2014-08-14 Tom de Vries <tom@codesourcery.com>
28569 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
28571 2014-08-14 Tom de Vries <tom@codesourcery.com>
28573 PR rtl-optimization/62004
28574 PR rtl-optimization/62030
28575 * ifcvt.c (rtx_interchangeable_p): New function.
28576 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
28577 * emit-rtl.h (mem_attrs_eq_p): Declare.
28579 2014-08-14 Roman Gareev <gareevroman@gmail.com>
28581 * graphite-scop-detection.c:
28582 Add inclusion of cp-tree.h.
28583 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
28584 in case they are pointers to object types
28586 2014-08-14 Richard Biener <rguenther@suse.de>
28588 * BASE-VER: Change to 5.0.0
28590 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28591 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28592 Anna Tikhonova <anna.tikhonova@intel.com>
28593 Ilya Tocar <ilya.tocar@intel.com>
28594 Andrey Turetskiy <andrey.turetskiy@intel.com>
28595 Ilya Verbin <ilya.verbin@intel.com>
28596 Kirill Yukhin <kirill.yukhin@intel.com>
28597 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28599 * config/i386/sse.md (define_mode_attr avx512): New.
28600 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
28602 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
28603 (define_mode_attr ssse3_avx2): Ditto.
28604 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
28605 (define_mode_attr avx2_avx512bw): New.
28606 (define_mode_attr ssedoublemodelower): New.
28607 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
28608 V32HI, V64QI modes.
28609 (define_mode_attr ssebytemode): Allow V8DI modes.
28610 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
28611 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
28612 (define_mode_attr ssePSmode2): New.
28613 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
28614 V16HI, V32HI modes.
28615 (define_mode_attr dbpsadbwmode): New.
28616 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
28617 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
28618 (vi8_sse4_1_avx2_avx512): New.
28619 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
28621 (define_mode_attr blendbits): Move before its immediate use.
28623 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28624 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28625 Anna Tikhonova <anna.tikhonova@intel.com>
28626 Ilya Tocar <ilya.tocar@intel.com>
28627 Andrey Turetskiy <andrey.turetskiy@intel.com>
28628 Ilya Verbin <ilya.verbin@intel.com>
28629 Kirill Yukhin <kirill.yukhin@intel.com>
28630 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28632 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
28633 * config/i386/subst.md
28634 (define_mode_iterator SUBST_V): Update.
28635 (define_mode_iterator SUBST_A): Ditto.
28636 (define_subst_attr "mask_operand7"): New.
28637 (define_subst_attr "mask_operand10"): New.
28638 (define_subst_attr "mask_operand_arg34") : New.
28639 (define_subst_attr "mask_expand_op3"): New.
28640 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
28641 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
28642 (define_subst_attr "mask_avx512vl_condition"): New.
28643 (define_subst_attr "round_mask_operand4"): Ditto.
28644 (define_subst_attr "round_mask_scalar_op3"): Delete.
28645 (define_subst_attr "round_mask_op4"): New.
28646 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
28648 (define_subst_attr "round_modev8sf_condition"): New.
28649 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
28651 (define_subst_attr "round_saeonly_mask_operand4"): New.
28652 (define_subst_attr "round_saeonly_mask_op4"): New.
28653 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
28654 V8DImode, V16SImode.
28655 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
28656 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
28657 (define_subst_attr "mask_expand4_args"): New.
28658 (define_subst "mask_expand4"): New.
28660 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28661 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28662 Anna Tikhonova <anna.tikhonova@intel.com>
28663 Ilya Tocar <ilya.tocar@intel.com>
28664 Andrey Turetskiy <andrey.turetskiy@intel.com>
28665 Ilya Verbin <ilya.verbin@intel.com>
28666 Kirill Yukhin <kirill.yukhin@intel.com>
28667 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28669 * config/i386/i386.md
28670 (define_attr "isa"): Add avx512bw,noavx512bw.
28671 (define_attr "enabled"): Ditto.
28672 (define_split): Add 32/64-bit mask logic.
28673 (define_insn "*k<logic>qi"): New.
28674 (define_insn "*k<logic>hi"): New.
28675 (define_insn "*anddi_1"): Add mask version.
28676 (define_insn "*andsi_1"): Ditto.
28677 (define_insn "*<code><mode>_1"): Ditto.
28678 (define_insn "*<code>hi_1"): Ditto.
28679 (define_insn "kxnor<mode>"): New.
28680 (define_insn "kunpcksi"): New.
28681 (define_insn "kunpckdi"): New.
28682 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
28683 (define_insn "*one_cmplhi2_1"): Ditto.
28685 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28686 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28687 Anna Tikhonova <anna.tikhonova@intel.com>
28688 Ilya Tocar <ilya.tocar@intel.com>
28689 Andrey Turetskiy <andrey.turetskiy@intel.com>
28690 Ilya Verbin <ilya.verbin@intel.com>
28691 Kirill Yukhin <kirill.yukhin@intel.com>
28692 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28694 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
28697 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28698 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28699 Anna Tikhonova <anna.tikhonova@intel.com>
28700 Ilya Tocar <ilya.tocar@intel.com>
28701 Andrey Turetskiy <andrey.turetskiy@intel.com>
28702 Ilya Verbin <ilya.verbin@intel.com>
28703 Kirill Yukhin <kirill.yukhin@intel.com>
28704 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28706 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
28708 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
28709 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
28710 xmm/ymm16+ when availble.
28711 * config/i386/i386.h
28712 (HARD_REGNO_NREGS): Add mask regs.
28713 (VALID_AVX512F_REG_MODE): Ditto.
28714 (VALID_AVX512F_REG_MODE) : Define.
28715 (VALID_MASK_AVX512BW_MODE): Ditto.
28716 (reg_class) (MASK_REG_P(X)): Define.
28717 * config/i386/i386.md: Do not split long moves with mask register,
28718 use kmovb if avx512bw is availible.
28719 (movdi_internal): Handle mask registers.
28721 2014-08-14 Richard Biener <rguenther@suse.de>
28723 PR tree-optimization/62081
28724 * tree-ssa-loop.c (pass_fix_loops): New pass.
28725 (pass_tree_loop::gate): Do not fixup loops here.
28726 * tree-pass.h (make_pass_fix_loops): Declare.
28727 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
28729 2014-08-14 Richard Biener <rguenther@suse.de>
28731 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
28732 (type_hash_canon): ... this and avoid 2nd lookup for the add.
28734 2014-08-14 Richard Biener <rguenther@suse.de>
28736 PR tree-optimization/62090
28737 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
28738 (fold_builtin_2): Do not fold sprintf.
28739 (fold_builtin_3): Likewise.
28740 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
28741 moved from builtins.c.
28742 (gimple_fold_builtin): Fold sprintf.
28744 2014-08-14 Richard Biener <rguenther@suse.de>
28746 PR rtl-optimization/62079
28747 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
28750 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
28752 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
28753 current_function_decl.
28755 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
28757 * cgraph.c (cgraph_node::function_symbol): Fix wrong
28758 cgraph_function_node to cgraph_node::function_symbol
28761 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
28763 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
28764 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
28766 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
28768 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
28771 2014-08-13 Roman Gareev <gareevroman@gmail.com>
28773 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
28776 2014-08-12 Jakub Jelinek <jakub@redhat.com>
28779 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
28780 any registers that are used in mem_insn.
28782 2014-08-12 Steve Ellcey <sellcey@mips.com>
28784 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
28786 2014-08-12 Steve Ellcey <sellcey@mips.com>
28788 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
28789 (MULTILIB_DIRNAMES): Ditto.
28790 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
28791 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
28792 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
28793 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
28794 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
28795 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
28797 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28800 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
28801 of __ARM_SIZEOF_WCHAR_T.
28803 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28806 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
28807 Remove unnecessary attributes.
28809 2014-08-12 Yury Gribov <y.gribov@samsung.com>
28811 * internal-fn.c (init_internal_fns): Fix off-by-one.
28813 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
28814 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28815 Anna Tikhonova <anna.tikhonova@intel.com>
28816 Ilya Tocar <ilya.tocar@intel.com>
28817 Andrey Turetskiy <andrey.turetskiy@intel.com>
28818 Ilya Verbin <ilya.verbin@intel.com>
28819 Kirill Yukhin <kirill.yukhin@intel.com>
28820 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28822 * config/i386/i386.c (standard_sse_constant_opcode): Use
28823 vpxord/vpternlog if avx512 is availible.
28825 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
28827 PR middle-end/62103
28828 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
28829 bitfields, that is when size doesn't match the size of type or the
28830 size of the constructor.
28832 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28834 * config/rs6000/constraints.md (wh constraint): New constraint,
28835 for FP registers if direct move is available.
28836 (wi constraint): New constraint, for VSX/FP registers that can
28837 handle 64-bit integers.
28838 (wj constraint): New constraint for VSX/FP registers that can
28839 handle 64-bit integers for direct moves.
28840 (wk constraint): New constraint for VSX/FP registers that can
28841 handle 64-bit doubles for direct moves.
28842 (wy constraint): Make documentation match implementation.
28844 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
28845 scalar_in_vmx_p field to simplify tests of whether SFmode or
28846 DFmode can go in the Altivec registers.
28847 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
28848 (rs6000_setup_reg_addr_masks): Likewise.
28849 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
28850 field, and wh/wi/wj/wk constraints.
28851 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
28852 the wh/wi/wj/wk constraints.
28853 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
28854 upper registers, prefer VSX registers unless the operation is a
28855 memory operation with REG+OFFSET addressing.
28857 * config/rs6000/vsx.md (VSr mode attribute): Add support for
28858 DImode. Change SFmode to use ww constraint instead of d to allow
28859 SF registers in the upper registers.
28862 (VSr5): Fix thinko in comment.
28863 (VSa): New mode attribute that is an alternative to wa, that
28864 returns the VSX register class that a mode can go in, but may not
28865 be the preferred register class.
28866 (VS_64dm): New mode attribute for appropriate register classes for
28867 referencing 64-bit elements of vectors for direct moves and normal
28869 (VS_64reg): Likewise.
28870 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
28871 register allocator to only registers the data type can handle.
28872 (vsx_le_perm_load_<mode>): Likewise.
28873 (vsx_le_perm_store_<mode>): Likewise.
28874 (vsx_xxpermdi2_le_<mode>): Likewise.
28875 (vsx_xxpermdi4_le_<mode>): Likewise.
28876 (vsx_lxvd2x2_le_<mode>): Likewise.
28877 (vsx_lxvd2x4_le_<mode>): Likewise.
28878 (vsx_stxvd2x2_le_<mode>): Likewise.
28879 (vsx_add<mode>3): Likewise.
28880 (vsx_sub<mode>3): Likewise.
28881 (vsx_mul<mode>3): Likewise.
28882 (vsx_div<mode>3): Likewise.
28883 (vsx_tdiv<mode>3_internal): Likewise.
28884 (vsx_fre<mode>2): Likewise.
28885 (vsx_neg<mode>2): Likewise.
28886 (vsx_abs<mode>2): Likewise.
28887 (vsx_nabs<mode>2): Likewise.
28888 (vsx_smax<mode>3): Likewise.
28889 (vsx_smin<mode>3): Likewise.
28890 (vsx_sqrt<mode>2): Likewise.
28891 (vsx_rsqrte<mode>2): Likewise.
28892 (vsx_tsqrt<mode>2_internal): Likewise.
28893 (vsx_fms<mode>4): Likewise.
28894 (vsx_nfma<mode>4): Likewise.
28895 (vsx_eq<mode>): Likewise.
28896 (vsx_gt<mode>): Likewise.
28897 (vsx_ge<mode>): Likewise.
28898 (vsx_eq<mode>_p): Likewise.
28899 (vsx_gt<mode>_p): Likewise.
28900 (vsx_ge<mode>_p): Likewise.
28901 (vsx_xxsel<mode>): Likewise.
28902 (vsx_xxsel<mode>_uns): Likewise.
28903 (vsx_copysign<mode>3): Likewise.
28904 (vsx_float<VSi><mode>2): Likewise.
28905 (vsx_floatuns<VSi><mode>2): Likewise.
28906 (vsx_fix_trunc<mode><VSi>2): Likewise.
28907 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
28908 (vsx_x<VSv>r<VSs>i): Likewise.
28909 (vsx_x<VSv>r<VSs>ic): Likewise.
28910 (vsx_btrunc<mode>2): Likewise.
28911 (vsx_b2trunc<mode>2): Likewise.
28912 (vsx_floor<mode>2): Likewise.
28913 (vsx_ceil<mode>2): Likewise.
28914 (vsx_<VS_spdp_insn>): Likewise.
28915 (vsx_xscvspdp): Likewise.
28916 (vsx_xvcvspuxds): Likewise.
28917 (vsx_float_fix_<mode>2): Likewise.
28918 (vsx_set_<mode>): Likewise.
28919 (vsx_extract_<mode>_internal1): Likewise.
28920 (vsx_extract_<mode>_internal2): Likewise.
28921 (vsx_extract_<mode>_load): Likewise.
28922 (vsx_extract_<mode>_store): Likewise.
28923 (vsx_splat_<mode>): Likewise.
28924 (vsx_xxspltw_<mode>): Likewise.
28925 (vsx_xxspltw_<mode>_direct): Likewise.
28926 (vsx_xxmrghw_<mode>): Likewise.
28927 (vsx_xxmrglw_<mode>): Likewise.
28928 (vsx_xxsldwi_<mode>): Likewise.
28929 (vsx_xscvdpspn): Tighten constraints to only use register classes
28931 (vsx_xscvspdpn): Likewise.
28932 (vsx_xscvdpspn_scalar): Likewise.
28934 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
28935 wj, and wk constraints.
28936 (GPR_REG_CLASS_P): New helper macro for register classes targeting
28937 general purpose registers.
28939 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
28941 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
28942 DImode instead of wm. Use wk constraint for direct move of DFmode
28944 (extendsidi2_lfiwax): Likewise.
28945 (lfiwax): Likewise.
28946 (lfiwzx): Likewise.
28947 (movdi_internal64): Likewise.
28949 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
28950 wk constraints. Make the wy constraint documentation match them
28953 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
28955 Replacement of isl_int by isl_val
28956 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
28957 (compute_bounds_for_param): use isl_val instead of isl_int
28958 (compute_bounds_for_loop): likewise
28959 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
28960 (build_linearized_memory_access): use isl_val instead of isl_int
28961 (pdr_stride_in_loop): likewise
28962 * graphite-optimize-isl.c:
28963 (getPrevectorMap): use isl_val instead of isl_int
28965 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
28966 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
28967 (extern the_isl_ctx): declare
28968 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
28969 (extract_affine_gmp): likewise
28971 (build_loop_iteration_domains): likewise
28972 (add_param_constraints): likewise
28974 2014-08-11 Richard Biener <rguenther@suse.de>
28976 PR tree-optimization/62075
28977 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
28978 handle uses in patterns.
28980 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
28981 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28982 Anna Tikhonova <anna.tikhonova@intel.com>
28983 Ilya Tocar <ilya.tocar@intel.com>
28984 Andrey Turetskiy <andrey.turetskiy@intel.com>
28985 Ilya Verbin <ilya.verbin@intel.com>
28986 Kirill Yukhin <kirill.yukhin@intel.com>
28987 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28989 * common/config/i386/i386-common.c
28990 (OPTION_MASK_ISA_AVX512VL_SET): Define.
28991 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
28992 (ix86_handle_option): Handle OPT_mavx512vl.
28993 * config/i386/cpuid.h (bit_AVX512VL): Define.
28994 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
28995 set -mavx512vl accordingly.
28996 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
28997 OPTION_MASK_ISA_AVX512VL.
28998 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
28999 (ix86_option_override_internal): Define PTA_AVX512VL, handle
29000 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
29001 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
29002 * config/i386/i386.h (TARGET_AVX512VL): Define.
29003 (TARGET_AVX512VL_P(x)): Ditto.
29004 * config/i386/i386.opt: Add mavx512vl.
29006 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
29008 PR tree-optimization/62073
29009 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
29012 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
29013 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
29014 Anna Tikhonova <anna.tikhonova@intel.com>
29015 Ilya Tocar <ilya.tocar@intel.com>
29016 Andrey Turetskiy <andrey.turetskiy@intel.com>
29017 Ilya Verbin <ilya.verbin@intel.com>
29018 Kirill Yukhin <kirill.yukhin@intel.com>
29019 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29021 * common/config/i386/i386-common.c
29022 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
29023 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
29024 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
29025 (ix86_handle_option): Handle OPT_mavx512bw.
29026 * config/i386/cpuid.h (bit_AVX512BW): Define.
29027 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
29028 set -mavx512bw accordingly.
29029 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29030 OPTION_MASK_ISA_AVX512BW.
29031 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
29032 (ix86_option_override_internal): Define PTA_AVX512BW, handle
29033 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
29034 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
29035 * config/i386/i386.h (TARGET_AVX512BW): Define.
29036 (TARGET_AVX512BW_P(x)): Ditto.
29037 * config/i386/i386.opt: Add mavx512bw.
29039 2014-08-11 Richard Biener <rguenther@suse.de>
29041 PR tree-optimization/62070
29042 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
29043 Remove SSA checking.
29045 2014-08-11 Yury Gribov <y.gribov@samsung.com>
29047 * asan.c (asan_check_flags): New enum.
29048 (build_check_stmt_with_calls): Removed function.
29049 (build_check_stmt): Split inlining logic to
29050 asan_expand_check_ifn.
29051 (instrument_derefs): Rename parameter.
29052 (instrument_mem_region_access): Rename parameter.
29053 (instrument_strlen_call): Likewise.
29054 (asan_expand_check_ifn): New function.
29055 (asan_instrument): Remove old code.
29056 (pass_sanopt::execute): Change handling of
29057 asan-instrumentation-with-call-threshold.
29058 (asan_clear_shadow): Fix formatting.
29059 (asan_function_start): Likewise.
29060 (asan_emit_stack_protection): Likewise.
29061 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
29062 Update description.
29063 * internal-fn.c (expand_ASAN_CHECK): New function.
29064 * internal-fn.def (ASAN_CHECK): New internal function.
29065 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
29066 Update description.
29067 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
29068 * tree.c: Small comment fix.
29070 2014-08-11 Yury Gribov <y.gribov@samsung.com>
29072 * gimple.c (gimple_call_fnspec): Support internal functions.
29073 (gimple_call_return_flags): Use const.
29074 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
29075 * internal-fn.def: Add fnspec information.
29076 * internal-fn.h (internal_fn_fnspec): New function.
29077 (init_internal_fns): Declare new function.
29078 * internal-fn.c (internal_fn_fnspec_array): New global variable.
29079 (init_internal_fns): New function.
29080 * tree-core.h: Update macro call.
29081 * tree.c (build_common_builtin_nodes): Initialize internal fns.
29083 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
29085 * lto-streamer.h (struct output_block::symbol): Change from
29086 struct symtab_node to plain symtab_node.
29087 (referenced_from_this_partition_p): Change first parameter
29088 from struct symtab_node to plain symtab_node.
29090 2014-08-10 Marek Polacek <polacek@redhat.com>
29093 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
29095 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
29097 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
29098 DECL correctly; do not give up on types in static storage.
29100 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
29102 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
29104 2014-08-09 Roman Gareev <gareevroman@gmail.com>
29106 * graphite-isl-ast-to-gimple.c:
29107 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
29109 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
29111 2014-08-08 Guozhi Wei <carrot@google.com>
29113 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
29115 2014-08-08 Cary Coutant <ccoutant@google.com>
29117 * dwarf2out.c (get_skeleton_type_unit): Remove.
29118 (output_skeleton_debug_sections): Remove skeleton type units.
29119 (output_comdat_type_unit): Likewise.
29120 (dwarf2out_finish): Likewise.
29122 2014-08-07 Yi Yang <ahyangyi@google.com>
29124 * predict.c (expr_expected_value_1): Remove the redundant assignment.
29126 2014-08-08 Richard Biener <rguenther@suse.de>
29128 * lto-streamer.h (struct lto_input_block): Make it a class
29129 with a constructor.
29130 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
29131 (struct lto_function_header, struct lto_simple_header,
29132 struct lto_simple_header_with_strings,
29133 struct lto_decl_header, struct lto_function_header): Make
29134 a simple inheritance hieararchy. Remove unused fields.
29135 (struct lto_asm_header): Remove.
29136 * lto-streamer-out.c (produce_asm): Adjust.
29137 (lto_output_toplevel_asms): Likewise.
29138 (produce_asm_for_decls): Likewise.
29139 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
29140 * data-streamer-in.c (string_for_index): Likewise.
29141 * ipa-inline-analysis.c (inline_read_section): Likewise.
29142 * ipa-prop.c (ipa_prop_read_section): Likewise.
29143 (read_replacements_section): Likewise.
29144 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
29145 * lto-section-in.c (lto_create_simple_input_block): Likewise.
29146 (lto_destroy_simple_input_block): Likewise.
29147 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
29148 (lto_input_toplevel_asms): Likewise.
29150 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
29151 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
29152 Anna Tikhonova <anna.tikhonova@intel.com>
29153 Ilya Tocar <ilya.tocar@intel.com>
29154 Andrey Turetskiy <andrey.turetskiy@intel.com>
29155 Ilya Verbin <ilya.verbin@intel.com>
29156 Kirill Yukhin <kirill.yukhin@intel.com>
29157 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29159 * common/config/i386/i386-common.c
29160 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
29161 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
29162 (ix86_handle_option): Handle OPT_mavx512dq.
29163 * config/i386/cpuid.h (bit_AVX512DQ): Define.
29164 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
29165 set -mavx512dq accordingly.
29166 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29167 OPTION_MASK_ISA_AVX512DQ.
29168 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
29169 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
29170 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
29171 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
29172 * config/i386/i386.h (TARGET_AVX512DQ): Define.
29173 (TARGET_AVX512DQ_P(x)): Ditto.
29174 * config/i386/i386.opt: Add mavx512dq.
29176 2014-08-08 Richard Biener <rguenther@suse.de>
29178 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
29179 target_percent, target_percent_s): Export.
29180 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
29181 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
29182 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
29183 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
29184 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
29185 Move to gimple-fold.c.
29186 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
29188 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
29189 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
29190 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
29191 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
29192 (rewrite_call_expr_array): Remove.
29193 (fold_builtin_sprintf_chk): Likewise.
29194 (fold_builtin_snprintf_chk): Likewise.
29195 (fold_builtin_varargs): Remove handling of sprintf_chk,
29196 vsprintf_chk, snprintf_chk and vsnprintf_chk.
29197 (gimple_fold_builtin_sprintf_chk): Remove.
29198 (gimple_fold_builtin_snprintf_chk): Likewise.
29199 (gimple_fold_builtin_varargs): Likewise.
29200 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
29201 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
29202 * gimple.c (gimple_seq_add_seq_without_update): New function.
29203 * gimple.h (gimple_seq_add_seq_without_update): Declare.
29204 * gimple-fold.c: Include output.h.
29205 (gsi_replace_with_seq_vops): New function, split out from ...
29206 (gimplify_and_update_call_from_tree): ... here.
29207 (replace_call_with_value): New function.
29208 (replace_call_with_call_and_fold): Likewise.
29209 (var_decl_component_p): Moved from builtins.c.
29210 (gimple_fold_builtin_memory_op): Moved from builtins.c
29211 fold_builtin_memory_op and rewritten to GIMPLE.
29212 (gimple_fold_builtin_memset): Likewise.
29213 (gimple_fold_builtin_strcpy): Likewise.
29214 (gimple_fold_builtin_strncpy): Likewise.
29215 (gimple_fold_builtin_strcat): Likewise.
29216 (gimple_fold_builtin_fputs): Likewise.
29217 (gimple_fold_builtin_memory_chk): Likewise.
29218 (gimple_fold_builtin_stxcpy_chk): Likewise.
29219 (gimple_fold_builtin_stxncpy_chk): Likewise.
29220 (gimple_fold_builtin_snprintf_chk): Likewise.
29221 (gimple_fold_builtin_sprintf_chk): Likewise.
29222 (gimple_fold_builtin_strlen): New function.
29223 (gimple_fold_builtin_with_strlen): New function split out from
29224 gimple_fold_builtin.
29225 (gimple_fold_builtin): Change signature and handle
29226 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
29227 here. Call gimple_fold_builtin_with_strlen.
29228 (gimple_fold_call): Adjust.
29230 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
29232 * calls.c (precompute_arguments): Check
29233 promoted_for_signed_and_unsigned_p and set the promoted mode.
29234 (promoted_for_signed_and_unsigned_p): New function.
29235 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
29236 and set the promoted mode.
29237 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
29238 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
29239 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
29242 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
29244 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
29245 instead of SUBREG_PROMOTED_UNSIGNED_SET.
29246 (expand_call): Likewise.
29247 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
29248 to get promoted mode.
29249 * combine.c (record_promoted_value): Skip > 0 comparison with
29250 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
29251 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
29252 of SUBREG_PROMOTED_UNSIGNED_P.
29253 (convert_modes): Likewise.
29254 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
29255 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
29256 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
29257 SUBREG_PROMOTED_UNSIGNED_SET.
29258 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
29259 instead of SUBREG_PROMOTED_UNSIGNED_SET.
29260 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
29261 SUBREG_PROMOTED_SET.
29262 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
29263 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
29264 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
29265 of SUBREG_PROMOTED_UNSIGNED_P.
29266 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
29267 (SUBREG_PROMOTED_SET): New define.
29268 (SUBREG_PROMOTED_GET): Likewise.
29269 (SUBREG_PROMOTED_SIGN): Likewise.
29270 (SUBREG_PROMOTED_SIGNED_P): Likewise.
29271 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
29272 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
29273 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
29274 instead of SUBREG_PROMOTED_UNSIGNED_GET.
29275 (nonzero_bits1): Skip > 0 comparison with the results as
29276 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
29277 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
29278 of !SUBREG_PROMOTED_UNSIGNED_P.
29279 * simplify-rtx.c (simplify_unary_operation_1): Use new
29280 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
29281 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
29282 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
29283 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
29285 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
29287 * ipa-devirt.c: Include gimple-pretty-print.h
29288 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
29290 (decl_maybe_in_construction_p): Fix conditional on cdtor check
29291 (get_polymorphic_call_info): Fix return value
29292 (type_change_info): New sturcture based on ipa-prop
29294 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
29295 based on ipa-prop variant.
29296 (extr_type_from_vtbl_ptr_store): New function
29297 based on ipa-prop variant.
29298 (record_known_type): New function.
29299 (check_stmt_for_type_change): New function.
29300 (get_dynamic_type): New function.
29301 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
29302 * tree-ssa-pre.c: ipa-utils.h
29303 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
29304 machinery; sanity check with ipa-prop devirtualization.
29305 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
29308 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
29310 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
29311 * alias.c, cfgexpand.c, cgraphbuild.c,
29312 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
29313 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
29314 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
29315 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
29316 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
29317 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
29318 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
29319 dse.c, except.c, gengtype.c, gimple-expr.c,
29320 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
29321 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
29322 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
29323 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
29324 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
29325 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
29327 * pointer-set.c: Remove file.
29328 * pointer-set.h: Remove file.
29330 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29332 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
29333 * config/arm/types.md (f_sels, f_seld): Delete.
29335 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29337 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
29338 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
29339 (aarch64_movdi_<mode>high): Likewise.
29340 (aarch64_mov<mode>high_di): Likewise.
29341 (aarch64_movdi_<mode>low): Likewise.
29342 (aarch64_mov<mode>low_di): Likewise.
29343 (aarch64_movtilow_tilow): Likewise.
29344 Add comment explaining usage of fp,simd attributes and of
29345 TARGET_FLOAT and TARGET_SIMD.
29347 2014-08-07 Ian Bolton <ian.bolton@arm.com>
29348 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29350 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
29351 Use MOVN when one of the half-words is 0xffff.
29353 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
29355 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
29357 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29359 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
29360 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
29361 (rfs_str): String corresponding to RFS_* constants.
29362 (rank_for_schedule_stats_t): New typedef.
29363 (rank_for_schedule_stats): New static variable.
29364 (rfs_result): New static function.
29365 (rank_for_schedule): Track statistics for deciding heuristics.
29366 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
29368 (ready_sort): Use them for debug printouts.
29369 (schedule_block): Init statistics state. Print statistics on
29370 rank_for_schedule decisions.
29372 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29374 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
29376 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
29378 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
29381 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
29383 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
29384 function to not conflict.
29385 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
29386 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
29387 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
29388 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
29389 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
29392 2014-08-07 Marek Polacek <polacek@redhat.com>
29394 * fold-const.c (fold_binary_loc): Add folding of
29395 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
29397 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
29399 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
29400 instead of type size.
29401 (ASM_FINISH_DECLARE_OBJECT): Likewise.
29403 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
29405 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
29406 (*thumb1_movqi_insn): Likewise.
29407 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
29409 2014-08-07 Tom de Vries <tom@codesourcery.com>
29411 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
29412 (glibc_2_11_or_earlier): Remove effective-target keywords.
29414 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
29416 * config/arm/arm.c (bdesc_2arg): Fix typo.
29417 (arm_atomic_assign_expand_fenv): Remove The default implementation.
29419 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
29421 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
29423 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
29426 * haifa-sched.c (advance_one_cycle): Fix dump.
29427 (schedule_block): Don't advance cycle if we are already at the
29428 beginning of the cycle.
29430 2014-08-06 Martin Jambor <mjambor@suse.cz>
29433 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
29435 2014-08-06 Richard Biener <rguenther@suse.de>
29438 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
29440 (lto_input_tree): Pop SCCs here.
29442 2014-08-06 Richard Biener <rguenther@suse.de>
29444 PR tree-optimization/61320
29445 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
29446 handle misaligned loads.
29448 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
29450 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
29451 (aarch64_expand_vec_perm_const): Check for dup before zip.
29453 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29455 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
29456 CONST_INT_P instead of GET_CODE and compare.
29457 (aarch64_select_cc_mode): Likewise.
29458 (aarch64_print_operand): Likewise.
29459 (aarch64_rtx_costs): Likewise.
29460 (aarch64_simd_valid_immediate): Likewise.
29461 (aarch64_simd_check_vect_par_cnst_half): Likewise.
29462 (aarch64_simd_emit_pair_result_insn): Likewise.
29464 2014-08-05 David Malcolm <dmalcolm@redhat.com>
29466 * gdbhooks.py (find_gcc_source_dir): New helper function.
29467 (class PassNames): New class, locating and parsing passes.def.
29468 (class BreakOnPass): New command "break-on-pass".
29470 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
29472 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
29475 2014-08-05 Richard Biener <rguenther@suse.de>
29477 PR rtl-optimization/61672
29478 * emit-rtl.h (mem_attrs_eq_p): Declare.
29479 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
29480 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
29481 * cfgcleanup.c (merge_memattrs): Likewise.
29482 Include emit-rtl.h.
29484 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29486 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
29487 rather than singleton vectors.
29488 (vqdmlsls_lane_s32): Likewise.
29490 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29492 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
29493 Use VSDQ_HSI mode iterator.
29494 (aarch64_sqrdmulh_laneq<mode>): Likewise.
29495 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
29496 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
29497 Use BUILTIN_VDQHS macro.
29498 (sqrdmulh_laneq): Likewise.
29499 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
29500 (vqdmlals_laneq_s32): Likewise.
29501 (vqdmlslh_laneq_s16): Likewise.
29502 (vqdmlsls_laneq_s32): Likewise.
29503 (vqdmulhh_laneq_s16): Likewise.
29504 (vqdmulhs_laneq_s32): Likewise.
29505 (vqrdmulhh_laneq_s16): Likewise.
29506 (vqrdmulhs_laneq_s32): Likewise.
29508 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29510 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
29511 (vmuld_laneq_f64): Likewise.
29512 (vmuls_laneq_f32): Likewise.
29513 (vmul_n_f64): Likewise.
29514 (vmuld_lane_f64): Reimplement in C.
29515 (vmuls_lane_f32): Likewise.
29517 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29519 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
29521 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
29523 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29525 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
29526 (rbitsi2): Likewise.
29527 (*arm_rev): Set predicable and predicable_short_it attributes.
29529 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29531 * convert.c (convert_to_integer): Guard transformation to lrint by
29534 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
29536 * config/aarch64/aarch64-builtins.c
29537 (aarch64_simd_builtin_type_mode): Delete.
29538 (v8qi_UP): Remap to V8QImode.
29539 (v4hi_UP): Remap to V4HImode.
29540 (v2si_UP): Remap to V2SImode.
29541 (v2sf_UP): Remap to V2SFmode.
29542 (v1df_UP): Remap to V1DFmode.
29543 (di_UP): Remap to DImode.
29544 (df_UP): Remap to DFmode.
29545 (v16qi_UP):V16QImode.
29546 (v8hi_UP): Remap to V8HImode.
29547 (v4si_UP): Remap to V4SImode.
29548 (v4sf_UP): Remap to V4SFmode.
29549 (v2di_UP): Remap to V2DImode.
29550 (v2df_UP): Remap to V2DFmode.
29551 (ti_UP): Remap to TImode.
29552 (ei_UP): Remap to EImode.
29553 (oi_UP): Remap to OImode.
29554 (ci_UP): Map to CImode.
29555 (xi_UP): Remap to XImode.
29556 (si_UP): Remap to SImode.
29557 (sf_UP): Remap to SFmode.
29558 (hi_UP): Remap to HImode.
29559 (qi_UP): Remap to QImode.
29560 (aarch64_simd_builtin_datum): Make mode a machine_mode.
29561 (VAR1): Build builtin name.
29562 (aarch64_init_simd_builtins): Remove dead code.
29564 2014-08-05 Roman Gareev <gareevroman@gmail.com>
29566 * graphite-isl-ast-to-gimple.c:
29567 (set_options): New function.
29568 (scop_to_isl_ast): Add calling of set_options.
29570 2014-08-05 Jakub Jelinek <jakub@redhat.com>
29572 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
29573 (analyze_iv_to_split_insn): Don't initialize them.
29574 (get_ivts_expr): Removed.
29575 (allocate_basic_variable, insert_base_initialization): Use
29576 SET_SRC instead of *get_ivts_expr.
29577 (split_iv): Use &SET_SRC instead of get_ivts_expr.
29579 2014-08-05 Roman Gareev <gareevroman@gmail.com>
29581 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
29582 (translate_isl_ast_for_loop): Add checking of the
29583 flag_loop_parallelize_all.
29584 (ast_build_before_for): New function.
29585 (scop_to_isl_ast): Add checking of the
29586 flag_loop_parallelize_all.
29587 * graphite-dependences.c: Move the defenition of the
29588 scop_get_dependences from graphite-optimize-isl.c to this file.
29589 (apply_schedule_on_deps): Add checking of the ux's emptiness.
29590 (carries_deps): Add checking of the x's value.
29591 * graphite-optimize-isl.c: Move the defenition of the
29592 scop_get_dependences to graphite-dependences.c.
29593 * graphite-poly.h: Add declarations of scop_get_dependences
29596 2014-08-04 Rohit <rohitarulraj@freescale.com>
29599 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
29601 (alt_reg_names): Likewise.
29602 (rs6000_dwarf_register_span): For SPE high registers, replace
29603 dwarf register numbers with GCC hard register numbers.
29604 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
29605 (rs6000_dbx_register_number): For SPE high registers, return dwarf
29606 register number for the corresponding GCC hard register number.
29607 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
29608 newly added GCC hard register numbers for SPE high registers.
29609 (DWARF_FRAME_REGISTERS): Likewise.
29610 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
29611 (DWARF_FRAME_REGNUM): Likewise.
29612 (FIXED_REGISTERS): Likewise.
29613 (CALL_USED_REGISTERS): Likewise.
29614 (CALL_REALLY_USED_REGISTERS): Likewise.
29615 (REG_ALLOC_ORDER): Likewise.
29616 (enum reg_class): Likewise.
29617 (REG_CLASS_NAMES): Likewise.
29618 (REG_CLASS_CONTENTS): Likewise.
29619 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
29621 2014-08-04 Richard Biener <rguenther@suse.de>
29623 * gimple-fold.h (gimple_fold_builtin): Remove.
29624 * gimple-fold.c (gimple_fold_builtin): Make static.
29625 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
29626 fold_stmt, not gimple_fold_builtin.
29628 2014-08-04 Martin Liska <mliska@suse.cz>
29630 * cgraph.h (csi_end_p): Removed.
29631 (csi_next): Likewise.
29632 (csi_node): Likewise.
29633 (csi_start): Likewise.
29634 (cgraph_node_in_set_p): Likewise.
29635 (cgraph_node_set_size): Likewise.
29636 (vsi_end_p): Likewise.
29637 (vsi_next): Likewise.
29638 (vsi_node): Likewise.
29639 (vsi_start): Likewise.
29640 (varpool_node_set_size): Likewise.
29641 (cgraph_node_set_nonempty_p): Likewise.
29642 (varpool_node_set_nonempty_p): Likewise.
29643 * cgraphunit.c (cgraph_process_new_functions): vec replaces
29645 * ipa-inline-transform.c: Likewise.
29646 * ipa-utils.c (cgraph_node_set_new): Removed.
29647 (cgraph_node_set_add): Likewise.
29648 (cgraph_node_set_remove): Likewise.
29649 (cgraph_node_set_find): Likewise.
29650 (dump_cgraph_node_set): Likewise.
29651 (debug_cgraph_node_set): Likewise.
29652 (free_cgraph_node_set): Likewise.
29653 (varpool_node_set_new): Likewise.
29654 (varpool_node_set_add): Likewise.
29655 (varpool_node_set_remove): Likewise.
29656 (varpool_node_set_find): Likewise.
29657 (dump_varpool_node_set): Likewise.
29658 (free_varpool_node_set): Likewise.
29659 (debug_varpool_node_set): Likewise.
29660 * tree-emutls.c (struct tls_var_data):
29661 (emutls_index): Removed.
29662 (emutls_decl): Likewise.
29663 (gen_emutls_addr): Function implementation uses newly added
29664 hash_map<varpool_node *, tls_var_data>.
29665 (clear_access_vars): Likewise.
29666 (create_emultls_var): Likewise.
29667 (ipa_lower_emutls): Likewise.
29668 (reset_access): New function.
29670 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29672 * config/i386/i386.c (ix86_option_override_internal): Add
29673 PTA_RDRND and PTA_MOVBE for bdver4.
29675 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29676 James Greenhalgh <james.greenhalgh@arm.com>
29678 * doc/md.texi (clrsb): Document.
29679 (clz): Change reference to x into operand 1.
29681 (popcount): Likewise.
29683 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29686 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
29687 move to subtarget in serial version if result is ignored.
29689 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29690 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29692 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
29693 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
29694 (sched_analyze_insn): Update use of try_group_insn to
29695 sched_macro_fuse_insns.
29696 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
29697 arguments that are not conditional jumps.
29699 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29701 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's
29702 extended family information. Handle BTVER2 cpu with cpuid family value.
29704 2014-08-04 Tom de Vries <tom@codesourcery.com>
29706 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
29707 (glibc_2_11_or_earlier): Document effective-target keywords.
29709 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
29711 * ipa-devirt.c (odr_type_warn_count): Add type.
29712 (possible_polymorphic_call_targets): Set it.
29713 (ipa_devirt): Use it.
29715 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
29717 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
29719 * ipa-devirt.c: Include hash-map.h
29720 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
29721 (clear_speculation): Break out of ...
29722 (get_class_context): ... here; speed up handling obviously useless
29724 (odr_type_warn_count, decl_warn_count): New structures.
29725 (final_warning_record): New structure.
29726 (final_warning_records): New static variable.
29727 (possible_polymorphic_call_targets): Cleanup handling of
29728 speculative info; do not build speculation when user do not care;
29729 record info about warnings when asked for.
29730 (add_decl_warning): New function.
29731 (type_warning_cmp): New function.
29732 (decl_warning_cmp): New function.
29733 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
29734 (gate): Enable pass when warnings are requested.
29735 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
29738 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
29740 * hash-map.h (default_hashmap_traits::mark_key_deleted):
29742 (hash_map::remove): New method.
29743 (hash_map::traverse): New method.
29744 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
29745 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
29746 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
29747 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
29748 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
29749 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
29752 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
29754 * hash-set.h: new File.
29755 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
29756 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
29757 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
29758 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
29759 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
29760 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
29761 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
29762 varpool.c: Use hash_set instead of pointer_set.
29764 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
29766 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
29768 2014-08-01 Jiong Wang <jiong.wang@arm.com>
29770 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
29771 for frame access when strict_p is false.
29773 2014-08-01 Renlin Li <renlin.li@arm.com>
29774 2014-08-01 Jiong Wang <jiong.wang@arm.com>
29776 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
29777 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
29778 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
29780 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
29782 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
29783 aarch64_mem_pair_offset.
29785 2014-08-01 Jiong Wang <jiong.wang@arm.com>
29787 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
29789 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
29790 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
29792 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
29794 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
29796 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
29798 PR regression/61510
29799 * cgraphunit.c (analyze_functions): Use get_create rather than get
29800 for decls which are clones of abstract functions.
29802 2014-08-01 Martin Liska <mliska@suse.cz>
29804 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
29805 * ipa-prop.h (count_formal_params): Global function created from static.
29806 * ipa-prop.c (count_formal_params): Likewise.
29807 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
29808 profiles for semantically equivalent functions.
29809 * passes.c (do_per_function): If we load body of a function
29810 during WPA, this condition should behave same.
29811 * varpool.c (ctor_for_folding): More tolerant assert for variable
29812 aliases created during WPA.
29814 2014-08-01 Martin Liska <mliska@suse.cz>
29816 * doc/invoke.texi (Options That Control Optimization): Documentation
29817 for -foptimize-strlen introduced. Optimization levels default options
29820 2014-08-01 Jakub Jelinek <jakub@redhat.com>
29822 * opts.c (common_handle_option): Handle -fsanitize=alignment.
29823 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
29824 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
29826 * stor-layout.h (min_align_of_type): New prototype.
29827 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
29828 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
29830 * ubsan.c: Include builtins.h.
29831 (ubsan_expand_bounds_ifn): Change return type to bool,
29832 always return true.
29833 (ubsan_expand_null_ifn): Change return type to bool, change
29834 argument to gimple_stmt_iterator *. Handle both null and alignment
29835 sanitization, take type from ckind argument's type rather than
29837 (instrument_member_call): Removed.
29838 (instrument_mem_ref): Remove t argument, add mem and base arguments.
29839 Handle both null and alignment sanitization, don't say whole
29840 struct access is member access. Build 3 argument IFN_UBSAN_NULL
29841 call instead of 2 argument.
29842 (instrument_null): Adjust instrument_mem_ref caller. Don't
29843 instrument calls here.
29844 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
29845 like SANITIZE_NULL.
29846 * stor-layout.c (min_align_of_type): New function.
29847 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
29848 Or it into SANITIZE_UNDEFINED.
29849 * doc/invoke.texi (-fsanitize=alignment): Document.
29851 2014-07-31 Andi Kleen <ak@linux.intel.com>
29853 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
29855 2014-07-31 Andi Kleen <ak@linux.intel.com>
29857 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
29859 (vn_reference_compute_hash): Dito.
29860 (vn_nary_op_compute_hash): Dito.
29861 (vn_phi_compute_hash): Dito.
29862 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
29864 2014-07-31 Andi Kleen <ak@linux.intel.com>
29866 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
29867 Rename to inchash:add_expr_commutative. Convert to inchash.
29868 (iterative_hash_hashable_expr): Rename to
29869 inchash:add_hashable_expr. Convert to inchash.
29870 (avail_expr_hash): Dito.
29872 2014-07-31 Andi Kleen <ak@linux.intel.com>
29874 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
29875 Convert to inchash.
29877 2014-07-31 Andi Kleen <ak@linux.intel.com>
29879 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
29881 2014-07-31 Andi Kleen <ak@linux.intel.com>
29883 * Makefile.in (OBJS): Add rtlhash.o
29884 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
29885 (loc_checksum): Dito.
29886 (loc_checksum_ordered): Dito.
29887 (hash_loc_operands): Dito.
29889 (hash_loc_list): Dito.
29890 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
29891 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
29892 * rtlhash.c: New file.
29893 * rtlhash.h: New file.
29895 2014-07-31 Andi Kleen <ak@linux.intel.com>
29897 * inchash.h (inchash): Change inchash class to namespace.
29898 (class hash): ... Rename from inchash.
29899 (add_object): Move from macro to class template.
29900 * lto-streamer-out.c (hash_tree): Change inchash
29902 * tree.c (build_type_attribute_qual_variant): Dito.
29903 (type_hash_list): Dito.
29904 (attribute_hash_list): Dito.
29905 (iterative_hstate_expr): Rename to inchash::add_expr
29906 (build_range_type_1): Change inchash to inchash::hash
29907 and use hash::add_expr.
29908 (build_array_type_1): Dito.
29909 (build_function_type): Dito
29910 (build_method_type_directly): Dito.
29911 (build_offset_type): Dito.
29912 (build_complex_type): Dito.
29913 (make_vector_type): Dito.
29914 * tree.h (iterative_hash_expr): Dito.
29916 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
29918 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
29920 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
29922 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
29923 correct alphabetical position.
29924 (vpaddd_f64): Rewrite using builtins.
29925 (vpaddd_s64): Move to correct alphabetical position.
29928 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
29931 * config/sh/sh.c (sh_legitimate_address_p,
29932 sh_legitimize_reload_address): Handle reg+reg address modes when
29933 ALLOW_INDEXED_ADDRESS is false.
29934 * config/sh/predicates.md (general_movsrc_operand,
29935 general_movdst_operand): Likewise.
29937 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
29939 * config/aarch64/aarch64-builtins.c
29940 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
29943 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
29945 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
29946 the generated mask based on BYTES_BIG_ENDIAN.
29947 (aarch64_simd_check_vect_par_cnst_half): New.
29948 * config/aarch64/aarch64-protos.h
29949 (aarch64_simd_check_vect_par_cnst_half): New.
29950 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
29951 the check out to aarch64_simd_check_vect_par_cnst_half.
29952 (vect_par_cnst_lo_half): Likewise.
29953 * config/aarch64/aarch64-simd.md
29954 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
29955 (move_hi_quad_<mode>): Always generate a low mask.
29957 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29959 * doc/invoke.texi (AVR Options): Add documentation about
29960 __AVR_DEVICE_NAME__ built-in macro.
29962 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
29965 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
29966 constraints are satisfied.
29967 (<shift>di3_neon): Likewise.
29969 2014-07-31 Richard Biener <rguenther@suse.de>
29971 PR tree-optimization/61964
29972 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
29973 by structural equality.
29975 2014-07-31 Yury Gribov <y.gribov@samsung.com>
29977 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
29978 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
29979 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
29981 * gcc.c (sanitize_spec_function): Support new option.
29982 (SANITIZER_SPEC): Remove now redundant check.
29983 * opts.c (common_handle_option): Support new option.
29984 (finish_options): Check for incompatibilities.
29985 * toplev.c (process_options): Split userspace-specific checks.
29987 2014-07-31 Richard Biener <rguenther@suse.de>
29989 * lto-streamer.h (struct output_block): Remove global.
29990 (struct data_in): Remove labels, num_named_labels and
29991 num_unnamed_labels.
29992 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
29993 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
29995 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
29998 * common.opt (-Wreturn-local-addr): Moved from c.opt.
29999 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
30000 (isolate_path): New argument to avoid inserting a trap.
30001 (find_implicit_erroneous_behaviour): Handle returning the address
30002 of a local variable.
30003 (find_explicit_erroneous_behaviour): Likewise.
30005 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
30008 * toplev.c (init_random_seed): Move piece of code never called to
30010 (set_random_seed): see above.
30012 2014-07-31 Tom de Vries <tom@codesourcery.com>
30014 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
30016 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
30018 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
30019 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
30021 2014-07-31 Richard Biener <rguenther@suse.de>
30023 * data-streamer.h (streamer_write_data_stream): Declare here,
30025 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
30026 * lto-cgraph.c (lto_output_node): Adjust.
30027 (lto_output_varpool_node): Likewise.
30028 * data-streamer-out.c (streamer_string_index): Likewise.
30029 (streamer_write_data_stream, lto_append_block): Move from ...
30030 * lto-section-out.c (lto_output_data_stream,
30031 lto_append_block): ... here.
30033 2014-07-30 Mike Stump <mikestump@comcast.net>
30035 * configure.ac: Also check for popen.
30036 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
30037 * configure: Regenerate.
30038 * config.in: Regenerate.
30040 2014-07-30 Martin Jambor <mjambor@suse.cz>
30042 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
30043 parameter to gimple.
30045 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30047 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
30048 address as second parameter to __tpf_eh_return routine.
30050 2014-07-30 Jiong Wang <jiong.wang@arm.com>
30052 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
30055 2014-07-30 Tom Tromey <tromey@redhat.com>
30058 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
30059 * doc/extend.texi (Type Attributes): Document designated_init
30062 2014-07-30 Roman Gareev <gareevroman@gmail.com>
30064 * graphite-isl-ast-to-gimple.c:
30065 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
30066 (gcc_expression_from_isl_expression): Pass type to
30067 gcc_expression_from_isl_ast_expr_id.
30069 2014-07-30 Richard Biener <rguenther@suse.de>
30071 * lto-streamer.h (lto_write_data): New function.
30072 * langhooks.c (lhd_append_data): Do not free block.
30073 * lto-section-out.c (lto_write_data): New function writing
30074 raw data to the current section.
30075 (lto_write_stream): Adjust for langhook semantic change.
30076 (lto_destroy_simple_output_block): Write header directly.
30077 * lto-opts.c (lto_write_options): Write options directly.
30078 * lto-streamer-out.c (produce_asm): Write heaeder directly.
30079 (lto_output_toplevel_asms): Likewise.
30080 (copy_function_or_variable): Copy data directly.
30081 (write_global_references): Output index table directly.
30082 (lto_output_decl_state_refs): Likewise.
30083 (write_symbol): Write data directly.
30084 (produce_symtab): Adjust.
30085 (produce_asm_for_decls): Output header and refs directly.
30087 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
30089 * ipa-devirt.c (polymorphic_call_target_d): Rename
30090 nonconstruction_targets to speculative_targets
30091 (get_class_context): Fix handling of contextes without outer type;
30092 avoid matching non-polymorphic types in LTO.
30093 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
30094 parameter to speculative_targetsp; handle speculation.
30095 (dump_possible_polymorphic_call_targets): Update dumping.
30097 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
30099 * common.opt (Wodr): Enable by default.
30101 2014-07-29 Olivier Hainque <hainque@adacore.com>
30103 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
30105 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
30108 * gengtype.c (strtoken): New function.
30109 (create_user_defined_type): Replace strtok with strtoken.
30111 2014-07-29 Nathan Sidwell <nathan@acm.org>
30113 * gcov-io.c (gcov_var): Make hidden.
30114 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
30115 (gcov_do_dump): Declare.
30116 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
30118 2014-07-29 Martin Jambor <mjambor@suse.cz>
30120 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
30121 parameter to gimple.
30122 (sra_modify_assign): Likewise.
30124 2014-07-29 Richard Biener <rguenther@suse.de>
30126 PR middle-end/52478
30127 * expr.c (expand_expr_real_2): Revert last change.
30129 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
30131 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
30132 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
30133 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
30135 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
30136 (contains_type_p): Forward declare.
30137 (polymorphic_call_target_hasher::hash): Hash speculative info.
30138 (polymorphic_call_target_hasher::equal): Compare speculative info.
30139 (get_class_context): Handle speuclation.
30140 (contains_type_p): Update.
30141 (get_polymorphic_call_info_for_decl): Update.
30142 (walk_ssa_copies): Break out from ...
30143 (get_polymorphic_call_info): ... here; set speculative context
30145 * ipa-prop.c (ipa_write_indirect_edge_info,
30146 ipa_read_indirect_edge_info): Stream speculative context.
30147 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
30148 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
30149 SPECULATIVE_MAYBE_DERIVED_TYPE).
30150 (possible_polymorphic_call_targets overriders): Update.
30151 (dump_possible_polymorphic_call_targets overriders): Update.
30152 (dump_possible_polymorphic_call_target_p overriders): Update.
30154 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
30156 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
30157 ipa-devirt path; fix thinko there.
30159 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
30161 * config/i386/i386.c (ix86_return_in_memory): Replace one
30162 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
30164 2014-07-28 Marek Polacek <polacek@redhat.com>
30166 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
30168 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
30170 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
30171 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
30172 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
30173 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
30174 (USE_LD_AS_NEEDED): Likewise.
30175 (ASM_APP_ON): Likewise.
30176 (ASM_APP_OFF): Likewise.
30177 (TARGET_POSIX_IO): Likewise.
30178 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
30179 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
30180 (USE_LD_AS_NEEDED): Likewise.
30181 (ASM_APP_ON): Likewise.
30182 (ASM_APP_OFF): Likewise.
30183 (TARGET_POSIX_IO): Likewise.
30185 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
30187 PR middle-end/61734
30188 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
30189 operators other than the equality operators.
30191 2014-07-28 Richard Biener <rguenther@suse.de>
30193 PR middle-end/52478
30194 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
30195 sure to register SImode ones, not only >= word_mode ones.
30196 * expr.c (expand_expr_real_2): When expanding -ftrapv
30197 binops do not use OPTAB_LIB_WIDEN.
30199 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
30201 PR middle-end/61919
30202 * tree-outof-ssa.c (insert_partition_copy_on_edge)
30203 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
30204 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
30205 inserting them in the insn stream.
30207 2014-07-28 Marek Polacek <polacek@redhat.com>
30209 PR middle-end/61913
30210 * common.opt (Wodr): Add Var.
30212 2014-07-28 Richard Biener <rguenther@suse.de>
30214 PR tree-optimization/61921
30215 * tree-ssa-structalias.c (create_variable_info_for_1): Check
30216 if there is a varpool node before dereferencing it.
30218 2014-07-28 Roman Gareev <gareevroman@gmail.com>
30220 * graphite-sese-to-poly.c:
30221 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
30222 id of the pbb), which contains pointer to the pbb1.
30224 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
30226 2014-07-28 Roman Gareev <gareevroman@gmail.com>
30228 * graphite-isl-ast-to-gimple.c:
30229 (graphite_create_new_guard): New function.
30230 (translate_isl_ast_node_if): New function.
30231 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
30233 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
30235 2014-07-27 Anthony Green <green@moxielogic.com>
30237 * config.gcc: Add moxie-*-moxiebox* configuration.
30238 * config/moxie/moxiebox.h: New file.
30240 2014-07-26 Andrew Pinski <apinski@cavium.com>
30242 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
30243 from the read only register.
30245 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
30247 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
30248 as the allocation class if it isn't likely to be spilled.
30250 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
30252 * rtl.h (tls_referenced_p): Declare.
30253 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
30254 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
30255 (mips_cannot_force_const_mem): Use tls_referenced_p.
30256 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
30257 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
30258 instead of pa_tls_referenced_p.
30259 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
30260 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
30261 (pa_legitimate_constant_p): Likewise.
30262 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
30263 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
30264 (rs6000_cannot_force_const_mem, rs6000_emit_move)
30265 (rs6000_address_for_altivec): Use tls_referenced_p instead of
30266 rs6000_tls_referenced_p.
30267 (rs6000_tls_symbol_ref_1): Delete.
30269 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
30272 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30273 Optimize inverse of a VEC_CONCAT.
30275 2014-07-25 Xinliang David Li <davidxl@google.com>
30277 * params.def: New parameter.
30278 * coverage.c (get_coverage_counts): Check new flag.
30279 (coverage_compute_profile_id): Check new flag.
30280 (coverage_begin_function): Check new flag.
30281 (coverage_end_function): Check new flag.
30282 * value-prof.c (coverage_node_map_initialized_p): New function.
30283 (init_node_map): Populate map with all functions.
30284 * doc/invoke.texi: Document new parameter.
30286 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
30287 Richard Biener <rguenther@suse.de>
30289 * lto-streamer-out.c (struct sccs): Turn to ...
30290 (class DFS): ... this one; refactor the DFS walk so it can
30291 be re-done on per-SCC basis.
30292 (DFS::DFS): New constructor.
30293 (DFS::~DFS): New destructor.
30294 (hash_tree): Add new MAP argument holding in-SCC hash values;
30295 remove POINTER_TYPE hashing hack.
30296 (scc_entry_compare): Rename to ...
30297 (DFS::scc_entry_compare): ... this one.
30298 (hash_scc): Rename to ...
30299 (DFS::hash_scc): ... this one; pass output_block instead
30300 of streamer_cache; work harder to get unique and stable SCC
30302 (DFS_write_tree): Rename to ...
30303 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
30304 (lto_output_tree): Update.
30306 2014-07-25 Andi Kleen <ak@linux.intel.com>
30308 * lto-streamer-out.c (hash_tree): Convert to inchash.
30310 2014-07-25 Andi Kleen <ak@linux.intel.com>
30312 * tree.c (build_type_attribute_qual_variant): Use inchash.
30313 (type_hash_list): Dito.
30314 (attribute_hash_list): Dito
30315 (iterative_hstate_expr): Dito.
30316 (iterative_hash_expr): Dito.
30317 (build_range_type_1): Dito.
30318 (build_array_type_1): Dito.
30319 (build_function_type): Dito.
30320 (build_method_type_directly): Dito.
30321 (build_offset_type): Dito.
30322 (build_complex_type): Dito.
30323 (make_vector_type): Dito.
30324 * tree.h (iterative_hash_expr): Add compat wrapper.
30325 (iterative_hstate_expr): Add.
30327 2014-07-25 Andi Kleen <ak@linux.intel.com>
30329 * Makefile.in (OBJS): Add inchash.o.
30330 (PLUGIN_HEADERS): Add inchash.h.
30331 * ipa-devirt.c: Include inchash.h.
30332 * lto-streamer-out.c: Dito.
30333 * tree-ssa-dom.c: Dito.
30334 * tree-ssa-pre.c: Dito.
30335 * tree-ssa-sccvn.c: Dito.
30336 * tree-ssa-tail-merge.c: Dito.
30338 * tree.c (iterative_hash_hashval_t): Move to ...
30339 (iterative_hash_host_wide_int): Move to ...
30340 * inchash.c: Here. New file.
30341 * tree.h (iterative_hash_hashval_t): Move to ...
30342 (iterative_hash_host_wide_int): Move to ...
30343 * inchash.h: Here. New file.
30345 2014-07-25 Richard Biener <rguenther@suse.de>
30347 PR middle-end/61762
30348 PR middle-end/61894
30349 * fold-const.c (native_encode_int): Add and handle offset
30350 parameter to do partial encodings of expr.
30351 (native_encode_fixed): Likewise.
30352 (native_encode_real): Likewise.
30353 (native_encode_complex): Likewise.
30354 (native_encode_vector): Likewise.
30355 (native_encode_string): Likewise.
30356 (native_encode_expr): Likewise.
30357 * fold-const.c (native_encode_expr): Add offset parameter
30359 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
30360 (fold_ctor_reference): Handle all reads from tcc_constant
30363 2014-07-25 Richard Biener <rguenther@suse.de>
30365 * tree-inline.c (estimate_move_cost): Mark speed_p argument
30366 as possibly unused.
30368 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30370 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
30372 2014-07-24 Kyle McMartin <kyle@redhat.com>
30374 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
30376 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30378 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
30380 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
30382 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
30383 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
30384 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
30386 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30388 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
30389 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
30390 aggregate types. Instead, *all* aggregate types, except for single-
30391 element or homogeneous float/vector aggregates, are quadword-aligned
30392 if required by their type alignment. Issue -Wpsabi note when a type
30393 is now treated differently than before.
30395 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30397 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
30398 does not fit fully into floating-point registers, and there is still
30399 space in the register parameter area, use GPRs to pass those parts
30400 of the argument. Issue -Wpsabi note if any parameter is now treated
30401 differently than before.
30402 (rs6000_arg_partial_bytes): Update.
30404 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
30406 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
30408 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
30410 * rtl.h (target_rtl): Remove lang_dependent_initialized.
30411 * toplev.c (initialize_rtl): Don't use it. Move previously
30412 "language-dependent" calls to...
30413 (backend_init): ...here.
30414 (lang_dependent_init_target): Don't set lang_dependent_initialized.
30415 Assert that RTL initialization hasn't happend yet.
30417 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
30419 PR rtl-optimization/61629
30420 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
30421 they have already been initialized.
30423 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
30425 PR middle-end/61268
30426 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
30427 DECL_INCOMING_RTL and entry_parm.
30428 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
30429 * calls.c (load_register_parameters): Likewise argument values.
30430 (emit_library_call_value_1, store_one_arg): Likewise argument
30432 * config/i386/i386.c (assign_386_stack_local): Likewise the local
30434 * explow.c (validize_mem): Modify the argument in-place.
30436 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30438 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
30439 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
30441 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30443 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
30444 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
30446 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30448 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
30449 (aarch64_save_callee_saves): New parameter "skip_wb".
30450 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
30452 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30454 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
30456 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
30458 2014-07-24 Roman Gareev <gareevroman@gmail.com>
30460 * graphite-isl-ast-to-gimple.c:
30461 (graphite_create_new_loop): Add calling of isl_id_free to properly
30462 decrement reference counts.
30464 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
30466 2014-07-24 Martin Liska <mliska@suse.cz>
30467 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
30469 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
30470 (rs6000_code_end): Likewise.
30472 2014-07-24 Martin Liska <mliska@suse.cz>
30474 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
30475 symtab_node funtion used.
30476 (rs6000_xcoff_declare_object_name): Likewise.
30478 2014-07-24 Martin Liska <mliska@suse.cz>
30480 * cgraphunit.c (compile): Correct function used.
30482 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
30484 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
30487 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
30490 * varasm.c (bss_initializer_p): Handle offlined ctors.
30491 (align_variable, get_variable_align): Likewise.
30492 (make_decl_one_only): Likewise.
30493 (default_binds_local_p_1): Likewise.
30494 (decl_binds_to_current_def_p): Likewise.
30495 (get_variable_section): Get constructor if it is offlined.
30496 (assemble_variable_contents): Sanity check that the caller
30497 streamed in the ctor in LTO.
30499 2014-07-24 Roman Gareev <gareevroman@gmail.com>
30501 * graphite-isl-ast-to-gimple.c:
30502 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
30503 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
30504 isl_ast_op_pdiv_r to the different case.
30506 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
30508 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30510 PR middle-end/61876
30511 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
30512 when flag_errno_math is on.
30514 2014-07-24 Martin Liska <mliska@suse.cz>
30516 * cgraph.h (varpool_node):
30517 (availability get_availability (void)):
30518 created from cgraph_variable_initializer_availability
30519 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
30520 created from: cgraph_variable_initializer_availability
30521 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
30522 (void finalize_named_section_flags (void)):
30523 created from varpool_finalize_named_section_flags
30524 (bool assemble_decl (void)): created from varpool_assemble_decl
30525 (void analyze (void)): created from varpool_analyze_node
30526 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
30527 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
30528 (void remove_initializer (void)): created from varpool_remove_initializer
30529 (tree get_constructor (void)): created from varpool_get_constructor
30530 (bool externally_visible_p (void)): created from varpool_externally_visible_p
30531 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
30532 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
30533 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
30534 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
30535 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
30536 (static bool output_variables (void)): created from varpool_output_variables
30537 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
30538 created from varpool_extra_name_alias
30539 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
30540 (static void dump_varpool (FILE *f)): created from dump_varpool
30541 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
30542 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
30543 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
30544 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
30545 (void assemble_aliases (void)): created from assemble_aliases
30547 2014-07-24 Martin Liska <mliska@suse.cz>
30549 * cgraph.h (symtab_node):
30550 (void register_symbol (void)): created from symtab_register_node
30551 (void remove (void)): created from symtab_remove_node
30552 (void dump (FILE *f)): created from dump_symtab_node
30553 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
30554 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
30555 (struct ipa_ref *add_reference (symtab_node *referred_node,
30556 enum ipa_ref_use use_type)): created from add_reference
30557 (struct ipa_ref *add_reference (symtab_node *referred_node,
30558 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
30559 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
30560 gimple stmt)): created from maybe_add_reference
30561 (bool semantically_equivalent_p (symtab_node *target)): created from
30562 symtab_semantically_equivalent_p
30563 (void remove_from_same_comdat_group (void)): created from
30564 remove_from_same_comdat_group
30565 (void add_to_same_comdat_group (symtab_node *old_node)): created from
30566 symtab_add_to_same_comdat_group
30567 (void dissolve_same_comdat_group_list (void)): created from
30568 symtab_dissolve_same_comdat_group_list
30569 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
30570 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
30571 created from symtab_alias_ultimate_target
30572 (inline symtab_node *next_defined_symbol (void)): created from
30573 symtab_next_defined_symbol
30574 (bool resolve_alias (symtab_node *target)): created from
30575 symtab_resolve_alias
30576 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
30577 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
30578 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
30579 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
30580 (void set_section (const char *section)): created from set_section_1
30581 (enum availability get_availability (void)): created from symtab_node_availability
30582 (void make_decl_local (void)): created from symtab_make_decl_local
30583 (bool real_symbol_p (void)): created from symtab_read_node
30584 (can_be_discarded_p (void)): created from symtab_can_be_discarded
30585 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
30586 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
30587 symtab_in_same_comdat_p;
30588 (bool address_taken_from_non_vtable_p (void)): created from
30589 address_taken_from_non_vtable_p
30590 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
30591 (static void dump_table (FILE *)): created from dump_symtab
30592 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
30593 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
30594 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
30595 symtab_used_from_object_file_p
30596 (void dump_base (FILE *)): created from dump_symtab_base
30597 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
30598 (void unregister (void)): created from symtab_unregister_node
30599 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
30600 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
30601 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
30602 symtab_nonoverwritable_alias_1
30603 * cgraph.h (cgraph_node):
30604 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
30605 created from cgraph_remove_node_and_inline_clones
30606 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
30607 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
30608 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
30609 (cgraph_node *function_symbol (enum availability *avail = NULL)):
30610 created from cgraph_function_node
30611 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
30612 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
30613 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
30614 created from cgraph_create_clone
30615 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
30616 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
30617 created from cgraph_create_virtual_clone
30618 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
30619 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
30620 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
30621 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
30622 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
30623 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
30624 created from cgraph_function_version_info
30625 (struct cgraph_function_version_info *insert_new_function_version (void)):
30626 created from insert_new_cgraph_node_version
30627 (struct cgraph_function_version_info *function_version (void)): created from
30628 get_cgraph_node_version
30629 (void analyze (void)): created from analyze_function
30630 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
30631 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
30632 tree real_alias) cgraph_add_thunk
30633 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
30634 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
30635 created from cgraph_function_or_thunk_node
30636 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
30637 created from expand_thunk
30638 (void reset (void)): created from cgraph_reset_node
30639 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
30640 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
30641 (void remove (void)): created from cgraph_remove_node
30642 (void dump (FILE *f)): created from dump_cgraph_node
30643 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
30644 (bool get_body (void)): created from cgraph_get_body
30645 (void release_body (void)): created from cgraph_release_function_body
30646 (void unnest (void)): created from cgraph_unnest_node
30647 (void make_local (void)): created from cgraph_make_node_local
30648 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
30649 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
30650 gcov_type count, int freq)): created from cgraph_create_edge
30651 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
30652 gcov_type count, int freq)): created from cgraph_create_indirect_edge
30653 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
30654 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
30655 created from cgraph_create_edge_including_clones
30656 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
30657 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
30658 (void remove_callers (void)): created from cgraph_node_remove_callers
30659 (void remove_callees (void)): created from cgraph_node_remove_callees
30660 (enum availability get_availability (void)): created from cgraph_function_body_availability
30661 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
30662 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
30663 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
30664 (void call_duplication_hooks (cgraph_node *node2)): created from
30665 cgraph_call_node_duplication_hooks
30666 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
30667 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
30668 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
30669 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
30670 (void call_function_insertion_hooks (void)):
30671 created from cgraph_call_function_insertion_hooks
30672 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
30673 (bool local_p (void)): created from cgraph_local_node
30674 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
30675 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
30676 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
30677 (inline bool only_called_directly_or_aliased_p (void)):
30678 created from cgraph_only_called_directly_or_aliased_p
30679 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
30680 created from cgraph_will_be_removed_from_program_if_no_direct_calls
30681 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
30682 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
30683 (bool can_remove_if_no_direct_calls_p (void)):
30684 created from cgraph_can_remove_if_no_direct_calls_p
30685 (inline bool has_gimple_body_p (void)):
30686 created from cgraph_function_with_gimple_body_p
30687 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
30688 (static void dump_cgraph (FILE *f)): created from dump_cgraph
30689 (static inline void debug_cgraph (void)): created from debug_cgraph
30690 (static void record_function_versions (tree decl1, tree decl2)):
30691 created from record_function_versions
30692 (static void delete_function_version (tree decl)):
30693 created from delete_function_version
30694 (static void add_new_function (tree fndecl, bool lowered)):
30695 created from cgraph_add_new_function
30696 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
30697 (static cgraph_node * create (tree decl)): created from cgraph_create_node
30698 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
30699 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
30700 (static cgraph_node *get_for_asmname (tree asmname)):
30701 created from cgraph_node_for_asm
30702 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
30703 created from cgraph_same_body_alias
30704 (static bool used_from_object_file_p_worker (cgraph_node *node,
30705 void *): new function
30706 (static bool non_local_p (cgraph_node *node, void *)):
30707 created from cgraph_non_local_node_p_1
30708 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
30709 created from verify_cgraph
30710 (static bool make_local (cgraph_node *node, void *)):
30711 created from cgraph_make_node_local
30712 (static cgraph_node *create_alias (tree alias, tree target)):
30713 created from cgraph_create_function_alias
30714 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
30715 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
30716 created from cgraph_create_edge_1
30717 * cgraph.h (varpool_node):
30718 (void remove (void)): created from varpool_remove_node
30719 (void dump (FILE *f)): created from dump_varpool_node
30721 2014-07-24 Richard Biener <rguenther@suse.de>
30724 * tree-ssa-structalias.c (create_variable_info_for_1):
30725 Use varpool_get_constructor.
30726 (create_variable_info_for): Likewise.
30728 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30730 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
30731 subtract outgoing area size when restoring stack_pointer_rtx.
30733 2014-07-24 Nick Clifton <nickc@redhat.com>
30735 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
30736 that operations are taking place in parallel.
30737 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
30739 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
30741 * omp-low.c (extract_omp_for_data): Add missing break statement.
30743 2014-07-24 Richard Biener <rguenther@suse.de>
30745 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
30746 * tree-inline.c (estimate_move_cost): Add speed_p parameter
30747 and adjust MOVE_RATIO query accordingly.
30748 (estimate_num_insns): Adjust callers.
30749 * ipa-prop.c (ipa_populate_param_decls): Likewise.
30750 * ipa-cp.c (gather_context_independent_values,
30751 estimate_local_effects): Likewise.
30752 * ipa-split.c (consider_split): Likewise.
30754 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
30756 * config/i386/driver-i386.c: Remove names of unused arguments and
30757 unnecessary unused attributes.
30758 * config/i386/host-mingw32.c: Likewise.
30759 * config/i386/i386.c: Likewise.
30760 * config/i386/winnt-stubs.c: Likewise.
30761 * config/i386/winnt.c: Likewise.
30763 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30765 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
30766 (aarch64_gen_loadwb_pair): New helper function.
30767 (aarch64_expand_epilogue): Simplify code using new helper functions.
30768 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
30770 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30772 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
30773 (aarch64_gen_storewb_pair): New helper function.
30774 (aarch64_expand_prologue): Simplify code using new helper functions.
30775 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
30777 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30779 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
30780 Rename to aarch64_save_callee_saves, remove restore code.
30781 (aarch64_restore_callee_saves): New function.
30783 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30785 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
30786 (aarch64_save_callee_saves): New function to handle reg save
30787 for both core and vectore regs.
30789 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30791 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
30792 (aarch64_gen_store_pair): New helper function.
30793 (aarch64_save_or_restore_callee_save_registers)
30794 (aarch64_save_or_restore_fprs): Use new helper functions.
30796 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30798 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
30799 (aarch64_save_or_restore_callee_save_registers)
30800 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
30802 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30804 * config/aarch64/aarch64.c
30805 (aarch64_save_or_restore_callee_save_registers)
30806 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
30808 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30810 * config/aarch64/aarch64.c
30811 (aarch64_save_or_restore_callee_save_registers)
30812 (aarch64_save_or_restore_fprs): Remove 'increment'.
30814 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30816 * config/aarch64/aarch64.c
30817 (aarch64_save_or_restore_callee_save_registers)
30818 (aarch64_save_or_restore_fprs): Use register offset in
30819 cfun->machine->frame.reg_offset.
30821 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30823 * config/aarch64/aarch64.c
30824 (aarch64_save_or_restore_callee_save_registers)
30825 (aarch64_save_or_restore_fprs): Remove base_rtx.
30827 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30829 * config/aarch64/aarch64.c
30830 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
30831 to 'start_offset'. Remove local variable 'start_offset'.
30833 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30835 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
30836 type to HOST_WIDE_INT.
30838 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30840 * config/aarch64/aarch64.c (aarch64_expand_prologue)
30841 (aarch64_save_or_restore_fprs)
30842 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
30844 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
30846 * config/arm/t-rtems-eabi: Add
30847 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
30848 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
30849 mbig-endian/mthumb/march=armv7-r, and
30850 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
30853 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
30854 Chris Johns <chrisj@rtems.org>
30855 Joel Sherrill <joel.sherrill@oarcorp.com>
30857 * config.gcc: Add nios2-*-rtems*.
30858 * config/nios2/rtems.h: New file.
30859 * gcc/config/nios2/t-rtems: New file.
30861 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
30864 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
30865 constant numbers, not general constants.
30866 (rs6000_expand_vector_init): Ditto.
30868 2014-07-23 Nathan Sidwell <nathan@acm.org>
30870 * gcov-tool.c (gcov_list): Declare here.
30871 (set_gcov_list): Remove.
30872 (gcov_output_files): Set gcov_list directly.
30874 2014-07-23 Host Schirmeier <horst@schirmeier.com>
30876 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
30878 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30880 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
30881 callee-saved registers are available for padding purpose
30882 and r3 is not mandatory, then prefer use those callee-saved
30885 2014-07-23 Richard Biener <rguenther@suse.de>
30887 * params.def (PARAM_MAX_COMBINE_INSNS): New.
30888 * combine.c: Include statistics.h and params.h.
30889 (combine_instructions): Guard three and four insn combines
30890 with max-combine-insns value. Record statistics for combines
30892 * doc/invoke.texi (max-combine-insns): Document new param.
30894 2014-07-23 Roman Gareev <gareevroman@gmail.com>
30896 * graphite-isl-ast-to-gimple.c:
30897 (translate_isl_ast_node_block): New function.
30898 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
30900 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
30901 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
30903 2014-07-23 Roman Gareev <gareevroman@gmail.com>
30905 * graphite-isl-ast-to-gimple.c:
30906 (get_max_schedule_dimensions): New function.
30907 (extend_schedule): Likewise.
30908 (generate_isl_schedule): Add calling of extend_schedule and
30909 get_max_schedule_dimensions.
30911 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30913 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
30914 (case UNSPEC): Handle UNSPEC_RBIT.
30916 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30918 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
30919 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
30921 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30923 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
30925 2014-07-22 Roman Gareev <gareevroman@gmail.com>
30927 * graphite-isl-ast-to-gimple.c:
30928 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
30929 (ivs_params_clear):
30930 (build_iv_mapping): New function.
30931 (translate_isl_ast_node_user): Likewise.
30932 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
30934 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
30935 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
30936 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
30938 2014-07-21 Bin Cheng <bin.cheng@arm.com>
30941 * config/arm/arm.md (setmem): New pattern.
30942 * config/arm/arm-protos.h (struct tune_params): New fields.
30943 (arm_gen_setmem): New prototype.
30944 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
30945 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
30946 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
30947 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
30948 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
30949 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
30950 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
30951 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
30952 (arm_const_inline_cost): New function.
30953 (arm_block_set_max_insns): New function.
30954 (arm_block_set_non_vect_profit_p): New function.
30955 (arm_block_set_vect_profit_p): New function.
30956 (arm_block_set_unaligned_vect): New function.
30957 (arm_block_set_aligned_vect): New function.
30958 (arm_block_set_unaligned_non_vect): New function.
30959 (arm_block_set_aligned_non_vect): New function.
30960 (arm_block_set_vect, arm_gen_setmem): New functions.
30962 2014-07-21 Bin Cheng <bin.cheng@arm.com>
30964 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
30966 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
30969 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
30970 out of #ifdef __OPTIMIZE__.
30972 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
30974 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
30975 different trapping status if -fnon-call-exceptions is enabled.
30977 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
30979 * expr.c (store_field): Handle VOIDmode for calls that return values
30980 in multiple locations.
30982 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30984 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
30985 (altivec_vsldoi_<mode>): Likewise.
30987 2014-07-20 Roman Gareev <gareevroman@gmail.com>
30989 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
30990 to the number of characters in the line.
30992 2014-07-20 Roman Gareev <gareevroman@gmail.com>
30994 * graphite-isl-ast-to-gimple.c: Add using of
30995 build_nonstandard_integer_type instead of int128_integer_type_node.
30997 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
30999 * toplev.c (output_stack_usage): Adjust the location of the warning.
31001 2014-07-19 Daniel Cederman <cederman@gaisler.com>
31003 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
31004 (*membar_storeload): Disable for LEON3.
31006 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
31008 PR rtl-optimization/61461
31009 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
31011 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
31014 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
31015 Fix instruction constraint.
31016 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
31018 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
31020 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
31022 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
31024 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
31025 GNU coding standards.
31026 (nds32_register_move_cost): Likewise.
31027 (nds32_memory_move_cost): Likewise.
31028 (nds32_address_cost): Likewise.
31030 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31032 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
31034 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
31036 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
31037 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
31038 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
31039 (HAVE_sync_compare_and_swapqi): Define.
31040 (HAVE_sync_compare_and_swaphi): Likewise.
31041 (HAVE_sync_compare_and_swapsi): Likewise.
31043 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
31045 * config/mips/p5600.md: Add missing cpu tests.
31047 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31049 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
31050 (vmla_f64): Likewise.
31051 (vfms_f64): Likewise.
31052 (vmls_f64): Likewise.
31054 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31056 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
31057 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
31059 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31061 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
31062 (vmlal_high_lane_s32): Likewise.
31063 (vmlal_high_lane_u16): Likewise.
31064 (vmlal_high_lane_u32): Likewise.
31065 (vmlsl_high_lane_s16): Likewise.
31066 (vmlsl_high_lane_s32): Likewise.
31067 (vmlsl_high_lane_u16): Likewise.
31068 (vmlsl_high_lane_u32): Likewise.
31070 2014-07-17 Terry Guo <terry.guo@arm.com>
31072 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
31073 (alus_reg): Renamed to alus_sreg.
31074 * config/arm/arm-fixed.md: Change type of non-dsp instructions
31075 from alu_reg to alu_sreg. Change type of dsp instructions from
31076 alu_reg to alu_dsp_reg.
31077 * config/arm/thumb1.md: Likewise.
31078 * config/arm/thumb2.md: Likewise.
31079 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
31080 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
31081 with alu_sreg and alus_sreg.
31082 * config/arm/arm1026ejs.md (alu_op): Likewise.
31083 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
31084 * config/arm/arm926ejs.md (9_alu_op): Likewise.
31085 * config/arm/fa526.md (526_alu_op): Likewise.
31086 * config/arm/fa606te.md (606te_alu_op): Likewise.
31087 * config/arm/fa626te.md (626te_alu_op): Likewise.
31088 * config/arm/fa726te.md (726te_alu_op): Likewise.
31089 * config/arm/fmp626.md (mp626_alu_op): Likewise.
31090 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
31091 alu_sreg, alu_dsp_reg and alus_sreg.
31092 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
31093 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
31094 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
31095 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
31096 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
31097 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
31098 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
31099 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
31100 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
31101 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
31102 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
31103 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
31104 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
31105 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
31106 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
31107 alus_reg to alus_sreg.
31109 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
31111 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
31114 2014-07-17 Richard Biener <rguenther@suse.de>
31116 PR rtl-optimization/61801
31117 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
31118 don't set reg_pending_barrier if it appears in a debug-insn.
31120 2014-07-16 DJ Delorie <dj@redhat.com>
31122 * config/rx/rx.c (rx_option_override): Fix alignment values.
31123 (rx_align_for_label): Likewise.
31125 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
31128 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
31129 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
31130 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
31132 (cris_print_index, cris_print_operand, cris_constant_index_p)
31133 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
31134 (cris_address_cost): Ditto last CONSTANT_P.
31135 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
31136 callers changed. Yield cris_offsettable_symbol for non-PIC
31137 constant symbolic expressions including labels. Yield cris_unspec
31139 (cris_expand_pic_call_address): New parameter MARKERP. Set its
31140 target to pic_offset_table_rtx for calls that will likely go
31141 through PLT, const0_rtx when they can't. All callers changed.
31142 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
31143 symbolic expressions to be PICified. Remove second, redundant,
31144 assert on can_create_pseudo_p returning non-zero. Use
31145 replace_equiv_address_nv, not replace_equiv_address, for final
31147 * config/cris/cris.md ("movsi"): Move variable t to pattern
31148 toplevel. Adjust assert for new cris_symbol_type member. Use
31149 CONSTANT_P instead of CONSTANT_ADDRESS_P.
31150 ("*movsi_internal") <case 9>: Make check for valid unspec operands
31152 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
31153 ("call", "call_value"): Use second incoming operand as a marker
31154 for pic-offset-table-register being used.
31155 ("*expanded_call_non_v32", "*expanded_call_v32")
31156 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
31157 second incoming operand to CALL, match cris_call_type_marker.
31158 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
31159 ("*expanded_call_side"): Ditto. Fix typo in comment.
31160 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
31162 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
31163 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
31164 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
31165 users changed. Add members cris_offsettable_symbol and cris_unspec.
31166 (cris_symbol_type): Rename from cris_pic_symbol_type.
31167 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
31169 * config/cris/cris-protos.h (cris_symbol_type_of,
31170 cris_expand_pic_call_address): Adjust prototypes.
31171 (cris_legitimate_constant_p): New prototype.
31173 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
31174 an existing tmake_file. Don't add t-slibgcc and t-linux.
31176 2014-07-17 Jason Merrill <jason@redhat.com>
31179 * symtab.c (symtab_remove_from_same_comdat_group): Also
31180 set_comdat_group to NULL_TREE.
31181 (verify_symtab): Fix diagnostic.
31183 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
31186 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
31188 2014-07-16 Dodji Seketeli <dodji@redhat.com>
31190 Support location tracking for built-in macro tokens
31191 * input.h (is_location_from_builtin_token): New function declaration.
31192 * input.c (is_location_from_builtin_token): New function definition.
31193 * toplev.c (general_init): Tell libcpp what the pre-defined
31194 spelling location for built-in tokens is.
31196 2014-07-16 Jakub Jelinek <jakub@redhat.com>
31198 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
31199 on the FUNCTION_DECL.
31201 2014-07-16 Richard Biener <rguenther@suse.de>
31204 * doc/extend.texi (always_inline): Clarify.
31206 2014-07-15 Eric Christopher <echristo@gmail.com>
31208 * doc/invoke.texi (Link Options): Document -z option.
31210 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
31212 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
31213 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
31215 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
31217 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
31219 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
31221 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
31222 varpool_assemble_decl.
31223 * varpool.c (varpool_assemble_decl): Assert that node->definition is
31226 2014-07-15 Michael Matz <matz@suse.de>
31228 PR rtl-optimization/61772
31229 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
31231 2014-07-15 Richard Biener <rguenther@suse.de>
31233 * opts.c (default_options_table): Disable bit-ccp at -Og.
31235 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
31237 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
31239 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
31241 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
31242 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
31243 call langhook for unknown declaration.
31244 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
31245 * tree.h (DECL_ARGUMENTS): Update.
31246 * print-tree.c (print_node): Update.
31247 * tree-core.h (tree_decl_non_common): Remove arguments.
31248 (tree_function_decl): Add arguments.
31250 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
31252 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
31254 2014-07-14 Richard Biener <rguenther@suse.de>
31256 PR tree-optimization/61779
31257 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
31258 simplifying a condition.
31260 2014-07-14 Richard Biener <rguenther@suse.de>
31262 * builtins.c (c_strlen): Make only_value == 2 really only
31263 affect warning generation.
31265 2014-07-14 Richard Biener <rguenther@suse.de>
31267 PR tree-optimization/61757
31268 PR tree-optimization/61783
31269 PR tree-optimization/61787
31270 * tree-ssa-dom.c (record_equality): Revert canonicalization
31271 change and add comment.
31272 (propagate_rhs_into_lhs): Revert previous fix, removing
31273 loop depth restriction again.
31275 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31277 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
31278 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
31279 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
31280 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
31281 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
31282 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
31283 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
31285 2014-07-14 Richard Biener <rguenther@suse.de>
31287 * cgraph.h (decl_in_symtab_p): Make inline.
31289 2014-07-14 Jakub Jelinek <jakub@redhat.com>
31291 PR middle-end/61294
31292 * doc/invoke.texi (-Wmemset-transposed-args): Document.
31295 * config/i386/i386.c (classify_argument): Don't merge classes above
31298 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
31300 * cgraph.h (symtab_node): Add nonzero_address.
31301 (decl_in_symtab_p): Break out from ...
31302 (symtab_get_node): ... here.
31303 * fold-const.c: Include cgraph.h
31304 (tree_single_nonzero_warnv_p): Use symtab to determine
31305 if symbol is non-zero.
31306 * symtab.c (symtab_node::nonzero_address): New method.
31308 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
31310 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
31311 forgotten in previous commit.
31313 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
31315 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
31317 * ipa-devirt.c: Include stor-layout.h and intl.h
31318 (odr_subtypes_equivalent_p): New function.
31319 (warn_odr): New function.
31320 (warn_type_mismatch): New function.
31321 (odr_types_equivalent_p): New function.
31322 (add_type_duplicate): Use it.
31323 * common.opt (Wodr): New flag.
31324 * doc/invoke.texi (Wodr): Document new warning.
31326 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
31328 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
31329 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
31330 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
31331 (varpool_get_constructor): Push CTORS_IN timevar.
31332 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
31334 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
31336 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
31337 Remove VOID_FTYPE_PUSHORT.
31338 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
31339 Change code to USHORT_FTYPE_VOID.
31340 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
31341 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
31342 (ix86_atomic_assign_expand_fenv): Update for
31343 __builtin_ia32_fnstsw changes.
31344 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
31345 (fnstsw): Change operand 0 to nonimmediate operand.
31347 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
31349 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
31350 (varpool_get_constructor): New function.
31351 (varpool_ctor_useable_for_folding_p): Break out from ...
31352 (ctor_for_folding): ... here; use varpool_get_constructor.
31353 (varpool_assemble_decl): Likewise.
31354 * lto-streamer.h (struct output_block): Turn cgraph_node
31356 (lto_input_variable_constructor): Declare.
31357 * ipa-visibility.c (function_and_variable_visibility): Use
31358 varpool_get_constructor.
31359 * cgraph.h (varpool_get_constructor): Declare.
31360 (varpool_ctor_useable_for_folding_p): New function.
31361 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
31362 parameter; return error_mark_node for non-trivial constructors.
31363 (lto_write_tree_1, DFS_write_tree): Update use of
31364 get_symbol_initial_value.
31365 (output_function): Update initialization of symbol.
31366 (output_constructor): New function.
31367 (copy_function): Rename to ..
31368 (copy_function_or_variable): ... this one; handle vars too.
31369 (lto_output): Output variable sections.
31370 * lto-streamer-in.c (input_constructor): New function.
31371 (lto_read_body): Rename from ...
31372 (lto_read_body_or_constructor): ... this one; handle vars too.
31373 (lto_input_variable_constructor): New function.
31374 * ipa-prop.c (ipa_prop_write_jump_functions,
31375 ipa_prop_write_all_agg_replacement): Update.
31376 * lto-cgraph.c (compute_ltrans_boundary): Use it.
31377 (output_cgraph_opt_summary): Set symbol to NULL.
31379 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
31381 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
31382 non-polymorphic types.
31383 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
31384 * ipa-devirt.c (types_same_for_odr): Do not explode when one
31385 of types is not polymorphic.
31387 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
31389 * lra-constraints.c (remove_inheritance_pseudos): Process
31390 destination pseudo too.
31392 2014-07-11 Rong Xu <xur@google.com>
31394 * gcov-tool.c (gcov_output_files): Fix build error introduced in
31397 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
31399 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
31400 * config/avr/avr-devices.c (AVR_MCU): Same.
31401 (avr_mcu_types): add text start value to end of device list.
31402 * config/avr/avr-mcus.def: Add text section start for all devices.
31403 (ata5782): Add new avr5 device.
31405 * config/avr/avr-tables.opt: Regenerate.
31406 * config/avr/avr.h: Add declaration for text section start handler.
31407 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
31409 (LINK_SPEC): Include text section start handler to linker spec.
31410 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
31411 pass -Ttext option to linker if the text section start for the device
31413 * config/avr/t-multilib: Regenerate.
31414 * doc/avr-mmcu.texi: Regenerate.
31416 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
31418 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
31419 * config/rs6000/aix52.h (LINK_SPEC): Same.
31420 * config/rs6000/aix53.h (LINK_SPEC): Same.
31421 * config/rs6000/aix61.h (LINK_SPEC): Same.
31422 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
31424 2014-07-11 Roman Gareev <gareevroman@gmail.com>
31426 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
31427 (graphite_verify): New function.
31428 (ivs_params_clear): New function.
31429 (gcc_expression_from_isl_ast_expr_id): New function.
31430 (gcc_expression_from_isl_expr_int): New function.
31431 (binary_op_to_tree): New function.
31432 (ternary_op_to_tree): New function.
31433 (unary_op_to_tree): New function.
31434 (nary_op_to_tree): New function.
31435 (gcc_expression_from_isl_expr_op): New function.
31436 (gcc_expression_from_isl_expression): New function.
31437 (graphite_create_new_loop): New function.
31438 (translate_isl_ast_for_loop): New function.
31439 (get_upper_bound): New function.
31440 (graphite_create_new_loop_guard): New function.
31441 (translate_isl_ast_node_for): New function.
31442 (translate_isl_ast): New function.
31443 (add_parameters_to_ivs_params): New function.
31444 (scop_to_isl_ast): New parameter ip.
31445 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
31447 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
31449 * config/xtensa/predicates.md (call expander): Update for
31450 DECL_SECTION_NAME being string.
31452 2014-07-11 Richard Biener <rguenther@suse.de>
31454 PR middle-end/61473
31455 * builtins.c (fold_builtin_memory_op): Inline memory moves that
31456 can be implemented with a single load followed by a single store.
31457 (c_strlen): Only warn when only_value is not 2.
31459 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
31461 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
31463 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
31466 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
31467 (*movhi_bytes): Likewise.
31468 (*arm_movqi_insn): Likewise.
31470 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
31473 * config/alpha/alpha.c: Include tree-pass.h, context.h
31474 and pass_manager.h.
31475 (pass_data_handle_trap_shadows): New pass.
31476 (pass_handle_trap_shadows::gate): New pass gate function.
31477 (make_pass_handle_trap_shadows): New function.
31478 (rest_of_handle_trap_shadows): Ditto.
31480 (alpha_align_insns_1): Rename from alpha_align_insns.
31481 (pass_data_align_insns): New pass.
31482 (pass_align_insns::gate): New pass gate function.
31483 (make_pass_aling_insns): New function.
31484 (rest_of_align_insns): Ditto.
31485 (alpha_align_insns): Ditto.
31487 (alpha_option_override): Declare handle_trap_shadows info
31488 and align_insns_info. Register handle_trap_shadows and align_insns
31490 (alpha_reorg): Do not call alpha_trap_shadows and
31491 alpha_align_insn from here.
31493 (alpha_pad_function_end): Do not skip BARRIERs.
31495 2014-07-10 Rong Xu <xur@google.com>
31497 Add gcov-tool: an offline gcda profile processing tool support.
31498 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
31499 (gcov_is_error): Ditto.
31500 (gcov_read_string): Ditto.
31501 (gcov_read_sync): Ditto.
31502 * gcov-io.h: Move counter defines to gcov-counter.def.
31503 * gcov-dump.c (tag_counters): Use gcov-counter.def.
31504 * coverage.c: Ditto.
31505 * gcov-tool.c: Offline gcda profile processing tool.
31506 (unlink_gcda_file): Remove one gcda file.
31507 (unlink_profile_dir): Remove gcda files from the profile path.
31508 (gcov_output_files): Output gcda files to an output dir.
31509 (profile_merge): Merge two profiles in directory.
31510 (print_merge_usage_message): Print merge usage.
31511 (merge_usage): Print merge usage and exit.
31512 (do_merge): Driver for profile merge sub-command.
31513 (profile_rewrite): Rewrite profile.
31514 (print_rewrite_usage_message): Print rewrite usage.
31515 (rewrite_usage): Print rewrite usage and exit.
31516 (do_rewrite): Driver for profile rewrite sub-command.
31517 (print_usage): Print gcov-info usage and exit.
31518 (print_version): Print gcov-info version.
31519 (process_args): Process arguments.
31520 (main): Main routine for gcov-tool.
31521 * Makefile.in: Build and install gcov-tool.
31522 * gcov-counter.def: New file split from gcov-io.h.
31523 * doc/gcc.texi: Include gcov-tool.texi.
31524 * doc/gcov-tool.texi: Document for gcov-tool.
31526 2014-07-10 Richard Biener <rguenther@suse.de>
31528 PR tree-optimization/61757
31529 * tree-ssa-dom.c (loop_depth_of_name): Restore.
31530 (propagate_rhs_into_lhs): Revert part of last change.
31532 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
31534 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
31537 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
31539 PR middle-end/53590
31540 * function.c (allocate_struct_function): Revert r188667 change.
31542 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
31544 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
31546 * doc/install.texi: Remove links to defunct package providers for
31549 2014-07-09 Tom de Vries <tom@codesourcery.com>
31551 * final.c (get_call_fndecl): Declare.
31552 (self_recursive_call_p): New function.
31553 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
31555 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31557 * ipa-devirt.c (record_node): Walk through aliases.
31559 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31561 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
31563 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31566 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
31568 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31570 * ipa-visibility.c (function_and_variable_visibility): Remove
31571 temporary hack disabling local aliases on AIX.
31573 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31575 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
31576 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
31578 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31580 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
31581 * rs6000/rs6000.c: Inline output of .set instruction.
31582 (declare_alias_data): New struct.
31583 (rs6000_declare_alias): New function.
31584 (rs6000_xcoff_declare_function_name): Use it.
31585 (rs6000_xcoff_declare_object_name): New function.
31586 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
31587 (ASM_OUTPUT_DEF): Turn to empty definition.
31589 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
31592 * hash-table.h: use hash_table::value_type instead of
31593 Descriptor::value_type in the return types of several methods.
31595 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
31597 * tree-pass.h (pass_data): Remove has_execute member.
31598 * passes.c (execute_one_pass): Don't check pass->has_execute.
31599 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
31600 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
31601 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
31602 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
31603 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
31604 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
31605 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
31606 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
31607 gimple-low.c, gimple-ssa-isolate-paths.c,
31608 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
31609 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
31610 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
31611 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
31612 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
31613 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
31614 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
31615 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
31616 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
31617 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
31618 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
31619 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
31620 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
31621 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
31622 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
31623 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
31624 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
31625 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
31626 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
31627 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
31628 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
31629 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
31630 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
31631 web.c: Remove initializer for pass_data::has_execute.
31633 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
31635 * graphite-htab.h: Use hash_map instead of hash_table.
31636 * graphite-clast-to-gimple.c: Adjust.
31637 * passes.c: Use hash_map instead of hash_table.
31638 * sese.c: Likewise.
31639 * sese.h: Remove now unused code.
31641 2014-07-08 Sriraman Tallam <tmsriram@google.com>
31644 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
31647 2014-07-08 Jakub Jelinek <jakub@redhat.com>
31649 PR rtl-optimization/61673
31650 * combine.c (simplify_comparison): Test just mode's sign bit
31651 in tmode rather than the sign bit and any bits above it.
31653 2014-07-08 Roman Gareev <gareevroman@gmail.com>
31655 * graphite-isl-ast-to-gimple.c (generate_isl_context):
31656 Add __isl_give to the declaration.
31657 (generate_isl_schedule): Likewise.
31658 (scop_to_isl_ast): Likewise.
31660 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31662 * config/arm/arm.c (cortexa5_extra_costs): New table.
31663 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
31665 2014-07-08 Jakub Jelinek <jakub@redhat.com>
31667 PR tree-optimization/61725
31668 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
31669 range, use range_includes_zerop_p instead of integer_zerop on
31670 vr0->min, only use log2 of max if min is not negative.
31672 2014-07-08 Richard Biener <rguenther@suse.de>
31674 * tree-ssa-dom.h (loop_depth_of_name): Remove.
31675 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
31676 restriction on loop depth difference.
31677 (record_equality): Likewise.
31678 (propagate_rhs_into_lhs): Likewise. Simplify condition.
31679 (loop_depth_of_name): Remove.
31680 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
31681 restriction on loop depth difference.
31682 (init_copy_prop): Likewise.
31684 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31686 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
31688 (walk_aliased_vdefs): Likewise.
31689 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
31690 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
31691 (detect_type_change_from_memory_writes): Check if entry was reached.
31693 2014-07-08 Richard Biener <rguenther@suse.de>
31695 PR tree-optimization/61681
31696 * tree-ssa-structalias.c (find_what_var_points_to): Expand
31697 NONLOCAL inside ESCAPED.
31699 2014-07-08 Richard Biener <rguenther@suse.de>
31701 PR tree-optimization/61680
31702 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31703 Handle properly all read-write dependences with group accesses.
31705 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
31707 PR tree-optimization/61576
31708 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
31709 block containing reduction statement is predecessor of phi basi block.
31711 2014-07-08 Marek Polacek <polacek@redhat.com>
31714 * fold-const.c (round_up_loc): Change the parameter type.
31716 * fold-const.h (round_up_loc): Adjust declaration.
31717 * stor-layout.c (finalize_record_size): Check for too large types.
31719 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
31721 * symtab.c: Include calls.h.
31722 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
31724 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
31726 * config/rs6000/rs6000.c (output_vec_const_move): Handle
31727 little-endian code generation.
31728 * config/rs6000/spe.md (spe_evmergehi): Rename to...
31729 (vec_perm00_v2si): ... this. Handle little-endian code generation.
31730 (spe_evmergehilo): Rename to...
31731 (vec_perm01_v2si): ... this. Handle little-endian code generation.
31732 (spe_evmergelo): Rename to...
31733 (vec_perm11_v2si): ... this. Handle little-endian code generation.
31734 (spe_evmergelohi): Rename to...
31735 (vec_perm10_v2si): ... this. Handle little-endian code generation.
31736 (spe_evmergehi, spe_evmergehilo): New expanders.
31737 (spe_evmergelo, spe_evmergelohi): Likewise.
31738 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
31739 (*frob_tf_ti): Likewise.
31740 (*frob_<mode>_di_2): Likewise.
31741 (*frob_tf_di_8_2): Likewise.
31742 (*frob_di_<mode>): Likewise.
31743 (*frob_ti_tf): Likewise.
31744 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
31745 (*frob_ti_<mode>_8_2): Likewise.
31746 (*frob_ti_tf_2): Likewise.
31747 (mov_si<mode>_e500_subreg0): Rename to...
31748 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
31750 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
31751 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
31752 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
31753 the big endianness only.
31754 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
31755 (*mov_si<mode>_e500_subreg0_2): Rename to...
31756 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
31757 big big endianness only.
31758 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
31759 (*mov_si<mode>_e500_subreg4): Rename to...
31760 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
31762 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
31763 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
31764 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
31765 the big endianness only.
31766 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
31768 (*mov_si<mode>_e500_subreg4_2): Rename to...
31769 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
31771 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
31772 (*mov_sitf_e500_subreg8): Rename to...
31773 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
31775 (*mov_sitf_e500_subreg8_le): New instruction pattern.
31776 (*mov_sitf_e500_subreg8_2): Rename to...
31777 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
31779 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
31780 (*mov_sitf_e500_subreg12): Rename to...
31781 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
31783 (*mov_sitf_e500_subreg12_le): New instruction pattern.
31784 (*mov_sitf_e500_subreg12_2): Rename to...
31785 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
31787 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
31789 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
31791 * asan.c (instrument_strlen_call): Do not instrument first byte
31792 in strlen if already instrumented.
31794 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31796 * config/arm/arm.opt (mwords-little-endian): Delete.
31797 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
31798 of TARGET_LITTLE_WORDS.
31799 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
31800 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
31802 * doc/invoke.texi: Remove references to -mwords-little-endian.
31804 2014-07-07 Jakub Jelinek <jakub@redhat.com>
31806 * expmed.c (struct init_expmed_rtl): Change all fields but
31807 pow2 and cint from struct rtx_def to rtx.
31808 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
31809 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
31812 2014-07-06 Marek Polacek <polacek@redhat.com>
31815 * doc/invoke.texi: Document -Wsizeof-array-argument.
31817 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
31819 * wide-int.h (wide_int_storage): Change declaration from struct
31822 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
31824 * cgraph.c (cgraph_create_indirect_edge): Update call of
31825 get_polymorphic_call_info.
31826 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
31827 (possible_polymorphic_call_targets): Add parameter call.
31828 (decl_maybe_in_construction_p): New predicate.
31829 (get_polymorphic_call_info): Add parameter call;
31830 use decl_maybe_in_construction_p.
31831 * gimple-fold.c (fold_gimple_assign): Update use of
31832 possible_polymorphic_call_targets.
31833 (gimple_fold_call): Likewise.
31834 * ipa-prop.c: Inlcude calls.h
31835 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
31836 (param_type_may_change_p): New predicate.
31837 (detect_type_change_from_memory_writes): Break out from ...
31838 (detect_type_change): ... this one; use param_type_may_change_p.
31839 (detect_type_change_ssa): Use param_type_may_change_p.
31840 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
31842 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
31845 * config/arm/arm-protos.h (arm_legitimate_address_p,
31846 arm_is_constant_pool_ref): Add prototypes.
31847 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
31848 (arm_is_constant_pool_ref) New function.
31849 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
31850 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
31851 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
31852 operand. Remove pool_range and neg_pool_range attributes.
31853 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
31854 pool_range and neg_pool_range attributes.
31855 * config/arm/constraints.md (Uh): New constraint.
31856 (Uq): Don't allow constant pool references.
31858 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
31860 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
31861 (move_lo_quad_internal_be_<mode>): Likewise.
31862 (move_lo_quad_<mode>): Convert to define_expand.
31863 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
31864 (aarch64_simd_move_hi_quad_be_<mode>): New.
31865 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
31866 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
31867 (aarch64_combinez_be<mode>): New.
31868 (aarch64_combine<mode>): Convert to define_expand.
31869 (aarch64_combine_internal<mode>): New.
31870 (aarch64_simd_combine<mode>): Remove bogus RTL description.
31872 2014-07-04 Tom de Vries <tom@codesourcery.com>
31874 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
31875 combination of earlyclobber and read/write modifiers.
31877 2014-07-04 Tom de Vries <tom@codesourcery.com>
31879 * config/aarch64/aarch64-simd.md
31880 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
31882 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
31885 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
31887 2014-07-04 Jakub Jelinek <jakub@redhat.com>
31889 PR middle-end/61654
31890 * cgraphunit.c (expand_thunk): Call free_dominance_info.
31892 PR tree-optimization/61684
31893 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
31894 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
31896 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
31897 Kito Cheng <kito@0xlab.org>
31898 Monk Chiang <sh.chiang04@gmail.com>
31900 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
31901 (nds32_symbol_load_store_p): Move to ...
31902 (nds32_fp_as_gp_check_available): Move to ...
31903 * config/nds32/nds32-fp-as-gp.c: ... here.
31904 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
31905 extern declaration.
31907 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
31908 Kito Cheng <kito@0xlab.org>
31909 Monk Chiang <sh.chiang04@gmail.com>
31911 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
31912 (nds32_expand_store_multiple): Move to ...
31913 (nds32_expand_movmemqi): Move to ...
31914 * config/nds32/nds32-memory-manipulation.c: ... here.
31916 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
31917 Kito Cheng <kito@0xlab.org>
31918 Monk Chiang <sh.chiang04@gmail.com>
31920 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
31921 (nds32_output_casesi_pc_relative): Move to ...
31922 (nds32_output_casesi): Move to ...
31923 (nds32_mem_format): Move to ...
31924 (nds32_output_16bit_store): Move to ...
31925 (nds32_output_16bit_load): Move to ...
31926 (nds32_output_32bit_store): Move to ...
31927 (nds32_output_32bit_load): Move to ...
31928 (nds32_output_32bit_load_s): Move to ...
31929 (nds32_output_stack_push): Move to ...
31930 (nds32_output_stack_pop): Move to ...
31931 * config/nds32/nds32-md-auxiliary.c: ... here.
31933 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
31934 Ling-Hua Tseng <uranus@tinlans.org>
31936 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
31937 the purpose of this file.
31939 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
31940 Kito Cheng <kito@0xlab.org>
31941 Monk Chiang <sh.chiang04@gmail.com>
31943 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
31944 (nds32_address_cost): Move implementation to ...
31945 * config/nds32/nds32-cost.c: ... here.
31946 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
31947 (nds32_address_cost_impl): Declare.
31949 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
31950 Kito Cheng <kito@0xlab.org>
31951 Monk Chiang <sh.chiang04@gmail.com>
31953 * config/nds32/nds32.c
31954 (nds32_consecutive_registers_load_store_p): Move to ...
31955 (nds32_valid_multiple_load_store): Move to ...
31956 (nds32_valid_stack_push_pop): Move to ...
31957 (nds32_can_use_bclr_p): Move to ...
31958 (nds32_can_use_bset_p): Move to ...
31959 (nds32_can_use_btgl_p): Move to ...
31960 (nds32_can_use_bitci_p): Move to ...
31961 * config/nds32/nds32-predicates.c: ... here.
31963 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
31964 Kito Cheng <kito@0xlab.org>
31965 Monk Chiang <sh.chiang04@gmail.com>
31967 * config/nds32/nds32.c
31968 (nds32_expand_builtin_null_ftype_reg): Move to ...
31969 (nds32_expand_builtin_reg_ftype_imm): Move to ...
31970 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
31971 (nds32_init_builtins): Move implementation to ...
31972 (nds32_expand_builtin): Move implementation to ...
31973 * config/nds32/nds32-intrinsic.c: ... here.
31974 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
31975 (nds32_expand_builtin_impl): Declare.
31977 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
31978 Kito Cheng <kito@0xlab.org>
31979 Monk Chiang <sh.chiang04@gmail.com>
31981 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
31982 (nds32_emit_section_tail_template): Move to ...
31983 (nds32_emit_isr_jmptbl_section): Move to ...
31984 (nds32_emit_isr_vector_section): Move to ...
31985 (nds32_emit_isr_reset_conten): Move to ...
31986 (nds32_check_isr_attrs_conflict): Move to ...
31987 (nds32_construct_isr_vectors_information): Move to ...
31988 (nds32_asm_file_start): Move implementation to ...
31989 (nds32_asm_file_end): Move implementation to ...
31990 * config/nds32/nds32-isr.c: ... here.
31991 * config/nds32/nds32-protos.h
31992 (nds32_check_isr_attrs_conflict): Declare.
31993 (nds32_construct_isr_vectors_information): Declare.
31994 (nds32_asm_file_start_for_isr): Declare.
31995 (nds32_asm_file_end_for_isr): Declare.
31997 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
31998 Kito Cheng <kito@0xlab.org>
31999 Monk Chiang <sh.chiang04@gmail.com>
32001 * config.gcc (nds32*): Add new modules to extra_objs.
32002 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
32003 (nds32be-*-*): Likewise.
32004 * config/nds32/nds32-cost.c: New file.
32005 * config/nds32/nds32-fp-as-gp.c: New file.
32006 * config/nds32/nds32-intrinsic.c: New file.
32007 * config/nds32/nds32-isr.c: New file.
32008 * config/nds32/nds32-md-auxiliary.c: New file.
32009 * config/nds32/nds32-memory-manipulation.c: New file.
32010 * config/nds32/nds32-pipelines-auxiliary.c: New file.
32011 * config/nds32/nds32-predicates.c: New file.
32012 * config/nds32/t-nds32: New file.
32014 2014-07-03 Jakub Jelinek <jakub@redhat.com>
32016 PR tree-optimization/61682
32017 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
32018 using cases and when one of the operands is equal to 1.
32020 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
32022 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
32023 ashr<mode>3): Correct mode of operands[2].
32024 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
32025 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
32026 Correct mode of operands[2]. Fix split condition.
32028 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
32030 * arm.md (arch): Add armv6_or_vfpv3.
32031 (arch_enabled): Add test for the above.
32032 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
32034 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
32036 2014-07-03 Jakub Jelinek <jakub@redhat.com>
32038 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
32039 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
32040 HWI 1 and negate the unsigned value.
32041 * expmed.c (expand_sdiv_pow2): For modes wider than word always
32042 use AND instead of shift.
32043 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
32045 2014-07-03 Marek Polacek <polacek@redhat.com>
32047 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
32048 (-fsanitize=float-divide-by-zero): Move to the table with
32049 -fsanitize=undefined suboptions.
32050 (-fsanitize=float-cast-overflow): Likewise.
32052 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
32054 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
32055 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
32058 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32060 * loop-invariant.c (struct invariant): Add a new member: eqno;
32061 (find_identical_invariants): Update eqno;
32062 (create_new_invariant): Init eqno;
32063 (get_inv_cost): Compute comp_cost with eqno;
32065 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
32067 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
32068 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
32069 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
32070 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
32071 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
32073 2014-07-02 Christian Bruel <christian.bruel@st.com>
32077 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
32078 (make_preds_opaque): Delete.
32079 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
32080 (commit_mode_sets): New function.
32081 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
32082 Process all modes at once.
32083 * basic-block.h (pre_edge_lcm_avs): Declare.
32084 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
32085 Call clear_aux_for_edges. Fix comments.
32086 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
32087 (pre_edge_rev_lcm): Idem.
32088 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
32090 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
32091 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
32093 * config/i386/i386.c (x96_emit_mode_set): Idem.
32094 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
32095 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
32096 (fpscr_toggle) Disallow from delay slot.
32097 * target.def (emit_mode_set): Add prev_mode parameter.
32098 * doc/tm.texi: Regenerate.
32100 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32102 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
32105 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
32107 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
32108 vtable_pointer_value_to_vtable): Constify.
32109 (contains_polymorphic_type_p): Declare.
32110 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
32111 vtable_pointer_value_to_vtable): Constify.
32112 (contains_polymorphic_type_p): New predicate.
32113 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
32115 (ipa_set_ancestor_jf): Likewise.
32116 (detect_type_change): Return false in easy cases.
32117 (compute_complex_assign_jump_func): Require type to contain
32119 (compute_known_type_jump_func): Likewise.
32121 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
32123 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
32125 (type_in_anonymous_namespace_p): Constify argument.
32126 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
32127 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
32128 (main_odr_variant): New function.
32129 (hash_type_name): Make static; update assert; do not ICE on
32131 (types_same_for_odr): Bring here from tree.c; simplify and remove
32132 old structural comparing code that doesn't work for templates.
32133 (odr_hasher::equal): Update assert.
32134 (add_type_duplicate): Return true when bases should be computed;
32135 replace incomplete loader by complete; do not output duplicated
32136 warnings; do not ICE on non-records; set odr_violated flag.
32137 (get_odr_type): Be ready to replace incomplete type by complete
32138 one; work on ODR variants instead of main variants; reorder item
32139 in array so bases have still smaller indexes.
32140 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
32141 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
32143 2014-07-01 Cary Coutant <ccoutant@google.com>
32145 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
32147 (resolve_addr_in_expr): When replacing the rtx in a location list
32148 entry, get a new address table entry.
32149 (dwarf2out_finish): Call index_location_lists even if there are no
32150 addr_index_table entries yet.
32152 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
32154 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
32155 change for not being obvious.
32157 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
32159 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
32162 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32164 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
32165 (vcagt_f64): Likewise.
32166 (vcale_f64): Likewise.
32167 (vcaled_f64): Likewise.
32168 (vcales_f32): Likewise.
32169 (vcalt_f64): Likewise.
32170 (vcaltd_f64): Likewise.
32171 (vcalts_f32): Likewise.
32173 2014-07-01 Marek Polacek <polacek@redhat.com>
32175 * doc/invoke.texi: Document -Wint-conversion.
32177 2014-07-01 Marek Polacek <polacek@redhat.com>
32180 * doc/invoke.texi: Document -Wincompatible-pointer-types.
32182 2014-07-01 Martin Liska <mliska@suse.cz>
32184 IPA REF alias refactoring
32185 * cgraph.h (iterate_direct_aliases): New function.
32186 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
32187 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
32188 FOR_EACH_ALIAS added.
32189 (cgraph_for_node_and_aliases): Likewise.
32190 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
32191 * ipa-inline.c (reset_edge_caches): Likewise.
32192 (update_caller_keys): Likewise.
32193 * trans-mem.c (ipa_tm_execute): Likewise.
32194 *varpool.c (varpool_analyze_node): Likewise.
32195 (varpool_for_node_and_aliases): Likewise.
32196 * ipa-ref.h (first_alias): New function.
32197 (last_alias): Likewise.
32198 (has_aliases_p): Likewise.
32199 * ipa-ref.c (ipa_ref::remove_reference): Removal function
32200 is sensitive to IPA_REF_ALIASes.
32201 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
32202 are put at the beginning of the list.
32203 (symtab_node::iterate_direct_aliases): New function.
32205 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32208 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
32210 (write_ts_type_common_tree_pointers): Do not stream fields not set
32211 for incomplete types; do not stream duplicated fields for variants;
32212 sanity check that variant and type match.
32213 (write_ts_type_non_common_tree_pointers): Likewise.
32214 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
32215 TYPE_SIZE whether type is complete.
32216 (lto_input_ts_type_common_tree_pointers): Do same changes as in
32217 write_ts_type_common_tree_pointers
32218 (lto_input_ts_type_non_common_tree_pointers): Likewise.
32220 2014-06-30 Joseph Myers <joseph@codesourcery.com>
32222 * var-tracking.c (add_stores): Return instead of asserting if old
32223 and new values for conditional store are the same.
32225 2014-06-30 Richard Henderson <rth@redhat.com>
32229 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
32230 the cfg if there were any changes.
32231 * passes.def: Revert move of peephole2 after reorder_blocks;
32232 move duplicate_computed_gotos before peephole2.
32234 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
32236 * except.c (emit_note_eh_region_end): New helper function.
32237 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
32238 emit EH_REGION_END note.
32239 * jump.c (cleanup_barriers): Do not split a call and its
32240 corresponding CALL_ARG_LOCATION note.
32242 2014-06-30 Jeff Law <law@redhat.com>
32244 PR tree-optimization/61607
32245 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
32246 deeper into the SSA_NAME_VALUE chain.
32248 2014-06-30 Marek Polacek <polacek@redhat.com>
32250 * convert.c (convert_to_integer): Don't instrument conversions if the
32251 function has no_sanitize_undefined attribute.
32252 * ubsan.c: Don't run the ubsan pass if the function has
32253 no_sanitize_undefined attribute.
32255 2014-06-30 Jakub Jelinek <jakub@redhat.com>
32257 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
32258 -fsanitize=undefined suboptions.
32260 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
32262 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
32263 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
32264 against bigendian and adjust indices.
32266 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
32268 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
32270 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
32273 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
32274 Add alternative; make early clobber. Adjust both split patterns
32275 to use operand 0 as the working register.
32277 2014-06-30 Jakub Jelinek <jakub@redhat.com>
32279 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
32280 as ira_object_id_map might be NULL, or 1.
32282 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32284 * loop-invariant.c (get_inv_cost): Handle register class.
32285 (gain_for_invariant): Check the register pressure of the inv
32286 and its overlapped register class, other than all.
32288 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
32290 * doc/invoke.texi (Optimize Options): Fix descriptions of
32291 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
32293 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
32295 * doc/extend.texi (Function Attributes): Update 'naked' attribute
32298 2014-06-29 Tobias Grosser <tobias@grosser.es>
32301 * graphite-isl-ast-to-gimple.c: Add missing guards.
32303 2014-06-29 Roman Gareev <gareevroman@gmail.com>
32305 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
32306 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
32307 * flag-types.h: Add new enum fgraphite_generator.
32308 * graphite-isl-ast-to-gimple.c: New.
32309 * graphite-isl-ast-to-gimple.h: New.
32310 * graphite.c (graphite_transform_loops): Add choice of Graphite
32311 code generator, which depends on flag_graphite_code_gen.
32313 2014-06-29 Roman Gareev <gareevroman@gmail.com>
32315 * graphite-dependences.c (subtract_commutative_associative_deps):
32316 Add NULL checking of the following variables: must_raw_no_source,
32317 may_raw_no_source, must_war_no_source, may_war_no_source,
32318 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
32319 must_war, may_war, must_waw, may_waw.
32321 2014-06-29 Roman Gareev <gareevroman@gmail.com>
32323 * graphite-clast-to-gimple.c: gloog is renamed to
32324 graphite_regenerate_ast_cloog. gloog_error is renamed to
32325 graphite_regenerate_error.
32326 * graphite-clast-to-gimple.h: The definition of the struct
32327 bb_pbb_def is moved to graphite-htab.h.
32328 Add inclusion of the hash-table.h.
32329 * graphite-htab.h: The declaration of the function gloog is moved
32330 to graphite-clast-to-gimple.h and renamed to
32331 graphite_regenerate_ast_cloog.
32332 * graphite.c (graphite_transform_loops): gloog is renamed
32333 to graphite_regenerate_ast_cloog.
32335 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32337 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
32339 (write_ts_type_common_tree_pointers): Do not stream fields not set
32340 for incomplete types; do not stream duplicated fields for variants;
32341 sanity check that variant and type match.
32342 (write_ts_type_non_common_tree_pointers): Likewise.
32343 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
32344 TYPE_SIZE whether type is complete.
32345 (lto_input_ts_type_common_tree_pointers): Do same changes as in
32346 write_ts_type_common_tree_pointers
32347 (lto_input_ts_type_non_common_tree_pointers): Likewise.
32349 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32351 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
32353 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32355 * tree-inline.c (remap_type_1): Do not duplicate fields
32356 that are shared in between type and its main variant.
32358 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32360 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
32362 (ipa_set_ancestor_jf) Likewise.
32363 (check_stmt_for_type_change): Check that we work on main variant.
32364 (detect_type_change): Look into main variant.
32365 (compute_known_type_jump_func): Check that main variant has BINFO.
32367 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32369 * ipa-devirt.c (set_type_binfo): New function.
32370 (add_type_duplicate): Use it.
32371 (get_odr_type): Sanity check that binfos points to main variants.
32372 (get_class_context): Be sure the context's outer_type is main variant.
32373 (contains_type_p): Walk main variant.
32374 (get_polymorphic_call_info_for_decl): Set outer_type to be
32376 (get_polymorphic_call_info): Likewise.
32377 (possible_polymorphic_call_targets): Sanity check that we operate
32380 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32382 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
32384 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32386 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
32387 accidental change due to wide-int branch merge.
32389 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32391 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
32392 compressed debug support.
32393 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
32394 * configure: Regenerate.
32395 * config.in: Regenerate.
32396 * common.opt (compressed_debug_sections): New enum.
32397 (gz, gz=): New options.
32398 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
32399 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
32400 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
32401 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
32402 LINK_COMPRESS_DEBUG_SPEC.
32403 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
32404 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
32405 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
32406 (Debugging Options): Document -gz[=type].
32408 2014-06-27 Martin Jambor <mjambor@suse.cz>
32411 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
32412 args_to_skip, use those from node instead. Copy args_to_skip and
32413 combined_args_to_skip from node to the new thunk.
32414 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
32415 (cgraph_create_virtual_clone): Moved computation of
32416 combined_args_to_skip...
32417 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
32419 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
32421 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
32422 redundant diagnostic machinary.
32424 2014-06-27 Richard Biener <rguenther@suse.de>
32426 * tree-ssa-math-opts.c (bswap_replace): Fix
32427 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
32429 2014-06-27 Martin Liska <mliska@suse.cz>
32431 * gimple.h (gimple_location_safe): New function introduced.
32432 * cgraphunit.c (walk_polymorphic_call_targets): Usage
32433 of gimple_location_safe replaces gimple_location.
32434 (gimple_fold_call): Likewise.
32435 * ipa-devirt.c (ipa_devirt): Likewise.
32436 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32437 * ipa.c (walk_polymorphic_call_targets): Likewise.
32438 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
32440 2014-06-27 Jakub Jelinek <jakub@redhat.com>
32442 PR tree-optimization/57233
32443 PR tree-optimization/61299
32444 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
32446 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
32447 would be lowered to scalar shifts, check if corresponding
32448 shifts and vector BIT_IOR_EXPR are supported and don't lower
32449 or lower just to narrower vector type in that case.
32450 * expmed.c (expand_shift_1): Fix up handling of vector
32451 shifts and rotates.
32453 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
32456 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
32458 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
32460 * doc/invoke.texi (-fsemantic-interposition): Document.
32461 * common.opt (fsemantic-interposition): New flag.
32462 * varasm.c (decl_replaceable_p): Use it.
32464 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32467 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
32468 extraction other than index 3.
32470 2014-06-26 Teresa Johnson <tejohnson@google.com>
32472 * doc/invoke.texi: Fix typo.
32473 * dumpfile.c: Add support for documented -fdump-* options
32474 optimized/missed/note/optall.
32476 2014-06-26 Martin Jambor <mjambor@suse.cz>
32478 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
32479 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
32480 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
32481 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
32482 * opts.c (default_options_optimization): Set
32483 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
32484 * doc/invoke.texi (allow-load-data-races)
32485 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
32486 (allow-store-data-races): Document the new default.
32488 2014-06-26 Martin Jambor <mjambor@suse.cz>
32490 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
32491 renamed to ipa_impossible_devirt_target. Fix typo.
32492 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
32493 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
32494 ipa_impossible_devirt_target.
32496 2014-06-26 Richard Biener <rguenther@suse.de>
32498 PR tree-optimization/61607
32499 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
32500 explaining why we restrict copies on loop depth.
32501 * tree-ssa-dom.c (cprop_operand): Remove restriction on
32503 (record_equivalences_from_phis): Instead add it here.
32505 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
32507 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
32508 (LTO_WRAPPER_OBJS): New variable.
32509 (lto-wrapper$(exeext)): Use it.
32510 * collect2.c: Include "collect-utils.h".
32511 (verbose, debug): Remove variables.
32512 (at_file_supplied): No longer static.
32513 (tool_name): New variable.
32514 (do_wait, fork_execute, maybe_unlink): Don't declare.
32515 (tool_cleanup): No longer static.
32516 (notice): Remove function.
32517 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
32518 fork_execute calls.
32519 (collect_wait, do_wait, collect_execute): Remove functions.
32520 (maybe_unlink): No longer static.
32521 * collect2.h (verbose, debug): Don't declare.
32522 (at_file_supplied): Declare.
32523 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
32525 (collect_execute): Replace with implementation from collect2, plus a
32526 new arg use_atfile. All callers changed.
32527 (collect_wait): Replace with implementation from collect2.
32528 (maybe_unlink_file): Remove function.
32529 (fork_execute): Replace with implementation from collect2, plus a
32530 new arg use_atfile. All callers changed.
32531 (do_wait): Add call to utils_cleanup to the error path.
32532 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
32533 (tool_cleanup): Adjust declarations.
32534 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
32535 * tlink.c: Include "collect-utils.h".
32536 (tlink_execute): New arg use_atfile. All callers changed.
32537 (tlink_init, tlink_execute): Remove declarations.
32539 * collect-utils.c (save_temps): New variable.
32540 (do_wait): Use it instead of debug. Use fatal_error.
32541 * collect-utils.h (save_temps): Declare.
32542 * collect2.c (verbose): Rename from vflag. All uses changed.
32543 (tool_cleanup): New function, copied from collect_atexit.
32544 (collect_atexit, handler): Just call it.
32545 * collect2.h (verbose): Declaration renamed from vflag.
32546 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
32549 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
32550 (lto-wrapper$(exeext)): Link with collect-utils.o.
32551 * collect-utils.c: New file.
32552 * collect-utils.h: New file.
32553 * lto-wrapper.c: Include "collect-utils.h".
32554 (args_name): Delete variable.
32555 (tool_name): New variable.
32556 (tool_cleanup): New function.
32557 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
32558 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
32559 (fork_execute): Remove functions.
32561 2014-06-26 Nick Clifton <nickc@redhat.com>
32563 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
32565 * doc/extend.texi (Function Attributes): Fix typo in description
32566 of RX vector attribute.
32568 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
32570 * config.gcc (supported_defaults): Error when passing either
32571 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
32573 2014-06-26 Richard Biener <rguenther@suse.de>
32575 * tree-ssa-dom.c (cprop_operand): Remove restriction on
32576 propagating volatile pointers.
32578 2014-06-26 Richard Biener <rguenther@suse.de>
32580 PR tree-optimization/61607
32581 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
32582 loop if we redirected its latch edge.
32583 (thread_block_1): Do not cancel loops prematurely.
32585 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
32587 * toplev.c (backend_init_target): Move init_emit_regs and
32589 (backend_init) ... here; skip ira_init_once and backend_init_target.
32590 (target_reinit) ... and here; clear
32591 this_target_rtl->lang_dependent_initialized.
32592 (lang_dependent_init_target): Clear
32593 this_target_rtl->lang_dependent_initialized;
32594 break out rtl initialization to ...
32595 (initialize_rtl): ... here; call also backend_init_target
32597 * toplev.h (initialize_rtl): New function.
32598 * function.c: Include toplev.h
32599 (init_function_start): Call initialize_rtl.
32600 * rtl.h (target_rtl): Add target_specific_initialized,
32601 lang_dependent_initialized.
32603 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
32604 Jakub Jelinek <jakub@redhat.com>
32606 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
32608 2014-06-25 Tom de Vries <tom@codesourcery.com>
32610 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
32612 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
32614 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
32615 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
32616 Issue a strict overflow warning if appropriate.
32618 2014-06-25 Martin Liska <mliska@suse.cz>
32620 IPA REF refactoring
32621 * Makefile.in: Removed header file (ipa-ref-inline.h).
32622 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
32624 (cgraph_speculative_call_info): Likewise.
32625 (cgraph_for_node_thunks_and_aliases): Likewise.
32626 (cgraph_for_node_and_aliases): Likewise.
32627 (verify_cgraph_node): Likewise.
32628 * cgraph.h: Batch of IPA REF functions become member functions of
32629 symtab_node: add_reference, maybe_add_reference, clone_references,
32630 clone_referring, clone_reference, find_reference,
32631 remove_stmt_references, remove_all_references,
32632 remove_all_referring, dump_references, dump_referring,
32633 has_alias_p, iterate_reference, iterate_referring.
32634 * cgraphbuild.c (record_reference): New IPA REF function used.
32635 (record_type_list): Likewise.
32636 (record_eh_tables): Likewise.
32637 (mark_address): Likewise.
32638 (mark_load): Likewise.
32639 (mark_store): Likewise.
32640 (pass_build_cgraph_edges): Likewise.
32641 (rebuild_cgraph_edge): Likewise.
32642 (cgraph_rebuild_references): Likewise.
32643 (pass_remove_cgraph_callee_edges): Likewise.
32644 * cgraphclones.c (cgraph_clone_node): Likewise.
32645 (cgraph_create_virtual_clone): Likewise.
32646 (cgraph_materialize_clone): Likewise.
32647 (cgraph_materialize_all_clones): Likewise.
32648 * cgraphunit.c (cgraph_reset_node): Likewise.
32649 (cgraph_reset_node): Likewise.
32650 (analyze_function): Likewise.
32651 (assemble_thunks_and_aliases): Likewise.
32652 (expand_function): Likewise.
32653 * ipa-comdats.c (propagate_comdat_group): Likewise.
32654 (enqueue_references): Likewise.
32655 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
32656 (create_specialized_node): Likewise.
32657 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
32658 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
32659 * ipa-inline.c (reset_edge_caches): Likewise.
32660 (update_caller_keys): Likewise.
32661 (execute): Likewise.
32662 * ipa-prop.c (remove_described_reference): Likewise.
32663 (propagate_controlled_uses): Likewise.
32664 (ipa_edge_duplication_hook): Likewise.
32665 (ipa_modify_call_arguments): Likewise.
32666 * ipa-pure-const.c (propagate_pure_const): Likewise.
32667 * ipa-ref-inline.h: Header file removed, functions moved
32668 to symtab_node class.
32669 * ipa-ref.c (remove_reference): New class member function.
32670 (cannot_lead_to_return): New class member function.
32671 (referring_ref_list): Likewise.
32672 (referred_ref_list): Likewise.
32673 Rest of functions moved to symtab_node class.
32674 * ipa-ref.h: New member functions remove_reference,
32675 cannot_lead_to_return, referring_ref_list, referred_ref_list added
32677 ipa_ref_list class has new member functions: first_reference,
32678 first_referring, clear, nreferences.
32679 * ipa-reference.c (analyze_function): New IPA REF function used.
32680 (write_node_summary_p): Likewise.
32681 (ipa_reference_write_optimization_summary): Likewise.
32682 * ipa-split.c (split_function): Likewise.
32683 * ipa-utils.c (ipa_reverse_postorder): Likewise.
32684 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
32685 (function_and_variable_visibility): Likewise.
32686 * ipa.c (has_addr_references_p): Likewise.
32687 (process_references): Argument type changed.
32688 (symtab_remove_unreachable_nodes): New IPA REF function used.
32689 (process_references): Likewise.
32690 (set_writeonly_bit): Likewise.
32691 * lto-cgraph.c: Implementation of new symtab_node member functions
32692 that uses new IPA REF functions.
32693 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
32695 * lto-streamer-out.c (output_symbol_p): Likewise.
32696 * lto-streamer.h (referenced_from_this_partition_p): Argument type
32698 * symtab.c: Implementation of new IPA REF API.
32699 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
32700 (ipa_tm_create_version): Likewise.
32701 (ipa_tm_execute): Likewise.
32702 * tree-emutls.c (gen_emutls_addr): Likewise.
32703 * tree-inline.c (copy_bb): Likewise.
32704 (delete_unreachable_blocks_update_callgraph): Likewise.
32705 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
32706 (varpool_for_node_and_aliases): Likewise.
32708 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
32710 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
32712 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
32715 * fold-const.c (fold_checksum_tree): Use a hash_table of const
32716 tree_node * instead of tree_node *.
32718 (print_fold_checksum): Likewise.
32719 (fold_check_failed): Likewise.
32720 (debug_fold_checksum): Likewise.
32721 (fold_build1_stat_loc): Likewise.
32722 (fold_build2_stat_loc): Likewise.
32723 (fold_build3_stat_loc): Likewise.
32724 (fold_build_call_array_loc): Likewise.
32726 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
32728 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
32729 implementation with call to...
32730 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
32732 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
32735 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
32737 PR tree-optimization/57742
32738 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
32739 after replacing the statement.
32741 2014-06-25 Nick Clifton <nickc@redhat.com>
32743 * config/v850/v850.c (GHS_default_section_names): Change to const
32745 (GHS_current_section_names): Likewise.
32746 (v850_insert_attributes): Do not build strings, just assign the
32747 names directly. Change the type of 'chosen_section' to const
32749 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
32750 directly to the array entry.
32751 * config/v850/v850.h (GHS_default_section_names): Change to const
32753 (GHS_current_section_names): Likewise.
32755 2014-06-25 Jakub Jelinek <jakub@redhat.com>
32757 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
32758 (LANG_HOOKS_DECLS): Add it.
32759 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
32761 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
32762 * langhooks.h (struct lang_hooks_for_decls): Add
32763 omp_clause_linear_ctor hook.
32764 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
32765 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
32766 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
32767 combined simd loop use omp_clause_linear_ctor hook.
32769 2014-06-24 Cong Hou <congh@google.com>
32771 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
32772 pattern recognition.
32773 (type_conversion_p): PROMOTION is true if it's a type promotion
32774 conversion, and false otherwise. Return true if the given expression
32775 is a type conversion one.
32776 * tree-vectorizer.h: Adjust the number of patterns.
32777 * tree.def: Add SAD_EXPR.
32778 * optabs.def: Add sad_optab.
32779 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
32780 * expr.c (expand_expr_real_2): Likewise.
32781 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
32782 * gimple.c (get_gimple_rhs_num_ops): Likewise.
32783 * optabs.c (optab_for_tree_code): Likewise.
32784 * tree-cfg.c (estimate_operator_cost): Likewise.
32785 * tree-ssa-operands.c (get_expr_operands): Likewise.
32786 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
32787 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
32788 * doc/generic.texi: Add document for SAD_EXPR.
32789 * doc/md.texi: Add document for ssad and usad.
32791 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32793 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
32794 qualification in cast.
32796 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
32798 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
32799 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
32800 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
32801 (tree_function_decl): ... here.
32802 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
32803 streaming of vindex to ...
32804 (write_ts_function_decl_tree_pointers): ... here.
32805 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
32806 Do not stream DECL_VINDEX.
32807 (lto_input_ts_function_decl_tree_pointers): Stream it here.
32809 2014-06-24 Catherine Moore <clm@codesourcery.com>
32810 Sandra Loosemore <sandra@codesourcery.com>
32812 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
32813 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
32814 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
32816 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
32818 * doc/invoke.texi (Warning Options): Remove duplicated
32819 -Wmaybe-uninitialized.
32821 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
32823 PR tree-optimization/57742
32824 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
32825 (handle_builtin_malloc, handle_builtin_memset): New functions.
32826 (strlen_optimize_stmt): Call them.
32827 * passes.def: Move strlen after loop+dom but before vrp.
32829 2014-06-24 Jakub Jelinek <jakub@redhat.com>
32832 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
32833 model family 6 CPU with has_longmode never use a CPU without
32836 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
32839 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
32842 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32844 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
32845 * dominance.c (iterate_fix_dominators): Use hash_map instead of
32847 * hash-map.h: New file.
32848 * ipa-comdats.c: Use hash_map instead of pointer_map.
32850 * lto-section-out.c: Adjust.
32851 * lto-streamer.h: Replace pointer_map with hash_map.
32852 * symtab.c (verify_symtab): Likewise.
32853 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
32854 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
32855 * tree-streamer.h: Likewise.
32856 * tree-streamer.c: Adjust.
32857 * pointer-set.h: Remove pointer_map.
32859 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32861 * hash-table.h: Add a template arg to choose between storing values
32862 and storing pointers to values, and then provide partial
32863 specializations for both.
32864 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
32865 should store, not the type values should point to.
32866 * tree-into-ssa.c (var_info_hasher): Likewise.
32867 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
32868 * tree-complex.c: Adjust.
32869 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
32870 table instead of int_tree_map *.
32871 * tree-parloops.c: Adjust.
32872 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
32873 type is being stored.
32874 * tree-vectorizer.c: Adjust.
32876 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32878 * hash-table.h: Remove a layer of indirection from hash_table so that
32879 it contains the hash table's data instead of a pointer to the data.
32880 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
32881 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
32882 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
32883 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
32884 fold-const.c, gcse.c, ggc-common.c,
32885 gimple-ssa-strength-reduction.c, gimplify.c,
32886 graphite-clast-to-gimple.c, graphite-dependences.c,
32887 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
32888 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
32889 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
32890 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
32891 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
32892 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
32893 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
32894 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
32895 tree-ssa-live.c, tree-ssa-loop-im.c,
32896 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
32897 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
32898 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
32899 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
32900 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
32901 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
32902 vtable-verify.c, vtable-verify.h: Adjust.
32904 2014-06-24 Richard Biener <rguenther@suse.de>
32906 PR tree-optimization/61572
32907 * tree-ssa-sink.c (statement_sink_location): Do not sink
32908 loads from hard registers.
32910 2014-06-24 Jakub Jelinek <jakub@redhat.com>
32912 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
32913 not mentioned in clauses use private clause if the iterator is
32914 declared in #pragma omp for simd, and when adding lastprivate
32915 instead, add it to the outer #pragma omp for too. Diagnose
32916 if the variable is private in outer context. For simd collapse > 1
32917 loops, replace all iterators with temporaries.
32918 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
32919 same even in collapse > 1 loops.
32921 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
32922 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
32924 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
32925 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
32927 (gimplify_adjust_omp_clauses): Likewise.
32928 * omp-low.c (lower_rec_simd_input_clauses,
32929 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
32930 safelen the same as safelen(1).
32931 * tree-nested.c (convert_nonlocal_omp_clauses,
32932 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
32933 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
32934 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
32935 Fixup handling of GIMPLE_OMP_TARGET.
32936 (convert_tramp_reference_stmt, convert_gimple_call): Handle
32939 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
32941 PR tree-optimization/61554
32942 * tree-ssa-propagate.c: Include "bitmap.h".
32943 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
32944 properly update constructor/destructor.
32945 (substitute_and_fold_dom_walker::before_dom_children):
32946 Remove call to gimple_purge_dead_eh_edges, add bb->index to
32947 need_eh_cleaup instead.
32948 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
32951 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
32953 * varpool.c (dump_varpool_node): Dump used_by_single_function.
32954 * tree-pass.h (make_pass_ipa_single_use): New pass.
32955 * cgraph.h (used_by_single_function): New flag.
32956 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
32958 * passes.def (pass_ipa_single_use): Scedule.
32959 * ipa.c (BOTTOM): New macro.
32960 (meet): New function
32961 (propagate_single_user): New function.
32962 (ipa_single_use): New function.
32963 (pass_data_ipa_single_use): New pass.
32964 (pass_ipa_single_use): New pass.
32965 (pass_ipa_single_use::gate): New gate.
32966 (make_pass_ipa_single_use): New function.
32968 2014-06-23 Kai Tietz <ktietz@redhat.com>
32971 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
32972 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
32974 2014-06-23 Richard Biener <rguenther@suse.de>
32976 * tree-ssa-loop.c (gate_loop): New function.
32977 (pass_tree_loop::gate): Call it.
32978 (pass_data_tree_no_loop, pass_tree_no_loop,
32979 make_pass_tree_no_loop): New.
32980 * tree-vectorizer.c: Include tree-scalar-evolution.c
32981 (pass_slp_vectorize::execute): Initialize loops and SCEV if
32983 (pass_slp_vectorize::clone): New method.
32984 * timevar.def (TV_TREE_NOLOOP): New.
32985 * tree-pass.h (make_pass_tree_no_loop): Declare.
32986 * passes.def (pass_tree_no_loop): New pass group with
32989 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
32992 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
32993 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
32995 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
32997 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
32998 "yes" where needed.
33000 2014-06-23 Alan Modra <amodra@gmail.com>
33003 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
33004 to zero on debug statements.
33006 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
33009 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
33010 Ignore third operand if present by marking qualifier_internal.
33012 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
33014 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
33016 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
33017 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
33018 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
33019 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
33020 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
33021 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
33022 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
33023 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
33024 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
33025 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
33026 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
33027 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
33028 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
33029 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
33030 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
33031 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
33032 logic in GCC vector extensions
33034 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
33035 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
33036 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
33037 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
33038 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
33039 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
33040 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
33041 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
33042 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
33043 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
33045 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
33047 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
33050 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
33051 (vget_low_s64): Use __GET_LOW macro.
33052 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
33053 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
33054 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
33055 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
33056 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
33058 (vcombine_s64): Use GCC vector extensions; remove cast.
33059 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
33060 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
33061 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
33062 Fix type signature; remove cast.
33064 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
33067 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
33069 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
33071 (BUILTIN_VD1): New.
33072 (BUILTIN_VD_RE): Remove.
33073 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
33074 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
33075 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
33076 variant but not df.
33077 (vreinterpretv1df*, vreinterpret*v1df): New.
33078 (vreinterpretdf*, vreinterpret*df): Remove.
33079 * config/aarch64/aarch64-simd.md (aarch64_create,
33080 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
33081 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
33083 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
33084 (vcreate_f64): Remove cast, use v1df builtin.
33085 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
33086 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
33087 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
33088 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
33089 vmov_n_f64, vst1_f64): Use gcc vector extensions.
33090 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
33091 add range check using __builtin_aarch64_im_lane_boundsi.
33092 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
33093 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
33094 type signature, use gcc vector extensions.
33095 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
33096 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
33097 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
33098 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
33099 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
33100 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
33101 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
33102 vreinterpret_u64_f64): Use v1df builtin not df.
33104 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
33106 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
33109 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
33111 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
33114 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33116 * loop-invariant.c (pre_check_invariant_p): New function.
33117 (find_invariant_insn): Call pre_check_invariant_p.
33119 2014-06-22 Richard Henderson <rth@redhat.com>
33122 * compare-elim.c (struct comparison): Add eh_note.
33123 (find_comparison_dom_walker::before_dom_children): Don't eliminate
33124 a redundant comparison in a different EH region. Purge EH edges if
33127 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33129 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
33130 (var_shift): Use it.
33131 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
33132 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
33133 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
33134 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
33135 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
33136 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
33137 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
33138 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
33139 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
33140 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
33141 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
33142 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
33143 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
33144 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
33145 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
33146 *rotldi3_internal15be): Use the new attribute. Merge register and
33147 integer alternatives.
33149 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33151 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
33152 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
33153 split, *ashrdi3_internal3 and split): Delete, merge into...
33154 (ashr<mode>3): New expander.
33155 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
33156 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
33158 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33160 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
33161 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
33162 *rotldi3_internal3 and split): Delete, merge into...
33163 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
33164 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
33165 Use "rotlw" extended mnemonic.
33167 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33169 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
33170 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
33171 and split, *ashldi3_internal3 and split): Delete, merge into...
33172 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
33173 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
33175 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33177 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
33178 (lshrsi3, two anonymous define_insns and define_splits,
33179 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
33180 *lshrdi3_internal3 and split): Delete, merge into...
33181 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
33182 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
33184 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33186 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
33187 Remove "O" alternative.
33189 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
33191 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
33192 (mips_move_from_gpr_cost): Likewise.
33193 (mips_register_move_cost): Update accordingly.
33194 (mips_secondary_reload_class): Remove name of in_p.
33196 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
33199 * config/i386/i386.md (x86_64_shrd, x86_shrd,
33200 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
33202 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
33204 * config/nios2/nios2.c: Include "builtins.h".
33206 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
33208 * cgraph.h (tls_model_names): New variable.
33209 * print-tree.c (print_node): Simplify.
33210 * varpool.c (tls_model_names): New variable.
33211 (dump_varpool_node): Output tls model.
33213 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
33215 * ipa-visibility.c (function_and_variable_visibility): Disable
33216 temporarily local aliases for some targets.
33218 2014-06-20 Marek Polacek <polacek@redhat.com>
33220 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
33221 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
33222 into SANITIZE_UNDEFINED.
33223 * doc/invoke.texi: Describe -fsanitize=bounds.
33224 * gimplify.c (gimplify_call_expr): Add gimplification of internal
33225 functions created in the FEs.
33226 * internal-fn.c: Move "internal-fn.h" after "tree.h".
33227 (expand_UBSAN_BOUNDS): New function.
33228 * internal-fn.def (UBSAN_BOUNDS): New internal function.
33229 * internal-fn.h: Don't define internal functions here.
33230 * opts.c (common_handle_option): Add -fsanitize=bounds.
33231 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
33232 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
33233 * tree-core.h: Define internal functions here.
33234 (struct tree_base): Add ifn field.
33235 * tree-pretty-print.c: Include "internal-fn.h".
33236 (dump_generic_node): Handle functions without CALL_EXPR_FN.
33237 * tree.c (get_callee_fndecl): Likewise.
33238 (build_call_expr_internal_loc): New function.
33239 * tree.def (CALL_EXPR): Update description.
33240 * tree.h (CALL_EXPR_IFN): Define.
33241 (build_call_expr_internal_loc): Declare.
33242 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
33244 (ubsan_type_descriptor): Change bool parameter to enum
33245 ubsan_print_style. Adjust the code. Add handling of
33247 (ubsan_expand_bounds_ifn): New function.
33248 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
33249 (ubsan_build_overflow_builtin): Likewise.
33250 (instrument_bool_enum_load): Likewise.
33251 (ubsan_instrument_float_cast): Likewise.
33252 * ubsan.h (enum ubsan_print_style): New enum.
33253 (ubsan_expand_bounds_ifn): Declare.
33254 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
33256 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
33258 * config/rs6000/rs6000.md: Append `DONE' to preparation
33259 statements of `bswap' pattern splitters.
33261 2014-06-20 Tom de Vries <tom@codesourcery.com>
33263 * target.def (call_fusage_contains_non_callee_clobbers): Update
33265 * doc/tm.texi: Regenerate.
33267 2014-06-20 Yury Gribov <y.gribov@samsung.com>
33268 Max Ostapenko <m.ostapenko@partner.samsung.com>
33271 * asan.c (instrument_strlen_call): Fixed instrumentation of
33274 2014-06-20 Martin Jambor <mjambor@suse.cz>
33277 * ipa-prop.c (impossible_devirt_target): New function.
33278 (try_make_edge_direct_virtual_call): Use it, also instead of
33281 2014-06-20 Yury Gribov <y.gribov@samsung.com>
33282 Max Ostapenko <m.ostapenko@partner.samsung.com>
33285 * asan.c (build_check_stmt): Add condition.
33287 2014-06-20 Martin Jambor <mjambor@suse.cz>
33290 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
33293 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33295 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
33297 (VCONQ): Make comment more helpful.
33299 * config/aarch64/aarch64-simd.md
33300 (aarch64_sqdmulh_lane<mode>):
33301 Use VCOND for operands 2. Update lane checking and flipping logic.
33302 (aarch64_sqrdmulh_lane<mode>): Likewise.
33303 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
33304 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
33305 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
33306 attribute of operand 3 to VCOND.
33307 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
33308 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
33309 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
33310 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
33311 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
33312 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
33314 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
33315 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
33316 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
33317 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
33318 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
33319 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
33320 operand to VCOND. Update lane flipping and bounds checking logic.
33321 (aarch64_sqdmlal2_lane<mode>): Likewise.
33322 (aarch64_sqdmlsl_lane<mode>): Likewise.
33323 (aarch64_sqdmull_lane<mode>): Likewise.
33324 (aarch64_sqdmull2_lane<mode>): Likewise.
33325 (aarch64_sqdmlal_laneq<mode>):
33326 Replace VCON usage with VCONQ.
33327 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
33328 (aarch64_sqdmlal2_laneq<mode>): Emit
33329 aarch64_sqdmlal2_laneq<mode>_internal insn.
33330 Replace VCON with VCONQ.
33331 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
33332 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
33333 (aarch64_sqdmull_laneq<mode>): Emit
33334 aarch64_sqdmull_laneq<mode>_internal insn.
33335 Replace VCON with VCONQ.
33336 (aarch64_sqdmull2_laneq<mode>): Emit
33337 aarch64_sqdmull2_laneq<mode>_internal insn.
33338 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
33339 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
33340 of 3rd argument to int16x4_t.
33341 (vqdmlalh_lane_s16): Likewise.
33342 (vqdmlslh_lane_s16): Likewise.
33343 (vqdmull_high_lane_s16): Likewise.
33344 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
33345 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
33346 (vqdmlsl_lane_s16): Likewise.
33347 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
33348 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
33349 (vqdmlals_lane_s32): Likewise.
33350 (vqdmlsls_lane_s32): Likewise.
33351 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
33352 (vqdmulls_lane_s32): Likewise.
33353 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
33354 (vqdmlsl_lane_s32): Likewise.
33355 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
33356 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
33357 (vqrdmulhh_lane_s16): Likewise.
33358 (vqdmlsl_high_lane_s16): Likewise.
33359 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
33360 (vqdmlsl_high_lane_s32): Likewise.
33361 (vqrdmulhs_lane_s32): Likewise.
33363 2014-06-20 Tom de Vries <tom@codesourcery.com>
33365 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
33366 get_call_reg_set_usage.
33368 2014-06-20 Tom de Vries <tom@codesourcery.com>
33370 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
33371 it contains all call_used_regs.
33373 2014-06-20 Tom de Vries <tom@codesourcery.com>
33375 * final.c (collect_fn_hard_reg_usage): Add and use variable
33376 function_used_regs.
33378 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
33380 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
33381 (set_init_priority, get_init_priority, set_fini_priority,
33382 get_fini_priority): New methods.
33383 * tree.c (init_priority_for_decl): Remove.
33384 (init_ttree): Do not initialize init priority.
33385 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
33386 (decl_priority_info): Remove.
33387 (decl_init_priority_insert): Rewrite.
33388 (decl_fini_priority_insert): Rewrite.
33389 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
33390 tree_priority_map_marked_p): Remove.
33391 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
33392 * lto-streamer-out.c (hash_tree): Do not hash priorities.
33393 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
33394 not output priorities.
33395 (pack_ts_function_decl_value_fields): Likewise.
33396 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
33397 not input priorities.
33398 (unpack_ts_function_decl_value_fields): Likewise.
33399 * symtab.c (symbol_priority_map): Declare.
33400 (init_priority_hash): Declare.
33401 (symtab_unregister_node): Unregister from priority hash, too.
33402 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
33404 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
33405 (symbol_priority_info): New function.
33406 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
33408 * tree-core.h (tree_priority_map): Remove.
33410 2014-06-20 Jakub Jelinek <jakub@redhat.com>
33412 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
33413 0xff to uint64_t before shifting it up.
33415 2014-06-20 Julian Brown <julian@codesourcery.com>
33416 Chung-Lin Tang <cltang@codesourcery.com>
33418 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
33419 TARGET_THUMB1_ONLY. Add comments.
33421 2014-06-19 Tom de Vries <tom@codesourcery.com>
33423 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
33424 return type to void.
33425 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
33427 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33429 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
33430 as "move", from depends_on.
33432 2014-06-19 Terry Guo <terry.guo@arm.com>
33434 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
33437 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
33439 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
33441 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
33443 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
33446 * config/sh/sh.c (prepare_move_operands): Don't process TLS
33447 addresses here if reload in progress or completed.
33449 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
33451 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
33452 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
33453 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
33454 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
33455 (mips_register_priority): New function that implements the target
33456 hook TARGET_REGISTER_PRIORITY.
33457 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
33458 (mips_lra_p): Likewise for TARGET_LRA_P.
33459 (TARGET_REGISTER_PRIORITY): Define macro.
33460 (TARGET_SPILL_CLASS): Likewise.
33461 (TARGET_LRA_P): Likewise.
33462 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
33464 (REG_CLASS_NAMES): Likewise.
33465 (REG_CLASS_CONTENTS): Likewise.
33466 (BASE_REG_CLASS): Use M16_SP_REGS.
33467 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
33468 New set attribute to enable alternatives depending on the register
33470 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
33471 (*lea64): Disable pattern for MIPS16.
33472 * config/mips/mips.opt (mlra): New option.
33474 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
33476 * lra-constraints.c (base_to_reg): New function.
33477 (process_address): Use new function.
33479 2014-06-18 Tom de Vries <tom@codesourcery.com>
33481 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
33482 * config/aarch64/aarch64.c
33483 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
33484 (aarch64_emit_call_insn): New function.
33485 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
33487 * config/aarch64/aarch64.md (define_expand "call_internal")
33488 (define_expand "call_value_internal", define_expand "sibcall_internal")
33489 (define_expand "sibcall_value_internal"): New.
33490 (define_expand "call", define_expand "call_value")
33491 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
33492 expand variant and aarch64_emit_call_insn.
33494 2014-06-18 Radovan Obradovic <robradovic@mips.com>
33495 Tom de Vries <tom@codesourcery.com>
33497 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
33498 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
33500 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
33501 clobbers to CALL_INSN_FUNCTION_USAGE.
33502 (define_expand "sibcall_internal")
33503 (define_expand "sibcall_value_internal"): New.
33504 (define_expand "call", define_expand "call_value"): Add argument to
33505 arm_emit_call_insn.
33506 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
33507 (define_expand "sibcall_value"): Use sibcall_value_internal and
33508 arm_emit_call_insn.
33510 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33512 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
33514 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33516 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
33519 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33521 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
33522 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
33523 annotations. Fix DWARF information.
33525 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33527 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
33528 __udivmoddi4, and fixups for negative operands.
33530 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33532 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
33534 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33536 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
33539 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33541 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
33544 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33546 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
33547 describing register usage on function entry and exit.
33549 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33551 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
33552 (__aeabi_ldivmod): Fix whitespace.
33554 2014-06-18 Andreas Schwab <schwab@suse.de>
33556 * doc/md.texi (Standard Names): Use @itemx for grouped items.
33557 Remove blank line after @item.
33559 2014-06-18 Richard Henderson <rth@redhat.com>
33562 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
33564 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33566 * config/arm/arm.c (neon_vector_mem_operand): Allow register
33567 POST_MODIFY for neon loads and stores.
33568 (arm_print_operand): Output post-index register for neon loads and
33571 2014-06-18 Richard Biener <rguenther@suse.de>
33573 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
33575 2014-06-18 Richard Biener <rguenther@suse.de>
33577 * tree-pass.h (make_pass_dce_loop): Remove.
33578 * passes.def: Replace pass_dce_loop with pass_dce.
33579 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
33580 changed free niter estimates and reset the scev cache.
33581 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
33582 make_pass_dce_loop): Remove.
33583 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
33584 (fini_copy_prop): Return whether something changed. Always
33585 let substitute_and_fold perform DCE and free niter estimates
33586 and reset the scev cache if so.
33587 (execute_copy_prop): If sth changed schedule cleanup-cfg.
33588 (pass_data_copy_prop): Do not unconditionally schedule
33589 cleanup-cfg or update-ssa.
33591 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
33593 PR tree-optimization/61518
33594 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
33595 reduction var is used in reduction stmt or phi-function only.
33597 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33599 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
33601 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
33603 PR tree-optimization/61517
33604 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
33605 whose rhs's first tree is the source expression instead of the
33607 (find_bswap_or_nop): Likewise.
33608 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
33609 gimple stmt whose rhs's first tree is the source. In the memory source
33610 case, move the stmt to be replaced close to one of the original load to
33611 avoid the problem of a store between the load and the stmt's original
33613 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
33616 2014-06-18 Andreas Schwab <schwab@suse.de>
33618 PR rtl-optimization/54555
33619 * postreload.c (move2add_use_add2_insn): Substitute
33620 STRICT_LOW_PART only if it is cheaper.
33622 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
33624 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
33625 Do not use unspec as call operand. Use memory_operand instead of
33626 memory_nox32_operand and add "m" operand constraint. Disable
33627 pattern for TARGET_X32.
33628 (*sibcall_pop_memory): Ditto.
33629 (*sibcall_value_memory): Ditto.
33630 (*sibcall_value_pop_memory): Ditto.
33631 (sibcall peepholes): Merge SImode and DImode patterns using
33632 W mode iterator. Use memory_operand instead of memory_nox32_operand.
33633 Disable pattern for TARGET_X32. Check if eliminated register is
33634 really dead after call insn. Generate call RTX without unspec operand.
33635 (sibcall_value peepholes): Ditto.
33636 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
33637 instead of memory_nox32_operand. Check if eliminated register is
33638 really dead after call insn. Generate call RTX without unspec operand.
33639 (sibcall_value_pop peepholes): Ditto.
33640 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
33642 2014-06-18 Terry Guo <terry.guo@arm.com>
33645 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
33648 2014-06-18 Olivier Hainque <hainque@adacore.com>
33650 * tree-core.h (tree_block): Add an "end_locus" field, allowing
33651 memorization of the end of block source location.
33652 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
33653 * gimplify.c (gimplify_bind_expr): Propagate the block start and
33654 end source location info we have on the block entry/exit code we
33657 2014-06-18 Richard Biener <rguenther@suse.de>
33659 * common.opt (fssa-phiopt): New option.
33660 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
33662 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
33663 * doc/invoke.texi (-fssa-phiopt): Document.
33665 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33667 * genattrtab.c (n_bypassed): New variable.
33668 (process_bypasses): Initialise n_bypassed.
33669 Count number of bypassed reservations.
33670 (make_automaton_attrs): Allocate space for bypassed reservations
33671 rather than number of bypasses.
33673 2014-06-18 Richard Biener <rguenther@suse.de>
33675 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
33676 we propagated anything.
33677 (substitute_and_fold_dom_walker::before_dom_children): Something
33678 changed if we propagated into PHI arguments.
33679 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
33682 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
33684 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
33686 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
33687 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
33688 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
33689 Introduces alternative way of loads group permutaions.
33690 (vect_transform_grouped_load): Try alternative way of permutations.
33692 2014-06-18 Jakub Jelinek <jakub@redhat.com>
33694 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
33695 changed in ORT_TARGET region, don't jump to do_outer.
33696 (struct gimplify_adjust_omp_clauses_data): New type.
33697 (gimplify_adjust_omp_clauses_1): Adjust for data being
33698 a struct gimplify_adjust_omp_clauses_data pointer instead
33699 of tree *. Pass pre_p as a new argument to
33700 lang_hooks.decls.omp_finish_clause hook.
33701 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
33702 splay_tree_foreach to pass both list_p and pre_p.
33703 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
33704 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
33705 gimplify_adjust_omp_clauses callers.
33706 * langhooks.c (lhd_omp_finish_clause): New function.
33707 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
33708 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
33709 * langhooks.h (struct lang_hooks_for_decls): Add a new
33710 gimple_seq * argument to omp_finish_clause hook.
33711 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
33712 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
33713 (scan_omp_parallel, lower_omp_for): When adding
33714 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
33715 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
33716 * tree-nested.c (convert_nonlocal_omp_clauses,
33717 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
33718 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
33720 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
33722 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
33723 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
33725 2014-06-17 Xinliang David Li <davidxl@google.com>
33727 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
33728 * passes.c (pass_init_dump_file): Do not set initialize
33729 flag to false unconditionally.
33731 2014-06-17 Richard Biener <rguenther@suse.de>
33733 * genopinit.c (main): Use vec<>::qsort method.
33734 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
33736 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
33738 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
33740 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
33741 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
33742 (mips_move_to_gpr_cost): Remove ST_REGS case.
33743 (mips_move_from_gpr_cost): Likewise.
33744 (mips_register_move_cost): Likewise.
33745 (mips_secondary_reload_class): Likewise.
33747 2014-06-17 Richard Biener <rguenther@suse.de>
33749 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
33750 (pass_all_optimizations): Move 3rd copy-prop pass from after
33751 fre to before ifcombine/phiopt.
33753 2014-06-17 Richard Biener <rguenther@suse.de>
33755 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
33756 and allow all blocks to be forwarders.
33758 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
33761 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
33762 variable 'size'; calculate 'size' right in the front; use
33763 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
33764 pcum->aapcs_stack_words.
33766 2014-06-17 Nick Clifton <nickc@redhat.com>
33768 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
33769 (umulhi3, mulsidi3, umulsidi3): Likewise.
33771 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
33773 PR middle-end/61508
33774 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
33775 check for section name.
33777 2014-06-17 Richard Biener <rguenther@suse.de>
33779 * tree-ssa-propagate.c: Include domwalk.h.
33780 (substitute_and_fold): Outline main worker into a domwalker ...
33781 (substitute_and_fold_dom_walker::before_dom_children): ... here.
33782 Schedule stmts we can fully propagate for removal. Remove
33784 (substitute_and_fold): Apply a dominator walk to perform
33785 substitution. Process stmts scheduled for removal here.
33787 2014-06-17 Richard Biener <rguenther@suse.de>
33789 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
33790 of PHI node moving.
33792 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
33794 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
33795 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
33796 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
33797 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
33798 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
33800 (get_fpscr) : Likewise.
33802 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
33804 PR rtl-optimization/61325
33805 * lra-constraints.c (valid_address_p): Add forward declaration.
33806 (simplify_operand_subreg): Check address validity before and after
33807 alter_reg of memory subreg.
33809 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
33811 * config/i386/i386.c (decide_alg): Correctly handle
33812 maximum size of stringop algorithm.
33814 2014-06-16 Yury Gribov <y.gribov@samsung.com>
33816 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
33818 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
33820 PR rtl-optimization/61522
33821 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
33823 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
33826 * symtab.c (symtab_node::reset_section): New method.
33827 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
33829 * cgraph.h (reset_section): Declare.
33830 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
33831 do not consider comdat locals.
33832 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
33834 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
33835 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
33836 reset sections of symbols dragged out of the comdats.
33837 (function_and_variable_visibility): Reset sections of
33840 2014-06-16 Richard Biener <rguenther@suse.de>
33842 PR tree-optimization/61482
33843 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
33844 [-INF(OVF), +INF(OVF)] range.
33846 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
33848 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
33849 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
33850 handling 32-bit multiplication.
33852 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
33854 PR middle-end/61430
33855 * lra-lives.c (process_bb_lives): Skip creating copy during
33856 insn scan when src/dest has constrained to same regno.
33858 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
33860 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
33861 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
33863 2014-06-16 Yury Gribov <y.gribov@samsung.com>
33865 * asan.c (check_func): New function.
33866 (maybe_create_ssa_name): Likewise.
33867 (build_check_stmt_with_calls): Likewise.
33868 (use_calls_p): Likewise.
33869 (report_error_func): Change interface.
33870 (build_check_stmt): Allow non-integer lengths; add support
33872 (asan_instrument): Likewise.
33873 (instrument_mem_region_access): Moved code to build_check_stmt.
33874 (instrument_derefs): Likewise.
33875 (instrument_strlen_call): Likewise.
33876 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
33877 * doc/invoke.texi: Describe new parameter.
33878 * params.def: Define new parameter.
33879 * params.h: Likewise.
33880 * sanitizer.def: Describe new builtins.
33882 2014-06-16 Richard Biener <rguenther@suse.de>
33884 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33885 Make all defs available at the end.
33886 (eliminate): If we remove a PHI node schedule cfg-cleanup.
33888 2014-06-18 Jakub Jelinek <jakub@redhat.com>
33891 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
33893 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
33896 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
33897 initialization. Replace remaining use of uid.
33899 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
33901 * c-family/c-common.c (handle_tls_model_attribute): Use
33902 set_decl_tls_model.
33903 * c-family/c-common.c (handle_tls_model_attribute): Use
33904 set_decl_tls_model.
33905 * cgraph.h (struct varpool_node): Add tls_model.
33906 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
33907 * tree.h (DECL_TLS_MODEL): Update.
33908 (DECL_THREAD_LOCAL_P): Check that variable is static.
33909 (decl_tls_model): Declare.
33910 (set_decl_tls_model): Declare.
33911 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
33912 set symbol prorperties.
33913 (get_emutls_init_templ_addr): Cleanup.
33914 (new_emutls_decl): Update.
33915 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
33916 (lto_input_varpool_node): Likewise.
33917 * lto-streamer-out.c (hash_tree): Likewise.
33918 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
33919 not stream DECL_TLS_MODEL.
33920 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
33921 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
33923 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
33925 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
33927 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
33929 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
33930 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
33932 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
33933 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
33934 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
33935 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
33936 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
33937 (df_get_artificial_defs, df_get_artificial_uses)
33938 (df_single_def, df_single_use): Update accordingly.
33939 (df_refs_chain_dump): Take the first element in a linked list as
33940 parameter, rather than a pointer to an array of pointers.
33941 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
33942 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
33943 (df_chain_create_bb_process_use): Likewise.
33944 (df_md_bb_local_compute_process_def): Likewise.
33945 * fwprop.c (process_defs, process_uses): Likewise.
33946 (register_active_defs, update_uses): Likewise.
33947 (forward_propagate_asm): Update for new df_ref linking.
33948 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
33949 (df_null_ref_rec, df_null_mw_rec): Likewise.
33950 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
33952 (df_scan_free_bb_info): Remove check for null artificial_defs.
33953 (df_install_ref_incremental): Adjust for new df_ref linking.
33954 Use a single-element insertion rather than a full sort.
33955 (df_ref_chain_delete_du_chain): Take the first element
33956 in a linked list as parameter, rather than a pointer to an array of
33958 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
33959 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
33960 (df_insn_info_delete): Remove check for null defs and call to
33961 df_scan_free_mws_vec.
33962 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
33963 null rather than df_null_*_rec.
33964 (df_insn_rescan_debug_internal): Likewise, and update null
33965 checks in the same way. Remove check for null defs.
33966 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
33967 Move a single element rather doing a full sort.
33968 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
33970 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
33971 Initialize df_ref and df_mw_hardreg lists to null rather than
33973 (df_ref_compare): Take df_refs as parameter, transferring the
33974 old interface to...
33975 (df_ref_ptr_compare): ...this new function.
33976 (df_sort_and_compress_refs): Update accordingly.
33977 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
33978 old interface to...
33979 (df_mw_ptr_compare): ...this new function.
33980 (df_sort_and_compress_mws): Update accordingly.
33981 (df_install_refs, df_install_mws): Return a linked list rather than
33982 an array of pointers.
33983 (df_refs_add_to_chains): Assert that old lists are empty rather
33985 (df_insn_refs_verify): Don't handle null defs speciailly.
33986 * web.c (union_match_dups): Update for new df_ref linking.
33988 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
33990 * df.h (df_ref_create, df_ref_remove): Delete.
33991 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
33992 (df_ref_remove): Likewise.
33994 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
33996 * df.h (df_single_def, df_single_use): New functions.
33997 * ira.c (find_moveable_pseudos): Use them.
33999 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34001 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
34002 * df-problems.c (df_note_bb_compute): Use it.
34003 * regstat.c (regstat_bb_compute_ri): Likewise.
34005 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34007 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
34008 * cse.c (cse_extended_basic_block): Use them.
34009 * dce.c (mark_artificial_use): Likewise.
34010 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
34011 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
34012 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
34013 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
34014 (df_simulate_initialize_backwards): Likewise.
34015 (df_simulate_finalize_backwards): Likewise.
34016 (df_simulate_initialize_forwards): Likewise.
34017 (df_md_simulate_artificial_defs_at_top): Likewise.
34018 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
34019 * regrename.c (init_rename_info): Likewise.
34020 * regstat.c (regstat_bb_compute_ri): Likewise.
34021 (regstat_bb_compute_calls_crossed): Likewise.
34023 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34025 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
34026 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
34027 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
34028 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
34029 * combine.c (create_log_links): Likewise.
34030 * compare-elim.c (find_flags_uses_in_insn): Likewise.
34031 (try_eliminate_compare): Likewise.
34032 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
34033 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
34034 (remove_reg_equal_equiv_notes_for_defs): Likewise.
34035 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
34036 (word_dce_process_block, dce_process_block): Likewise.
34037 * ddg.c (def_has_ccmode_p): Likewise.
34038 * df-core.c (df_bb_regno_first_def_find): Likewise.
34039 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
34040 * df-problems.c (df_rd_simulate_one_insn): Likewise.
34041 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
34042 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
34043 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
34044 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
34045 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
34046 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
34047 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
34048 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
34049 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
34050 * fwprop.c (local_ref_killed_between_p): Likewise.
34051 (all_uses_available_at, free_load_extend): Likewise.
34052 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
34053 * hw-doloop.c (scan_loop): Likewise.
34054 * ifcvt.c (dead_or_predicable): Likewise.
34055 * init-regs.c (initialize_uninitialized_regs): Likewise.
34056 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
34057 (process_bb_node_lives): Likewise.
34058 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
34059 (find_moveable_pseudos): Likewise.
34060 * loop-invariant.c (check_dependencies, record_uses): Likewise.
34061 * recog.c (peep2_find_free_register): Likewise.
34062 * ree.c (get_defs): Likewise.
34063 * regstat.c (regstat_bb_compute_ri): Likewise.
34064 (regstat_bb_compute_calls_crossed): Likewise.
34065 * sched-deps.c (find_inc, find_mem): Likewise.
34066 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
34067 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
34068 * shrink-wrap.c (requires_stack_frame_p): Likewise.
34069 (prepare_shrink_wrap): Likewise.
34070 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
34071 * web.c (union_defs, pass_web::execute): Likewise.
34072 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
34073 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
34075 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
34077 * lra-assign.c (assign_by_spills): Add code to assign vector regs
34078 to inheritance pseudos.
34079 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
34081 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
34084 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
34085 (BU_MISC_2): Rename to ...
34086 (BU_LDBL128_2): ... this.
34087 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
34088 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
34089 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
34090 RS6000_BTM_LDBL128.
34091 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
34092 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
34093 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
34094 (unpacktf_1): Likewise.
34095 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
34096 (__builtin_longdouble_dw1): Likewise.
34097 * doc/sourcebuild.texi (longdouble128): Document.
34099 2014-06-13 Jeff Law <law@redhat.com>
34101 PR rtl-optimization/61094
34102 PR rtl-optimization/61446
34103 * ree.c (combine_reaching_defs): Get the mode for the copy from
34104 the extension insn rather than the defining insn.
34106 2014-06-13 Dehao Chen <dehao@google.com>
34108 * dwarf2out.c (add_linkage_name): Emit more linkage name.
34110 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
34112 * doc/install.texi (--enable-linker-plugin-configure-flags)
34113 (--enable-linker-plugin-flags): Document new flags.
34115 2014-06-13 Martin Jambor <mjambor@suse.cz>
34118 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
34119 cache_token if returning early.
34121 2014-06-13 Nick Clifton <nickc@redhat.com>
34123 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
34124 requested alignment is active.
34125 (LABEL_ALIGN): Likewise.
34126 (LOOP_ALIGN): Likewise.
34128 2014-06-13 Richard Biener <rguenther@suse.de>
34130 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
34131 Rewrite to propagate the VN result into all uses where
34132 possible and to remove stmts becoming dead because of that.
34133 (eliminate): Generalize stmt removal handling, remove in
34134 reverse dominator order to support proper debug stmt
34135 generation. Update stmts before removing stmts.
34136 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
34138 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
34140 PR tree-optimization/61375
34141 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
34142 symbolic number cannot be represented in an uint64_t.
34143 (find_bswap_or_nop_1): Likewise.
34145 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
34147 * symtab.c (symtab_node::reset_section): New method.
34148 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
34150 * cgraph.h (reset_section): Declare.
34151 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
34152 do not consider comdat locals.
34153 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
34155 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
34156 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
34157 reset sections of symbols dragged out of the comdats.
34158 (function_and_variable_visibility): Reset sections of
34161 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
34163 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
34164 to use symtab and decl_binds_to_current_def_p
34165 * tree-vectorizer.c (increase_alignment): Increase alignment
34166 of alias target, too.
34168 2014-06-12 Jakub Jelinek <jakub@redhat.com>
34170 PR middle-end/61486
34171 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
34172 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
34173 if outer combined construct is distribute.
34174 (gimplify_omp_for): For OMP_DISTRIBUTE set
34175 gimplify_omp_ctxp->distribute.
34176 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
34177 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
34178 mapping into decl map.
34180 2014-06-12 Jason Merrill <jason@redhat.com>
34182 * common.opt (fabi-version): Change default to 0.
34184 2014-06-12 Jason Merrill <jason@redhat.com>
34186 * toplev.c (process_options): Reject -fabi-version=1.
34188 2014-06-12 Jeff Law <law@redhat.com>
34190 PR tree-optimization/61009
34191 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
34192 value when we stop processing a block due to problematic PHIs.
34194 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
34196 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
34197 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
34198 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
34199 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
34200 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
34201 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
34202 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
34203 are not in the spec.
34205 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
34208 * config/aarch64/aarch64-modes.def: Add V1DFmode.
34209 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
34212 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
34214 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
34216 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
34219 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
34220 loading from address spaces.
34222 2014-06-12 Martin Liska <mliska@suse.cz>
34225 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
34226 statement is reachable.
34228 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
34230 * symtab.c (section_hash): New hash.
34231 (symtab_unregister_node): Clear section before freeing.
34232 (hash_section_hash_entry): New haser.
34233 (eq_sections): New function.
34234 (symtab_node::set_section_for_node): New method.
34235 (set_section_1): Update.
34236 (symtab_node::set_section): Take string instead of tree as parameter.
34237 (symtab_resolve_alias): Update.
34238 * cgraph.h (section_hash_entry_d): New structure.
34239 (section_hash_entry): New typedef.
34240 (cgraph_node): Change comdat_group_ to x_comdat_group,
34241 change section_ to x_section and turn into section_hash_entry;
34242 update accestors; put set_section_for_node offline.
34243 * tree.c (decl_section_name): Turn into string.
34244 (set_decl_section_name): Change parameter to be string.
34245 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
34246 * sdbout.c (sdbout_one_type): Update.
34247 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
34248 * varasm.c (IN_NAMED_SECTION, get_named_section,
34249 resolve_unique_section, hot_function_section, get_named_text_section,
34250 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
34251 make_decl_rtl, default_unique_section): Update.
34252 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
34253 (c6x_elf_unique_section): Update.
34254 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
34255 * config/pa/pa.c (pa_function_section): Update.
34256 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
34257 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
34258 * config/arc/arc.c (arc_in_small_data_p): Update.
34259 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
34260 * config/mcore/mcore.c (mcore_unique_section): Update.
34261 * config/mips/mips.c (mips16_build_function_stub): Update.
34262 (mips16_build_call_stub): Update.
34263 (mips_function_rodata_section): Update.
34264 (mips_in_small_data_p): Update.
34265 * config/score/score.c (score_in_small_data_p): Update.
34266 * config/rx/rx.c (rx_in_small_data): Update.
34267 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
34268 (rs6000_xcoff_asm_named_section): Update.
34269 (rs6000_xcoff_unique_section): Update.
34270 * config/frv/frv.c (frv_string_begins_with): Update.
34271 (frv_in_small_data_p): Update.
34272 * config/v850/v850.c (v850_encode_data_area): Update.
34273 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
34274 (bfin_handle_l1_data_attribute): Update.
34275 (bfin_handle_l2_attribute): Update.
34276 * config/mep/mep.c (mep_unique_section): Update.
34277 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
34279 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
34280 (h8300_handle_tiny_data_attribute): Update.
34281 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
34282 (m32r_in_small_data_p): Update.
34283 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
34284 * config/i386/i386.c (ix86_in_large_data_p): Update.
34285 * config/i386/winnt.c (i386_pe_unique_section): Update.
34286 * config/darwin.c (darwin_function_section): Update.
34287 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
34288 * tree-emutls.c (get_emutls_init_templ_addr): Update.
34289 (new_emutls_decl): Update.
34290 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
34291 input_varpool_node): Update.
34292 (ead_string_cst): Turn to ...
34293 (read_string): ... this one.
34294 * dwarf2out.c (secname_for_decl): Update.
34295 * asan.c (asan_protect_global): Update.
34297 2014-06-11 DJ Delorie <dj@redhat.com>
34299 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
34301 * config/rx/rx.c (rx_option_override): Likewise.
34302 (rx_align_for_label): Likewise.
34304 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
34306 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
34308 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
34311 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34313 * common.md: New file.
34314 * doc/md.texi: Update description of generic, machine-independent
34316 * config/s390/constraints.md (e): Delete.
34317 * Makefile.in (md_file): Include common.md.
34318 * config/m32c/t-m32c (md_file): Likewise.
34319 * genpreds.c (general_mem): New array.
34320 (generic_constraint_letters): Remove constraints now defined by
34322 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
34323 Allow the first character to be '<' or '>' as well.
34324 * genoutput.c (general_mem): New array.
34325 (indep_constraints): Remove constraints now defined by common.md.
34326 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
34327 Remove special handling of 'm'.
34328 * ira-costs.c (record_reg_classes): Remove special handling of
34329 constraints now defined by common.md.
34330 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
34331 * ira-lives.c (single_reg_class): Likewise.
34332 (ira_implicitly_set_insn_hard_regs): Likewise.
34333 * lra-constraints.c (reg_class_from_constraints): Likewise.
34334 (process_alt_operands, process_address, curr_insn_transform): Likewise.
34335 * postreload.c (reload_cse_simplify_operands): Likewise.
34336 * reload.c (push_secondary_reload, scratch_reload_class)
34337 (find_reloads, alternative_allows_const_pool_ref): Likewise.
34338 * reload1.c (maybe_fix_stack_asms): Likewise.
34339 * targhooks.c (default_secondary_reload): Likewise.
34340 * stmt.c (parse_output_constraint): Likewise.
34341 * recog.c (preprocess_constraints): Likewise.
34342 (constrain_operands, peep2_find_free_register): Likewise.
34343 (asm_operand_ok): Likewise, but add a comment saying why 'o'
34344 must be handled specially.
34346 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34348 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
34349 * genpreds.c (have_const_dbl_constraints): Delete.
34350 (add_constraint): Don't set it.
34351 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
34352 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
34353 constraints using the lookup_constraint logic.
34354 * ira-lives.c (single_reg_class): Likewise.
34355 * ira.c (ira_setup_alts): Likewise.
34356 * lra-constraints.c (process_alt_operands): Likewise.
34357 * recog.c (asm_operand_ok, constrain_operands): Likewise.
34358 * reload.c (find_reloads): Likewise.
34360 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34362 * genpreds.c (const_int_start, const_int_end): New variables.
34363 (choose_enum_order): Output CONST_INT constraints before memory
34365 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
34367 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
34368 * ira.c (ira_setup_alts): Likewise.
34369 * lra-constraints.c (process_alt_operands): Likewise.
34370 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
34371 * reload.c (find_reloads): Likewise.
34373 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34375 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
34376 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
34377 * recog.c (preprocess_constraints): Update accordingly.
34379 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34381 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
34382 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
34383 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
34384 * genpreds.c (print_type_tree): New function.
34385 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
34386 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
34387 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
34388 Write out enum constraint_type and get_constraint_type.
34389 * lra-constraints.c (satisfies_memory_constraint_p): Take a
34390 constraint_num rather than a constraint string.
34391 (satisfies_address_constraint_p): Likewise.
34392 (reg_class_from_constraints): Avoid old constraint macros.
34393 (process_alt_operands, process_address_1): Likewise.
34394 (curr_insn_transform): Likewise.
34395 * ira-costs.c (record_reg_classes): Likewise.
34396 (record_operand_costs): Likewise.
34397 * ira-lives.c (single_reg_class): Likewise.
34398 (ira_implicitly_set_insn_hard_regs): Likewise.
34399 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
34400 * postreload.c (reload_cse_simplify_operands): Likewise.
34401 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
34402 (constrain_operands, peep2_find_free_register): Likewise.
34403 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
34404 (find_reloads, alternative_allows_const_pool_ref): Likewise.
34405 * reload1.c (maybe_fix_stack_asms): Likewise.
34406 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
34407 * targhooks.c (default_secondary_reload): Likewise.
34408 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
34409 to EXTRA_CONSTRAINT_STR.
34410 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
34412 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34414 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
34415 (write_constraint_satisfied_p_array): ...this new function.
34416 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
34418 (write_insn_preds_c): Update accordingly.
34420 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34422 * genpreds.c (write_lookup_constraint): Rename to...
34423 (write_lookup_constraint_1): ...this.
34424 (write_lookup_constraint_array): New function.
34425 (write_tm_preds_h): Define lookup_constraint as an inline function
34426 that uses write_lookup_constraint_array where possible.
34427 (write_insn_preds_c): Update for the changes above.
34429 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34431 * doc/md.texi (regclass_for_constraint): Rename to...
34432 (reg_class_for_constraint): ...this.
34433 * genpreds.c (num_constraints, enum_order, register_start)
34434 (register_end, satisfied_start, memory_start, memory_end)
34435 (address_start, address_end): New variables.
34436 (add_constraint): Count the number of constraints.
34437 (choose_enum_order): New function.
34438 (write_enum_constraint_num): Iterate over enum_order.
34439 (write_regclass_for_constraint): Rename to...
34440 (write_reg_class_for_constraint_1): ...this and update output
34442 (write_constraint_satisfied_p): Rename to...
34443 (write_constraint_satisfied_p_1): ...this and update output
34444 accordingly. Do nothing if all extra constraints are register
34446 (write_insn_extra_memory_constraint): Delete.
34447 (write_insn_extra_address_constraint): Delete.
34448 (write_range_function): New function.
34449 (write_tm_preds_h): Define constraint_satisfied_p and
34450 reg_class_for_constraint as inline functions that do a range check
34451 before calling the out-of-line function. Use write_range_function
34452 to implement insn_extra_{register,memory,address}_constraint,
34453 the first of which is new.
34454 (write_insn_preds_c): Update after above changes to write_* functions.
34455 (main): Call choose_enum_order.
34457 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
34459 PR tree-optimization/61306
34460 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
34461 expression instead of its size.
34462 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
34463 false to prevent optimization when the result is unpredictable due to
34464 arithmetic right shift of signed type with highest byte is set.
34465 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
34466 (init_symbolic_number): Likewise.
34467 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
34468 when the result is unpredictable due to sign extension.
34470 2014-06-11 Terry Guo <terry.guo@arm.com>
34472 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
34473 (*thumb1_addsi3): Ditto.
34474 (*thumb_subdi3): Ditto.
34475 (thumb1_subsi3_insn): Ditto.
34476 (*thumb_mulsi3): Ditto.
34477 (*thumb_mulsi3_v6): Ditto.
34478 (*thumb1_andsi3_insn): Ditto.
34479 (thumb1_bicsi3): Ditto.
34480 (*thumb1_iorsi3_insn): Ditto.
34481 (*thumb1_xorsi3_insn): Ditto.
34482 (*thumb1_ashlsi3): Ditto.
34483 (*thumb1_ashrsi3): Ditto.
34484 (*thumb1_lshrsi3): Ditto.
34485 (*thumb1_rotrsi3): Ditto.
34486 (*thumb1_negdi2): Ditto.
34487 (*thumb1_negsi2): Ditto.
34488 (*thumb1_abssi2): Ditto.
34489 (*thumb1_neg_abssi2): Ditto.
34490 (*thumb1_one_cmplsi2): Ditto.
34491 (*thumb1_zero_extendhisi2): Ditto.
34492 (*thumb1_zero_extendqisi2): Ditto.
34493 (*thumb1_zero_extendqisi2_v6): Ditto.
34494 (thumb1_extendhisi2): Ditto.
34495 (thumb1_extendqisi2): Ditto.
34496 (*thumb1_movdi_insn): Ditto.
34497 (*thumb1_movsi_insn): Ditto.
34498 (*thumb1_movhi_insn): Ditto.
34499 (thumb_movhi_clobber): Ditto.
34500 (*thumb1_movqi_insn): Ditto.
34501 (*thumb1_movhf): Ditto.
34502 (*thumb1_movsf_insn): Ditto.
34503 (*thumb_movdf_insn): Ditto.
34504 (movmem12b): Ditto.
34506 (cbranchqi4): Ditto.
34507 (cbranchsi4_insn): Ditto.
34508 (cbranchsi4_scratch): Ditto.
34509 (*negated_cbranchsi4): Ditto.
34510 (*tbit_cbranch): Ditto.
34511 (*tlobits_cbranch): Ditto.
34512 (*tstsi3_cbranch): Ditto.
34513 (*cbranchne_decr1): Ditto.
34514 (*addsi3_cbranch): Ditto.
34515 (*addsi3_cbranch_scratch): Ditto.
34516 (*thumb_cmpdi_zero): Ditto.
34517 (cstoresi_eq0_thumb1): Ditto.
34518 (cstoresi_ne0_thumb1): Ditto.
34519 (*cstoresi_eq0_thumb1_insn): Ditto.
34520 (*cstoresi_ne0_thumb1_insn): Ditto.
34521 (cstoresi_nltu_thumb1): Ditto.
34522 (cstoresi_ltu_thumb1): Ditto.
34523 (thumb1_addsi3_addgeu): Ditto.
34524 (*thumb_jump): Ditto.
34525 (*call_reg_thumb1_v5): Ditto.
34526 (*call_reg_thumb1): Ditto.
34527 (*call_value_reg_thumb1_v5): Ditto.
34528 (*call_value_reg_thumb1): Ditto.
34529 (*call_insn): Ditto.
34530 (*call_value_insn): Ditto.
34531 (thumb1_casesi_internal_pic): Ditto.
34532 (thumb1_casesi_dispatch): Ditto.
34533 (*thumb1_indirect_jump): Ditto.
34534 (prologue_thumb1_interwork): Ditto.
34535 (*epilogue_insns): Ditto.
34536 (consttable_1): Ditto.
34537 (consttable_2): Ditto.
34538 (tablejump): Ditto.
34539 (*thumb1_tablejump): Ditto.
34540 (thumb_eh_return): Ditto.
34541 (define_peephole2): Two of them are thumb1 only and got moved into
34542 new file thumb1.md.
34543 (define_split): Six of them are thumb1 only and got moved into new
34545 * config/arm/thumb1.md: New file comprised of above thumb1 only
34548 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34550 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
34551 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
34553 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
34554 (aarch64_crc_builtin_datum): New struct.
34555 (aarch64_crc_builtin_data): New.
34556 (aarch64_init_crc32_builtins): New function.
34557 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
34558 (aarch64_crc32_expand_builtin): New.
34559 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
34560 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
34561 __ARM_FEATURE_CRC32 when appropriate.
34562 (TARGET_CRC32): Define.
34563 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
34564 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
34565 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
34566 (aarch64_<crc_variant>): New pattern.
34567 * config/aarch64/arm_acle.h: New file.
34568 * config/aarch64/iterators.md (CRC): New int iterator.
34569 (crc_variant, crc_mode): New int attributes.
34570 * doc/aarch64-acle-intrinsics.texi: New file.
34571 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
34572 Include aarch64-acle-intrinsics.texi.
34574 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
34576 * tree-vect-data-refs.c (vect_grouped_store_supported): New
34577 check for stores group of length 3.
34578 (vect_permute_store_chain): New permutations for stores group of
34580 * tree-vect-stmts.c (vect_model_store_cost): Change cost
34581 of vec_perm_shuffle for the new permutations.
34583 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
34585 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
34586 table rewriting temporarily on targets not supporting ONE_ONLY.
34588 2014-06-11 Richard Biener <rguenther@suse.de>
34590 PR middle-end/61437
34592 2014-06-04 Richard Biener <rguenther@suse.de>
34594 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
34595 TREE_PUBLIC and DECL_EXTERNAL decls.
34597 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
34599 * varasm.c (set_implicit_section): New function.
34600 (resolve_unique_section): Use it to set implicit section
34602 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
34603 (default_function_section): Likewise.
34604 (decl_binds_to_current_def_p): Constify argument.
34605 * varasm.h (decl_binds_to_current_def_p): Update prototype.
34606 * asan.c (asan_protect_global): Use
34607 symtab_get_node (decl)->implicit_section.
34608 * symtab.c (dump_symtab_base): Dump implicit sections.
34609 (verify_symtab_base): Verify sanity of sectoins and comdats.
34610 (symtab_resolve_alias): Alias share the section of its target.
34611 (set_section_1): New function.
34612 (symtab_node::set_section): Move here, recurse to aliases.
34613 (verify_symtab): Check for duplicated symtab lists.
34614 * tree-core.h (implicit_section_name_p): Remove.
34615 * tree-vect-data-refs.c: Include varasm.h.
34616 (vect_can_force_dr_alignment_p): Fix conditional on when
34617 decl bints to current definition; use
34618 symtab_get_node (decl)->implicit_section.
34619 * cgraph.c (cgraph_make_node_local_1): Fix section set.
34620 * cgraph.h (struct symtab_node): Add implicit_section.
34621 (set_section): Rename to ...
34622 (set_section_for_node): ... this one.
34623 (set_section): Declare.
34624 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
34625 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
34626 input_overwrite_node, input_varpool_node): Stream implicit_section.
34627 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
34628 removal; it will fail in LTO.
34630 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34632 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
34633 Change second alternative type to f_mcr.
34634 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
34635 and 12th alternatives' types to f_mcr and f_mrc.
34636 (*movdi_aarch64): Same for 12th and 13th alternatives.
34637 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
34638 (aarch64_movtilow_tilow): Change type to fmov.
34640 2014-06-10 Jiong Wang <jiong.wang@arm.com>
34642 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
34643 (aarch64_save_or_restore_callee_save_registers): Fix layout.
34645 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34647 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
34649 (aarch64_sqrdmulh_lane<mode>): Likewise.
34650 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
34651 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
34652 (aarch64_sqdmulh_laneq<mode>): New expander.
34653 (aarch64_sqrdmulh_laneq<mode>): Likewise.
34654 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
34655 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
34656 (aarch64_sqdmulh_lane<mode>): New expander.
34657 (aarch64_sqrdmulh_lane<mode>): Likewise.
34658 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
34659 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
34660 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
34661 (aarch64_sqdmlal_laneq<mode>): Likewise.
34662 (aarch64_sqdmlsl_lane<mode>): Likewise.
34663 (aarch64_sqdmlsl_laneq<mode>): Likewise.
34664 (aarch64_sqdmlal2_lane<mode>): Likewise.
34665 (aarch64_sqdmlal2_laneq<mode>): Likewise.
34666 (aarch64_sqdmlsl2_lane<mode>): Likewise.
34667 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
34668 (aarch64_sqdmull_lane<mode>): Likewise.
34669 (aarch64_sqdmull_laneq<mode>): Likewise.
34670 (aarch64_sqdmull2_lane<mode>): Likewise.
34671 (aarch64_sqdmull2_laneq<mode>): Likewise.
34673 2014-06-10 Richard Biener <rguenther@suse.de>
34675 PR tree-optimization/61438
34676 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
34677 (eliminate_dom_walker::before_dom_children): Only try to inhibit
34678 insertion of IVs if running PRE.
34679 (eliminate): Adjust.
34680 (pass_pre::execute): Likewise.
34681 (pass_fre::execute): Likewise.
34683 2014-06-10 Richard Biener <rguenther@suse.de>
34685 PR middle-end/61456
34686 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
34687 Do not use the main variant for the type comparison.
34688 (ncr_compar): Likewise.
34689 (nonoverlapping_component_refs_p): Likewise.
34691 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
34693 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
34694 REG_CFA_RESTORE mode.
34696 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
34698 * config/i386/i386.c (expand_vec_perm_pblendv): New.
34699 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
34700 expand_vec_perm_pblendv.
34702 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34704 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
34706 Simplify description of __crc32d and __crc32cd intrinsics.
34707 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
34710 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
34713 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
34714 * config.in: Regenerate.
34715 * configure: Likewise.
34717 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
34719 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
34721 (intersect_static_var_sets): Remove.
34722 (propagate): Do not prune local statics.
34724 2014-06-10 Jakub Jelinek <jakub@redhat.com>
34727 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
34728 Set lastprivate_firstprivate even if omp_private_outer_ref
34729 langhook returns true.
34730 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
34731 langhook, call unshare_expr on new_var and call
34732 build_outer_var_ref to get the last argument.
34734 2014-06-10 Marek Polacek <polacek@redhat.com>
34737 * doc/extend.texi: Add cindex for transparent_union.
34739 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
34741 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
34742 init_symbolic_number ().
34744 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
34746 PR middle-end/61141
34747 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
34748 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
34749 (verify_rtl_sharing): Likewise.
34751 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
34754 * tree.c (build_qualified_type): Use a canonical type for
34757 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34759 * config/arm/arm-modes.def: Remove XFmode.
34761 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
34764 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
34765 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
34766 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
34767 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
34768 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
34769 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
34770 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
34771 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
34772 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
34774 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
34776 * tree-core.h (tree_decl_with_vis): Remove section_name.
34778 2014-06-09 Kito Cheng <kito@0xlab.org>
34780 * ira.c (ira): Don't call init_caller_save if LRA enabled
34781 since LRA use its own infrastructure to handle that.
34783 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34785 * symtab.c (dump_symtab_base): Update dumping.
34786 (symtab_make_decl_local): Clear only DECL_COMDAT.
34787 * tree-vect-data-refs.c (Check that variable is static before
34788 tampering with sections.
34789 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
34790 (cgraph_create_virtual_clone): Likewise.
34791 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
34792 (decl_section_name, set_decl_section_name): New accessors.
34793 (find_decls_types_r): Do not walk section name
34794 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
34795 (decl_comdat_group, decl_comdat_group_id): Constify.
34796 (decl_section_name, set_decl_section_name): Update.
34797 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
34798 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
34799 (cgraph_make_node_local_1): Clear section and comdat group.
34800 * cgraph.h (set_comdat_group): Sanity check.
34801 (get_section, set_section): New.
34802 * ipa-comdats.c (ipa_comdats): Use get_section.
34803 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
34804 * lto-streamer-out.c: Do not follow section names.
34805 * c-family/c-common.c (handle_section_attribute): Update.
34806 * lto-cgraph.c (lto_output_node): Output section.
34807 (lto_output_varpool_node): Likewise.
34808 (read_comdat_group): Rename to ...
34809 (read_identifier): ... this one.
34810 (read_string_cst): New function.
34811 (input_node, input_varpool_node): Input section names.
34812 * tree-emutls.c (get_emutls_init_templ_addr): Update.
34813 (new_emutls_decl): Update.
34814 (secname_for_decl): Check section names only of static vars.
34815 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
34816 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
34817 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
34818 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
34819 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
34820 * config/mcore/mcore.c (mcore_unique_section): Likewise.
34821 * config/mips/mips.c (mips16_build_function_stub): Likewise.
34822 * config/v850/v850.c (v850_insert_attributes): Likewise.
34823 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
34825 (h8300_handle_tiny_data_attribute): Likewise.
34826 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
34827 (bfin_handle_l2_attribute): Likewise.
34829 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34831 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
34832 remove static initializer.
34834 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34836 * varasm.c (use_blocks_for_decl_p): Check symbol table
34837 instead of alias attribute.
34838 (place_block_symbol): Recurse on aliases.
34840 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34842 * ipa-visibility.c: Include varasm.h
34843 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
34845 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34847 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
34848 outputting aliases.
34850 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
34852 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
34853 from test_insn into GGC space escape via SET_SRC.
34855 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
34857 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
34858 call statement, if any.
34859 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
34860 statements, if any. Tidy up.
34862 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34865 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
34866 iterators, VSX_D that handles 64-bit types, and VSX_LE that
34867 handles swapping the two 64-bit double words on little endian
34868 systems. Include V1TImode and optionally TImode in VSX_LE so that
34869 these types are properly swapped. Change all of the insns and
34870 splits that do the 64-bit swaps to use VSX_LE.
34871 (vsx_le_perm_load_<mode>): Likewise.
34872 (vsx_le_perm_store_<mode>): Likewise.
34873 (splitters for little endian memory operations): Likewise.
34874 (vsx_xxpermdi2_le_<mode>): Likewise.
34875 (vsx_lxvd2x2_le_<mode>): Likewise.
34876 (vsx_stxvd2x2_le_<mode>): Likewise.
34878 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
34881 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
34882 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
34883 and corresponding splitters. Zero extend general register
34884 or memory input operand to XMM temporary. Enable for
34885 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
34886 (floatunssi<mode>2): Update expander predicate.
34888 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
34890 PR rtl-optimization/61325
34891 * lra-constraints.c (process_address_1): Check scale equal to one
34892 to prevent transformation: base + scale * index => base + new_reg.
34894 2014-06-06 Richard Biener <rguenther@suse.de>
34896 PR tree-optimization/59299
34897 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
34899 (nearest_common_dominator_of_uses): Likewise.
34900 (statement_sink_location): Adjust. Support sinking loads.
34902 2014-06-06 Martin Jambor <mjambor@suse.cz>
34904 * ipa-prop.c (get_place_in_agg_contents_list): New function.
34905 (build_agg_jump_func_from_list): Likewise.
34906 (determine_known_aggregate_parts): Renamed to
34907 determine_locally_known_aggregate_parts. Moved some functionality
34908 to the two functions above, removed bound checks.
34910 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
34912 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
34913 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
34914 (aarch64_progress_pointer): Likewise.
34915 (aarch64_copy_one_part_and_move_pointers): Likewise.
34916 (aarch64_expand_movmen): Likewise.
34917 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
34918 * config/aarch64/aarch64.md (movmem<mode>): New.
34920 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
34922 * targhooks.c (default_add_stmt_cost): Call target specific
34923 hook instead of default one.
34925 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
34927 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
34928 endianness instead of host endianness.
34929 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
34932 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
34935 * function.c (instantiate_decls): Process the saved static chain.
34936 (expand_function_start): If not optimizing, save the static chain
34938 * tree-nested.c (convert_all_function_calls): Always create the static
34939 chain for nested functions if not optimizing.
34941 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
34943 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
34945 2014-06-06 Richard Biener <rguenther@suse.de>
34947 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
34948 (construct_init_block): Likewise.
34949 (construct_exit_block): Likewise.
34950 (pass_expand::execute): Likewise.
34951 * graphite.c (graphite_transforms): Replace check for current_loops
34952 with a check for > 1 loops.
34953 (pass_graphite_transforms::execute): Adjust.
34954 * ipa-split.c (split_function): Remove check for current_loops.
34955 * omp-low.c (expand_parallel_call): Likewise.
34956 (expand_omp_for_init_counts): Likewise.
34957 (extract_omp_for_update_vars): Likewise.
34958 (expand_omp_for_generic): Likewise.
34959 (expand_omp_sections): Likewise.
34960 (expand_omp_target): Likewise.
34961 * tracer.c (tail_duplicate): Likewise.
34962 (pass_tracer::execute): Likewise.
34963 * trans-mem.c (expand_transaction): Likewise.
34964 * tree-complex.c (expand_complex_div_wide): Likewise.
34965 * tree-eh.c (lower_resx): Likewise.
34966 (cleanup_empty_eh_merge_phis): Likewise.
34967 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
34968 current_loops with a check for > 1 loops.
34969 (pass_predcom::execute): Adjust.
34970 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
34971 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
34972 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
34973 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
34974 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
34975 * tree-switch-conversion.c (process_switch): Likewise.
34976 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
34977 * tree-vrp.c (vrp_visit_phi_node): Likewise.
34978 (execute_vrp): Likewise.
34979 * ubsan.c (ubsan_expand_null_ifn): Likewise.
34981 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
34983 * rtl.h (insn_location): Declare.
34984 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
34985 with UNKNOWN_LOCATION.
34986 * emit-rtl.c (insn_location): New function.
34987 * final.c (notice_source_line): Check that the instruction has a
34988 location before retrieving it and use insn_location.
34989 * modulo-sched.c (loop_single_full_bb_p): Likewise.
34990 * print-rtl.c (print_rtx): Likewise.
34992 2014-06-06 Richard Biener <rguenther@suse.de>
34994 * passes.def: Move 2nd VRP pass before phi-only-cprop.
34996 2014-06-06 Christian Bruel <christian.bruel@st.com>
34998 PR tree-optimization/43934
34999 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
35002 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
35004 * ira-lives.c (single_reg_class): Add missing break. Explicitly
35005 return NO_REGS for extra address and memory constraints. Handle
35006 operands that match (or are equivalent to something that matches)
35007 extra constant constraints. Ignore other non-register operands.
35009 2014-06-06 Alan Modra <amodra@gmail.com>
35012 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
35013 * doc/tm.texi: Regenerate.
35014 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
35015 Use throughout in place of REG_PARM_STACK_SPACE.
35016 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
35017 "incoming" param. Pass to rs6000_function_parms_need_stack.
35018 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
35019 prototype_p when incoming. Use function decl when incoming
35020 to handle K&R style functions.
35021 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
35022 (INCOMING_REG_PARM_STACK_SPACE): Define.
35024 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
35027 * cfgexpand.c (expand_debug_expr): Use address space of nested
35028 TREE_TYPE for ADDR_EXPR and MEM_REF.
35030 2014-06-05 Jeff Law <law@redhat.com>
35032 PR tree-optimization/61289
35033 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
35034 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
35035 looking for those which match LHS. All callers changed.
35036 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
35037 parameters and code which manipulated them. All callers changed.
35038 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
35039 and DST_MAP parameters. Simplify invalidation code by just calling
35040 invalidate_equivalences. All callers changed.
35041 (thread_across_edge): Simplify now that we don't need to maintain
35042 the map of equivalences to invalidate.
35044 2014-06-05 Kai Tietz <ktietz@redhat.com>
35045 Richard Henderson <rth@redhat.com>
35048 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
35049 checking for !TARGET_X32.
35050 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
35051 (sibcall_intern): New define_insn, plus required peepholes.
35052 (sibcall_pop_intern): Likewise.
35053 (sibcall_value_intern): Likewise.
35054 (sibcall_value_pop_intern): Likewise.
35056 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
35058 * tree-inline.c (tree_function_versioning): Check DF info existence
35059 before accessing it.
35061 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35063 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
35065 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
35066 aarch64_frame hard_fp_offset and frame_size.
35067 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
35068 frame_size; remove original_frame_size.
35069 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
35070 (aarch64_initial_elimination_offset): Remove frame_size and
35071 offset. Use aarch64_frame frame_size.
35073 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35074 Jiong Wang <jiong.wang@arm.com>
35075 Renlin <renlin.li@arm.com>
35077 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
35078 initialization of R30 offset. Update offset. Iterate core
35079 regisers upto X30. Remove X29, X30 specific code.
35081 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35082 Jiong Wang <jiong.wang@arm.com>
35084 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
35085 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
35086 (aarch64_register_saved_on_entry): Adjust test.
35088 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35090 * config/aarch64/aarch64.h (machine_function): Move
35091 saved_varargs_size from here...
35092 (aarch64_frame): ... to here.
35094 * config/aarch64/aarch64.c (aarch64_expand_prologue)
35095 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
35096 (aarch64_initial_elimination_offset)
35097 (aarch64_setup_incoming_varargs): Adjust location of
35098 saved_varargs_size.
35100 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35102 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
35105 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
35106 Prachi Godbole <Prachi.Godbole@imgtec.com>
35108 * config/mips/mips-cpus.def: Add definition for p5600. Updated
35109 mips32r5 entry to use PROCESSOR_P5600.
35110 * config/mips/mips-tables.opt: Regenerate.
35111 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
35112 * config/mips/mips.c (mips_fmadd_bypass): New function.
35113 (mips_rtx_cost_data): Add costs for p5600.
35114 (mips_issue_rate): Add support for p5600.
35115 (mips_multipass_dfa_lookahead): Likewise.
35116 * config/mips/mips.h (TUNE_P5600): New define.
35117 (TUNE_MACC_CHAINS): Add TUNE_P5600.
35118 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
35119 * config/mips/mips.md: Include p5600.md.
35120 (processor): Add p5600.
35121 * config/mips/p5600.md: New file.
35123 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
35125 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
35126 * config/i386/predicates.md (palignr_operand): New.
35127 Indicates if permutation is suitable for palignr instruction.
35129 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
35131 PR tree-optimization/61319
35132 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
35133 stmt belongs to loop.
35135 2014-06-05 Richard Biener <rguenther@suse.de>
35137 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
35138 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
35139 (lookup_tmp_var): Adjust.
35140 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
35142 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35144 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
35146 2014-06-05 Marek Polacek <polacek@redhat.com>
35149 * doc/invoke.texi: Document -Wlogical-not-parentheses.
35151 2014-06-04 Tom de Vries <tom@codesourcery.com>
35153 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
35156 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
35158 PR tree-optimization/61385
35159 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
35161 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
35163 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
35164 changed to use fatal_error.
35165 (main): Ensure lto_wrapper_cleanup is run atexit.
35167 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35169 * lra-constraints.c (valid_address_p): Move earlier in file.
35170 (address_eliminator): New structure.
35171 (satisfies_memory_constraint_p): New function.
35172 (satisfies_address_constraint_p): Likewise.
35173 (process_alt_operands, process_address, curr_insn_transform): Use them.
35175 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35177 * lra-int.h (lra_static_insn_data): Make operand_alternative a
35179 (target_lra_int, default_target_lra_int, this_target_lra_int)
35180 (op_alt_data): Delete.
35181 * lra.h (lra_init): Delete.
35182 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
35183 (init_insn_code_data_once): Remove op_alt_data handling.
35184 (finish_insn_code_data_once): Likewise.
35185 (init_op_alt_data): Delete.
35186 (get_static_insn_data): Initialize operand_alternative to null.
35187 (free_insn_recog_data): Cast operand_alternative before freeing it.
35188 (setup_operand_alternative): Take the operand_alternative as
35189 parameter and assume it isn't already cached in the static
35191 (lra_set_insn_recog_data): Update accordingly.
35192 (lra_init): Delete.
35193 * ira.c (ira_init): Don't call lra_init.
35194 * target-globals.h (this_target_lra_int): Declare.
35195 (target_globals): Remove lra_int.
35196 (restore_target_globals): Update accordingly.
35197 * target-globals.c: Don't include lra-int.h.
35198 (default_target_globals, save_target_globals): Remove lra_int.
35200 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35202 * recog.h (operand_alternative): Convert reg_class, reject,
35203 matched and matches into bitfields.
35204 (preprocess_constraints): New overload.
35205 (preprocess_insn_constraints): New function.
35206 (preprocess_constraints): Take the insn as parameter.
35207 (recog_op_alt): Change into a pointer.
35208 (target_recog): Add x_op_alt.
35209 * recog.c (asm_op_alt): New variable.
35210 (recog_op_alt): Change into a pointer.
35211 (preprocess_constraints): New overload, replacing the old function
35212 definition with one that doesn't use global state.
35213 (preprocess_insn_constraints): New function.
35214 (preprocess_constraints): Use them. Take the insn as parameter.
35215 Use asm_op_alt for asms.
35216 (recog_init): Free existing x_op_alt entries.
35217 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
35219 (make_early_clobber_and_input_conflicts): Likewise.
35220 (process_bb_node_lives): Pass the insn to process_constraints.
35221 * reg-stack.c (check_asm_stack_operands): Likewise.
35222 (subst_asm_stack_regs): Likewise.
35223 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
35224 * regrename.c (build_def_use): Likewise.
35225 * sched-deps.c (sched_analyze_insn): Likewise.
35226 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
35227 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
35228 (note_invalid_constants): Likewise.
35229 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
35230 (ix86_legitimate_combined_insn): Make operand_alternative pointer
35233 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35235 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
35236 * ira-lives.c (check_and_make_def_conflict): Check for disabled
35238 (make_early_clobber_and_input_conflicts): Likewise.
35239 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
35241 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35243 * recog.h (alternative_class): New function.
35244 (which_op_alt): Return a const recog_op_alt.
35245 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
35246 (subst_asm_stack_regs): Likewise.
35247 * config/arm/arm.c (note_invalid_constants): Likewise.
35248 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
35249 the operand_alternative; use alternative class instead.
35250 * sel-sched.c (get_reg_class): Likewise.
35251 * regrename.c (build_def_use): Likewise.
35252 (hide_operands, restore_operands, record_out_operands): Update type
35255 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35257 * recog.h (recog_op_alt): Convert to a flat array.
35258 (which_op_alt): New function.
35259 * recog.c (recog_op_alt): Convert to a flat array.
35260 (preprocess_constraints): Update accordingly, grouping all
35261 operands of the same alternative together, rather than the
35263 * ira-lives.c (check_and_make_def_conflict): Likewise.
35264 (make_early_clobber_and_input_conflicts): Likewise.
35265 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
35266 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
35267 (subst_asm_stack_regs): Likewise.
35268 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
35269 * regrename.c (hide_operands, record_out_operands): Likewise.
35270 (build_def_use): Likewise.
35271 * sel-sched.c (get_reg_class): Likewise.
35272 * config/arm/arm.c (note_invalid_constants): Likewise.
35274 2014-06-04 Jason Merrill <jason@redhat.com>
35278 * gimplify.c (gimplify_arg): Non-static.
35279 * gimplify.h: Declare it.
35281 2014-06-04 Richard Biener <rguenther@suse.de>
35283 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
35284 TREE_PUBLIC and DECL_EXTERNAL decls.
35286 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
35288 * regcprop.c (copyprop_hardreg_forward_1): Account for
35289 HARD_REGNO_CALL_PART_CLOBBERED.
35291 2014-06-04 Richard Biener <rguenther@suse.de>
35293 * configure.ac: Check whether the underlying type of int64_t
35294 is long or long long.
35295 * configure: Regenerate.
35296 * config.in: Likewise.
35297 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
35298 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
35300 2014-06-04 Richard Biener <rguenther@suse.de>
35302 PR tree-optimization/60098
35303 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
35305 (dse_optimize_stmt): Simplify, now that we found a kill
35308 2014-06-04 Richard Biener <rguenther@suse.de>
35310 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
35311 of accesses with non-invariant address.
35313 2014-06-04 Martin Liska <mliska@suse.cz>
35315 * cgraph.h (cgraph_make_wrapper): New function introduced.
35316 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
35317 * ipa-inline.h (inline_analyze_function): The function is global.
35318 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
35320 2014-06-04 Martin Liska <mliska@suse.cz>
35322 * tree.h (private_lookup_attribute_starting): New function.
35323 (lookup_attribute_starting): Likewise.
35324 * tree.c (private_lookup_attribute_starting): Likewise.
35326 2014-06-04 Martin Liska <mliska@suse.cz>
35328 * cgraph.h (expand_thunk): New argument added.
35329 (address_taken_from_non_vtable_p): New global function.
35330 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
35331 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
35332 * cgraphunit.c (analyze_function): Likewise.
35333 (assemble_thunks_and_aliases): Argument added to call.
35334 (expand_thunk): New argument forces to produce GIMPLE thunk.
35336 2014-06-04 Martin Liska <mliska@suse.cz>
35338 * coverage.h (coverage_compute_cfg_checksum): Argument added.
35339 * coverage.c (coverage_compute_cfg_checksum): Likewise.
35340 * profile.c (branch_prob): Likewise.
35342 2014-06-04 Martin Jambor <mjambor@suse.cz>
35345 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
35346 handler for switch on an ipa_ref_use enum.
35347 * ipa-reference.c (analyze_function): Likewise.
35349 2014-06-04 Kai Tietz <ktietz@redhat.com>
35351 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
35352 from old call-instruction.
35354 2014-06-04 Bin Cheng <bin.cheng@arm.com>
35356 * config/aarch64/aarch64.c (aarch64_classify_address)
35357 (aarch64_legitimize_reload_address): Support full addressing modes
35359 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
35360 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
35362 2014-06-03 Andrew Pinski <apinski@cavium.com>
35364 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
35367 2014-06-03 Andrew Pinski <apinski@cavium.com>
35369 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
35370 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
35372 2014-06-03 Kai Tietz <ktietz@redhat.com>
35374 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
35377 2014-06-03 Dehao Chen <dehao@google.com>
35379 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
35382 2014-06-03 Marek Polacek <polacek@redhat.com>
35385 * doc/invoke.texi: Document -Wswitch-bool.
35386 * function.c (stack_protect_epilogue): Cast controlling expression of
35388 * gengtype.c (walk_type): Generate switch expression with its
35389 controlling expression cast to int.
35391 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
35393 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
35395 * config/avr/avr-tables.opt: Regenerate.
35396 * config/avr/t-multilib: Regenerate.
35397 * doc/avr-mmcu.texi: Regenerate.
35399 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
35400 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
35402 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
35403 (ata6617c, ata664251): Add new avr35 devices.
35404 (ata6612c): Add new avr4 device.
35405 (ata6613c, ata6614q): Add new avr5 devices.
35406 * config/avr/avr-tables.opt: Regenerate.
35407 * config/avr/t-multilib: Regenerate.
35408 * doc/avr-mmcu.texi: Regenerate.
35410 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35412 * gcc/config/aarch64/aarch64-builtins.c
35413 (aarch64_types_binop_ssu_qualifiers): New static data.
35414 (TYPES_BINOP_SSU): Define.
35415 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
35416 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
35417 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
35418 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
35419 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
35420 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
35421 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
35422 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
35423 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
35424 suffix to builtin function name, remove cast.
35425 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
35426 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
35427 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
35429 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35431 * gcc/config/aarch64/aarch64-builtins.c
35432 (aarch64_types_binop_uus_qualifiers,
35433 aarch64_types_shift_to_unsigned_qualifiers,
35434 aarch64_types_unsigned_shiftacc_qualifiers): Define.
35435 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
35436 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
35437 sqshlu_n, uqshl_n): Update qualifiers.
35438 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
35439 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
35440 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
35441 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
35442 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
35443 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
35444 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
35445 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
35446 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
35447 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
35448 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
35449 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
35450 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
35451 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
35452 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
35453 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
35454 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
35455 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
35456 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
35457 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
35458 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
35459 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
35460 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
35461 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
35462 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
35463 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
35464 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
35466 2014-06-03 Teresa Johnson <tejohnson@google.com>
35468 * tree-sra.c (modify_function): Record caller nodes after rebuild.
35470 2014-06-02 Jason Merrill <jason@redhat.com>
35473 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
35475 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35477 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
35480 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35482 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
35484 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
35485 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
35486 * config/aarch64/iterators.md (REVERSE): New iterator.
35487 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
35488 (rev_op): New int_attribute.
35489 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
35490 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
35491 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
35492 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
35493 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
35494 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
35495 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
35496 Replace temporary __asm__ with __builtin_shuffle.
35498 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
35500 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
35502 * config/mips/mips-tables.opt: Regenerate.
35503 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
35504 to use mips_isa_rev rather than ISA_MIPS32R2.
35505 * config/mips/mips.h (ISA_MIPS32R3): New define.
35506 (ISA_MIPS32R5): New define.
35507 (ISA_MIPS64R3): New define.
35508 (ISA_MIPS64R5): New define.
35509 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
35510 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
35511 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
35513 (MIPS_ISA_SYNCI_SPEC): Likewise.
35514 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
35515 (LINK_SPEC): Added mips32r3 and mips32r5.
35516 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
35517 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
35518 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
35519 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
35520 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
35521 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
35522 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
35524 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
35526 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
35528 * config/mips/mips.opt (mxpa): New option.
35529 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
35532 2014-06-03 Martin Jambor <mjambor@suse.cz>
35535 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
35538 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
35540 PR tree-optimization/61328
35541 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
35542 initialization from find_bswap_or_nop_1.
35543 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
35544 in source_expr2 before using the size value the function sets. Also
35545 make use of init_symbolic_number () in both the old place and
35546 find_bswap_or_nop_load () to avoid reading uninitialized memory when
35547 doing recursion in the GIMPLE_BINARY_RHS case.
35549 2014-06-03 Richard Biener <rguenther@suse.de>
35551 PR tree-optimization/61383
35552 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
35555 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
35557 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
35558 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
35559 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
35560 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
35562 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
35563 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
35564 * system.h: ...here and make it unconditional.
35565 * target.def (conditional_register_usage): Mention
35566 define_register_constraint instead of old-style constraint macros.
35567 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
35568 * doc/tm.texi: Regenerate.
35569 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
35570 protected by !USE_MD_CONSTRAINTS.
35571 * config/frv/frv.md: Remove quote from old version of documentation.
35572 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
35573 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
35574 CONST_DOUBLE_OK_FOR_LETTER.
35575 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
35577 2014-06-02 Andrew Pinski <apinski@cavium.com>
35579 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
35580 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
35581 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
35582 file whose name depends on -mabi= and -mbig-endian.
35583 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
35584 Handle LP64 better and handle ilp32 too.
35585 (MULTILIB_OPTIONS): Delete.
35586 (MULTILIB_DIRNAMES): Delete.
35588 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
35590 * expr.h: Remove prototypes of functions defined in builtins.c.
35591 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
35592 Remove prototypes of functions defined in builtins.c.
35593 * builtins.h: Update prototype list to include all exported functions.
35594 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
35595 no_c99_libc_has_function): Move to targhooks.c
35596 (build_string_literal, build_call_expr_loc_array,
35597 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
35599 (expand_builtin_object_size, fold_builtin_object_size): Make static.
35600 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
35601 no_c99_libc_has_function): Relocate from builtins.c.
35602 * tree.c: Include builtins.h.
35603 (build_call_expr_loc_array, build_call_expr_loc_vec,
35604 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
35606 * fold-const.h (fold_fma): Move prototype to builtins.h.
35607 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
35608 * asan.c: Include builtins.h.
35609 * cfgexpand.c: Likewise.
35610 * convert.c: Likewise.
35611 * emit-rtl.c: Likewise.
35612 * except.c: Likewise.
35613 * expr.c: Likewise.
35614 * fold-const.c: Likewise.
35615 * gimple-fold.c: Likewise.
35616 * gimple-ssa-strength-reduction.c: Likewise.
35617 * gimplify.c: Likewise.
35618 * ipa-inline.c: Likewise.
35619 * ipa-prop.c: Likewise.
35620 * lto-streamer-out.c: Likewise.
35621 * stmt.c: Likewise.
35622 * tree-inline.c: Likewise.
35623 * tree-object-size.c: Likewise.
35624 * tree-sra.c: Likewise.
35625 * tree-ssa-ccp.c: Likewise.
35626 * tree-ssa-forwprop.c: Likewise.
35627 * tree-ssa-loop-ivcanon.c: Likewise.
35628 * tree-ssa-loop-ivopts.c: Likewise.
35629 * tree-ssa-math-opts.c: Likewise.
35630 * tree-ssa-reassoc.c: Likewise.
35631 * tree-ssa-threadedge.c: Likewise.
35632 * tree-streamer-in.c: Likewise.
35633 * tree-vect-data-refs.c: Likewise.
35634 * tree-vect-patterns.c: Likewise.
35635 * tree-vect-stmts.c: Likewise.
35636 * config/aarch64/aarch64.c: Likewise.
35637 * config/alpha/alpha.c: Likewise.
35638 * config/arc/arc.c: Likewise.
35639 * config/arm/arm.c: Likewise.
35640 * config/avr/avr.c: Likewise.
35641 * config/bfin/bfin.c: Likewise.
35642 * config/c6x/c6x.c: Likewise.
35643 * config/cr16/cr16.c: Likewise.
35644 * config/cris/cris.c: Likewise.
35645 * config/epiphany/epiphany.c: Likewise.
35646 * config/fr30/fr30.c: Likewise.
35647 * config/frv/frv.c: Likewise.
35648 * config/h8300/h8300.c: Likewise.
35649 * config/i386/i386.c: Likewise.
35650 * config/i386/winnt.c: Likewise.
35651 * config/ia64/ia64.c: Likewise.
35652 * config/iq2000/iq2000.c: Likewise.
35653 * config/lm32/lm32.c: Likewise.
35654 * config/m32c/m32c.c: Likewise.
35655 * config/m32r/m32r.c: Likewise.
35656 * config/m68k/m68k.c: Likewise.
35657 * config/mcore/mcore.c: Likewise.
35658 * config/mep/mep.c: Likewise.
35659 * config/microblaze/microblaze.c: Likewise.
35660 * config/mips/mips.c: Likewise.
35661 * config/mmix/mmix.c: Likewise.
35662 * config/mn10300/mn10300.c: Likewise.
35663 * config/moxie/moxie.c: Likewise.
35664 * config/msp430/msp430.c: Likewise.
35665 * config/nds32/nds32.c: Likewise.
35666 * config/pa/pa.c: Likewise.
35667 * config/pdp11/pdp11.c: Likewise.
35668 * config/picochip/picochip.c: Likewise.
35669 * config/rl78/rl78.c: Likewise.
35670 * config/rs6000/rs6000.c: Likewise.
35671 * config/rx/rx.c: Likewise.
35672 * config/s390/s390.c: Likewise.
35673 * config/score/score.c: Likewise.
35674 * config/sh/sh.c: Likewise.
35675 * config/sparc/sparc.c: Likewise.
35676 * config/spu/spu.c: Likewise.
35677 * config/stormy16/stormy16.c: Likewise.
35678 * config/tilegx/tilegx.c: Likewise.
35679 * config/tilepro/tilepro.c: Likewise.
35680 * config/v850/v850.c: Likewise.
35681 * config/vax/vax.c: Likewise.
35682 * config/xtensa/xtensa.c: Likewise.
35684 2014-06-02 Jeff Law <law@redhat.com>
35686 PR rtl-optimization/61094
35687 * ree.c (combine_reaching_defs): Do not reextend an insn if it
35688 was marked as do_no_reextend. If a copy is needed to eliminate
35689 an extension, then mark it as do_not_reextend.
35691 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
35693 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
35695 2014-06-02 Richard Henderson <rth@redhat.com>
35698 * config/alpha/alpha.c (print_operand_address): Allow symbolic
35699 addresses inside asms. Use output_operand_lossage instead of
35702 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
35705 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
35706 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
35708 2014-06-02 Tom de Vries <tom@codesourcery.com>
35710 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
35711 case that x has VOIDmode.
35713 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
35715 * varasm.c (copy_constant): Delete function.
35716 (build_constant_desc): Don't call it.
35718 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35721 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
35722 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
35723 with immediate_operand.
35725 2014-06-02 Andreas Schwab <schwab@suse.de>
35727 * config/ia64/ia64.c
35728 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
35729 pending_data_specs first.
35731 2014-06-02 Richard Biener <rguenther@suse.de>
35733 PR tree-optimization/61378
35734 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
35735 valueized_anything.
35737 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
35739 * config/i386/constraints.md (Bw): Rename from 'w'.
35740 (Bz): Rename from 'z'.
35741 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
35743 2014-06-01 Kai Tietz <ktietz@redhat.com>
35746 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
35747 * config/i386/i386.md (sibcall_insn_operand): Use Bs
35748 instead of m constraint.
35750 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
35752 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
35753 a separate alternative where the scratch operand 2 is marked as
35756 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
35758 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
35759 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
35760 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
35761 and __builtins_arm_get_fpscr.
35762 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
35763 __builtins_arm_get_fpscr.
35764 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
35765 __builtins_arm_ldfpscr.
35766 (arm_atomic_assign_expand_fenv): New function.
35767 * config/arm/vfp.md (set_fpscr): New pattern.
35768 (get_fpscr) : Likewise.
35769 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
35771 * doc/extend.texi (AARCH64 Built-in Functions) : Document
35772 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
35774 2014-05-30 Jakub Jelinek <jakub@redhat.com>
35776 * asan.c (report_error_func): Add SLOW_P argument, use
35777 BUILT_IN_ASAN_*_N if set.
35778 (build_check_stmt): Likewise.
35779 (instrument_derefs): If T has insufficient alignment,
35780 force same handling as for odd sizes.
35782 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
35783 BUILT_IN_ASAN_REPORT_STORE_N): New.
35784 * asan.c (struct asan_mem_ref): Change access_size type to
35786 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
35787 update_mem_ref_hash_table): Likewise.
35788 (asan_mem_ref_hasher::hash): Hash in a HWI.
35789 (report_error_func): Change size_in_bytes argument to HWI.
35790 Use *_N builtins if size_in_bytes is larger than 16 or not power of
35792 (build_shadow_mem_access): New function.
35793 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
35794 Handle size_in_bytes not power of two or larger than 16.
35795 (instrument_derefs): Don't give up if size_in_bytes is not
35796 power of two or is larger than 16.
35798 2014-05-30 Kai Tietz <ktietz@redhat.com>
35801 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
35802 for sibling-tail-calls.
35803 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
35805 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
35806 (sibcall_insn_operand): Add check for sibcall_memory_operand.
35808 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
35810 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
35811 * config/avr/avr-tables.opt: Regenerate.
35812 * config/avr/t-multilib: Regenerate.
35813 * doc/avr-mmcu.texi: Regenerate.
35815 2014-05-30 Ian Lance Taylor <iant@google.com>
35817 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
35820 2014-05-30 Tom de Vries <tom@codesourcery.com>
35822 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
35825 2014-05-30 Tom de Vries <tom@codesourcery.com>
35827 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
35828 * lra.c (initialize_lra_reg_info_element): Add init of
35829 actual_call_used_reg_set field.
35830 (lra): Call lra_create_live_ranges before lra_inheritance for
35832 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
35834 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
35835 instead of call_used_reg_set for -fuse-caller-save.
35836 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
35838 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35840 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
35842 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
35844 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
35846 * ira.c (ira_get_dup_out_num): Check for output operands at
35847 the start of the loop. Handle cases where an included alternative
35848 follows an excluded one.
35850 2014-05-29 Mike Stump <mikestump@comcast.net>
35853 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
35854 post ld passes when lto is used.
35856 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
35858 PR rtl-optimization/61325
35859 * lra-constraints.c (process_address): Rename to process_address_1.
35860 (process_address): New function.
35862 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
35864 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
35865 TYPES_BINOPV): New static data.
35866 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
35868 * config/aarch64/aarch64-simd.md (aarch64_ext,
35869 aarch64_im_lane_boundsi): New patterns.
35870 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
35872 (aarch64_evpc_ext): New function.
35874 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
35876 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
35877 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
35878 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
35879 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
35880 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
35882 2014-05-29 Tom de Vries <tom@codesourcery.com>
35884 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
35886 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
35887 Richard Sandiford <rdsandiford@googlemail.com>
35889 * arm/iterators.md (shiftable_ops): New code iterator.
35890 (t2_binop0, arith_shift_insn): New code attributes.
35891 * arm/predicates.md (shift_nomul_operator): New predicate.
35892 * arm/arm.md (insn_enabled): Delete.
35893 (enabled): Remove insn_enabled test.
35894 (*arith_shiftsi): Delete. Replace with ...
35895 (*<arith_shift_insn>_multsi): ... new pattern.
35896 (*<arith_shift_insn>_shiftsi): ... new pattern.
35897 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
35899 2014-05-29 Radovan Obradovic <robradovic@mips.com>
35900 Tom de Vries <tom@codesourcery.com>
35902 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
35903 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
35905 (mips_split_call): Use POST_CALL_TMP_REG.
35906 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
35908 2014-05-29 Tom de Vries <tom@codesourcery.com>
35910 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
35911 with #ifdef STACK_REGS.
35913 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
35915 * varasm.c (get_variable_section): Walk aliases.
35916 (place_block_symbol): Walk aliases.
35918 2014-05-28 Tom de Vries <tom@codesourcery.com>
35921 2014-05-28 Tom de Vries <tom@codesourcery.com>
35923 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
35924 * lra.c (initialize_lra_reg_info_element): Add init of
35925 actual_call_used_reg_set field.
35926 (lra): Call lra_create_live_ranges before lra_inheritance for
35928 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
35930 * lra-constraints.c (need_for_call_save_p): Use
35931 actual_call_used_reg_set instead of call_used_reg_set for
35933 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
35935 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
35937 * doc/md.texi: Document that the % constraint character must
35938 be at the beginning of the string.
35939 * genoutput.c (validate_insn_alternatives): Check that '=',
35940 '+' and '%' only appear at the beginning of a constraint.
35941 * ira.c (commutative_constraint_p): Delete.
35942 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
35943 at the start of the string.
35944 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
35946 * config/arm/neon.md (bicdi3_neon): Likewise.
35947 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
35948 (slt_si, sltu_si): Likewise.
35949 * config/vax/vax.md (sbcdi3): Likewise.
35950 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
35951 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
35952 (mul64): Move '%' to beginning of constraint.
35953 * config/arm/arm.md (*xordi3_insn): Likewise.
35954 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
35955 (xorsi3): Likewise.
35957 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
35959 * doc/md.texi: Document the restrictions on the "enabled" attribute.
35961 2014-05-28 Jason Merrill <jason@redhat.com>
35964 * cgraph.h (symtab_node::get_comdat_group_id): New.
35965 * cgraphunit.c (analyze_functions): Call it.
35966 * symtab.c (dump_symtab_node): Likewise.
35967 * tree.c (decl_comdat_group_id): New.
35968 * tree.h: Declare it.
35969 * lto-streamer-out.c (write_symbol): Use it.
35970 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
35972 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
35974 PR bootstrap/PR61146
35975 * wide-int.cc: Do not include longlong.h when compiling with clang.
35977 2014-05-28 Richard Biener <rguenther@suse.de>
35979 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
35980 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
35981 (vrp_visit_assignment_or_call): Print less vertical space.
35982 (vrp_visit_stmt): Likewise.
35983 (vrp_visit_phi_node): Likewise. For a PHI argument with
35984 VR_VARYING range consider recording it as copy.
35986 2014-05-28 Richard Biener <rguenther@suse.de>
35989 2014-05-28 Richard Biener <rguenther@suse.de>
35991 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
35993 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
35995 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
35996 sufficiently aligned and an offset is used at the same time.
35997 (expand_expr_real_1): Likewise.
35999 2014-05-28 Richard Biener <rguenther@suse.de>
36001 PR middle-end/61045
36002 * fold-const.c (fold_comparison): When folding
36003 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
36004 the sign of the remaining constant operand stays the same.
36006 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
36008 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
36009 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
36010 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
36012 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
36013 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
36014 (m32bit-doubles) Likewise.
36015 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
36016 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
36019 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36021 * configure.ac ($gcc_cv_ld_clearcap): New test.
36022 * configure: Regenerate.
36023 * config.in: Regenerate.
36024 * config/sol2.opt (mclear-hwcap): New option.
36025 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
36026 * config/sol2-clearcap.map: Moved here from
36027 testsuite/gcc.target/i386/clearcap.map.
36028 * config/sol2-clearcapv2.map: Move here from
36029 gcc.target/i386/clearcapv2.map.
36030 * config/t-sol2 (install): Depend on install-clearcap-map.
36031 (install-clearcap-map): New target.
36032 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
36035 2014-05-28 Richard Biener <rguenther@suse.de>
36037 * hwint.h (*_HALF_WIDE_INT*): Move to ...
36038 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
36039 ... here and remove the rest.
36040 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
36042 2014-05-28 Richard Biener <rguenther@suse.de>
36044 PR tree-optimization/61335
36045 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
36046 new range fails, drop to varying.
36048 2014-05-28 Olivier Hainque <hainque@adacore.com>
36050 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
36051 (CPP_SPEC): Add entry for -mcpu=8548.
36052 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
36053 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
36055 2014-05-28 Tom de Vries <tom@codesourcery.com>
36057 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
36058 * lra.c (initialize_lra_reg_info_element): Add init of
36059 actual_call_used_reg_set field.
36060 (lra): Call lra_create_live_ranges before lra_inheritance for
36062 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
36064 * lra-constraints.c (need_for_call_save_p): Use
36065 actual_call_used_reg_set instead of call_used_reg_set for
36067 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
36069 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36070 Tom de Vries <tom@codesourcery.com>
36072 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
36074 (@item -fuse-caller-save): New item.
36076 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36077 Tom de Vries <tom@codesourcery.com>
36079 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
36080 OPT_fuse_caller_save.
36082 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36083 Tom de Vries <tom@codesourcery.com>
36085 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
36086 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
36087 get_call_reg_set_usage.
36088 * resource.c (mark_set_resources, mark_target_live_regs): Use
36089 get_call_reg_set_usage.
36090 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
36092 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
36093 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
36094 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
36095 * ira-build.c (ira_create_allocno): Init
36096 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
36097 (create_cap_allocno, propagate_allocno_info)
36098 (propagate_some_info_from_allocno)
36099 (copy_info_to_removed_store_destinations): Handle
36100 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
36101 * ira-costs.c (ira_tune_allocno_costs): Use
36102 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
36104 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36105 Tom de Vries <tom@codesourcery.com>
36107 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
36108 and function_used_regs_valid fields.
36109 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
36110 find_all_hard_reg_sets.
36111 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
36112 (get_call_reg_set_usage): New function.
36113 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
36114 * regs.h (get_call_reg_set_usage): Declare.
36116 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
36119 * config/dbx.h (License): Add Runtime Library Exception.
36120 * config/newlib-stdint.h (License): Same.
36121 * config/rtems.h (License): Same
36122 * config/initfini-array.h (License): Same
36123 * config/v850/v850.h (License): Same.
36124 * config/v850/v850-opts.h (License): Same
36125 * config/v850/rtems.h (License): Same.
36127 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
36130 * doc/extend.texi (Local Labels): Note that label differences are
36131 not supported for AVR.
36133 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
36134 Olivier Hainque <hainque@adacore.com>
36136 * rtl.h (set_for_reg_notes): Declare.
36137 * emit-rtl.c (set_for_reg_notes): New function.
36138 (set_unique_reg_note): Use it.
36139 * optabs.c (add_equal_note): Likewise
36141 2014-05-27 Andrew Pinski <apinski@cavium.com>
36143 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
36144 Use <w> for the register in assembly template.
36145 (stack_protect_test): Use the mode of operands[0] for the result.
36146 (stack_protect_test_<mode>): Use <w> for the register
36147 in assembly template.
36149 2014-05-27 DJ Delorie <dj@redhat.com>
36151 * config/rx/rx.c (add_vector_labels): New.
36152 (rx_output_function_prologue): Call it.
36153 (rx_handle_func_attribute): Don't require empty arguments.
36154 (rx_handle_vector_attribute): New.
36155 (rx_attribute_table): Add "vector" attribute.
36156 * doc/extend.texi (interrupt, vector): Document new/changed
36157 RX-specific attributes.
36159 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
36161 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
36163 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
36164 predicate to detect a negative quotient.
36166 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
36168 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
36169 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
36170 Add X - Y CMP 0 to X CMP Y transformation.
36171 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
36173 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
36175 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
36178 2014-05-27 Steve Ellcey <sellcey@mips.com>
36180 * config/mips/mips.c: Add include of cgraph.h.
36182 2014-05-27 Richard Biener <rguenther@suse.de>
36184 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
36186 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
36189 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
36190 * config/arm/arm-cores.def (License): Same.
36191 * config/arm/arm-opts.h (License): Same.
36192 * config/arm/aout.h (License): Same.
36193 * config/arm/bpabi.h (License): Same.
36194 * config/arm/elf.h (License): Same.
36195 * config/arm/linux-elf.h (License): Same.
36196 * config/arm/linux-gas.h (License): Same.
36197 * config/arm/netbsd-elf.h (License): Same.
36198 * config/arm/uclinux-eabi.h (License): Same.
36199 * config/arm/uclinux-elf.h (License): Same.
36200 * config/arm/vxworks.h (License): Same.
36202 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36204 * config/arm/neon.md (neon_bswap<mode>): New pattern.
36205 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
36206 (arm_init_neon_builtins): Handle NEON_BSWAP.
36207 Define required type nodes.
36208 (arm_expand_neon_builtin): Handle NEON_BSWAP.
36209 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
36210 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
36211 * config/arm/iterators.md (VDQHSD): New mode iterator.
36213 2014-05-27 Richard Biener <rguenther@suse.de>
36215 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
36216 Try using literal operands when comparing value-ranges failed.
36218 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
36220 * ira.c (commutative_operand): Adjust for change to recog_data.
36221 [Missing from previous commit.]
36223 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
36225 * system.h (TEST_BIT): New macro.
36226 * recog.h (alternative_mask): New type.
36227 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
36228 (recog_data_d): Replace alternative_enabled_p array with
36229 enabled_alternatives.
36230 (target_recog): New structure.
36231 (default_target_recog, this_target_recog): Declare.
36232 (get_enabled_alternatives, recog_init): Likewise.
36233 * recog.c (default_target_recog, this_target_recog): New variables.
36234 (get_enabled_alternatives): New function.
36235 (extract_insn): Use it.
36236 (recog_init): New function.
36237 (preprocess_constraints, constrain_operands): Adjust for change to
36239 * postreload.c (reload_cse_simplify_operands): Likewise.
36240 * reload.c (find_reloads): Likewise.
36241 * ira-costs.c (record_reg_classes): Likewise.
36242 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
36243 all alternatives after a disabled one would be skipped.
36244 (ira_implicitly_set_insn_hard_regs): Likewise.
36245 * ira.c (ira_setup_alts): Adjust for change to recog_data.
36246 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
36247 with enabled_alternatives.
36248 * lra.c (free_insn_recog_data): Update accordingly.
36249 (lra_update_insn_recog_data): Likewise.
36250 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
36251 * lra-constraints.c (process_alt_operands): Likewise. Handle
36252 only_alternative as part of the enabled mask.
36253 * target-globals.h (this_target_recog): Declare.
36254 (target_globals): Add a recog field.
36255 (restore_target_globals): Restore this_target_recog.
36256 * target-globals.c: Include recog.h.
36257 (default_target_globals): Initialize recog field.
36258 (save_target_globals): Likewise.
36259 * reginfo.c (reinit_regs): Call recog_init.
36260 * toplev.c (backend_init_target): Likewise.
36262 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
36264 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
36265 rather than any named insn's code.
36267 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
36270 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
36271 * config/arm/arm-cores.def (License): Same.
36273 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
36275 * tree.h (decl_comdat_group): Declare.
36276 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
36277 * tree.c (decl_comdat_group): Here.
36279 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
36281 PR rtl-optimization/61222
36282 * combine.c (simplify_shift_const_1): When moving a PLUS outside
36283 the shift, truncate the PLUS operand to the result mode.
36285 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
36288 * config/i386/i386.c (ix86_rtx_costs)
36289 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
36292 2014-05-26 Martin Jambor <mjambor@suse.cz>
36294 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
36297 2014-05-26 Richard Biener <rguenther@suse.de>
36299 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
36300 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
36301 Provide specializations.
36302 (wi::int_traits <HOST_WIDE_INT>,
36303 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
36305 2014-05-26 Alan Modra <amodra@gmail.com>
36308 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
36309 params and return a bool. Remove dead code. Update comment.
36310 Assert we have a const_int source. Remove bogus code from
36311 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
36312 handling of constants > 2G and reg_equal note, from..
36313 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
36314 return value. Update comment. If we can, use a new pseudo
36315 for intermediate calculations.
36316 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
36318 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
36319 call to rs6000_emit_set_const in splitter.
36320 (movdi_internal64+2, +3): Likewise.
36322 2014-05-26 Richard Biener <rguenther@suse.de>
36324 * system.h: Define __STDC_FORMAT_MACROS before
36325 including inttypes.h.
36326 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
36327 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
36328 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
36329 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
36330 HOST_WIDEST_INT_C): Remove.
36331 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
36332 if C99 inttypes.h is not available.
36333 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
36334 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
36335 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
36336 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
36337 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
36338 (struct output_info): Likewise.
36339 (print_statistics): Adjust.
36340 (dump_bitmap_statistics): Likewise.
36341 * bt-load.c (migrate_btr_defs): Print with PRId64.
36342 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
36343 (MAX_SAFE_MULTIPLIER): Adjust.
36344 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
36345 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
36346 dump_cgraph_node): Likewise.
36347 * final.c (dump_basic_block_info): Likewise.
36348 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
36349 * gcov.c (format_gcov): Likewise.
36350 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
36352 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
36353 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
36354 (inline_small_functions, dump_overall_stats, dump_inline_stats):
36355 Use PRId64 for dumping.
36356 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
36357 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
36358 (add_allocno_hard_regs): Adjust.
36359 * loop-doloop.c (doloop_modify): Print using PRId64.
36360 * loop-iv.c (inverse): Compute in uint64_t.
36361 (determine_max_iter, iv_number_of_iterations): Likewise.
36362 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
36363 Print using PRId64.
36364 * lto-streamer-out.c (write_symbol): Use uint64_t.
36365 * mcf.c (CAP_INFINITY): Use int64_t maximum.
36366 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
36367 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
36368 * modulo-sched.c (const_iteration_count): Use int64_t.
36369 (sms_schedule): Dump using PRId64.
36370 * predict.c (dump_prediction): Likewise.
36371 * pretty-print.h (pp_widest_integer): Remove.
36372 * profile.c (get_working_sets, is_edge_inconsistent,
36373 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
36374 * tree-pretty-print.c (pp_double_int): Remove case handling
36375 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
36376 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
36378 (pass_optimize_bswap::execute): Remove restriction on hosts.
36379 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
36380 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
36381 * tree.c (widest_int_cst_value): Remove.
36382 * tree.h (widest_int_cst_value): Likewise.
36383 * value-prof.c (dump_histogram_value): Print using PRId64.
36384 * gengtype.c (main): Also inject int64_t.
36385 * ggc-page.c (struct max_alignment): Use int64_t.
36386 * alloc-pool.c (struct allocation_object_def): Likewise.
36387 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
36389 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
36390 * doc/tm.texi: Regenerated.
36391 * gengtype-lex.l (IWORD): Handle [u]int64_t.
36392 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
36393 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
36394 mmix_output_register_setting): Use [u]int64_t in prototypes.
36395 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
36396 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
36397 mmix_output_octa, mmix_output_shifted_value): Adjust.
36398 (mmix_intval): Adjust. Remove unreachable case.
36399 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
36401 2014-05-26 Richard Biener <rguenther@suse.de>
36403 * configure.ac: Drop __int64 type check. Insist that we
36404 found uint64_t and int64_t.
36405 * hwint.h (HOST_BITS_PER___INT64): Remove.
36406 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
36407 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
36408 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
36409 (HOST_WIDEST_FAST_INT): Remove __int64 case.
36410 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
36411 for dst_q_src_df_rms_cdt.
36412 * configure: Regenerate.
36413 * config.in: Likewise.
36415 2014-05-26 Michael Tautschnig <mt@debian.org>
36418 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
36419 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
36421 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
36423 PR rtl-optimization/61278
36424 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
36426 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
36428 PR rtl-optimization/61220
36429 Part of PR rtl-optimization/61225
36430 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
36431 insn; skip split_edge for a block with only one successor.
36433 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36435 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
36438 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36440 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
36441 (update_vtable_references): New function.
36442 (function_and_variable_visibility): Rewrite also vtable initializers.
36443 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
36445 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36447 * ggc.h (ggc_grow): New function.
36448 * ggc-none.c (ggc_grow): New function.
36449 * ggc-page.c (ggc_grow): Likewise.
36451 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36453 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
36454 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
36455 comdat_can_be_unshared_p, cgraph_externally_visible_p,
36456 varpool_externally_visible_p, can_replace_by_local_alias,
36457 update_visibility_by_resolution_info, function_and_variable_visibility,
36458 pass_data_ipa_function_and_variable_visibility,
36459 make_pass_ipa_function_and_variable_visibility,
36460 whole_program_function_and_variable_visibility,
36461 pass_data_ipa_whole_program_visibility,
36462 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
36463 * cgraph.h (cgraph_local_node_p): Declare.
36464 * ipa-visibility.c: New file.
36465 * Makefile.in (OBJS): Add ipa-visiblity.o
36467 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36469 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
36470 that var decl is available.
36472 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36474 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
36475 symtab_node pointer.
36476 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
36477 (find_decls_types_r): Do not walk COMDAT_GROUP.
36478 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
36479 * varasm.c (make_decl_one_only): Use set_comdat_group;
36480 create node if needed.
36481 * ipa-inline-transform.c (save_inline_function_body): Update
36482 way we decl->symtab mapping.
36483 * symtab.c (symtab_hash, hash_node, eq_node
36484 symtab_insert_node_to_hashtable): Remove.
36485 (symtab_register_node): Update.
36486 (symtab_unregister_node): Update.
36487 (symtab_get_node): Reimplement as inline function.
36488 (symtab_add_to_same_comdat_group): Update.
36489 (symtab_dissolve_same_comdat_group_list): Update.
36490 (dump_symtab_base): Update.
36491 (verify_symtab_base): Update.
36492 (symtab_make_decl_local): Update.
36493 (fixup_same_cpp_alias_visibility): Update.
36494 (symtab_nonoverwritable_alias): Update.
36495 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
36496 * ipa.c (update_visibility_by_resolution_info): UPdate.
36497 * bb-reorder.c: Include cgraph.h
36498 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
36499 with comdat groups.
36500 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
36501 * cgraph.c (cgraph_get_create_node): Update.
36502 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
36504 (symtab_get_node): Make inline.
36505 (symtab_insert_node_to_hashtable): Remove.
36506 (symtab_can_be_discarded): Update.
36507 (decl_comdat_group): New function.
36508 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
36510 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
36512 (read_comdat_group): New function.
36513 (input_node, input_varpool_node): Use it.
36514 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
36516 * mips.c (mips_start_unique_function): Likewise.
36517 (ix86_code_end): Likewise.
36518 (rs6000_code_end): Likweise.
36519 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
36521 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36523 * gengtype-state.c (fatal_reading_state): Bring offline.
36524 * optabs.c (widening_optab_handler): Bring offline.
36525 * optabs.h (widening_optab_handler): Likewise.
36526 * final.c (get_attr_length_1): Likewise.
36528 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36530 * sched-int.h (sd_iterator_cond): Manually tail recurse.
36532 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36534 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
36535 (ppc440-compare): Include shift with dot.
36536 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
36537 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
36539 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
36541 (e6500_sfx2): Include it.
36542 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
36543 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
36544 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
36545 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
36546 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
36547 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
36548 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
36549 *lshiftrt_internal1le, *lshiftrt_internal1be,
36550 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
36551 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
36552 *rotldi3_internal10le, *rotldi3_internal10be,
36553 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
36554 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
36555 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
36556 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
36557 define_insns): Use type "shift" in the appropriate alternatives.
36559 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36561 * config/rs6000/rs6000.md (type): Add "logical". Delete
36563 (dot): Adjust comment.
36564 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
36565 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
36566 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
36567 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
36568 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
36569 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
36570 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
36571 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
36573 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
36574 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
36575 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
36576 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
36577 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
36578 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
36579 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
36580 * config/rs6000/8540.md (ppc8540_su): Adjust.
36581 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
36582 cell-cmp-microcoded): Adjust.
36583 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
36584 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36585 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
36586 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
36587 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
36588 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
36589 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
36590 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
36591 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
36593 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
36594 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
36595 Adjust. Adjust comment.
36596 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
36597 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
36599 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36601 * config/rs6000/rs6000.md (type): Add "add".
36602 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
36603 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
36604 define_insns): Use it.
36605 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
36607 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
36608 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
36609 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
36610 * config/rs6000/601.md (ppc601-integer): Adjust.
36611 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
36612 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
36613 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
36614 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
36615 * config/rs6000/8540.md (ppc8540_su): Adjust.
36616 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
36617 cell-cmp-microcoded): Adjust.
36618 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
36619 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36620 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
36621 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
36622 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
36623 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
36624 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
36625 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
36626 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
36628 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
36629 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
36630 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
36631 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
36633 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36635 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
36636 "delayed_compare", "var_delayed_compare".
36637 (var_shift): New attribute.
36638 (cell_micro): Adjust.
36639 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
36640 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
36641 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
36642 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
36643 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
36644 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
36645 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
36646 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
36647 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
36648 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
36649 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
36650 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
36651 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
36652 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
36653 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
36654 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
36655 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
36656 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
36657 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
36658 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
36659 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
36660 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
36661 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
36662 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36663 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
36665 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
36666 * config/rs6000/440.md (ppc440-integer): Adjust.
36667 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
36668 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
36669 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
36670 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
36671 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
36672 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
36673 * config/rs6000/8540.md (ppc8540_su): Adjust.
36674 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
36675 cell-cmp-microcoded): Adjust.
36676 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
36677 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36678 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
36679 e500mc64_delayed): Adjust.
36680 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
36681 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
36682 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
36683 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
36684 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
36685 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
36686 power6-delayed-compare, power6-var-delayed-compare): Adjust.
36687 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
36688 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
36690 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
36691 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
36693 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36695 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
36696 (bits): New mode_attr.
36697 (idiv_ldiv): Delete mode_attr.
36698 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
36699 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36700 rs6000_adjust_priority, is_nonpipeline_insn,
36701 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
36703 * config/rs6000/40x.md (ppc403-idiv): Adjust.
36704 * config/rs6000/440.md (ppc440-idiv): Adjust.
36705 * config/rs6000/476.md (ppc476-idiv): Adjust.
36706 * config/rs6000/601.md (ppc601-idiv): Adjust.
36707 * config/rs6000/603.md (ppc603-idiv): Adjust.
36708 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
36709 ppc620-ldiv): Adjust.
36710 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
36711 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
36712 * config/rs6000/8540.md (ppc8540_divide): Adjust.
36713 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
36714 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
36715 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
36716 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
36717 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
36718 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
36719 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
36720 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
36721 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
36722 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
36723 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
36724 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
36725 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
36726 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
36727 * config/rs6000/titan.md (titan_fxu_div): Adjust.
36729 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36731 * config/rs6000/rs6000.md (type): Delete "insert_word",
36732 "insert_dword". Add "insert".
36733 (size): Update comment.
36734 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36735 insn_must_be_first_in_group): Adjust.
36736 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
36737 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
36738 *insvsi_internal6, insvdi_internal): Adjust.
36740 * config/rs6000/40x.md (ppc403-integer): Adjust.
36741 * config/rs6000/440.md (ppc440-integer): Adjust.
36742 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
36743 * config/rs6000/601.md (ppc601-integer): Adjust.
36744 * config/rs6000/603.md (ppc603-integer): Adjust.
36745 * config/rs6000/6xx.md (ppc604-integer): Adjust.
36746 * config/rs6000/7450.md (ppc7450-integer): Adjust.
36747 * config/rs6000/7xx.md (ppc750-integer): Adjust.
36748 * config/rs6000/8540.md (ppc8540_su): Adjust.
36749 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
36750 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
36751 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36752 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
36753 * config/rs6000/e5500.md (e5500_sfx): Adjust.
36754 * config/rs6000/e6500.md (e6500_sfx): Adjust.
36755 * config/rs6000/mpc.md (mpccore-integer): Adjust.
36756 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
36757 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
36758 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
36759 * config/rs6000/power7.md (power7-integer): Adjust.
36760 * config/rs6000/power8.md (power8-1cyc): Adjust.
36761 * config/rs6000/rs64.md (rs64a-integer): Adjust.
36762 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
36764 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36766 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
36767 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
36768 (size): New attribute.
36769 (dot): New attribute.
36770 (cell_micro): Adjust.
36771 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
36772 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
36773 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
36774 umuldi3_highpart): Adjust.
36775 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36776 rs6000_adjust_priority, is_nonpipeline_insn,
36777 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
36779 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
36780 ppc405-imul3): Adjust.
36781 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
36782 * config/rs6000/476.md (ppc476-imul): Adjust.
36783 * config/rs6000/601.md (ppc601-imul): Adjust.
36784 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
36785 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
36786 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
36787 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
36788 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
36790 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
36791 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
36792 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
36793 cell-imul): Adjust.
36794 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
36795 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
36796 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
36797 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
36798 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
36799 * config/rs6000/mpc.md (mpccore-imul): Adjust.
36800 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
36801 power4-lmul, power4-imul, power4-imul3): Adjust.
36802 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
36803 power5-lmul, power5-imul, power5-imul3): Adjust.
36804 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
36805 power6-lmul, power6-imul, power6-imul3): Adjust.
36806 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
36807 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
36809 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
36810 rs64a-lmul): Adjust.
36811 * config/rs6000/titan.md (titan_imul): Adjust.
36813 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36815 * config/rs6000/rs6000.md (type): Add new value "halfmul".
36816 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
36817 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
36818 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
36819 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
36820 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
36821 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
36822 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
36823 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
36824 * config/rs6000/titan.md: Delete nonsensical comment.
36825 (titan_imul): Add type imul3.
36826 (titan_mulhw): Remove type imul3; add type halfmul.
36828 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36830 * config/rs6000/rs6000.md (type): Reorder, reformat.
36832 2014-05-23 Martin Jambor <mjambor@suse.cz>
36834 PR tree-optimization/53787
36835 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
36836 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
36837 analysis_done, update all uses.
36838 * ipa-prop.c: Include domwalk.h
36839 (param_analysis_info): Removed.
36840 (param_aa_status): New type.
36841 (ipa_bb_info): Likewise.
36842 (func_body_info): Likewise.
36843 (ipa_get_bb_info): New function.
36844 (aa_overwalked): Likewise.
36845 (find_dominating_aa_status): Likewise.
36846 (parm_bb_aa_status_for_bb): Likewise.
36847 (parm_preserved_before_stmt_p): Changed to use new param AA info.
36848 (load_from_unmodified_param): Accept func_body_info as a parameter
36849 instead of parms_ainfo.
36850 (parm_ref_data_preserved_p): Changed to use new param AA info.
36851 (parm_ref_data_pass_through_p): Likewise.
36852 (ipa_load_from_parm_agg_1): Likewise. Update callers.
36853 (compute_complex_assign_jump_func): Changed to use new param AA info.
36854 (compute_complex_ancestor_jump_func): Likewise.
36855 (ipa_compute_jump_functions_for_edge): Likewise.
36856 (ipa_compute_jump_functions): Removed.
36857 (ipa_compute_jump_functions_for_bb): New function.
36858 (ipa_analyze_indirect_call_uses): Likewise, moved variable
36860 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
36861 and info, moved variable declarations down.
36862 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
36864 (ipa_analyze_stmt_uses): Likewise.
36865 (ipa_analyze_params_uses): Removed.
36866 (ipa_analyze_params_uses_in_bb): New function.
36867 (ipa_analyze_controlled_uses): Likewise.
36868 (free_ipa_bb_info): Likewise.
36869 (analysis_dom_walker): New class.
36870 (ipa_analyze_node): Handle node-specific forbidden analysis,
36871 initialize and free func_body_info, use dominator walker.
36872 (ipcp_modif_dom_walker): New class.
36873 (ipcp_transform_function): Create and free func_body_info, use
36874 ipcp_modif_dom_walker, moved a lot of functionality there.
36876 2014-05-23 Marek Polacek <polacek@redhat.com>
36877 Jakub Jelinek <jakub@redhat.com>
36879 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
36880 * gcc.c (sanitize_spec_function): Likewise.
36881 * convert.c (convert_to_integer): Include "ubsan.h". Add
36882 floating-point to integer instrumentation.
36883 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
36884 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
36885 SANITIZE_NONDEFAULT.
36886 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
36887 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
36888 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
36889 * ubsan.c: Include "realmpfr.h" and "dfp.h".
36890 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
36891 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
36892 float/double/long double.
36893 (ubsan_instrument_float_cast): New function.
36894 * ubsan.h (ubsan_instrument_float_cast): Declare.
36896 2014-05-23 Jiong Wang <jiong.wang@arm.com>
36898 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
36900 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
36901 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
36902 Adjust for tailcalling through registers.
36903 * config/aarch64/aarch64.h (enum reg_class): New caller save
36905 (REG_CLASS_NAMES): Likewise.
36906 (REG_CLASS_CONTENTS): Likewise.
36907 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
36908 Allow tailcalling without decls.
36910 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
36912 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
36913 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
36915 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
36916 gsi, and variables v_* to v*.
36918 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
36920 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
36922 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
36924 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
36925 * omp-low.c: Update accordingly.
36927 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
36928 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
36929 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
36930 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
36931 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
36932 GF_OMP_TARGET_KIND_UPDATE.
36934 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
36935 Explicitly enumerate the expected region types.
36937 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
36940 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
36941 documentation; the old documentation didn't clearly state the
36942 constraints on the contents of the pointed-to storage.
36944 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36946 Fix bootstrap error on ia64
36947 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
36948 Return default value.
36950 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
36952 PR tree-optimization/54733
36953 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
36955 (find_bswap_or_nop_load): New.
36956 (find_bswap_1): Renamed to ...
36957 (find_bswap_or_nop_1): This. Also add support for memory source.
36958 (find_bswap): Renamed to ...
36959 (find_bswap_or_nop): This. Also add support for memory source and
36960 detection of bitwise operations equivalent to load in target
36962 (execute_optimize_bswap): Likewise. Also move its leading comment back
36963 in place and split statement transformation into ...
36964 (bswap_replace): This.
36966 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
36968 PR rtl-optimization/61215
36969 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
36970 simplify_gen_subreg until final substitution.
36972 2014-05-23 Alan Modra <amodra@gmail.com>
36975 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
36976 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
36977 Use "Y" constraint rather than "m".
36979 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
36981 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
36983 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
36984 New function declaration.
36985 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
36986 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
36987 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
36988 (aarch64_init_builtins) : Initialize builtins
36989 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
36990 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
36991 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
36992 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
36993 and __builtins_aarch64_set_fpsr.
36994 (aarch64_atomic_assign_expand_fenv): New function.
36995 * config/aarch64/aarch64.md (set_fpcr): New pattern.
36996 (get_fpcr) : Likewise.
36997 (set_fpsr) : Likewise.
36998 (get_fpsr) : Likewise.
36999 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
37000 and UNSPECV_SET_FPSR.
37001 * doc/extend.texi (AARCH64 Built-in Functions) : Document
37002 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
37003 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
37005 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
37007 PR rtl-optimization/60969
37008 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
37009 constraints. Set up mem cost for NO_REGS case.
37011 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
37013 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
37015 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
37017 * config/darwin.c: Include "lto-section-names.h".
37018 (LTO_SEGMENT_NAME): Don't define.
37019 * config/i386/winnt.c: Include "lto-section-names.h".
37020 * lto-streamer.c: Include "lto-section-names.h".
37021 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
37022 * lto-wrapper.c: Include "lto-section-names.h".
37023 (LTO_SECTION_NAME_PREFIX): Don't define.
37024 * lto-section-names.h: New file.
37025 * cgraphunit.c: Include "lto-section-names.h".
37027 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
37029 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
37031 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
37034 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
37036 2014-05-22 Nick Clifton <nickc@redhat.com>
37038 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
37040 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
37042 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
37043 -> (T)A transformation to integer types.
37045 2014-05-22 Teresa Johnson <tejohnson@google.com>
37047 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
37048 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
37049 (gcov_rewrite): Use gcov_nonruntime_assert.
37050 (gcov_open): Ditto.
37051 (gcov_write_words): Ditto.
37052 (gcov_write_length): Ditto.
37053 (gcov_read_words): Use gcov_nonruntime_assert, and remove
37054 gcc_assert from IN_LIBGCOV code.
37055 (gcov_read_summary): Use gcov_error to flag profile corruption.
37056 (gcov_sync): Use gcov_nonruntime_assert.
37057 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
37058 (gcov_histo_index): Use gcov_nonruntime_assert.
37059 (static void gcov_histogram_merge): Ditto.
37060 (compute_working_sets): Ditto.
37061 * gcov-io.h (gcov_nonruntime_assert): Define.
37062 (gcov_error): Define for !IN_LIBGCOV
37064 2014-05-22 Richard Biener <rguenther@suse.de>
37066 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
37067 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
37068 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
37069 and deallocation site.
37070 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
37071 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
37072 passing through the incoming points-to set.
37073 (handle_lhs_call): Use flags argument instead of recomputing it.
37074 (find_func_aliases_for_call): Call handle_lhs_call with proper
37077 2014-05-22 Jakub Jelinek <jakub@redhat.com>
37079 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
37080 all padding bits in REAL_VALUE_TYPE are cleared.
37082 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37084 Cleanup and improve multipass_dfa_lookahead_guard
37085 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
37086 (core2i7_first_cycle_multipass_begin,)
37087 (core2i7_first_cycle_multipass_issue,)
37088 (core2i7_first_cycle_multipass_backtrack): Update signature.
37089 * config/ia64/ia64.c
37090 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
37091 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
37092 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
37094 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
37095 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
37097 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
37099 * doc/tm.texi: Regenerate.
37101 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
37102 * haifa-sched.c (ready_try): Make signed to allow negative values.
37103 (rebug_ready_list_1): Update.
37104 (choose_ready): Simplify.
37105 (sched_extend_ready_list): Update.
37107 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37109 Remove IA64 speculation tweaking flags
37110 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
37111 speculation tuning flags.
37112 (msched-prefer-non-data-spec-insns,)
37113 (msched-prefer-non-control-spec-insns): Obsolete options.
37114 * haifa-sched.c (choose_ready): Remove handling of
37115 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
37116 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
37117 and PREFER_NON_DATA_SPEC.
37118 * sel-sched.c (process_spec_exprs): Remove handling of
37119 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
37121 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37123 Improve scheduling debug output
37124 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
37125 (advance_one_cycle): Update.
37126 (schedule_insn, queue_to_ready): Add debug printouts.
37127 (debug_ready_list_1): New static function.
37128 (debug_ready_list): Update.
37129 (max_issue): Add debug printouts.
37130 (dump_insn_stream): New static function.
37131 (schedule_block): Use it. Also better indent printouts.
37133 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37135 Fix sched_insn debug counter
37136 * haifa-sched.c (schedule_insn): Update.
37137 (struct haifa_saved_data): Add nonscheduled_insns_begin.
37138 (save_backtrack_point, restore_backtrack_point): Update.
37139 (first_nonscheduled_insn): New static function.
37140 (queue_to_ready, choose_ready): Use it.
37141 (schedule_block): Init nonscheduled_insns_begin.
37142 (sched_emit_insn): Update.
37145 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
37147 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
37149 (aarch64_secondary_reload) : LikeWise.
37150 (aarch64_class_max_nregs) : Remove CORE_REGS.
37151 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
37152 (REG_CLASS_NAMES) : Likewise.
37153 (REG_CLASS_CONTENTS) : LikeWise.
37154 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
37156 2014-05-21 Guozhi Wei <carrot@google.com>
37159 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
37161 (vqdmulhq_n_s16): Likewise.
37163 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
37165 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
37167 2014-05-21 Marek Polacek <polacek@redhat.com>
37170 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
37172 2014-05-21 Martin Jambor <mjambor@suse.cz>
37174 * doc/invoke.texi (Optimize Options): Document parameters
37175 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
37176 ipa-cp-array-index-hint-bonus.
37178 2014-05-21 Mark Wielaard <mjw@redhat.com>
37181 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
37182 version >= 3 or not strict DWARF.
37183 * langhooks.h (struct lang_hooks_for_types): Add
37184 enum_underlying_base_type.
37185 * langhooks.c (lhd_enum_underlying_base_type): New function.
37186 * gcc/langhooks.h (struct lang_hooks_for_types): Add
37187 enum_underlying_base_type.
37188 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
37189 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
37190 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
37192 2014-05-21 Richard Biener <rguenther@suse.de>
37194 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
37196 2014-05-21 John Marino <gnugcc@marino.st>
37198 * config.gcc (*-*-dragonfly*): New target.
37199 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
37200 * configure: Regenerate.
37201 * config/dragonfly-stdint.h: New.
37202 * config/dragonfly.h: New.
37203 * config/dragonfly.opt: New.
37204 * config/i386/dragonfly.h: New.
37205 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
37207 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
37209 * tree.def (VOID_CST): New.
37210 * tree-core.h (TI_VOID): New.
37211 * tree.h (void_node): New.
37212 * tree.c (tree_node_structure_for_code, tree_code_size)
37213 (iterative_hash_expr): Handle VOID_CST.
37214 (build_common_tree_nodes): Initialize void_node.
37216 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
37218 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
37220 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
37222 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
37225 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
37226 flag_reorder_blocks_and_partition.
37227 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
37229 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
37232 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
37234 (*addc_r_t): Add new insn_and_split.
37236 2014-05-21 Jakub Jelinek <jakub@redhat.com>
37238 PR middle-end/61252
37239 * omp-low.c (handle_simd_reference): New function.
37240 (lower_rec_input_clauses): Use it. Defer adding reference
37241 initialization even for reduction without placeholder if in simd,
37242 handle it properly later on.
37244 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37246 PR tree-optimization/60899
37247 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
37248 assume all static symbols will have definition wile parsing and
37249 check the do have definition later in compilation; check that
37250 variable referring symbol will be output before concluding that
37251 reference is safe; be conservative for referring local statics;
37252 be more precise about when comdat is output in other partition.
37254 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37257 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
37259 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
37260 (ipa_inline): Loop inline_to_all_callers until no more aliases
37263 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37265 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
37266 set writeonly flag only for vars actually written to.
37268 2014-05-20 Dehao Chen <dehao@google.com>
37270 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
37271 and callee count to get clone count.
37272 * tree-inline.c (expand_call_inline): Use callee count instead of bb
37273 count in copy_body.
37275 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
37277 PR rtl-optimization/61243
37278 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
37280 2014-05-20 Xinliang David Li <davidxl@google.com>
37282 * cgraphunit.c (walk_polymorphic_call_targets): Add
37283 dbgcnt and fopt-info support.
37284 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
37285 * ipa-devirt.c (ipa_devirt): Ditto.
37286 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
37287 * ipa.c (walk_polymorphic_call_targets): Ditto.
37288 * gimple-fold.c (fold_gimple_assign): Ditto.
37289 (gimple_fold_call): Ditto.
37290 * dbgcnt.def: New counter.
37292 2014-05-20 DJ Delorie <dj@redhat.com>
37294 * config/msp430/msp430.md (split): Don't allow subregs when
37295 splitting SImode adds.
37296 (andneghi): Fix subtraction logic.
37297 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
37299 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37301 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
37303 * except.c (switch_to_exception_section, resolve_unique_section,
37304 get_named_text_section, default_function_rodata_section,
37305 align_variable, get_block_for_decl, default_section_type_flags):
37306 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
37307 * symtab.c (symtab_add_to_same_comdat_group,
37308 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
37309 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
37311 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
37312 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
37313 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
37314 (c6x_function_in_section_p): Likewise.
37315 * config/darwin.c (machopic_select_section): Likewise.
37316 * config/arm/arm.c (arm_function_in_section_p): Likewise.
37317 * config/mips/mips.c (mips_function_rodata_section): Likewise.
37318 * config/mep/mep.c (mep_select_section): LIkewise.
37319 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
37321 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
37323 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
37324 EH region of calls to pure functions that can throw an exception.
37325 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
37326 (copy_reference_ops_from_call): Also copy the EH region of the call if
37327 it can throw an exception.
37329 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37331 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
37332 nested VEC_SELECTs that are inverses of each other.
37334 2014-05-20 Richard Biener <rguenther@suse.de>
37336 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
37337 (extract_and_process_scc_for_name): not here.
37338 (cond_dom_walker::before_dom_children): Only process
37339 stmts that end the BB in interesting ways.
37340 (run_scc_vn): Mark param uses as visited.
37342 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37344 * config/arm/arm.md (arith_shiftsi): Do not predicate for
37347 2014-05-20 Nick Clifton <nickc@redhat.com>
37349 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
37350 (msp430_gimplify_va_arg_expr): New function.
37351 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
37353 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
37354 operand 0 in order to prevent confusion about the number of
37355 registers involved.
37357 2014-05-20 Richard Biener <rguenther@suse.de>
37359 PR tree-optimization/61221
37360 * tree-ssa-pre.c (el_to_update): Remove.
37361 (eliminate_dom_walker::before_dom_children): Handle released
37362 VDEFs by value-numbering them to the associated VUSE. Update
37363 stmt immediately for substituted call address.
37364 (eliminate): Remove delayed stmt updating code.
37365 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
37366 possibly late re-numbered vuses.
37367 (vn_reference_lookup_2): Adjust.
37368 (vn_reference_lookup_pieces): Likewise.
37369 (vn_reference_lookup): Likewise.
37371 2014-05-20 Richard Biener <rguenther@suse.de>
37373 * config.gcc: Remove need_64bit_hwint.
37374 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
37375 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
37377 * config.in: Regenerate.
37378 * configure: Likewise.
37380 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
37382 * doc/extend.texi: Create Label Attributes section,
37383 move all label attributes into it and reference it.
37385 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
37387 * arm.c (thumb1_reorg): When scanning backwards skip anything
37388 that's not a proper insn.
37390 2014-05-19 Richard Biener <rguenther@suse.de>
37392 PR tree-optimization/61221
37393 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
37394 Do nothing for unreachable blocks.
37395 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
37396 Improve unreachability detection.
37398 2014-05-19 Richard Biener <rguenther@suse.de>
37400 PR tree-optimization/61209
37401 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
37403 2014-05-19 Nick Clifton <nickc@redhat.com>
37405 * except.c (init_eh): Fix computation of builtin setjmp buffer
37406 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
37408 2014-05-19 Richard Biener <rguenther@suse.de>
37410 PR tree-optimization/61184
37411 * tree-vrp.c (is_negative_overflow_infinity): Use
37412 TREE_OVERFLOW_P and do that check first.
37413 (is_positive_overflow_infinity): Likewise.
37414 (is_overflow_infinity): Likewise.
37415 (vrp_operand_equal_p): Properly treat operands with
37416 differing overflow as not equal.
37418 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
37420 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
37421 shift simplification where it was intended.
37423 2014-05-19 Christian Bruel <christian.bruel@st.com>
37426 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
37428 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
37431 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
37434 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
37436 * reg-notes.def (CROSSING_JUMP): Likewise.
37437 * rtl.h (rtx_def): Update comment for jump flag.
37438 (CROSSING_JUMP_P): Define.
37439 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
37440 of a REG_CROSSING_JUMP note.
37441 * cfghooks.c (tidy_fallthru_edges): Likewise.
37442 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
37443 * emit-rtl.c (try_split): Likewise.
37444 * haifa-sched.c (sched_create_recovery_edges): Likewise.
37445 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
37446 * jump.c (redirect_jump_2): Likewise.
37447 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
37448 (relax_delay_slots): Likewise.
37449 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
37450 (bbit_di): Likewise.
37451 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
37452 * config/sh/sh.md (jump_compact): Likewise.
37453 * bb-reorder.c (rotate_loop): Likewise.
37454 (pass_duplicate_computed_gotos::execute): Likewise.
37455 (add_reg_crossing_jump_notes): Rename to...
37456 (update_crossing_jump_flags): ...this.
37457 (pass_partition_blocks::execute): Update accordingly.
37459 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
37461 * tree.h: Remove extraneous template <>.
37463 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37465 * ipa.c (symtab_remove_unreachable_nodes): Remove
37466 symbol from comdat group if its body was eliminated.
37467 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
37468 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
37469 (symtab_unregister_node): ... this one.
37470 (verify_symtab_base): More strict checking of comdats.
37471 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
37473 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37475 * tree-pass.h (make_pass_ipa_comdats): New pass.
37476 * timevar.def (TV_IPA_COMDATS): New timevar.
37477 * passes.def (pass_ipa_comdats): Add.
37478 * Makefile.in (OBJS): Add ipa-comdats.o
37479 * ipa-comdats.c: New file.
37481 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37483 * ipa.c (update_visibility_by_resolution_info): New function.
37484 (function_and_variable_visibility): Use it.
37486 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37488 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
37490 (FOR_EACH_DEFINED_SYMBOL): New macro.
37491 (varpool_first_static_initializer, varpool_next_static_initializer,
37492 varpool_first_defined_variable, varpool_next_defined_variable):
37494 (symtab_in_same_comdat_p): Correctly deal with inline functions.
37496 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37498 * ggc-page.c (ggc_handle_finalizers): Add comment.
37500 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37502 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
37503 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
37504 (ggc_internal_cleared_alloc): Likewise.
37505 * ggc-page.c (finalizer): New class.
37506 (vec_finalizer): Likewise.
37507 (globals::finalizers): New member.
37508 (globals::vec_finalizers): Likewise.
37509 (ggc_internal_alloc): Record the finalizer if any for the block being
37511 (ggc_handle_finalizers): New function.
37512 (ggc_collect): Call ggc_handle_finalizers.
37513 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
37515 (ggc_internal_cleared_alloc): Likewise.
37516 (finalize): New function.
37517 (need_finalization_p): Likewise.
37518 (ggc_alloc): Install the type's destructor as the finalizer if it
37519 might do something.
37520 (ggc_cleared_alloc): Likewise.
37521 (ggc_vec_alloc): Likewise.
37522 (ggc_cleared_vec_alloc): Likewise.
37524 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37526 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
37528 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37530 * alias.c (record_alias_subset): Adjust.
37531 * bitmap.c (bitmap_element_allocate): Likewise.
37532 (bitmap_gc_alloc_stat): Likewise.
37533 * cfg.c (init_flow): Likewise.
37534 (alloc_block): Likewise.
37535 (unchecked_make_edge): Likewise.
37536 * cfgloop.c (alloc_loop): Likewise.
37537 (flow_loops_find): Likewise.
37538 (rescan_loop_exit): Likewise.
37539 * cfgrtl.c (init_rtl_bb_info): Likewise.
37540 * cgraph.c (insert_new_cgraph_node_version): Likewise.
37541 (cgraph_allocate_node): Likewise.
37542 (cgraph_create_edge_1): Likewise.
37543 (cgraph_allocate_init_indirect_info): Likewise.
37544 * cgraphclones.c (cgraph_clone_edge): Likewise.
37545 * cgraphunit.c (add_asm_node): Likewise.
37546 (init_lowered_empty_function): Likewise.
37547 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
37548 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
37549 (alpha_use_linkage): Likewise.
37550 * config/arc/arc.c (arc_init_machine_status): Likewise.
37551 * config/arm/arm.c (arm_init_machine_status): Likewise.
37552 * config/avr/avr.c (avr_init_machine_status): Likewise.
37553 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
37554 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
37555 * config/cris/cris.c (cris_init_machine_status): Likewise.
37556 * config/darwin.c (machopic_indirection_name): Likewise.
37557 (darwin_build_constant_cfstring): Likewise.
37558 (darwin_enter_string_into_cfstring_table): Likewise.
37559 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
37560 * config/frv/frv.c (frv_init_machine_status): Likewise.
37561 * config/i386/i386.c (get_dllimport_decl): Likewise.
37562 (ix86_init_machine_status): Likewise.
37563 (assign_386_stack_local): Likewise.
37564 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
37565 (i386_pe_maybe_record_exported_symbol): Likewise.
37566 (i386_pe_record_stub): Likewise.
37567 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
37568 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
37569 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
37570 (m32c_note_pragma_address): Likewise.
37571 * config/mep/mep.c (mep_init_machine_status): Likewise.
37572 (mep_note_pragma_flag): Likewise.
37573 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
37574 (mips16_local_alias): Likewise.
37575 (mips_init_machine_status): Likewise.
37576 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
37577 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
37578 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
37579 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
37580 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
37581 * config/pa/pa.c (pa_init_machine_status): Likewise.
37582 (pa_get_deferred_plabel): Likewise.
37583 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
37584 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
37585 (rs6000_init_machine_status): Likewise.
37586 (output_toc): Likewise.
37587 * config/s390/s390.c (s390_init_machine_status): Likewise.
37588 * config/score/score.c (score_output_external): Likewise.
37589 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
37590 * config/spu/spu.c (spu_init_machine_status): Likewise.
37591 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
37592 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
37593 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
37594 * coverage.c (coverage_end_function): Likewise.
37595 * dbxout.c (dbxout_init): Likewise.
37596 * doc/gty.texi: Don't mention variable_size attribute.
37597 * dwarf2cfi.c (new_cfi): Adjust.
37598 (new_cfi_row): Likewise.
37599 (copy_cfi_row): Likewise.
37600 (create_cie_data): Likewise.
37601 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
37602 (new_loc_descr): Likewise.
37603 (find_AT_string_in_table): Likewise.
37604 (add_addr_table_entry): Likewise.
37605 (new_die): Likewise.
37606 (add_var_loc_to_decl): Likewise.
37607 (clone_die): Likewise.
37608 (clone_as_declaration): Likewise.
37609 (break_out_comdat_types): Likewise.
37610 (new_loc_list): Likewise.
37611 (add_loc_descr_to_each): Likewise.
37612 (add_location_or_const_value_attribute): Likewise.
37613 (add_linkage_name): Likewise.
37614 (lookup_filename): Likewise.
37615 (dwarf2out_var_location): Likewise.
37616 (new_line_info_table): Likewise.
37617 (dwarf2out_init): Likewise.
37618 (mem_loc_descriptor): Likewise.
37619 (loc_descriptor): Likewise.
37620 (add_const_value_attribute): Likewise.
37621 (tree_add_const_value_attribute): Likewise.
37622 (comp_dir_string): Likewise.
37623 (dwarf2out_vms_debug_main_pointer): Likewise.
37624 (string_cst_pool_decl): Likewise.
37625 * emit-rtl.c (set_mem_attrs): Likewise.
37626 (get_reg_attrs): Likewise.
37627 (start_sequence): Likewise.
37628 (init_emit): Likewise.
37629 (init_emit_regs): Likewise.
37630 * except.c (init_eh_for_function): Likewise.
37631 (gen_eh_region): Likewise.
37632 (gen_eh_region_catch): Likewise.
37633 (gen_eh_landing_pad): Likewise.
37634 (add_call_site): Likewise.
37635 * function.c (add_frame_space): Likewise.
37636 (insert_temp_slot_address): Likewise.
37637 (assign_stack_temp_for_type): Likewise.
37638 (get_hard_reg_initial_val): Likewise.
37639 (allocate_struct_function): Likewise.
37640 (prepare_function_start): Likewise.
37641 (types_used_by_var_decl_insert): Likewise.
37642 * gengtype.c (variable_size_p): Remove function.
37643 (enum alloc_quantity): Remove enum.
37644 (write_typed_alloc_def): Remove function.
37645 (write_typed_struct_alloc_def): Likewise.
37646 (write_typed_typedef_alloc_def): Likewise.
37647 (write_typed_alloc_defns): Likewise.
37649 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
37650 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
37651 * ggc.h (ggc_alloc): new function.
37652 (ggc_cleared_alloc): Likewise.
37653 (ggc_vec_alloc): Template on type of vector element, and remove
37654 element size argument.
37655 (ggc_cleared_vec_alloc): Likewise.
37656 * gimple.c (gimple_build_omp_for): Adjust.
37657 (gimple_copy): Likewise.
37658 * ipa-cp.c (get_replacement_map): Likewise.
37659 (find_aggregate_values_for_callers_subset): Likewise.
37660 (known_aggs_to_agg_replacement_list): Likewise.
37661 * ipa-devirt.c (get_odr_type): Likewise.
37662 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
37663 (read_agg_replacement_chain): Likewise.
37664 * loop-iv.c (get_simple_loop_desc): Likewise.
37665 * lto-cgraph.c (input_node_opt_summary): Likewise.
37666 * lto-section-in.c (lto_new_in_decl_state): Likewise.
37667 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
37668 (input_eh_region): Likewise.
37669 (input_eh_lp): Likewise.
37670 (input_cfg): Likewise.
37671 * optabs.c (set_optab_libfunc): Likewise.
37672 (init_tree_optimization_optabs): Likewise.
37673 (set_conv_libfunc): Likewise.
37674 * passes.c (do_per_function_toporder): Likewise.
37675 * rtl.h: Don't use variable_size gty attribute.
37676 * sese.c (if_region_set_false_region): Adjust.
37677 * stringpool.c (gt_pch_save_stringpool): Likewise.
37678 * target-globals.c (save_target_globals): Likewise.
37679 * toplev.c (general_init): Likewise.
37680 * trans-mem.c (record_tm_replacement): Likewise.
37681 (split_bb_make_tm_edge): Likewise.
37682 * tree-cfg.c (move_sese_region_to_fn): Likewise.
37683 * tree-data-ref.h (lambda_vector_new): Likewise.
37684 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
37685 * tree-iterator.c (tsi_link_before): Likewise.
37686 (tsi_link_after): Likewise.
37687 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
37688 * tree-ssa-loop-niter.c (record_estimate): Likewise.
37689 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
37690 * tree-ssa-operands.h: Don't use variable_size gty attribute.
37691 * tree-ssa.c (init_tree_ssa): Adjust.
37692 * tree-ssanames.c (set_range_info): Likewise.
37693 (get_ptr_info): Likewise.
37694 (duplicate_ssa_name_ptr_info): Likewise.
37695 (duplicate_ssa_name_range_info): Likewise.
37696 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
37697 (unpack_ts_fixed_cst_value_fields): Likewise.
37698 * tree.c (build_fixed): Likewise.
37699 (build_real): Likewise.
37700 (build_string): Likewise.
37701 (decl_priority_info): Likewise.
37702 (decl_debug_expr_insert): Likewise.
37703 (decl_value_expr_insert): Likewise.
37704 (decl_debug_args_insert): Likewise.
37705 (type_hash_add): Likewise.
37706 (build_omp_clause): Likewise.
37707 * ubsan.c (decl_for_type_insert): Likewise.
37708 * varasm.c (get_unnamed_section): Likewise.
37709 (get_noswitch_section): Likewise.
37710 (get_section): Likewise.
37711 (get_block_for_section): Likewise.
37712 (create_block_symbol): Likewise.
37713 (build_constant_desc): Likewise.
37714 (create_constant_pool): Likewise.
37715 (force_const_mem): Likewise.
37716 (record_tm_clone_pair): Likewise.
37717 * varpool.c (varpool_create_empty_node): Likewise.
37719 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37721 * dwarf2out.c (tree_add_const_value_attribute): Call
37722 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
37723 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
37724 instead of ggc_internal_<x>alloc_stat.
37725 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
37726 (ggc_realloc): Likewise.
37727 * ggc-none.c (ggc_internal_alloc): Likewise.
37728 (ggc_internal_cleared_alloc): Likewise.
37729 * ggc-page.c: Likewise.
37730 * ggc.h (ggc_internal_alloc_stat): Likewise.
37731 (ggc_internal_alloc): Remove macro.
37732 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
37733 (ggc_internal_cleared_alloc): Remove macro.
37734 (GGC_RESIZEVEC): Adjust.
37735 (ggc_resizevar): Remove macro.
37736 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
37737 (ggc_internal_cleared_vec_alloc_stat): Likewise.
37738 (ggc_internal_vec_cleared_alloc): Remove macro.
37739 (ggc_alloc_atomic_stat): Drop _stat suffix.
37740 (ggc_alloc_atomic): Remove macro.
37741 (ggc_alloc_cleared_atomic): Remove macro.
37742 (ggc_alloc_string_stat): Drop _stat suffix.
37743 (ggc_alloc_string): Remove macro.
37744 (ggc_alloc_rtx_def_stat): Adjust.
37745 (ggc_alloc_tree_node_stat): Likewise.
37746 (ggc_alloc_cleared_tree_node_stat): Likewise.
37747 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
37748 (ggc_alloc_cleared_simd_clone_stat): Likewise.
37749 * gimple.c (gimple_build_omp_for): Likewise.
37750 (gimple_copy): Likewise.
37751 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
37752 * toplev.c (realloc_for_line_map): Adjust.
37753 * tree-data-ref.h (lambda_vector_new): Likewise.
37754 * tree-phinodes.c (allocate_phi_node): Likewise.
37755 * tree.c (grow_tree_vec_stat): Likewise.
37756 * vec.h (va_gc::reserve): Adjust.
37758 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
37760 * config/microblaze/microblaze.c (break_handler): New Declaration.
37761 (microblaze_break_function_p,microblaze_is_break_handler): New.
37762 (compute_frame_size): Use microblaze_break_function_p.
37763 Add the test of break_handler.
37764 (microblaze_function_prologue) : Add the test of variable
37765 break_handler. Check the fnname by BREAK_HANDLER_NAME.
37766 (microblaze_function_epilogue) : Add the test of break_handler.
37767 (microblaze_globalize_label) : Add the test of break_handler.
37768 Check the name by BREAK_HANDLER_NAME.
37770 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
37772 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
37773 microblaze_is_break_handler test.
37774 (call_internal1,call_value_intern): Use microblaze_break_function_p.
37775 Use SYMBOL_REF_DECL.
37777 * config/microblaze/microblaze-protos.h
37778 (microblaze_break_function_p,microblaze_is_break_handler):
37781 * doc/extend.texi (MicroBlaze break_handler Functions): Document
37782 new MicroBlaze break_handler functions.
37784 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
37786 * doc/extend.texi (Size of an asm): Move node text according
37787 to its @menu entry position.
37789 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
37791 PR tree-optimization/61140
37792 PR tree-optimization/61150
37793 PR tree-optimization/61197
37794 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
37796 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
37798 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
37800 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
37802 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
37803 __SIZEOF_INT128__ is defined.
37805 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
37807 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
37808 (rs6000_delegitimize_address): Use it.
37810 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
37812 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
37813 inplace argument. Store the new address in the original MEM when true.
37814 * emit-rtl.c (change_address_1): Likewise.
37815 (adjust_address_1, adjust_automodify_address_1, offset_address):
37816 Update accordingly.
37817 * rtl.h (plus_constant): Add an inplace argument.
37818 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
37819 when true. Avoid generating (plus X (const_int 0)).
37820 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
37821 in-place. Pass true to plus_constant.
37822 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
37824 2014-05-16 Dehao Chen <dehao@google.com>
37826 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
37828 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
37831 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
37833 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
37835 2014-05-16 Dehao Chen <dehao@google.com>
37837 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
37838 optimize_function_for_size_p.
37839 * regs.h (REG_FREQ_FROM_BB): Likewise.
37841 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
37844 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
37845 negt_reg_operand cases.
37846 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
37848 * config/sh/predicates.md (cbranch_treg_value): Simplify.
37850 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
37852 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
37855 2014-05-16 David Malcolm <dmalcolm@redhat.com>
37858 2014-04-29 David Malcolm <dmalcolm@redhat.com>
37860 * tree-cfg.c (dump_function_to_file): Dump the return type of
37861 functions, in a line to itself before the function body, mimicking
37862 the layout of a C function.
37864 2014-05-16 Dehao Chen <dehao@google.com>
37866 * cfghooks.c (make_forwarder_block): Use direct computation to
37867 get fall-through edge's count and frequency.
37869 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
37871 * config/arc/arc.c (arc_init): Fix typo in error message.
37872 * config/i386/i386.c (ix86_expand_builtin): Likewise.
37873 (split_stack_prologue_scratch_regno): Likewise.
37874 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
37875 word from error message.
37877 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
37879 * ira-costs.c: Fix typo in comment.
37881 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
37883 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
37885 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
37887 * varpool.c (dump_varpool_node): Dump write-only flag.
37888 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
37890 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
37891 write-only variables.
37892 * ipa.c (process_references): New function.
37893 (set_readonly_bit): New function.
37894 (set_writeonly_bit): New function.
37895 (clear_addressable_bit): New function.
37896 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
37897 fix handling of aliases.
37898 * cgraph.h (struct varpool_node): Add writeonly flag.
37900 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
37902 PR rtl-optimization/60969
37903 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
37904 Calculate costs for this case.
37906 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
37908 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
37909 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
37911 2014-05-16 Richard Biener <rguenther@suse.de>
37913 PR tree-optimization/61194
37914 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
37915 bool patterns ending in a COND_EXPR.
37917 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37919 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
37921 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37923 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
37924 where we were unable to cost an RTX.
37926 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37928 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
37931 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37932 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37934 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
37936 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37937 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37939 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
37940 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
37942 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37943 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37945 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
37948 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37949 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37951 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
37954 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37955 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37957 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
37958 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
37960 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37961 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37963 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
37964 rotates and shifts.
37966 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37967 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37969 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
37970 ZERO_EXTEND and SIGN_EXTEND better.
37972 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37973 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37975 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
37976 logical operations.
37978 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37979 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37981 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
37982 costs when costing loads and stores to memory.
37984 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37985 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
37987 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
37990 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37992 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
37994 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37995 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37997 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
37999 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
38001 (aarch64_rtx_mult_cost): New.
38002 (aarch64_rtx_costs): Use it, refactor as appropriate.
38004 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38005 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38007 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
38008 emit instructions, return number of instructions which would
38010 (aarch64_add_constant): Update call to aarch64_build_constant.
38011 (aarch64_output_mi_thunk): Likewise.
38012 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
38015 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38017 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
38018 (TARGET_RTX_COSTS): Call it.
38020 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38022 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
38023 (cortexa57_vector_cost): Likewise.
38024 (cortexa57_tunings): Use them.
38026 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38028 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
38029 (cpu_addrcost_table): Use it.
38030 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
38031 (aarch64_address_cost): Rewrite using aarch64_classify_address,
38034 2014-05-16 Richard Biener <rguenther@suse.de>
38036 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
38037 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
38038 (visit_phi): Ignore edges marked as not executable.
38039 (class cond_dom_walker): New.
38040 (cond_dom_walker::before_dom_children): Value-number
38041 control statements and mark successor edges as not
38042 executable if possible.
38043 (run_scc_vn): First walk all control statements in
38044 dominator order, marking edges as not executable.
38045 * tree-inline.c (copy_edges_for_bb): Be not confused
38046 about random edge flags.
38048 2014-05-16 Richard Biener <rguenther@suse.de>
38050 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
38052 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
38055 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
38056 (__TM_simple_begin): Use it.
38057 (__TM_begin): Likewise.
38059 2014-05-15 Martin Jambor <mjambor@suse.cz>
38062 * ipa-prop.c (update_indirect_edges_after_inlining): Check
38063 type_preserved flag when the indirect edge is polymorphic.
38065 2014-05-15 Martin Jambor <mjambor@suse.cz>
38067 PR tree-optimization/61090
38068 * tree-sra.c (sra_modify_expr): Pass the current gsi to
38069 build_ref_for_model.
38071 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38073 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
38074 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
38076 2014-05-15 Jakub Jelinek <jakub@redhat.com>
38078 PR tree-optimization/61158
38079 * fold-const.c (fold_binary_loc): If X is zero-extended and
38080 shiftc >= prec, make sure zerobits is all ones instead of
38081 invoking undefined behavior.
38083 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38085 * regcprop.h: New file.
38086 * regcprop.c (skip_debug_insn_p): New decl.
38087 (replace_oldest_value_reg): Check skip_debug_insn_p.
38088 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
38089 * shrink-wrap.c: Include regcprop.h.
38090 (prepare_shrink_wrap): Call
38091 copyprop_hardreg_forward_bb_without_debug_insn.
38093 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38095 * shrink-wrap.h: Update comment.
38096 * shrink-wrap.c: Update comment.
38097 (next_block_for_reg): Rename to live_edge_for_reg.
38098 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
38099 (move_insn_for_shrink_wrap): Split live_edge.
38100 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
38102 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
38104 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
38106 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
38107 * config/sparc/sparc.md (fptype_ut699): New attribute.
38108 (in_branch_delay): Return false if -mfix-ut699 is specified and
38109 fptype_ut699 is set to single.
38110 (truncdfsf2): Add fptype_ut699 attribute.
38111 (fix_truncdfsi2): Likewise.
38112 (floatsisf2): Change fptype attribute.
38113 (fix_truncsfsi2): Likewise.
38114 (negtf2_notv9): Delete.
38115 (negtf2_v9): Likewise.
38116 (negtf2_hq): New instruction.
38117 (negtf2): New instruction and splitter.
38118 (negdf2_notv9): Rewrite.
38119 (abstf2_notv9): Delete.
38120 (abstf2_hq_v9): Likewise.
38121 (abstf2_v9): Likewise.
38122 (abstf2_hq): New instruction.
38123 (abstf2): New instruction and splitter.
38124 (absdf2_notv9): Rewrite.
38126 2014-05-14 Cary Coutant <ccoutant@google.com>
38129 * opts.c (common_handle_option): Don't special-case "-g".
38130 (set_debug_level): Default to at least level 2 with "-g".
38132 2014-05-14 DJ Delorie <dj@redhat.com>
38134 * config/msp430/msp430.c (msp430_builtin): Add
38135 MSP430_BUILTIN_DELAY_CYCLES.
38136 (msp430_init_builtins): Register void __delay_cycles(long long).
38137 (msp430_builtin_decl): Add it.
38138 (cg_magic_constant): New.
38139 (msp430_expand_delay_cycles): New.
38140 (msp430_expand_builtin): Call it.
38141 (msp430_print_operand_raw): Change integer printing from "int" to
38143 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
38144 (delay_cycles_start): New.
38145 (delay_cycles_end): New.
38146 (delay_cycles_32): New.
38147 (delay_cycles_32x): New.
38148 (delay_cycles_16): New.
38149 (delay_cycles_16x): New.
38150 (delay_cycles_2): New.
38151 (delay_cycles_1): New.
38152 * doc/extend.texi: Document __delay_cycles().
38154 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
38156 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
38157 length attribute computation.
38159 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
38162 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
38164 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
38167 * config/sparc/sparc.md: Fix types of low and high in DI constant
38168 splitter. Use gen_int_mode in some other splitters.
38170 2014-05-14 Martin Jambor <mjambor@suse.cz>
38173 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
38175 2014-05-14 James Norris <jnorris@codesourcery.com>
38177 * omp-low.c (expand_parallel_call): Remove shadow variable.
38178 (expand_omp_taskreg): Likewise.
38180 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
38182 * common/config/i386/i386-common.c
38183 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
38184 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
38185 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
38186 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
38187 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
38188 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
38189 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
38190 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
38191 xsavecintrin.h, xsavesintrin.h.
38192 (x86_64-*-*): Ditto.
38193 * config/i386/clflushoptintrin.h: New.
38194 * config/i386/xsavecintrin.h: Ditto.
38195 * config/i386/xsavesintrin.h: Ditto.
38196 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
38197 (bit_XSAVES): Ditto.
38198 (bit_XSAVES): Ditto.
38199 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
38200 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
38202 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
38203 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
38204 OPTION_MASK_ISA_XSAVES.
38205 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
38206 -mxsavec, -mxsaves.
38207 (PTA_CLFLUSHOPT) Define.
38208 (PTA_XSAVEC): Ditto.
38209 (PTA_XSAVES): Ditto.
38210 (ix86_option_override_internal): Handle new options.
38211 (ix86_valid_target_attribute_inner_p): Ditto.
38212 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
38213 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
38214 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
38215 (bdesc_special_args): Add __builtin_ia32_xsaves,
38216 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
38217 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
38218 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
38219 (ix86_expand_builtin): Handle new builtins.
38220 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
38221 (TARGET_CLFLUSHOPT_P): Ditto.
38222 (TARGET_XSAVEC): Ditto.
38223 (TARGET_XSAVEC_P): Ditto.
38224 (TARGET_XSAVES): Ditto.
38225 (TARGET_XSAVES_P): Ditto.
38226 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
38227 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
38228 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
38230 (ANY_XRSTOR64): Ditto.
38232 (xrstor): Change into <xrstor>.
38233 (xrstor_rex64): Change into <xrstor>_rex64.
38234 (xrstor64): Change into <xrstor>64
38236 * config/i386/i386.opt (mclflushopt): New.
38239 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
38241 * doc/invoke.texi: Document new options.
38243 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
38245 PR rtl-optimization/60866
38246 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
38247 Default it to -1. Pass it down to init_simplejump_data.
38248 (init_simplejump_data): New parameter old_seqno. Pass it down
38249 to get_seqno_for_a_jump.
38250 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
38251 initializing new jump seqno as a last resort. Add comment.
38252 (sel_redirect_edge_and_branch): Save old seqno of the conditional
38253 jump and pass it down to sel_init_new_insn.
38254 (sel_redirect_edge_and_branch_force): Likewise.
38256 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
38258 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
38259 shifted values to avoid build warning.
38261 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
38263 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
38264 * cfgrtl.c (rtl_merge_blocks): Fix comment.
38265 (cfg_layout_merge_blocks): Likewise.
38266 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
38268 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
38270 PR rtl-optimization/60901
38271 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
38272 bb predecessor belongs to the same scheduling region. Adjust comment.
38274 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
38276 * doc/sourcebuild.texi: (dfp_hw): Document.
38277 (p8vector_hw): Likewise.
38278 (powerpc_eabi_ok): Likewise.
38279 (powerpc_elfv2): Likewise.
38280 (powerpc_htm_ok): Likewise.
38281 (ppc_recip_hw): Likewise.
38282 (vsx_hw): Likewise.
38284 2014-05-13 Cary Coutant <ccoutant@google.com>
38286 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
38288 2014-05-13 David Malcolm <dmalcolm@redhat.com>
38290 * gengtype-parse.c (require3): Eliminate in favor of...
38292 (require_template_declaration): Update to support optional single *
38295 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
38296 (create_user_defined_type): Handle a single level of explicit
38297 pointerness within template arguments.
38298 (struct write_types_data): Add field "kind".
38299 (filter_type_name): Handle "*" character.
38300 (write_user_func_for_structure_ptr): Require a write_types_data
38301 rather than just a prefix string, so that we can look up the kind
38302 of the wtd and use it as an index into wrote_user_func_for_ptr,
38303 ensuring that such functions are written at most once. Support
38304 subclasses by invoking the marking function of the ultimate base class.
38305 (write_user_func_for_structure_body): Require a write_types_data
38306 rather than just a prefix string, so that we can pass this to
38307 write_user_func_for_structure_ptr.
38308 (write_func_for_structure): Likewise.
38309 (ggc_wtd): Add initializer of new "kind" field.
38310 (pch_wtd): Likewise.
38312 * gengtype.h (enum write_types_kinds): New.
38313 (struct type): Add field wrote_user_func_for_ptr to the "s"
38316 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
38318 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
38319 instead of const_binop.
38320 (fold_binary_loc): Likewise.
38322 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
38324 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
38325 calculation to match get_ref_base_and_extent.
38327 2014-05-13 Catherine Moore <clm@codesourcery.com>
38328 Sandra Loosemore <sandra@codesourcery.com>
38330 * configure.ac: Fix assembly for explicit JALR relocation check.
38331 * configure: Regenerate.
38333 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38335 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
38336 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
38337 Remove associated type declarations and initialisations.
38338 (arm_expand_neon_builtin): Likewise.
38339 (neon_emit_pair_result_insn): Delete.
38340 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
38341 * config/arm/neon.md (neon_vtrn<mode>): Delete.
38342 (neon_vzip<mode>): Likewise.
38343 (neon_vuzp<mode>): Likewise.
38345 2014-05-13 Richard Biener <rguenther@suse.de>
38348 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
38349 it needs revisiting whether the call still may be tail-called.
38351 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38353 * rtl.def (SYMBOL_REF): Remove middle "0" field.
38354 * rtl.h (block_symbol): Reduce number of fields to 2.
38355 (rtx_def): Add u2.symbol_ref_flags.
38356 (SYMBOL_REF_FLAGS): Use it.
38357 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
38358 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
38359 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
38360 Lower index of SYMBOL_REF_DATA.
38361 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
38362 Print SYMBOL_REF_FLAGS at the same time.
38363 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
38365 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38367 * rtl.def (VAR_LOCATION): Remove "i" field.
38368 * rtl.h (rtx_def): Add u2.var_location_status.
38369 (PAT_VAR_LOCATION_STATUS): Use it.
38370 (gen_rtx_VAR_LOCATION): Declare.
38371 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
38372 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
38373 * var-tracking.c (emit_note_insn_var_location): Remove casts.
38375 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38377 * rtl.def (scratch): Fix outdated comment and remove "0" field.
38378 * gengtype.c (adjust_field_rtx_def): Update accordingly.
38380 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38382 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
38383 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
38384 * rtl.h (rtx_def): Add insn_uid to u2 field.
38385 (RTX_FLAG_CHECK8): Delete in favor of...
38386 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
38387 (INSN_DELETED_P): Update accordingly.
38388 (INSN_UID): Use u2.insn_uid.
38389 (INSN_CHAIN_CODE_P): Define.
38390 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
38391 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
38392 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
38393 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
38394 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
38395 indices accordingly.
38396 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
38397 Update indices for insn-chain rtxes.
38398 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
38399 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
38400 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
38401 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
38402 * combine.c (try_combine): Likewise.
38403 * ira.c (setup_prohibited_mode_move_regs): Likewise.
38405 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38407 * rtl.def (REG): Remove middle field.
38408 * rtl.h (rtx_def): Add orignal_regno to u2.
38409 (ORIGINAL_REGNO): Use it instead of field 1.
38410 (REG_ATTRS): Lower field index accordingly.
38411 * gengtype.c (adjust_field_rtx_def): Remove handling of
38412 ORIGINAL_REGNO. Move REG_ATTRS index down.
38413 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
38414 code that prints the REGNO.
38416 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38418 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
38421 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38423 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
38425 2014-05-13 Bin Cheng <bin.cheng@arm.com>
38427 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
38428 (alloc_iv): Lower base expressions containing ADDR_EXPR.
38430 2014-05-13 Ian Bolton <ian.bolton@arm.com>
38432 * config/aarch64/aarch64-protos.h
38433 (aarch64_hard_regno_caller_save_mode): New prototype.
38434 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
38436 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
38438 2014-05-13 Christian Bruel <christian.bruel@st.com>
38440 * target.def (mode_switching): New hook vector.
38441 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
38442 (mode_exit, modepriority_to_mode): Likewise.
38443 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
38444 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38445 * target.h: Include tm.h and hard-reg-set.h.
38446 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
38447 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
38448 * doc/tm.texi Regenerate.
38449 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
38450 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38451 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
38452 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
38453 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
38454 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38455 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
38456 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
38457 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
38458 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
38459 (ix86_emit_mode_set): Hookify.
38460 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
38462 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38463 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
38464 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
38465 (epiphany_mode_priority_to_mode): Remove declaration.
38466 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
38467 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
38468 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
38470 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
38471 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
38472 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
38474 2014-05-13 Jakub Jelinek <jakub@redhat.com>
38477 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
38478 is const0_rtx, return immediately. Don't test count == 0 when
38481 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38483 * Makefile.in: add shrink-wrap.o.
38484 * config/i386/i386.c: include "shrink-wrap.h"
38485 * function.c: Likewise.
38486 (requires_stack_frame_p, next_block_for_reg,
38487 move_insn_for_shrink_wrap, prepare_shrink_wrap,
38488 dup_block_and_redirect): Move to shrink-wrap.c
38489 (thread_prologue_and_epilogue_insns): Extract three code segments
38490 as functions in shrink-wrap.c
38491 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
38493 * shrink-wrap.c: New file.
38494 * shrink-wrap.h: New file.
38496 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
38498 * doc/extend.texi: Reflect current numbers of pragmas. Remove
38499 reference to Solaris.
38501 2014-05-12 Mike Stump <mikestump@comcast.net>
38504 * genattrtab.c (filename): Add.
38505 (convert_set_attr_alternative): Improve error message.
38506 (check_defs): Restore read_md_filename for error messages.
38507 (gen_insn): Save filename.
38509 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
38511 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
38512 -fno-local-ivars and -fivar-visibility.
38513 * c-family/c.opt: Make -Wshadow also implicitly enable
38516 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
38518 * doc/tm.texi: Remove reference to deleted macro.
38519 * doc/tm.texi.in: Likewise.
38521 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
38524 * config/avr/avr.c (avr_out_store_psi): Use correct constant
38527 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
38530 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
38531 * config/arm/aout.h (License): Same.
38532 * config/arm/bpabi.h (License): Same.
38533 * config/arm/elf.h (License): Same.
38534 * config/arm/linux-elf.h (License): Same.
38535 * config/arm/linux-gas.h (License): Same.
38536 * config/arm/netbsd-elf.h (License): Same.
38537 * config/arm/uclinux-eabi.h (License): Same.
38538 * config/arm/uclinux-elf.h (License): Same.
38539 * config/arm/vxworks.h (License): Same.
38541 2014-05-11 Jakub Jelinek <jakub@redhat.com>
38543 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
38544 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
38545 number of operands to 3.
38546 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
38547 * tree-nested.c (convert_nonlocal_omp_clauses,
38548 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
38549 * gimplify.c (gimplify_scan_omp_clauses): Handle
38550 OMP_CLAUSE_LINEAR_STMT.
38551 * omp-low.c (lower_rec_input_clauses): Fix typo.
38552 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
38553 cast between Fortran boolean_type_node and C _Bool if
38556 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
38558 PR tree-optimization/61136
38559 * wide-int.h (multiple_of_p): Define a version that doesn't return
38561 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
38562 integer_zerop/const_binop pair.
38563 (multiple_of_p): Likewise, converting both operands to widest_int
38566 2014-05-09 Teresa Johnson <tejohnson@google.com>
38568 * cgraphunit.c (analyze_functions): Use correct dump file.
38570 2014-05-09 Florian Weimer <fweimer@redhat.com>
38572 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
38574 (stack_protect_return_slot_p): New function.
38575 (expand_used_vars): Call stack_protect_decl_p and
38576 stack_protect_return_slot_p for -fstack-protector-strong.
38578 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
38579 Andrew Haley <aph@redhat.com>
38580 Richard Sandiford <rdsandiford@googlemail.com>
38582 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
38585 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
38587 PR middle-end/61111
38588 * fold-const.c (fold_binary_loc): Changed width of mask.
38590 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
38592 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
38593 unsigned int initializers for regno_in, regno_out.
38595 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
38598 * config/avr/avr.md (cc): Add new attribute set_vzn.
38599 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
38600 Set cc insn attribute to set_vzn instead of set_zn for alternatives
38601 with INC, DEC or NEG.
38602 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
38603 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
38604 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
38606 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38609 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38611 * wide-int.cc (UTItype): Define.
38612 (UDWtype): Define for appropriate W_TYPE_SIZE.
38614 2014-05-09 Richard Biener <rguenther@suse.de>
38616 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
38617 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
38618 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
38619 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
38620 ssa_propagate): Adjust.
38622 2014-05-08 Jeff Law <law@redhat.com>
38624 PR tree-optimization/61009
38625 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
38626 tri-state rather than a boolean. When a block is too big to
38627 thread through, inform caller via negative return value.
38628 (thread_across_edge): If a block was too big for normal threading,
38629 then it's too big for a joiner too, so remove temporary equivalences
38630 and return immediately.
38632 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
38633 Matthias Klose <doko@ubuntu.com>
38636 * optc-gen.awk: Fix option handling for -Wunused-parameter.
38638 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
38641 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
38643 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
38646 * config/alpha/alpha.c: Include gimple-iterator.h.
38647 (alpha_gimple_fold_builtin): New function. Move
38648 ALPHA_BUILTIN_UMULH folding from ...
38649 (alpha_fold_builtin): ... here.
38650 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
38652 2014-05-08 Wei Mi <wmi@google.com>
38655 * config/i386/i386.c (ix86_compute_frame_layout): Update
38656 preferred_stack_boundary for call, expanded from tls descriptor.
38657 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
38658 to depend on SP register.
38659 (*tls_local_dynamic_base_32_gnu): Ditto.
38660 (*tls_local_dynamic_32_once): Ditto.
38661 (tls_global_dynamic_64_<mode>): Set
38662 ix86_tls_descriptor_calls_expanded_in_cfun.
38663 (tls_local_dynamic_base_64_<mode>): Ditto.
38664 (tls_global_dynamic_32): Set
38665 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
38666 to depend on SP register.
38667 (tls_local_dynamic_base_32): Ditto.
38669 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38671 * config/arm/arm_neon.h: Update comment.
38672 * config/arm/neon-docgen.ml: Delete.
38673 * config/arm/neon-gen.ml: Delete.
38674 * doc/arm-neon-intrinsics.texi: Update comment.
38676 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38678 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
38680 (vand, vorr, veor, vorn, vbic): Remove.
38681 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
38683 (neon_vsub_unspec): Likewise.
38684 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
38686 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38688 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
38689 (vadd_s16): Likewise.
38690 (vadd_s32): Likewise.
38691 (vadd_f32): Likewise.
38692 (vadd_u8): Likewise.
38693 (vadd_u16): Likewise.
38694 (vadd_u32): Likewise.
38695 (vadd_s64): Likewise.
38696 (vadd_u64): Likewise.
38697 (vaddq_s8): Likewise.
38698 (vaddq_s16): Likewise.
38699 (vaddq_s32): Likewise.
38700 (vaddq_s64): Likewise.
38701 (vaddq_f32): Likewise.
38702 (vaddq_u8): Likewise.
38703 (vaddq_u16): Likewise.
38704 (vaddq_u32): Likewise.
38705 (vaddq_u64): Likewise.
38706 (vmul_s8): Likewise.
38707 (vmul_s16): Likewise.
38708 (vmul_s32): Likewise.
38709 (vmul_f32): Likewise.
38710 (vmul_u8): Likewise.
38711 (vmul_u16): Likewise.
38712 (vmul_u32): Likewise.
38713 (vmul_p8): Likewise.
38714 (vmulq_s8): Likewise.
38715 (vmulq_s16): Likewise.
38716 (vmulq_s32): Likewise.
38717 (vmulq_f32): Likewise.
38718 (vmulq_u8): Likewise.
38719 (vmulq_u16): Likewise.
38720 (vmulq_u32): Likewise.
38721 (vsub_s8): Likewise.
38722 (vsub_s16): Likewise.
38723 (vsub_s32): Likewise.
38724 (vsub_f32): Likewise.
38725 (vsub_u8): Likewise.
38726 (vsub_u16): Likewise.
38727 (vsub_u32): Likewise.
38728 (vsub_s64): Likewise.
38729 (vsub_u64): Likewise.
38730 (vsubq_s8): Likewise.
38731 (vsubq_s16): Likewise.
38732 (vsubq_s32): Likewise.
38733 (vsubq_s64): Likewise.
38734 (vsubq_f32): Likewise.
38735 (vsubq_u8): Likewise.
38736 (vsubq_u16): Likewise.
38737 (vsubq_u32): Likewise.
38738 (vsubq_u64): Likewise.
38739 (vand_s8): Likewise.
38740 (vand_s16): Likewise.
38741 (vand_s32): Likewise.
38742 (vand_u8): Likewise.
38743 (vand_u16): Likewise.
38744 (vand_u32): Likewise.
38745 (vand_s64): Likewise.
38746 (vand_u64): Likewise.
38747 (vandq_s8): Likewise.
38748 (vandq_s16): Likewise.
38749 (vandq_s32): Likewise.
38750 (vandq_s64): Likewise.
38751 (vandq_u8): Likewise.
38752 (vandq_u16): Likewise.
38753 (vandq_u32): Likewise.
38754 (vandq_u64): Likewise.
38755 (vorr_s8): Likewise.
38756 (vorr_s16): Likewise.
38757 (vorr_s32): Likewise.
38758 (vorr_u8): Likewise.
38759 (vorr_u16): Likewise.
38760 (vorr_u32): Likewise.
38761 (vorr_s64): Likewise.
38762 (vorr_u64): Likewise.
38763 (vorrq_s8): Likewise.
38764 (vorrq_s16): Likewise.
38765 (vorrq_s32): Likewise.
38766 (vorrq_s64): Likewise.
38767 (vorrq_u8): Likewise.
38768 (vorrq_u16): Likewise.
38769 (vorrq_u32): Likewise.
38770 (vorrq_u64): Likewise.
38771 (veor_s8): Likewise.
38772 (veor_s16): Likewise.
38773 (veor_s32): Likewise.
38774 (veor_u8): Likewise.
38775 (veor_u16): Likewise.
38776 (veor_u32): Likewise.
38777 (veor_s64): Likewise.
38778 (veor_u64): Likewise.
38779 (veorq_s8): Likewise.
38780 (veorq_s16): Likewise.
38781 (veorq_s32): Likewise.
38782 (veorq_s64): Likewise.
38783 (veorq_u8): Likewise.
38784 (veorq_u16): Likewise.
38785 (veorq_u32): Likewise.
38786 (veorq_u64): Likewise.
38787 (vbic_s8): Likewise.
38788 (vbic_s16): Likewise.
38789 (vbic_s32): Likewise.
38790 (vbic_u8): Likewise.
38791 (vbic_u16): Likewise.
38792 (vbic_u32): Likewise.
38793 (vbic_s64): Likewise.
38794 (vbic_u64): Likewise.
38795 (vbicq_s8): Likewise.
38796 (vbicq_s16): Likewise.
38797 (vbicq_s32): Likewise.
38798 (vbicq_s64): Likewise.
38799 (vbicq_u8): Likewise.
38800 (vbicq_u16): Likewise.
38801 (vbicq_u32): Likewise.
38802 (vbicq_u64): Likewise.
38803 (vorn_s8): Likewise.
38804 (vorn_s16): Likewise.
38805 (vorn_s32): Likewise.
38806 (vorn_u8): Likewise.
38807 (vorn_u16): Likewise.
38808 (vorn_u32): Likewise.
38809 (vorn_s64): Likewise.
38810 (vorn_u64): Likewise.
38811 (vornq_s8): Likewise.
38812 (vornq_s16): Likewise.
38813 (vornq_s32): Likewise.
38814 (vornq_s64): Likewise.
38815 (vornq_u8): Likewise.
38816 (vornq_u16): Likewise.
38817 (vornq_u32): Likewise.
38818 (vornq_u64): Likewise.
38820 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38822 * wide-int.cc (UTItype): Define.
38823 (UDWtype): Define for appropriate W_TYPE_SIZE.
38825 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
38827 PR tree-optimization/59100
38828 * tree-ssa-phiopt.c: Include tree-inline.h.
38829 (neutral_element_p, absorbing_element_p): New functions.
38830 (value_replacement): Handle conditional binary operations with a
38831 neutral or absorbing element.
38833 2014-05-08 Richard Biener <rguenther@suse.de>
38835 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
38836 folding the expression.
38837 (valueize_expr): Remove.
38838 (visit_reference_op_load): Do not valueize the result of
38840 (simplify_binary_expression): Likewise.
38841 (simplify_unary_expression): Likewise.
38843 2014-05-08 Richard Biener <rguenther@suse.de>
38845 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
38846 looking at TYPE_ARG_TYPES.
38848 2014-05-08 Richard Biener <rguenther@suse.de>
38850 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
38851 pointer propagation special-case.
38853 2014-05-08 Bin Cheng <bin.cheng@arm.com>
38855 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
38856 core part of address expressions.
38858 2014-05-08 Alan Modra <amodra@gmail.com>
38861 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
38862 loads and stores when -mno-strict-align at any alignment.
38863 (expand_block_clear): Similarly. Also correct calculation of
38866 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
38868 PR middle-end/39246
38869 * tree-complex.c (expand_complex_move): Keep line info when expanding
38871 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
38872 of complex expression. Use new argument to display correct location
38873 for values coming from phi statement.
38874 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
38875 (warn_uninitialized_phi): Pass location of phi argument to
38877 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
38878 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
38880 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
38882 * config/rs6000/predicates.md (indexed_address_mem): New.
38883 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
38884 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
38885 fpstore_ux, fpstore_u.
38886 (sign_extend, indexed, update): New.
38887 (cell_micro): Adjust.
38888 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
38889 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
38890 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
38891 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
38892 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
38893 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
38894 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
38895 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
38896 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
38897 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
38898 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
38899 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
38900 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
38901 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
38902 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
38904 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
38905 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
38906 *vsx_extract_<mode>_store): Adjust.
38907 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
38908 is_cracked_insn, insn_must_be_first_in_group,
38909 insn_must_be_last_in_group): Adjust.
38911 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
38913 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
38914 ppc440-fpstore): Adjust.
38915 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
38916 ppc476-fpstore): Adjust.
38917 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
38918 ppc601-fpstore): Adjust.
38919 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
38921 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
38923 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
38924 ppc7450-fpstore): Adjust.
38925 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
38926 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
38927 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
38929 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
38930 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
38931 cell-fpstore, cell-fpstore-update): Adjust.
38932 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
38933 ppce300c3_store, ppce300c3_fpstore): Adjust.
38934 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
38935 e500mc_fpstore): Adjust.
38936 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
38937 e500mc64_store, e500mc64_fpstore): Adjust.
38938 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
38939 e5500_fpstore): Adjust.
38940 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
38941 e6500_fpstore): Adjust.
38942 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
38944 * config/rs6000/power4.md (power4-load, power4-load-ext,
38945 power4-load-ext-update, power4-load-ext-update-indexed,
38946 power4-load-update-indexed, power4-load-update, power4-fpload,
38947 power4-fpload-update, power4-store, power4-store-update,
38948 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
38950 * config/rs6000/power5.md (power5-load, power5-load-ext,
38951 power5-load-ext-update, power5-load-ext-update-indexed,
38952 power5-load-update-indexed, power5-load-update, power5-fpload,
38953 power5-fpload-update, power5-store, power5-store-update,
38954 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
38956 * config/rs6000/power6.md (power6-load, power6-load-ext,
38957 power6-load-update, power6-load-update-indexed,
38958 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
38959 power6-fpload-update, power6-store, power6-store-update,
38960 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
38962 * config/rs6000/power7.md (power7-load, power7-load-ext,
38963 power7-load-update, power7-load-update-indexed,
38964 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
38965 power7-fpload-update, power7-store, power7-store-update,
38966 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
38968 * config/rs6000/power8.md (power8-load, power8-load-update,
38969 power8-load-ext, power8-load-ext-update, power8-fpload,
38970 power8-fpload-update, power8-store, power8-store-update-indexed,
38971 power8-fpstore, power8-fpstore-update): Adjust.
38972 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
38974 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
38975 titan_lsu_store, titan_lsu_fpstore): Adjust.
38976 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
38978 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
38981 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
38982 unrolled byte insns. Emit address increments after move insns.
38984 2014-05-07 David Malcolm <dmalcolm@redhat.com>
38986 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
38987 const_gimple, rather than a gimple.
38988 (gimple_call_builtin_p): Likewise, for the three variants.
38990 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
38991 (gimple_call_builtin_p): Likewise, for the three variants.
38993 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
38995 PR tree-optimization/61095
38996 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
38998 2014-05-07 Richard Biener <rguenther@suse.de>
39000 PR tree-optimization/61034
39001 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
39002 (maybe_skip_until): Use translate to take into account
39003 lattices when trying to do disambiguations.
39004 (get_continuation_for_phi_1): Likewise.
39005 (get_continuation_for_phi): Adjust for added translate arguments.
39006 (walk_non_aliased_vuses): Likewise.
39007 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
39008 (walk_non_aliased_vuses): Likewise.
39009 (call_may_clobber_ref_p_1): Declare.
39010 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
39011 calls. Stop early if we are only supposed to disambiguate.
39012 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
39014 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
39016 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
39017 Emit an error when the function has arguments.
39019 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
39021 * cfgloop.h (unswitch_loops): Remove.
39022 * doc/passes.texi: Remove references to loop-unswitch.c
39023 * timevar.def (TV_LOOP_UNSWITCH): Remove.
39025 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
39027 * tree-vect-data-refs.c (vect_grouped_load_supported): New
39028 check for loads group of length 3.
39029 (vect_permute_load_chain): New permutations for loads group of
39031 * tree-vect-stmts.c (vect_model_load_cost): Change cost
39032 of vec_perm_shuffle for the new permutations.
39034 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
39036 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
39037 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
39038 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
39039 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
39040 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
39041 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
39042 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
39043 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
39045 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
39047 * loop-unswitch.c: Delete.
39049 2014-05-07 Richard Biener <rguenther@suse.de>
39051 * config.gcc: Always set need_64bit_hwint to yes.
39053 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
39055 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
39056 of using optimize_size.
39058 2014-05-06 Mike Stump <mikestump@comcast.net>
39060 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
39062 2014-05-06 Joseph Myers <joseph@codesourcery.com>
39064 * config/i386/sse.md (*mov<mode>_internal)
39065 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
39066 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
39067 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
39068 (*<code><mode>3, *andnot<mode>3<mask_name>)
39069 (<mask_codefor><code><mode>3<mask_name>): Only consider
39070 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
39072 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
39075 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
39077 * lra-constraints.c (valid_address_p): Move earlier in file.
39078 Add a constraint argument to the address_info version.
39079 (satisfies_memory_constraint_p): New function.
39080 (satisfies_address_constraint_p): Likewise.
39081 (process_alt_operands, curr_insn_transform): Use them.
39082 (process_address): Pass the constraint to valid_address_p when
39083 checking address operands.
39085 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
39087 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
39088 to their respective blocks. Fix inadvertent use of "node".
39090 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
39092 * emit-rtl.c (init_derived_machine_modes): New functionm, split
39094 (init_emit_once): ...here.
39095 * rtl.h (init_derived_machine_modes): Declare.
39096 * toplev.c (do_compile): Call it even if no_backend.
39098 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
39099 Mike Stump <mikestump@comcast.net>
39100 Richard Sandiford <rdsandiford@googlemail.com>
39101 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39103 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
39104 (rtx_equal_for_memref_p): Update comment.
39105 (adjust_offset_for_component_ref): Use wide-int interfaces.
39106 * builtins.c (get_object_alignment_2): Likewise.
39107 (c_readstr): Likewise.
39108 (target_char_cast): Add comment.
39109 (determine_block_size): Use wide-int interfaces.
39110 (expand_builtin_signbit): Likewise.
39111 (fold_builtin_int_roundingfn): Likewise.
39112 (fold_builtin_bitop): Likewise.
39113 (fold_builtin_bswap): Likewise.
39114 (fold_builtin_logarithm): Use signop.
39115 (fold_builtin_pow): Likewise.
39116 (fold_builtin_memory_op): Use wide-int interfaces.
39117 (fold_builtin_object_size): Likewise.
39118 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
39119 nb_iterations_estimate.
39120 (record_niter_bound): Use wide-int interfaces.
39121 (get_estimated_loop_iterations_int): Likewise.
39122 (get_estimated_loop_iterations): Likewise.
39123 (get_max_loop_iterations): Likewise.
39124 * cfgloop.h: Include wide-int.h.
39125 (struct nb_iter_bound): Change bound to widest_int.
39126 (struct loop): Change nb_iterations_upper_bound and
39127 nb_iterations_estimate to widest_int.
39128 (record_niter_bound): Switch to use widest_int.
39129 (get_estimated_loop_iterations): Likewise.
39130 (get_max_loop_iterations): Likewise.
39131 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
39132 update for wide-int.
39133 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
39134 * combine.c (try_combine): Likewise.
39135 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
39136 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
39138 (aarch64_float_const_representable_p): Likewise.
39139 * config/arc/arc.c: Include wide-int.h.
39140 (arc_can_use_doloop_p): Use wide-int interfaces.
39141 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
39142 (vfp3_const_double_index): Likewise.
39143 * config/avr/avr.c (avr_out_round): Likewise.
39144 (avr_fold_builtin): Likewise.
39145 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
39146 (bfin_can_use_doloop_p): Likewise.
39147 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
39148 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
39149 * config/i386/i386.c: Include wide-int.h.
39150 (ix86_data_alignment): Use wide-int interfaces.
39151 (ix86_local_alignment): Likewise.
39152 (ix86_emit_swsqrtsf): Update real_from_integer.
39153 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
39154 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
39155 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
39156 (zero_constant): Likewise.
39157 (input_operand): Likewise.
39158 (splat_input_operand): Likewise.
39159 (non_logical_cint_operand): Change const_double to const_wide_int.
39160 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
39161 (easy_altivec_constant): Remove comment.
39162 (paired_expand_vector_init): Use CONSTANT_P.
39163 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
39164 (rs6000_emit_move): Update checks.
39165 (rs6000_aggregate_candidate): Use wide-int interfaces.
39166 (rs6000_expand_ternop_builtin): Likewise.
39167 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
39168 (rs6000_assemble_integer): Likewise.
39169 (rs6000_hash_constant): Likewise.
39170 (output_toc): Likewise.
39171 (rs6000_rtx_costs): Likewise.
39172 (rs6000_emit_swrsqrt); Update call to real_from_integer.
39173 * config/rs6000/rs6000-c.c: Include wide-int.h.
39174 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
39175 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
39176 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
39177 Handle CONST_WIDE_INT.
39178 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
39179 Use tree_fits_uhwi_p.
39180 * config/sparc/sparc.c: Include wide-int.h.
39181 (sparc_fold_builtin): Use wide-int interfaces.
39182 * config/vax/vax.c: Include wide-int.h.
39183 (vax_float_literal): Use real_from_integer.
39184 * coretypes.h (struct hwivec_def): New.
39186 (const_hwivec): New.
39187 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
39188 (equiv_constant): Handle CONST_WIDE_INT.
39189 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
39190 (cselib_hash_rtx): Handle CONST_WIDE_INT.
39191 * dbxout.c (stabstr_U): Use wide-int interfaces.
39192 (dbxout_type): Update to use cst_fits_shwi_p.
39193 * defaults.h (LOG2_BITS_PER_UNIT): Define.
39194 (TARGET_SUPPORTS_WIDE_INT): Add default.
39195 * dfp.c: Include wide-int.h.
39196 (decimal_real_to_integer2): Use wide-int interfaces and rename to
39197 decimal_real_to_integer.
39198 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
39199 decimal_real_to_integer.
39200 * doc/generic.texi (Constant expressions): Update for wide_int.
39201 * doc/rtl.texi (const_double): Likewise.
39202 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
39203 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
39204 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
39205 (REAL_VALUE_FROM_INT): Remove.
39206 (TARGET_SUPPORTS_WIDE_INT): New.
39207 * doc/tm.texi: Regenerate.
39208 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
39209 * double-int.h: Include wide-int.h.
39210 (struct wi::int_traits): New.
39211 * dwarf2out.c (get_full_len): New.
39212 (dw_val_equal_p): Add case dw_val_class_wide_int.
39213 (size_of_loc_descr): Likewise.
39214 (output_loc_operands): Likewise.
39215 (insert_double): Remove.
39216 (insert_wide_int): New.
39217 (add_AT_wide): New.
39218 (print_die): Add case dw_val_class_wide_int.
39219 (attr_checksum): Likewise.
39220 (attr_checksum_ordered): Likewise.
39221 (same_dw_val_p): Likewise.
39222 (size_of_die): Likewise.
39223 (value_format): Likewise.
39224 (output_die): Likewise.
39225 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
39227 (clz_loc_descriptor): Use wide-int interfaces.
39228 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
39229 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
39230 (round_up_to_align): Use wide-int interfaces.
39231 (field_byte_offset): Likewise.
39232 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
39233 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
39234 CONST_DOUBLE handling. Use wide-int interfaces.
39235 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
39236 (gen_enumeration_type_die): Use add_AT_wide.
39237 (hash_loc_operands): Add case dw_val_class_wide_int.
39238 (compare_loc_operands): Likewise.
39239 * dwarf2out.h: Include wide-int.h.
39240 (wide_int_ptr): New.
39241 (enum dw_val_class): Add dw_val_class_wide_int.
39242 (struct dw_val_struct): Add val_wide.
39243 * emit-rtl.c (const_wide_int_htab): New.
39244 (const_wide_int_htab_hash): New.
39245 (const_wide_int_htab_eq): New.
39246 (lookup_const_wide_int): New.
39247 (const_double_htab_hash): Use wide-int interfaces.
39248 (const_double_htab_eq): Likewise.
39249 (rtx_to_double_int): Conditionally compile for wide-int.
39250 (immed_double_int_const): Rename to immed_wide_int_const and
39251 update for wide-int.
39252 (immed_double_const): Conditionally compile for wide-int.
39253 (init_emit_once): Use wide-int interfaces.
39254 * explow.c (plus_constant): Likewise.
39255 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
39256 (lshift_value): Use wide-int interfaces.
39257 (expand_mult): Likewise.
39258 (choose_multiplier): Likewise.
39259 (expand_smod_pow2): Likewise.
39260 (make_tree): Likewise.
39261 * expr.c (convert_modes): Consolidate handling of constants.
39262 Use wide-int interfaces.
39263 (emit_group_load_1): Add note.
39264 (store_expr): Update comment.
39265 (get_inner_reference): Use wide-int interfaces.
39266 (expand_constructor): Update comment.
39267 (expand_expr_real_2): Use wide-int interfaces.
39268 (expand_expr_real_1): Likewise.
39269 (reduce_to_bit_field_precision): Likewise.
39270 (const_vector_from_tree): Likewise.
39271 * final.c: Include wide-int-print.h.
39272 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
39273 * fixed-value.c: Include wide-int.h.
39274 (fixed_from_string): Use wide-int interfaces.
39275 (fixed_to_decimal): Likewise.
39276 (fixed_convert_from_real): Likewise.
39277 (real_convert_from_fixed): Likewise.
39278 * fold-const.h (mem_ref_offset): Return an offset_int.
39279 (div_if_zero_remainder): Remove code parameter.
39280 * fold-const.c (div_if_zero_remainder): Remove code parameter.
39281 Use wide-int interfaces.
39282 (may_negate_without_overflow_p): Use wide-int interfaces.
39283 (negate_expr_p): Likewise.
39284 (fold_negate_expr): Likewise.
39285 (int_const_binop_1): Likewise.
39286 (const_binop): Likewise.
39287 (fold_convert_const_int_from_int): Likewise.
39288 (fold_convert_const_int_from_real): Likewise.
39289 (fold_convert_const_int_from_fixed): Likewise.
39290 (fold_convert_const_fixed_from_int): Likewise.
39291 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
39292 (sign_bit_p): Use wide-int interfaces.
39293 (make_range_step): Likewise.
39294 (build_range_check): Likewise. Pass an integer of the correct type
39295 instead of using integer_one_node.
39296 (range_predecessor): Pass an integer of the correct type instead
39297 of using integer_one_node.
39298 (range_successor): Likewise.
39299 (merge_ranges): Likewise.
39300 (unextend): Use wide-int interfaces.
39301 (extract_muldiv_1): Likewise.
39302 (fold_div_compare): Likewise.
39303 (fold_single_bit_test): Likewise.
39304 (fold_sign_changed_comparison): Likewise.
39305 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
39306 (fold_plusminus_mult_expr): Use wide-int interfaces.
39307 (native_encode_int): Likewise.
39308 (native_interpret_int): Likewise.
39309 (fold_unary_loc): Likewise.
39310 (pointer_may_wrap_p): Likewise.
39311 (size_low_cst): Likewise.
39312 (mask_with_tz): Likewise.
39313 (fold_binary_loc): Likewise.
39314 (fold_ternary_loc): Likewise.
39315 (multiple_of_p): Likewise.
39316 (tree_call_nonnegative_warnv_p): Update calls to
39317 tree_int_cst_min_precision and real_from_integer.
39318 (fold_negate_const): Use wide-int interfaces.
39319 (fold_abs_const): Likewise.
39320 (fold_relational_const): Use tree_int_cst_lt.
39321 (round_up_loc): Use wide-int interfaces.
39322 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
39323 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
39324 * gengtype.c: Remove include of double-int.h.
39325 (do_typedef): Use wide-int interfaces.
39326 (open_base_files): Add wide-int.h.
39327 (main): Add offset_int and widest_int typedefs.
39328 * gengtype-lex.l: Handle "^".
39329 (CXX_KEYWORD): Add "static".
39330 * gengtype-parse.c (require3): New.
39331 (require_template_declaration): Handle constant template arguments
39332 and nested templates.
39333 * gengtype-state.c: Don't include "double-int.h".
39334 * genpreds.c (write_one_predicate_function): Update comment.
39335 (write_tm_constrs_h): Add check for hval and lval use in
39337 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
39338 (add_to_sequence): Likewise.
39339 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
39340 and const_double_operand.
39341 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
39343 * gimple-fold.c (get_base_constructor): Likewise.
39344 (fold_array_ctor_reference): Likewise.
39345 (fold_nonarray_ctor_reference): Likewise.
39346 (fold_const_aggregate_ref_1): Likewise.
39347 (gimple_val_nonnegative_real_p): Likewise.
39348 (gimple_fold_indirect_ref): Likewise.
39349 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
39350 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
39351 (struct slsr_cand_d): Change index to be widest_int.
39352 (struct incr_info_d): Change incr to be widest_int.
39353 (alloc_cand_and_find_basis): Use wide-int interfaces.
39354 (slsr_process_phi): Likewise.
39355 (backtrace_base_for_ref): Likewise. Return a widest_int.
39356 (restructure_reference): Take a widest_int instead of a double_int.
39357 (slsr_process_ref): Use wide-int interfaces.
39358 (create_mul_ssa_cand): Likewise.
39359 (create_mul_imm_cand): Likewise.
39360 (create_add_ssa_cand): Likewise.
39361 (create_add_imm_cand): Take a widest_int instead of a double_int.
39362 (slsr_process_add): Use wide-int interfaces.
39363 (slsr_process_cast): Likewise.
39364 (slsr_process_copy): Likewise.
39365 (dump_candidate): Likewise.
39366 (dump_incr_vec): Likewise.
39367 (replace_ref): Likewise.
39368 (cand_increment): Likewise. Return a widest_int.
39369 (cand_abs_increment): Likewise.
39370 (replace_mult_candidate): Take a widest_int instead of a double_int.
39371 (replace_unconditional_candidate): Use wide-int interfaces.
39372 (incr_vec_index): Take a widest_int instead of a double_int.
39373 (create_add_on_incoming_edge): Likewise.
39374 (create_phi_basis): Use wide-int interfaces.
39375 (replace_conditional_candidate): Likewise.
39376 (record_increment): Take a widest_int instead of a double_int.
39377 (record_phi_increments): Use wide-int interfaces.
39378 (phi_incr_cost): Take a widest_int instead of a double_int.
39379 (lowest_cost_path): Likewise.
39380 (total_savings): Likewise.
39381 (analyze_increments): Use wide-int interfaces.
39382 (ncd_with_phi): Take a widest_int instead of a double_int.
39383 (ncd_of_cand_and_phis): Likewise.
39384 (nearest_common_dominator_for_cands): Likewise.
39385 (insert_initializers): Use wide-int interfaces.
39386 (all_phi_incrs_profitable): Likewise.
39387 (replace_one_candidate): Likewise.
39388 (replace_profitable_candidates): Likewise.
39389 * godump.c: Include wide-int-print.h.
39390 (go_output_typedef): Use wide-int interfaces.
39391 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
39392 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
39393 (build_loop_iteration_domains): Likewise.
39394 * hooks.h: Include wide-int.h rather than double-int.h.
39395 (hook_bool_dint_dint_uint_bool_true): Delete.
39396 (hook_bool_wint_wint_uint_bool_true): Declare.
39397 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
39398 (hook_bool_wint_wint_uint_bool_true): New.
39399 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
39401 (ubsan_expand_si_overflow_mul_check): Likewise.
39402 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
39403 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
39404 (get_ancestor_addr_info): Likewise.
39405 (ipa_modify_call_arguments): Likewise.
39406 * loop-doloop.c (doloop_modify): Likewise.
39407 (doloop_optimize): Likewise.
39408 * loop-iv.c (iv_number_of_iterations): Likewise.
39409 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
39410 (unroll_loop_constant_iterations): Likewise.
39411 (decide_unroll_runtime_iterations): Likewise.
39412 (unroll_loop_runtime_iterations): Likewise.
39413 (decide_peel_simple): Likewise.
39414 (decide_unroll_stupid): Likewise.
39415 * lto-streamer-in.c (streamer_read_wi): Add.
39416 (input_cfg): Use wide-int interfaces.
39417 (lto_input_tree_1): Likewise.
39418 * lto-streamer-out.c (streamer_write_wi): Add.
39419 (hash_tree): Use wide-int interfaces.
39420 (output_cfg): Likewise.
39421 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
39422 (GTFILES): Add wide-int.h and signop.h.
39423 (TAGS): Look for .cc files too.
39424 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
39425 * optabs.c (expand_subword_shift): Likewise.
39426 (expand_doubleword_shift): Likewise.
39427 (expand_absneg_bit): Likewise.
39428 (expand_copysign_absneg): Likewise.
39429 (expand_copysign_bit): Likewise.
39430 * postreload.c (reload_cse_simplify_set): Likewise.
39431 * predict.c (predict_iv_comparison): Likewise.
39432 * pretty-print.h: Include wide-int-print.h.
39434 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
39435 * print-tree.c: Include wide-int-print.h.
39436 (print_node_brief): Use wide-int interfaces.
39437 (print_node): Likewise.
39438 * read-rtl.c (validate_const_wide_int): New.
39439 (read_rtx_code): Add CONST_WIDE_INT case.
39440 * real.c: Include wide-int.h.
39441 (real_to_integer2): Delete.
39442 (real_to_integer): New function, returning a wide_int.
39443 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
39444 (ten_to_ptwo): Update call to real_from_integer.
39445 (real_digit): Likewise.
39446 * real.h: Include signop.h, wide-int.h and insn-modes.h.
39447 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
39448 (REAL_VALUE_TO_INT): Delete.
39449 (real_to_integer): Declare a wide-int form.
39450 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
39451 * recog.c (const_int_operand): Improve comment.
39452 (const_scalar_int_operand): New.
39453 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
39454 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
39455 (split_double): Likewise.
39456 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
39457 (rtx_size): Likewise.
39458 (rtx_alloc_stat_v): New.
39459 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
39460 (cwi_output_hex): New.
39461 (iterative_hash_rtx): Handle CONST_WIDE_INT.
39462 (cwi_check_failed_bounds): New.
39463 * rtl.def (CONST_WIDE_INT): New.
39464 * rtl.h: Include <utility> and wide-int.h.
39465 (struct hwivec_def): New.
39466 (CWI_GET_NUM_ELEM): New.
39467 (CWI_PUT_NUM_ELEM): New.
39468 (struct rtx_def): Add num_elem and hwiv.
39469 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
39470 (CASE_CONST_UNIQUE): Likewise.
39471 (CASE_CONST_ANY): Likewise.
39472 (CONST_SCALAR_INT_P): Likewise.
39473 (CONST_WIDE_INT_P): New.
39475 (HWIVEC_CHECK): New.
39476 (cwi_check_failed_bounds): New.
39478 (HWIVEC_CHECK): New.
39479 (CONST_WIDE_INT_VEC) New.
39480 (CONST_WIDE_INT_NUNITS) New.
39481 (CONST_WIDE_INT_ELT) New.
39482 (rtx_mode_t): New type.
39483 (wi::int_traits <rtx_mode_t>): New.
39485 (wi::min_value): New.
39486 (wi::max_value): New.
39488 (const_wide_int_alloc): New.
39489 (immed_wide_int_const): New.
39490 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
39491 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
39492 * signop.h: New file.
39493 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
39494 (simplify_const_unary_operation): Use wide-int interfaces.
39495 (simplify_binary_operation_1): Likewise.
39496 (simplify_const_binary_operation): Likewise.
39497 (simplify_const_relational_operation): Likewise.
39498 (simplify_immed_subreg): Likewise.
39499 * stmt.c (expand_case): Likewise.
39500 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
39501 signop rather than a bool.
39502 * stor-layout.c (layout_type): Use wide-int interfaces.
39503 (initialize_sizetypes): Update calls to
39504 set_min_and_max_values_for_integral_type.
39505 (set_min_and_max_values_for_integral_type): Take a signop rather
39506 than a bool. Use wide-int interfaces.
39507 (fixup_signed_type): Update accordingly. Remove
39508 HOST_BITS_PER_DOUBLE_INT limit.
39509 (fixup_unsigned_type): Likewise.
39510 * system.h (STATIC_CONSTANT_P): New.
39511 (STATIC_ASSERT): New.
39512 * target.def (can_use_doloop_p): Take widest_ints rather than
39514 * target.h: Include wide-int.h rather than double-int.h.
39515 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
39517 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
39518 rather than INT_CST_LT_UNSIGNED.
39519 (can_use_doloop_if_innermost): Take widest_ints rather than
39521 * tree-affine.c: Include wide-int-print.h.
39522 (double_int_ext_for_comb): Delete.
39523 (wide_int_ext_for_comb): New.
39524 (aff_combination_zero): Use wide-int interfaces.
39525 (aff_combination_const): Take a widest_int instead of a double_int.
39526 (aff_combination_elt): Use wide-int interfaces.
39527 (aff_combination_scale): Take a widest_int instead of a double_int.
39528 (aff_combination_add_elt): Likewise.
39529 (aff_combination_add_cst): Likewise.
39530 (aff_combination_add): Use wide-int interfaces.
39531 (aff_combination_convert): Likewise.
39532 (tree_to_aff_combination): Likewise.
39533 (add_elt_to_tree): Take a widest_int instead of a double_int.
39534 (aff_combination_to_tree): Use wide-int interfaces.
39535 (aff_combination_remove_elt): Likewise.
39536 (aff_combination_add_product): Take a widest_int instead of
39538 (aff_combination_mult): Use wide-int interfaces.
39539 (aff_combination_expand): Likewise.
39540 (double_int_constant_multiple_p): Delete.
39541 (wide_int_constant_multiple_p): New.
39542 (aff_combination_constant_multiple_p): Take a widest_int pointer
39543 instead of a double_int pointer.
39544 (print_aff): Use wide-int interfaces.
39545 (get_inner_reference_aff): Take a widest_int pointer
39546 instead of a double_int pointer.
39547 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
39548 * tree-affine.h: Include wide-int.h.
39549 (struct aff_comb_elt): Change type of coef to widest_int.
39550 (struct affine_tree_combination): Change type of offset to widest_int.
39551 (double_int_ext_for_comb): Delete.
39552 (wide_int_ext_for_comb): New.
39553 (aff_combination_const): Use widest_int instead of double_int.
39554 (aff_combination_scale): Likewise.
39555 (aff_combination_add_elt): Likewise.
39556 (aff_combination_constant_multiple_p): Likewise.
39557 (get_inner_reference_aff): Likewise.
39558 (aff_comb_cannot_overlap_p): Likewise.
39559 (aff_combination_zero_p): Use wide-int interfaces.
39560 * tree.c: Include tree.h.
39561 (init_ttree): Use make_int_cst.
39562 (tree_code_size): Removed code for INTEGER_CST case.
39563 (tree_size): Add INTEGER_CST case.
39564 (make_node_stat): Update comment.
39565 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
39566 (build_int_cst_type): Use wide-int interfaces.
39567 (double_int_to_tree): Likewise.
39568 (double_int_fits_to_tree_p): Delete.
39569 (force_fit_type_double): Delete.
39570 (force_fit_type): New.
39571 (int_cst_hash_hash): Use wide-int interfaces.
39572 (int_cst_hash_eq): Likewise.
39573 (build_int_cst_wide): Delete.
39574 (wide_int_to_tree): New.
39575 (cache_integer_cst): Use wide-int interfaces.
39576 (build_low_bits_mask): Likewise.
39577 (cst_and_fits_in_hwi): Likewise.
39578 (real_value_from_int_cst): Likewise.
39579 (make_int_cst_stat): New.
39580 (integer_zerop): Use wide_int interfaces.
39581 (integer_onep): Likewise.
39582 (integer_all_onesp): Likewise.
39583 (integer_pow2p): Likewise.
39584 (integer_nonzerop): Likewise.
39585 (tree_log2): Likewise.
39586 (tree_floor_log2): Likewise.
39587 (tree_ctz): Likewise.
39588 (int_size_in_bytes): Likewise.
39589 (mem_ref_offset): Return an offset_int rather than a double_int.
39590 (build_type_attribute_qual_variant): Use wide_int interfaces.
39591 (type_hash_eq): Likewise
39592 (tree_int_cst_equal): Likewise.
39593 (tree_int_cst_lt): Delete.
39594 (tree_int_cst_compare): Likewise.
39595 (tree_fits_shwi_p): Use wide_int interfaces.
39596 (tree_fits_uhwi_p): Likewise.
39597 (tree_int_cst_sign_bit): Likewise.
39598 (tree_int_cst_sgn): Likewise.
39599 (tree_int_cst_min_precision): Take a signop rather than a bool.
39600 (simple_cst_equal): Use wide_int interfaces.
39601 (compare_tree_int): Likewise.
39602 (iterative_hash_expr): Likewise.
39603 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
39605 (get_type_static_bounds): Use wide_int interfaces.
39606 (tree_int_cst_elt_check_failed): New.
39607 (build_common_tree_nodes): Reordered to set prec before filling in
39609 (int_cst_value): Check cst_and_fits_in_hwi.
39610 (widest_int_cst_value): Use wide_int interfaces.
39611 (upper_bound_in_type): Likewise.
39612 (lower_bound_in_type): Likewise.
39613 (num_ending_zeros): Likewise.
39614 (drop_tree_overflow): Likewise.
39615 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
39616 (gen_conditions_for_pow_cst_base): Likewise.
39617 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
39618 (group_case_labels_stmt): Use wide-int interfaces.
39619 (verify_gimple_assign_binary): Likewise.
39620 (print_loop): Likewise.
39621 * tree-chrec.c (tree_fold_binomial): Likewise.
39622 * tree-core.h (struct tree_base): Add int_length.
39623 (struct tree_int_cst): Change rep of value.
39624 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
39625 (dr_may_alias_p): Likewise.
39626 (max_stmt_executions_tree): Likewise.
39627 * tree.def (INTEGER_CST): Update comment.
39628 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
39629 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
39630 * tree-dump.c: Include wide-int.h and wide-int-print.h.
39631 (dequeue_and_dump): Use wide-int interfaces.
39632 * tree.h: Include wide-int.h.
39633 (NULL_TREE): Moved to earlier loc in file.
39634 (TREE_INT_CST_ELT_CHECK): New.
39635 (tree_int_cst_elt_check_failed): New.
39637 (TREE_INT_CST): Delete.
39638 (TREE_INT_CST_LOW): Use wide-int interfaces.
39639 (TREE_INT_CST_HIGH): Delete.
39640 (TREE_INT_CST_NUNITS): New.
39641 (TREE_INT_CST_EXT_NUNITS): Likewise.
39642 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
39643 (TREE_INT_CST_ELT): Likewise.
39644 (INT_CST_LT): Delete.
39645 (tree_int_cst_elt_check): New (two forms).
39646 (type_code_size): Update comment.
39647 (make_int_cst_stat, make_int_cst): New.
39648 (tree_to_double_int): Delete.
39649 (double_int_fits_to_tree_p): Delete.
39650 (force_fit_type_double): Delete.
39651 (build_int_cstu): Replace with out-of-line function.
39652 (build_int_cst_wide): Delete.
39653 (tree_int_cst_lt): Define inline.
39654 (tree_int_cst_le): New.
39655 (tree_int_cst_compare): Define inline.
39656 (tree_int_cst_min_precision): Take a signop rather than a bool.
39657 (wi::int_traits <const_tree>): New.
39658 (wi::int_traits <tree>): New.
39659 (wi::extended_tree): New.
39660 (wi::int_traits <wi::extended_tree>): New.
39661 (wi::to_widest): New.
39662 (wi::to_offset): New.
39663 (wi::fits_to_tree_p): New.
39664 (wi::min_value): New.
39665 (wi::max_value): New.
39666 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
39667 (copy_tree_body_r): Likewise.
39668 * tree-object-size.c (compute_object_offset): Likewise.
39669 (addr_object_size): Likewise.
39670 * tree-predcom.c: Include wide-int-print.h.
39671 (struct dref_d): Change type of offset to widest_int.
39672 (dump_dref): Call wide-int printer.
39673 (aff_combination_dr_offset): Use wide-int interfaces.
39674 (determine_offset): Take a widest_int pointer rather than a
39675 double_int pointer.
39676 (split_data_refs_to_components): Use wide-int interfaces.
39677 (suitable_component_p): Likewise.
39678 (order_drefs): Likewise.
39679 (add_ref_to_chain): Likewise.
39680 (valid_initializer_p): Likewise.
39681 (determine_roots_comp): Likewise.
39682 * tree-pretty-print.c: Include wide-int-print.h.
39683 (dump_generic_node): Use wide-int interfaces.
39684 * tree-sra.c (sra_ipa_modify_expr): Likewise.
39685 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
39686 (move_fixed_address_to_symbol): Likewise.
39687 (move_hint_to_base): Likewise.
39688 (move_pointer_to_base): Likewise.
39689 (move_variant_to_index): Likewise.
39690 (most_expensive_mult_to_index): Likewise.
39691 (addr_to_parts): Likewise.
39692 (copy_ref_info): Likewise.
39693 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
39694 (indirect_refs_may_alias_p): Likewise.
39695 (stmt_kills_ref_p_1): Likewise.
39696 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
39697 * tree-ssa-ccp.c: Update comment at top of file. Include
39699 (struct prop_value_d): Change type of mask to widest_int.
39700 (extend_mask): New function.
39701 (dump_lattice_value): Use wide-int interfaces.
39702 (get_default_value): Likewise.
39703 (set_constant_value): Likewise.
39704 (set_value_varying): Likewise.
39705 (valid_lattice_transition): Likewise.
39706 (set_lattice_value): Likewise.
39707 (value_to_double_int): Delete.
39708 (value_to_wide_int): New.
39709 (get_value_from_alignment): Use wide-int interfaces.
39710 (get_value_for_expr): Likewise.
39711 (do_dbg_cnt): Likewise.
39712 (ccp_finalize): Likewise.
39713 (ccp_lattice_meet): Likewise.
39714 (bit_value_unop_1): Use widest_ints rather than double_ints.
39715 (bit_value_binop_1): Likewise.
39716 (bit_value_unop): Use wide-int interfaces.
39717 (bit_value_binop): Likewise.
39718 (bit_value_assume_aligned): Likewise.
39719 (evaluate_stmt): Likewise.
39720 (ccp_fold_stmt): Likewise.
39721 (visit_cond_stmt): Likewise.
39722 (ccp_visit_stmt): Likewise.
39723 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
39724 (constant_pointer_difference): Likewise.
39725 (associate_pointerplus): Likewise.
39726 (combine_conversions): Likewise.
39727 * tree-ssa-loop.h: Include wide-int.h.
39728 (struct tree_niter_desc): Change type of max to widest_int.
39729 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
39730 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
39731 (remove_redundant_iv_tests): Likewise.
39732 (canonicalize_loop_induction_variables): Likewise.
39733 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
39734 (constant_multiple_of): Take a widest_int pointer instead of
39735 a double_int pointer.
39736 (get_computation_aff): Use wide-int interfaces.
39737 (ptr_difference_cost): Likewise.
39738 (difference_cost): Likewise.
39739 (get_loop_invariant_expr_id): Likewise.
39740 (get_computation_cost_at): Likewise.
39741 (iv_elimination_compare_lt): Likewise.
39742 (may_eliminate_iv): Likewise.
39743 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
39744 instead of double_int.
39745 (max_loop_iterations): Likewise.
39746 (max_stmt_executions): Likewise.
39747 (estimated_stmt_executions): Likewise.
39748 * tree-ssa-loop-niter.c: Include wide-int-print.h.
39749 (split_to_var_and_offset): Use wide-int interfaces.
39750 (determine_value_range): Likewise.
39751 (bound_difference_of_offsetted_base): Likewise.
39752 (bounds_add): Take a widest_int instead of a double_int.
39753 (number_of_iterations_ne_max): Use wide-int interfaces.
39754 (number_of_iterations_ne): Likewise.
39755 (number_of_iterations_lt_to_ne): Likewise.
39756 (assert_loop_rolls_lt): Likewise.
39757 (number_of_iterations_lt): Likewise.
39758 (number_of_iterations_le): Likewise.
39759 (number_of_iterations_cond): Likewise.
39760 (number_of_iterations_exit): Likewise.
39761 (finite_loop_p): Likewise.
39762 (derive_constant_upper_bound_assign): Likewise.
39763 (derive_constant_upper_bound): Return a widest_int.
39764 (derive_constant_upper_bound_ops): Likewise.
39765 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
39766 (record_estimate): Take a widest_int rather than a double_int.
39767 (record_nonwrapping_iv): Use wide-int interfaces.
39768 (double_int_cmp): Delete.
39769 (wide_int_cmp): New.
39770 (bound_index): Take a widest_int rather than a double_int.
39771 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
39772 (maybe_lower_iteration_bound): Likewise.
39773 (estimate_numbers_of_iterations_loop): Likewise.
39774 (estimated_loop_iterations): Take a widest_int pointer than than
39775 a double_int pointer.
39776 (estimated_loop_iterations_int): Use wide-int interfaces.
39777 (max_loop_iterations): Take a widest_int pointer than than
39778 a double_int pointer.
39779 (max_loop_iterations_int): Use wide-int interfaces.
39780 (max_stmt_executions): Take a widest_int pointer than than
39781 a double_int pointer.
39782 (estimated_stmt_executions): Likewise.
39783 (n_of_executions_at_most): Use wide-int interfaces.
39784 (scev_probably_wraps_p): Likewise.
39785 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
39786 to real_to_integer.
39787 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
39789 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
39790 double_ints. Adjust for trailing_wide_ints <3> representation.
39791 (set_nonzero_bits): Likewise.
39792 (get_range_info): Return wide_ints rather than double_ints.
39793 Adjust for trailing_wide_ints <3> representation.
39794 (get_nonzero_bits): Likewise.
39795 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
39797 * tree-ssanames.h (struct range_info_def): Replace min, max and
39798 nonzero_bits with a trailing_wide_ints <3>.
39799 (set_range_info): Use wide_int_refs rather than double_ints.
39800 (set_nonzero_bits): Likewise.
39801 (get_range_info): Return wide_ints rather than double_ints.
39802 (get_nonzero_bits): Likewise.
39803 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
39804 * tree-ssa-pre.c (phi_translate_1): Likewise.
39805 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
39806 (acceptable_pow_call): Likewise.
39807 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
39809 (vn_reference_fold_indirect): Likewise.
39810 (vn_reference_maybe_forwprop_address): Likewise.
39811 (valueize_refs_1): Likewise.
39812 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
39813 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
39814 tree_int_cst_lt and tree_int_cst_le.
39815 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
39817 (streamer_alloc_tree): Likewise.
39818 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
39819 (streamer_write_tree_header): Likewise.
39820 (streamer_write_integer_cst): Likewise.
39821 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
39822 (build_constructors): Likewise.
39823 (array_value_type): Likewise.
39824 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
39825 (vect_check_gather): Likewise.
39826 * tree-vect-generic.c (build_replicated_const): Likewise.
39827 (expand_vector_divmod): Likewise.
39828 * tree-vect-loop.c (vect_transform_loop): Likewise.
39829 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
39830 (vect_do_peeling_for_alignment): Likewise.
39831 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
39832 * tree-vrp.c: Include wide-int.h.
39833 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
39834 (extract_range_from_assert): Use wide-int interfaces.
39835 (vrp_int_const_binop): Likewise.
39836 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
39837 double_int pointers.
39838 (ranges_from_anti_range): Use wide-int interfaces.
39839 (quad_int_cmp): Delete.
39840 (quad_int_pair_sort): Likewise.
39841 (extract_range_from_binary_expr_1): Use wide-int interfaces.
39842 (extract_range_from_unary_expr_1): Likewise.
39843 (adjust_range_with_scev): Likewise.
39844 (masked_increment): Take and return wide_ints rather than double_ints.
39845 (register_edge_assert_for_2): Use wide-int interfaces.
39846 (check_array_ref): Likewise.
39847 (search_for_addr_array): Likewise.
39848 (maybe_set_nonzero_bits): Likewise.
39849 (union_ranges): Pass an integer of the correct type instead of
39850 using integer_one_node.
39851 (intersect_ranges): Likewise.
39852 (simplify_truth_ops_using_ranges): Likewise.
39853 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
39854 (range_fits_type_p): Likewise.
39855 (simplify_cond_using_ranges): Likewise. Take a signop rather than
39857 (simplify_conversion_using_ranges): Use wide-int interfaces.
39858 (simplify_float_conversion_using_ranges): Likewise.
39859 (vrp_finalize): Likewise.
39860 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
39861 (gimple_stringops_transform): Likewise.
39862 * varasm.c (decode_addr_const): Likewise.
39863 (const_hash_1): Likewise.
39864 (const_rtx_hash_1): Likewise
39865 (output_constant): Likewise.
39866 (array_size_for_constructor): Likewise.
39867 (output_constructor_regular_field): Likewise.
39868 (output_constructor_bitfield): Likewise.
39869 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
39870 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
39872 * gencheck.c: Define BITS_PER_UNIT.
39873 * wide-int.cc: New.
39875 * wide-int-print.cc: New.
39876 * wide-int-print.h: New.
39878 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
39880 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
39882 2014-05-06 Richard Biener <rguenther@suse.de>
39884 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
39885 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
39886 (TODO_verify_all): Adjust.
39887 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
39888 TODO_verify_stmts and TODO_verify_rtl_sharing.
39889 * bb-reorder.c: Likewise.
39890 * cfgexpand.c: Likewise.
39891 * cprop.c: Likewise.
39893 * function.c: Likewise.
39894 * fwprop.c: Likewise.
39895 * gcse.c: Likewise.
39896 * gimple-ssa-isolate-paths.c: Likewise.
39897 * gimple-ssa-strength-reduction.c: Likewise.
39898 * ipa-split.c: Likewise.
39899 * loop-init.c: Likewise.
39900 * loop-unroll.c: Likewise.
39901 * lower-subreg.c: Likewise.
39902 * modulo-sched.c: Likewise.
39903 * postreload-gcse.c: Likewise.
39904 * predict.c: Likewise.
39905 * recog.c: Likewise.
39906 * sched-rgn.c: Likewise.
39907 * store-motion.c: Likewise.
39908 * tracer.c: Likewise.
39909 * trans-mem.c: Likewise.
39910 * tree-call-cdce.c: Likewise.
39911 * tree-cfg.c: Likewise.
39912 * tree-cfgcleanup.c: Likewise.
39913 * tree-complex.c: Likewise.
39914 * tree-eh.c: Likewise.
39915 * tree-emutls.c: Likewise.
39916 * tree-if-conv.c: Likewise.
39917 * tree-into-ssa.c: Likewise.
39918 * tree-loop-distribution.c: Likewise.
39919 * tree-object-size.c: Likewise.
39920 * tree-parloops.c: Likewise.
39921 * tree-pass.h: Likewise.
39922 * tree-sra.c: Likewise.
39923 * tree-ssa-ccp.c: Likewise.
39924 * tree-ssa-copy.c: Likewise.
39925 * tree-ssa-copyrename.c: Likewise.
39926 * tree-ssa-dce.c: Likewise.
39927 * tree-ssa-dom.c: Likewise.
39928 * tree-ssa-dse.c: Likewise.
39929 * tree-ssa-forwprop.c: Likewise.
39930 * tree-ssa-ifcombine.c: Likewise.
39931 * tree-ssa-loop-ch.c: Likewise.
39932 * tree-ssa-loop-ivcanon.c: Likewise.
39933 * tree-ssa-loop.c: Likewise.
39934 * tree-ssa-math-opts.c: Likewise.
39935 * tree-ssa-phiopt.c: Likewise.
39936 * tree-ssa-phiprop.c: Likewise.
39937 * tree-ssa-pre.c: Likewise.
39938 * tree-ssa-reassoc.c: Likewise.
39939 * tree-ssa-sink.c: Likewise.
39940 * tree-ssa-strlen.c: Likewise.
39941 * tree-ssa-tail-merge.c: Likewise.
39942 * tree-ssa-uncprop.c: Likewise.
39943 * tree-switch-conversion.c: Likewise.
39944 * tree-tailcall.c: Likewise.
39945 * tree-vect-generic.c: Likewise.
39946 * tree-vectorizer.c: Likewise.
39947 * tree-vrp.c: Likewise.
39948 * tsan.c: Likewise.
39949 * var-tracking.c: Likewise.
39950 * bt-load.c: Likewise.
39951 * cfgcleanup.c: Likewise.
39952 * combine-stack-adj.c: Likewise.
39953 * combine.c: Likewise.
39954 * compare-elim.c: Likewise.
39955 * config/epiphany/resolve-sw-modes.c: Likewise.
39956 * config/i386/i386.c: Likewise.
39957 * config/mips/mips.c: Likewise.
39958 * config/s390/s390.c: Likewise.
39959 * config/sh/sh_treg_combine.cc: Likewise.
39960 * config/sparc/sparc.c: Likewise.
39963 * final.c: Likewise.
39964 * ifcvt.c: Likewise.
39965 * mode-switching.c: Likewise.
39966 * passes.c: Likewise.
39967 * postreload.c: Likewise.
39969 * reg-stack.c: Likewise.
39970 * regcprop.c: Likewise.
39971 * regrename.c: Likewise.
39974 2014-05-06 Richard Biener <rguenther@suse.de>
39976 PR middle-end/61070
39977 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
39978 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
39980 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
39983 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
39985 2014-05-05 Radovan Obradovic <robradovic@mips.com>
39986 Tom de Vries <tom@codesourcery.com>
39988 * target.def (call_fusage_contains_non_callee_clobbers): New
39990 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
39992 (@node Miscellaneous Register Hooks): New node.
39993 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
39994 * doc/tm.texi: Regenerate.
39996 2014-05-05 Marek Polacek <polacek@redhat.com>
39999 * opts.c (common_handle_option): Call error_at instead of warning_at.
40001 2014-05-05 Richard Biener <rguenther@suse.de>
40003 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
40004 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
40005 under the TODO_verify_il umbrella.
40007 2014-05-05 Richard Biener <rguenther@suse.de>
40009 * passes.c (execute_function_todo): Move TODO_verify_flow under
40010 the TODO_verify_ul umbrella.
40012 2014-05-05 Richard Biener <rguenther@suse.de>
40014 PR middle-end/61010
40015 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
40016 X & CST away from a CST that is the mask of a mode.
40018 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40020 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
40021 int argument to enum machine_mode.
40022 (picochip_class_max_nregs): Ditto.
40023 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
40024 (picochip_class_max_nregs): Ditto.
40026 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40028 * target.def: Add new target hook.
40029 * doc/tm.texi: Regenerate.
40030 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
40031 * targhooks.c (default_keep_leaf_when_profiled): New function.
40033 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
40034 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
40036 2014-05-05 Bin Cheng <bin.cheng@arm.com>
40038 PR tree-optimization/60363
40039 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
40040 (copy_phi_args): New parameters. Call get_value_locus_in_path.
40041 (update_destination_phis): New parameter.
40042 (create_edge_and_update_destination_phis): Ditto.
40043 (ssa_fix_duplicate_block_edges): Pass new arguments.
40044 (thread_single_edge): Ditto.
40046 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
40048 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
40049 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
40050 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
40051 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
40052 Use RS6000_BTM_HARD_FLOAT.
40053 (BU_MISC_2): Likewise.
40054 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
40055 RS6000_BTM_HARD_FLOAT.
40056 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
40057 is explicitly used.
40058 (rs6000_invalid_builtin): Add hard floating builtin support.
40059 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
40060 hard float builtins.
40061 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
40063 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40065 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
40066 Add missing function* argument.
40068 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
40070 * lra-constraints.c (valid_address_p): Move earlier in file.
40071 Add a constraint argument to the address_info version.
40072 (satisfies_memory_constraint_p): New function.
40073 (satisfies_address_constraint_p): Likewise.
40074 (process_alt_operands, curr_insn_transform): Use them.
40075 (process_address): Pass the constraint to valid_address_p when
40076 checking address operands.
40078 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
40080 * config/mips/mips.c (mips_isa_rev): New variable.
40081 (mips_set_architecture): Set it.
40082 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
40084 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
40085 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
40086 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
40087 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
40088 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
40089 conditions in terms of mips_isa_rev.
40090 (mips_isa_rev): Declare.
40092 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40094 * config/sh/sh-mem.cc: Use tabs instead of spaces.
40095 (prob_unlikely, prob_likely): Make variables const.
40097 2014-05-03 Denis Chertykov <chertykov@gmail.com>
40099 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
40101 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40103 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
40105 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40107 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
40108 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
40109 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
40111 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
40112 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
40114 Replace usage of ROUND_REG with sh_round_reg.
40115 Use CEIL instead of ROUND_ADVANCE.
40117 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40120 * config/sh/sh.c: Include stdlib headers before everything else.
40122 2014-05-02 Jakub Jelinek <jakub@redhat.com>
40124 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
40125 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
40126 (gimplify_adjust_omp_clauses): Simd region is never
40127 directly nested in combined parallel. Instead, for linear
40128 with copyin/copyout, if in combined for simd loop, make decl
40129 firstprivate/lastprivate on OMP_FOR.
40130 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
40131 expand_omp_for_static_chunk): When setting endvar, also set
40132 fd->loop.v to the same value.
40134 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
40136 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
40138 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
40140 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
40143 2014-05-02 Marek Polacek <polacek@redhat.com>
40145 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
40147 2014-05-02 Kito Cheng <kito@0xlab.org>
40149 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
40150 to a C expression marco.
40151 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
40152 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
40153 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
40154 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
40155 HONOR_REG_ALLOC_ORDER.
40156 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
40158 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40160 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
40162 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40164 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
40166 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
40168 * tree-if-conv.c (is_cond_scalar_reduction): New function.
40169 (convert_scalar_cond_reduction): Likewise.
40170 (predicate_scalar_phi): Add recognition and transformation
40171 of simple conditioanl reduction to be vectorizable.
40173 2014-05-01 Marek Polacek <polacek@redhat.com>
40176 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
40178 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
40180 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
40181 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
40182 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
40183 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
40184 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
40185 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
40186 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
40187 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
40189 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
40191 * config/arc/arc.opt (mlra): Move comment above option name
40192 to avoid mis-parsing as language options.
40194 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40196 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
40197 * config/sol2.h: ... here.
40198 * config/sol2-10.h: Remove.
40200 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
40201 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
40202 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
40203 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
40204 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
40205 * config/sol2.h: ... here.
40206 (SECTION_NAME_FORMAT): Don't redefine.
40207 (STARTFILE_ARCH32_SPEC): Rename to ...
40208 (STARTFILE_ARCH_SPEC): ... this.
40209 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
40210 * config/sparc/sol2.h: ... here.
40211 (SECTION_NAME_FORMAT): Don't undef.
40212 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
40213 (SUBTARGET_EXTRA_SPECS): Remove.
40214 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
40216 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
40217 (MD_STARTFILE_PREFIX): Remove.
40218 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
40219 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
40220 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
40221 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
40222 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
40223 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
40224 * config/i386/sol2.h: ... here.
40225 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
40226 * config/i386/sol2-bi.h: Remove.
40227 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
40228 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
40230 * config/i386/t-sol2-64: Rename to ...
40231 * config/i386/t-sol2: ... this.
40232 * config/sparc/t-sol2-64: Rename to ...
40233 * config/sparc/t-sol2: ... this.
40235 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
40236 sol2_tm_file_head, sol2_tm_file_tail.
40237 Include ${cpu_type}/sol2.h before sol2.h.
40239 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
40240 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
40241 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
40242 Reflect i386/t-sol2-64 renaming.
40243 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
40244 Reflect sparc/t-sol2-64 renaming.
40246 2014-04-30 Richard Biener <rguenther@suse.de>
40248 * passes.c (execute_function_todo): Move TODO_verify_stmts
40249 and TODO_verify_ssa under the TODO_verify_il umbrella.
40250 * tree-ssa.h (verify_ssa): Adjust prototype.
40251 * tree-ssa.c (verify_ssa): Add parameter to tell whether
40252 we should verify SSA operands.
40253 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
40254 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
40255 whether we should verify whether not throwing stmts have EH info.
40256 * graphite-scop-detection.c (create_sese_edges): Adjust.
40257 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
40258 * tree-eh.c (lower_try_finally_switch): Do not add the
40259 default case label twice.
40261 2014-04-30 Marek Polacek <polacek@redhat.com>
40263 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
40264 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
40265 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
40266 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
40268 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
40270 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
40271 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
40272 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
40273 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
40274 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
40275 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
40276 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
40277 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
40279 2014-04-29 David Malcolm <dmalcolm@redhat.com>
40281 * tree-cfg.c (dump_function_to_file): Dump the return type of
40282 functions, in a line to itself before the function body, mimicking
40283 the layout of a C function.
40285 2014-04-29 Jakub Jelinek <jakub@redhat.com>
40287 PR tree-optimization/60971
40288 * tree-tailcall.c (process_assignment): Reject conversions which
40291 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
40293 * calls.c (initialize_argument_information): Always treat
40294 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
40295 (expand_call): Likewise.
40296 (emit_library_call_calue_1): Likewise.
40297 * expr.c (PUSH_ARGS_REVERSED): Do not define.
40298 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
40301 2014-04-29 Nick Clifton <nickc@redhat.com>
40303 * config/msp430/msp430.md (umulsidi): Fix typo.
40304 (mulhisi3): Enable even inside interrupt handlers.
40305 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
40306 bigger return address pushed in large mode.
40308 2014-04-29 Nick Clifton <nickc@redhat.com>
40310 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
40311 (arc_init_reg_tables): Use a machine_mode enum to iterate over
40313 * config/m32r/m32r.c (init_reg_tables): Likewise.
40314 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
40315 enum to hold the modes.
40317 2014-04-29 Richard Biener <rguenther@suse.de>
40319 * dominance.c (free_dominance_info): Add overload with
40320 function parameter.
40321 (dom_info_state): Likewise.
40322 (dom_info_available_p): Likewise.
40323 * basic-block.h (free_dominance_info, dom_info_state,
40324 dom_info_available_p): Declare overloads.
40325 * passes.c (execute_function_todo): Verify that verifiers
40326 don't change dominator info state. Drop dominator info
40327 for IPA pass invocations.
40328 * cgraph.c (release_function_body): Restore asserts that
40329 dominator information is released.
40331 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
40333 * doc/invoke.texi: Fix typo.
40334 * tree-vrp.c: Fix typos.
40335 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
40337 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
40339 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
40341 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
40343 * config/aarch64/aarch64-builtins.c
40344 (aarch64_types_storestruct_lane_qualifiers): New.
40345 (TYPES_STORESTRUCT_LANE): Likewise.
40346 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
40347 (st3_lane): Likewise.
40348 (st4_lane): Likewise.
40349 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
40350 (vec_store_lanesci_lane<mode>): Likewise.
40351 (vec_store_lanesxi_lane<mode>): Likewise.
40352 (aarch64_st2_lane<VQ:mode>): Likewise.
40353 (aarch64_st3_lane<VQ:mode>): Likewise.
40354 (aarch64_st4_lane<VQ:mode>): Likewise.
40355 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
40356 * config/aarch64/arm_neon.h
40357 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
40358 use new macro arguments.
40359 (__ST3_LANE_FUNC): Likewise.
40360 (__ST4_LANE_FUNC): Likewise.
40361 * config/aarch64/iterators.md (V_TWO_ELEM): New.
40362 (V_THREE_ELEM): Likewise.
40363 (V_FOUR_ELEM): Likewise.
40365 2014-04-28 David Malcolm <dmalcolm@redhat.com>
40367 * doc/gimple.texi: Replace the description of the now-defunct
40368 union gimple_statement_d with a diagram showing the
40369 gimple_statement_base class hierarchy and its relationships to
40370 the GSS_ and GIMPLE_ enums.
40372 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
40374 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
40375 * config/aarch64/aarch64.c
40376 (aarch64_cannot_change_mode_class): Weaken conditions.
40377 (aarch64_modes_tieable_p): New.
40378 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
40380 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
40382 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
40383 (loadsync_<mode>): Change mode.
40384 (load_quadpti, store_quadpti): New.
40385 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
40386 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
40388 2014-04-28 Martin Jambor <mjambor@suse.cz>
40390 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
40391 same alias type as the original statement.
40392 (subreplacement_assignment_data): New type.
40393 (handle_unscalarized_data_in_subtree): New type of parameter,
40394 generate new memory accesses with same alias type as the original
40396 (load_assign_lhs_subreplacements): Likewise.
40397 (sra_modify_constructor_assign): Generate new memory accesses with
40398 same alias type as the original statement.
40400 2014-04-28 Richard Biener <rguenther@suse.de>
40402 * tree-pass.h (TODO_verify_il): Define.
40403 (TODO_verify_all): Complete properly.
40404 * passes.c (execute_function_todo): Move existing loop-closed
40405 SSA verification under TODO_verify_il.
40406 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
40407 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
40408 Fix tree sharing issue.
40410 2014-04-28 Richard Biener <rguenther@suse.de>
40412 PR middle-end/60092
40413 * builtins.def (DEF_C11_BUILTIN): Add.
40414 (BUILT_IN_ALIGNED_ALLOC): Likewise.
40415 * coretypes.h (enum function_class): Add function_c11_misc.
40416 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
40417 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
40418 (call_may_clobber_ref_p_1): Likewise.
40419 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
40420 (mark_all_reaching_defs_necessary_1): Likewise.
40421 (propagate_necessity): Likewise.
40422 (eliminate_unnecessary_stmts): Likewise.
40423 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
40425 2014-04-28 Richard Biener <rguenther@suse.de>
40427 * tree-vrp.c (vrp_var_may_overflow): Remove.
40428 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
40429 with overflow immediately bump to one before that value and
40430 let iteration figure out overflow status.
40432 2014-04-28 Richard Biener <rguenther@suse.de>
40434 * configure.ac: Do valgrind header checks unconditionally.
40435 Add --enable-valgrind-annotations.
40436 * system.h: Guard valgrind header inclusion with
40437 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
40438 * alloc-pool.c (pool_alloc, pool_free): Use
40439 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
40440 to guard possibly dead code.
40441 * config.in: Regenerated.
40442 * configure: Likewise.
40444 2014-04-28 Jeff Law <law@redhat.com>
40446 PR tree-optimization/60902
40447 * tree-ssa-threadedge.c
40448 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
40449 over real defs when invalidating outputs from statements that do not
40450 produce useful outputs for threading.
40452 2014-04-28 Richard Biener <rguenther@suse.de>
40454 PR tree-optimization/60979
40455 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
40456 SCOPs that end in a block with a successor with abnormal
40459 2014-04-28 Richard Biener <rguenther@suse.de>
40461 * tree-pass.h (execute_pass_list): Adjust prototype.
40462 * passes.c (pass_manager::execute_early_local_passes): Adjust.
40463 (do_per_function): Change callback signature, push all actual
40464 work to the callbals.
40465 (do_per_function_toporder): Likewise.
40466 (execute_function_dump): Adjust.
40467 (execute_function_todo): Likewise.
40468 (clear_last_verified): Likewise.
40469 (verify_curr_properties): Likewise.
40470 (update_properties_after_pass): Likewise.
40471 (execute_pass_list_1): Split out from ...
40472 (execute_pass_list): ... here. Adjust.
40473 (execute_ipa_pass_list): Likewise.
40474 * cgraphunit.c (cgraph_add_new_function): Adjust.
40475 (analyze_function): Likewise.
40476 (expand_function): Likewise.
40477 * cgraph.c (release_function_body): Free dominance info
40478 here instead of asserting it was magically freed elsewhere.
40480 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
40482 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
40483 * configure: Regenerate.
40484 * config/sparc/sparc.opt (muser-mode): New option.
40485 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
40487 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
40488 * doc/invoke.texi (SPARC options): Document -muser-mode.
40490 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
40492 * cselib.c (find_slot_memmode): Delete.
40493 (cselib_hasher): Change compare_type to a struct.
40494 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
40496 (preserve_constants_and_equivs): Adjust for new compare_type.
40497 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
40498 (wrap_constant): Delete.
40499 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
40501 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
40503 * doc/install.texi (Building with profile feedback): Remove
40506 2014-04-26 Tom de Vries <tom@codesourcery.com>
40508 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
40511 2014-04-25 Cary Coutant <ccoutant@google.com>
40514 * dwarf2out.c (should_move_die_to_comdat): A type definition
40515 can contain a subprogram definition, but don't move it to a
40517 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
40518 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
40520 (clone_tree_hash): Rename to...
40521 (clone_tree_partial): ...this; change callers. Copy
40522 DW_TAG_subprogram DIEs as declarations.
40523 (copy_decls_walk): Don't copy children of a declaration into a
40526 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
40529 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
40532 2014-04-25 Jiong Wang <jiong.wang@arm.com>
40534 * config/arm/predicates.md (call_insn_operand): Add long_call check.
40535 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
40537 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
40540 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40542 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
40544 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40546 PR tree-optimization/60930
40547 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
40548 creating a multiply candidate by folding two constant
40549 multiplicands when the result overflows.
40551 2014-04-25 Jakub Jelinek <jakub@redhat.com>
40553 PR tree-optimization/60960
40554 * tree-vect-generic.c (expand_vector_operation): Only call
40555 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
40557 2014-04-25 Tom de Vries <tom@codesourcery.com>
40559 * expr.c (clobber_reg_mode): New function.
40560 * expr.h (clobber_reg): New function.
40562 2014-04-25 Tom de Vries <tom@codesourcery.com>
40564 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
40567 2014-04-25 Radovan Obradovic <robradovic@mips.com>
40568 Tom de Vries <tom@codesourcery.com>
40570 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
40572 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
40573 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
40574 new argument to find_all_hard_reg_sets call.
40576 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40578 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
40579 Use HOST_WIDE_INT_C for mask literal.
40580 (aarch_rev16_shleft_mask_imm_p): Likewise.
40582 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
40585 * config/sparc/sparc.md (ashlsi3_extend): Delete.
40587 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
40589 PR preprocessor/56540
40590 * config/i386/i386-c.c (ix86_target_macros): Define
40591 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
40593 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40595 * configure.ac (tga_func): Remove.
40596 (LIB_TLS_SPEC): Remove.
40597 * configure: Regenerate.
40598 * config.in: Regenerate.
40599 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
40601 2014-04-25 Richard Biener <rguenther@suse.de>
40604 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
40605 call stmt use/clobber sets during stmt walk instead of
40606 walking the possibly incomplete set of caller edges.
40608 2014-04-25 Richard Biener <rguenther@suse.de>
40611 * passes.c (apply_ipa_transforms): Inline into only caller ...
40612 (execute_one_pass): ... here. Properly bring in function
40613 bodies for nodes we want to apply IPA transforms to.
40615 2014-04-24 Cong Hou <congh@google.com>
40617 PR tree-optimization/60896
40618 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
40619 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
40620 (vect_mark_pattern_stmts): Set the def type of all statements in
40621 PATTERN_DEF_SEQ as vect_internal_def.
40623 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
40625 * doc/extend.texi (PowerPC Built-in Functions): Document new
40626 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
40627 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
40629 * config/rs6000/predicates.md (const_0_to_3_operand): New
40630 predicate to match 0..3 integer constants.
40632 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
40633 to support adding miscellaneous builtin functions.
40634 (BU_DFP_MISC_2): Likewise.
40635 (BU_P7_MISC_1): Likewise.
40636 (BU_P7_MISC_2): Likewise.
40637 (BU_P8V_MISC_3): Likewise.
40638 (BU_MISC_1): Likewise.
40639 (BU_MISC_2): Likewise.
40640 (DIVWE): Add extended divide builtin functions.
40641 (DIVWEO): Likewise.
40642 (DIVWEU): Likewise.
40643 (DIVWEUO): Likewise.
40645 (DIVDEO): Likewise.
40646 (DIVDEU): Likewise.
40647 (DIVDEUO): Likewise.
40648 (DXEX): Add decimal floating-point builtin functions.
40650 (DDEDPD): Likewise.
40651 (DDEDPDQ): Likewise.
40652 (DENBCD): Likewise.
40653 (DENBCDQ): Likewise.
40657 (DSCLIQ): Likewise.
40659 (DSCRIQ): Likewise.
40660 (CDTBCD): Add new BCD builtin functions.
40661 (CBCDTD): Likewise.
40662 (ADDG6S): Likewise.
40663 (BCDADD): Likewise.
40664 (BCDADD_LT): Likewise.
40665 (BCDADD_EQ): Likewise.
40666 (BCDADD_GT): Likewise.
40667 (BCDADD_OV): Likewise.
40668 (BCDSUB): Likewise.
40669 (BCDSUB_LT): Likewise.
40670 (BCDSUB_EQ): Likewise.
40671 (BCDSUB_GT): Likewise.
40672 (BCDSUB_OV): Likewise.
40673 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
40674 (UNPACK_TD): Likewise.
40675 (PACK_TF): Likewise.
40676 (UNPACK_TF): Likewise.
40677 (UNPACK_TF_0): Likewise.
40678 (UNPACK_TF_1): Likewise.
40679 (PACK_V1TI): Likewise.
40680 (UNPACK_V1TI): Likewise.
40682 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
40683 support for decimal floating point builtin functions.
40684 (rs6000_expand_ternop_builtin): Add checks for the new builtin
40685 functions that take constant arguments.
40686 (rs6000_invalid_builtin): Add decimal floating point builtin support.
40687 (rs6000_init_builtins): Setup long double, _Decimal64, and
40688 _Decimal128 types for new builtin functions.
40689 (builtin_function_type): Set the unsigned flags appropriately for
40690 the new builtin functions.
40691 (rs6000_opt_masks): Add support for decimal floating point builtin
40694 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
40695 floating point builtin functions.
40696 (RS6000_BTM_COMMON): Likewise.
40697 (RS6000_BTI_long_double): Likewise.
40698 (RS6000_BTI_dfloat64): Likewise.
40699 (RS6000_BTI_dfloat128): Likewise.
40700 (long_double_type_internal_node): Likewise.
40701 (dfloat64_type_internal_node): Likewise.
40702 (dfloat128_type_internal_node): Likewise.
40704 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
40705 2.07 bcd arithmetic instructions.
40706 (UNSPEC_BCDSUB): Likewise.
40707 (UNSPEC_BCD_OVERFLOW): Likewise.
40708 (UNSPEC_BCD_ADD_SUB): Likewise.
40709 (bcd_add_sub): Likewise.
40710 (BCD_TEST): Likewise.
40711 (bcd<bcd_add_sub>): Likewise.
40712 (bcd<bcd_add_sub>_test): Likewise.
40713 (bcd<bcd_add_sub>_test2): Likewise.
40714 (bcd<bcd_add_sub>_<code>): Likewise.
40715 (peephole2 for combined bcd ops): Likewise.
40717 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
40718 decimal floating point builtin functions.
40719 (UNSPEC_DENBCD): Likewise.
40720 (UNSPEC_DXEX): Likewise.
40721 (UNSPEC_DIEX): Likewise.
40722 (UNSPEC_DSCLI): Likewise.
40723 (UNSPEC_DSCRI): Likewise.
40724 (D64_D128): Likewise.
40725 (dfp_suffix): Likewise.
40726 (dfp_ddedpd_<mode>): Likewise.
40727 (dfp_denbcd_<mode>): Likewise.
40728 (dfp_dxex_<mode>): Likewise.
40729 (dfp_diex_<mode>): Likewise.
40730 (dfp_dscli_<mode>): Likewise.
40731 (dfp_dscri_<mode>): Likewise.
40733 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
40735 (UNSPEC_CDTBCD): Likewise.
40736 (UNSPEC_CBCDTD): Likewise.
40737 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
40738 (UNSPEC_DIVEO): Likewise.
40739 (UNSPEC_DIVEU): Likewise.
40740 (UNSPEC_DIVEUO): Likewise.
40741 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
40742 pack/unpack 128-bit types.
40743 (UNSPEC_PACK_128BIT): Likewise.
40744 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
40745 (udiv<mode>3): Use idiv_ldiv mode attribute.
40746 (div<mode>3): Likewise.
40747 (addg6s): Add new BCD builtin functions.
40748 (cdtbcd): Likewise.
40749 (cbcdtd): Likewise.
40750 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
40751 (div_extend): Likewise.
40752 (div<div_extend>_<mode>"): Likewise.
40753 (FP128_64): Add support for new builtin functions to pack/unpack
40755 (unpack<mode>): Likewise.
40756 (unpacktf_0): Likewise.
40757 (unpacktf_1): Likewise.
40758 (unpack<mode>_dm): Likewise.
40759 (unpack<mode>_nodm): Likewise.
40760 (pack<mode>): Likewise.
40761 (unpackv1ti): Likewise.
40762 (packv1ti): Likewise.
40764 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
40766 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
40769 2014-04-24 Jakub Jelinek <jakub@redhat.com>
40771 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
40772 * gimplify.c (omp_is_private): Change last argument's type to int.
40773 Only diagnose lastprivate if the simd argument is 1, only diagnose
40774 linear if the simd argument is 2.
40775 (gimplify_omp_for): Adjust omp_is_private callers. When adding
40776 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
40777 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
40778 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
40779 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
40780 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
40781 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
40782 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
40783 * tree-nested.c (convert_nonlocal_omp_clauses,
40784 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
40786 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
40789 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
40792 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
40794 * flag-types.h (enum ivar_visibility): Add.
40796 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
40798 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
40799 function * argument.
40801 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
40803 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
40805 2014-04-24 Radovan Obradovic <robradovic@mips.com>
40806 Tom de Vries <tom@codesourcery.com>
40808 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
40809 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
40811 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
40812 * emit-rtl.c (try_split): Same.
40814 2014-04-24 Radovan Obradovic <robradovic@mips.com>
40815 Tom de Vries <tom@codesourcery.com>
40817 * common.opt (fuse-caller-save): New option.
40819 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
40821 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
40822 elements for big-endian.
40824 2014-04-24 Richard Biener <rguenther@suse.de>
40826 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
40827 during TER and instead use the sepops interface for expanding
40828 non-GIMPLE_SINGLE_RHS.
40830 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40832 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
40833 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
40835 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40837 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
40838 assembler 64-bit option.
40839 * configure: Regenerate.
40841 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40843 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
40844 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
40845 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
40846 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
40847 (TARGET_CRYPTO): Take TARGET_SIMD into account.
40849 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40851 * config/aarch64/aarch64-builtins.c
40852 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
40853 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
40854 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
40855 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
40857 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
40858 (Vrevsuff): New mode attribute.
40860 2014-04-24 Terry Guo <terry.guo@arm.com>
40862 * config/arm/arm.h (machine_function): Define variable
40863 after_arm_reorg here.
40864 * config/arm/arm.c (after_arm_reorg): Remove the definition.
40865 (arm_split_constant): Update the way to access variable
40867 (arm_reorg): Ditto.
40868 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
40870 2014-04-23 Tom de Vries <tom@codesourcery.com>
40872 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
40874 2014-04-23 David Malcolm <dmalcolm@redhat.com>
40876 * is-a.h: Update comments to reflect the following changes to the
40877 "pointerness" of the API, making the template parameter match the
40878 return type, allowing use of is-a.h with typedefs of pointers.
40879 (is_a_helper::cast): Return a T rather then a pointer to a T, so
40880 that the return type matches the parameter to the is_a_helper.
40882 (dyn_cast): Likewise.
40884 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
40885 pointer from the is-a.h API.
40887 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
40888 (is_a_helper <cgraph_node *>::test): ...this, matching change to
40890 (is_a_helper <varpool_node>::test): Likewise, convert to...
40891 (is_a_helper <varpool_node *>::test): ...this.
40893 (varpool_first_variable): Update for removal of implicit pointer
40894 from the is-a.h API.
40895 (varpool_next_variable): Likewise.
40896 (varpool_first_static_initializer): Likewise.
40897 (varpool_next_static_initializer): Likewise.
40898 (varpool_first_defined_variable): Likewise.
40899 (varpool_next_defined_variable): Likewise.
40900 (cgraph_first_defined_function): Likewise.
40901 (cgraph_next_defined_function): Likewise.
40902 (cgraph_first_function): Likewise.
40903 (cgraph_next_function): Likewise.
40904 (cgraph_first_function_with_gimple_body): Likewise.
40905 (cgraph_next_function_with_gimple_body): Likewise.
40906 (cgraph_alias_target): Likewise.
40907 (varpool_alias_target): Likewise.
40908 (cgraph_function_or_thunk_node): Likewise.
40909 (varpool_variable_node): Likewise.
40910 (symtab_real_symbol_p): Likewise.
40911 * cgraphunit.c (referred_to_p): Likewise.
40912 (analyze_functions): Likewise.
40913 (handle_alias_pairs): Likewise.
40914 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
40915 * gimple-ssa.h (gimple_vuse_op): Likewise.
40916 (gimple_vdef_op): Likewise.
40917 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
40918 * gimple.c (gimple_build_asm_1): Likewise.
40919 (gimple_build_try): Likewise.
40920 (gimple_build_resx): Likewise.
40921 (gimple_build_eh_dispatch): Likewise.
40922 (gimple_build_omp_for): Likewise.
40923 (gimple_omp_for_set_clauses): Likewise.
40925 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
40926 (is_a_helper <gimple_statement_asm *>::test): ...this.
40927 (is_a_helper <gimple_statement_bind>::test): Convert to...
40928 (is_a_helper <gimple_statement_bind *>::test): ...this.
40929 (is_a_helper <gimple_statement_call>::test): Convert to...
40930 (is_a_helper <gimple_statement_call *>::test): ...this.
40931 (is_a_helper <gimple_statement_catch>::test): Convert to...
40932 (is_a_helper <gimple_statement_catch *>::test): ...this.
40933 (is_a_helper <gimple_statement_resx>::test): Convert to...
40934 (is_a_helper <gimple_statement_resx *>::test): ...this.
40935 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
40936 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
40937 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
40938 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
40939 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
40940 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
40941 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
40942 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
40943 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
40944 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
40945 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
40946 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
40947 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
40948 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
40949 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
40950 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
40951 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
40952 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
40953 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
40954 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
40955 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
40956 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
40957 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
40958 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
40959 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
40960 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
40961 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
40962 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
40963 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
40964 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
40965 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
40966 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
40967 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
40968 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
40969 (is_a_helper <gimple_statement_phi>::test): Convert to...
40970 (is_a_helper <gimple_statement_phi *>::test): ...this.
40971 (is_a_helper <gimple_statement_transaction>::test): Convert to...
40972 (is_a_helper <gimple_statement_transaction *>::test): ...this.
40973 (is_a_helper <gimple_statement_try>::test): Convert to...
40974 (is_a_helper <gimple_statement_try *>::test): ...this.
40975 (is_a_helper <gimple_statement_wce>::test): Convert to...
40976 (is_a_helper <gimple_statement_wce *>::test): ...this.
40977 (is_a_helper <const gimple_statement_asm>::test): Convert to...
40978 (is_a_helper <const gimple_statement_asm *>::test): ...this.
40979 (is_a_helper <const gimple_statement_bind>::test): Convert to...
40980 (is_a_helper <const gimple_statement_bind *>::test): ...this.
40981 (is_a_helper <const gimple_statement_call>::test): Convert to...
40982 (is_a_helper <const gimple_statement_call *>::test): ...this.
40983 (is_a_helper <const gimple_statement_catch>::test): Convert to...
40984 (is_a_helper <const gimple_statement_catch *>::test): ...this.
40985 (is_a_helper <const gimple_statement_resx>::test): Convert to...
40986 (is_a_helper <const gimple_statement_resx *>::test): ...this.
40987 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
40988 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
40989 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
40990 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
40991 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
40993 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
40995 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
40997 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
40999 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
41000 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
41001 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
41003 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
41004 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
41006 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
41007 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
41008 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
41009 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
41010 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
41011 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
41013 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
41014 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
41015 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
41016 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
41018 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
41019 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
41020 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
41021 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
41022 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
41023 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
41024 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
41025 (is_a_helper <const gimple_statement_phi>::test): Convert to...
41026 (is_a_helper <const gimple_statement_phi *>::test): ...this.
41027 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
41028 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
41029 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
41030 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
41031 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
41032 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
41033 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
41035 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
41037 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
41038 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
41040 (gimple_use_ops): Update for removal of implicit pointer from the
41042 (gimple_set_use_ops): Likewise.
41043 (gimple_vuse): Likewise.
41044 (gimple_vdef): Likewise.
41045 (gimple_vuse_ptr): Likewise.
41046 (gimple_vdef_ptr): Likewise.
41047 (gimple_set_vuse): Likewise.
41048 (gimple_set_vdef): Likewise.
41049 (gimple_omp_return_set_lhs): Likewise.
41050 (gimple_omp_return_lhs): Likewise.
41051 (gimple_omp_return_lhs_ptr): Likewise.
41052 (gimple_call_fntype): Likewise.
41053 (gimple_call_set_fntype): Likewise.
41054 (gimple_call_set_internal_fn): Likewise.
41055 (gimple_call_use_set): Likewise.
41056 (gimple_call_clobber_set): Likewise.
41057 (gimple_bind_vars): Likewise.
41058 (gimple_bind_set_vars): Likewise.
41059 (gimple_bind_body_ptr): Likewise.
41060 (gimple_bind_set_body): Likewise.
41061 (gimple_bind_add_stmt): Likewise.
41062 (gimple_bind_block): Likewise.
41063 (gimple_bind_set_block): Likewise.
41064 (gimple_asm_ninputs): Likewise.
41065 (gimple_asm_noutputs): Likewise.
41066 (gimple_asm_nclobbers): Likewise.
41067 (gimple_asm_nlabels): Likewise.
41068 (gimple_asm_input_op): Likewise.
41069 (gimple_asm_input_op_ptr): Likewise.
41070 (gimple_asm_output_op): Likewise.
41071 (gimple_asm_output_op_ptr): Likewise.
41072 (gimple_asm_set_output_op): Likewise.
41073 (gimple_asm_clobber_op): Likewise.
41074 (gimple_asm_set_clobber_op): Likewise.
41075 (gimple_asm_label_op): Likewise.
41076 (gimple_asm_set_label_op): Likewise.
41077 (gimple_asm_string): Likewise.
41078 (gimple_catch_types): Likewise.
41079 (gimple_catch_types_ptr): Likewise.
41080 (gimple_catch_handler_ptr): Likewise.
41081 (gimple_catch_set_types): Likewise.
41082 (gimple_catch_set_handler): Likewise.
41083 (gimple_eh_filter_types): Likewise.
41084 (gimple_eh_filter_types_ptr): Likewise.
41085 (gimple_eh_filter_failure_ptr): Likewise.
41086 (gimple_eh_filter_set_types): Likewise.
41087 (gimple_eh_filter_set_failure): Likewise.
41088 (gimple_eh_must_not_throw_fndecl): Likewise.
41089 (gimple_eh_must_not_throw_set_fndecl): Likewise.
41090 (gimple_eh_else_n_body_ptr): Likewise.
41091 (gimple_eh_else_e_body_ptr): Likewise.
41092 (gimple_eh_else_set_n_body): Likewise.
41093 (gimple_eh_else_set_e_body): Likewise.
41094 (gimple_try_eval_ptr): Likewise.
41095 (gimple_try_cleanup_ptr): Likewise.
41096 (gimple_try_set_eval): Likewise.
41097 (gimple_try_set_cleanup): Likewise.
41098 (gimple_wce_cleanup_ptr): Likewise.
41099 (gimple_wce_set_cleanup): Likewise.
41100 (gimple_phi_capacity): Likewise.
41101 (gimple_phi_num_args): Likewise.
41102 (gimple_phi_result): Likewise.
41103 (gimple_phi_result_ptr): Likewise.
41104 (gimple_phi_set_result): Likewise.
41105 (gimple_phi_arg): Likewise.
41106 (gimple_phi_set_arg): Likewise.
41107 (gimple_resx_region): Likewise.
41108 (gimple_resx_set_region): Likewise.
41109 (gimple_eh_dispatch_region): Likewise.
41110 (gimple_eh_dispatch_set_region): Likewise.
41111 (gimple_omp_critical_name): Likewise.
41112 (gimple_omp_critical_name_ptr): Likewise.
41113 (gimple_omp_critical_set_name): Likewise.
41114 (gimple_omp_for_clauses): Likewise.
41115 (gimple_omp_for_clauses_ptr): Likewise.
41116 (gimple_omp_for_set_clauses): Likewise.
41117 (gimple_omp_for_collapse): Likewise.
41118 (gimple_omp_for_index): Likewise.
41119 (gimple_omp_for_index_ptr): Likewise.
41120 (gimple_omp_for_set_index): Likewise.
41121 (gimple_omp_for_initial): Likewise.
41122 (gimple_omp_for_initial_ptr): Likewise.
41123 (gimple_omp_for_set_initial): Likewise.
41124 (gimple_omp_for_final): Likewise.
41125 (gimple_omp_for_final_ptr): Likewise.
41126 (gimple_omp_for_set_final): Likewise.
41127 (gimple_omp_for_incr): Likewise.
41128 (gimple_omp_for_incr_ptr): Likewise.
41129 (gimple_omp_for_set_incr): Likewise.
41130 (gimple_omp_for_pre_body_ptr): Likewise.
41131 (gimple_omp_for_set_pre_body): Likewise.
41132 (gimple_omp_parallel_clauses): Likewise.
41133 (gimple_omp_parallel_clauses_ptr): Likewise.
41134 (gimple_omp_parallel_set_clauses): Likewise.
41135 (gimple_omp_parallel_child_fn): Likewise.
41136 (gimple_omp_parallel_child_fn_ptr): Likewise.
41137 (gimple_omp_parallel_set_child_fn): Likewise.
41138 (gimple_omp_parallel_data_arg): Likewise.
41139 (gimple_omp_parallel_data_arg_ptr): Likewise.
41140 (gimple_omp_parallel_set_data_arg): Likewise.
41141 (gimple_omp_task_clauses): Likewise.
41142 (gimple_omp_task_clauses_ptr): Likewise.
41143 (gimple_omp_task_set_clauses): Likewise.
41144 (gimple_omp_task_child_fn): Likewise.
41145 (gimple_omp_task_child_fn_ptr): Likewise.
41146 (gimple_omp_task_set_child_fn): Likewise.
41147 (gimple_omp_task_data_arg): Likewise.
41148 (gimple_omp_task_data_arg_ptr): Likewise.
41149 (gimple_omp_task_set_data_arg): Likewise.
41150 (gimple_omp_taskreg_clauses): Likewise.
41151 (gimple_omp_taskreg_clauses_ptr): Likewise.
41152 (gimple_omp_taskreg_set_clauses): Likewise.
41153 (gimple_omp_taskreg_child_fn): Likewise.
41154 (gimple_omp_taskreg_child_fn_ptr): Likewise.
41155 (gimple_omp_taskreg_set_child_fn): Likewise.
41156 (gimple_omp_taskreg_data_arg): Likewise.
41157 (gimple_omp_taskreg_data_arg_ptr): Likewise.
41158 (gimple_omp_taskreg_set_data_arg): Likewise.
41159 (gimple_omp_task_copy_fn): Likewise.
41160 (gimple_omp_task_copy_fn_ptr): Likewise.
41161 (gimple_omp_task_set_copy_fn): Likewise.
41162 (gimple_omp_task_arg_size): Likewise.
41163 (gimple_omp_task_arg_size_ptr): Likewise.
41164 (gimple_omp_task_set_arg_size): Likewise.
41165 (gimple_omp_task_arg_align): Likewise.
41166 (gimple_omp_task_arg_align_ptr): Likewise.
41167 (gimple_omp_task_set_arg_align): Likewise.
41168 (gimple_omp_single_clauses): Likewise.
41169 (gimple_omp_single_clauses_ptr): Likewise.
41170 (gimple_omp_single_set_clauses): Likewise.
41171 (gimple_omp_target_clauses): Likewise.
41172 (gimple_omp_target_clauses_ptr): Likewise.
41173 (gimple_omp_target_set_clauses): Likewise.
41174 (gimple_omp_target_child_fn): Likewise.
41175 (gimple_omp_target_child_fn_ptr): Likewise.
41176 (gimple_omp_target_set_child_fn): Likewise.
41177 (gimple_omp_target_data_arg): Likewise.
41178 (gimple_omp_target_data_arg_ptr): Likewise.
41179 (gimple_omp_target_set_data_arg): Likewise.
41180 (gimple_omp_teams_clauses): Likewise.
41181 (gimple_omp_teams_clauses_ptr): Likewise.
41182 (gimple_omp_teams_set_clauses): Likewise.
41183 (gimple_omp_sections_clauses): Likewise.
41184 (gimple_omp_sections_clauses_ptr): Likewise.
41185 (gimple_omp_sections_set_clauses): Likewise.
41186 (gimple_omp_sections_control): Likewise.
41187 (gimple_omp_sections_control_ptr): Likewise.
41188 (gimple_omp_sections_set_control): Likewise.
41189 (gimple_omp_for_set_cond): Likewise.
41190 (gimple_omp_for_cond): Likewise.
41191 (gimple_omp_atomic_store_set_val): Likewise.
41192 (gimple_omp_atomic_store_val): Likewise.
41193 (gimple_omp_atomic_store_val_ptr): Likewise.
41194 (gimple_omp_atomic_load_set_lhs): Likewise.
41195 (gimple_omp_atomic_load_lhs): Likewise.
41196 (gimple_omp_atomic_load_lhs_ptr): Likewise.
41197 (gimple_omp_atomic_load_set_rhs): Likewise.
41198 (gimple_omp_atomic_load_rhs): Likewise.
41199 (gimple_omp_atomic_load_rhs_ptr): Likewise.
41200 (gimple_omp_continue_control_def): Likewise.
41201 (gimple_omp_continue_control_def_ptr): Likewise.
41202 (gimple_omp_continue_set_control_def): Likewise.
41203 (gimple_omp_continue_control_use): Likewise.
41204 (gimple_omp_continue_control_use_ptr): Likewise.
41205 (gimple_omp_continue_set_control_use): Likewise.
41206 (gimple_transaction_body_ptr): Likewise.
41207 (gimple_transaction_label): Likewise.
41208 (gimple_transaction_label_ptr): Likewise.
41209 (gimple_transaction_set_body): Likewise.
41210 (gimple_transaction_set_label): Likewise.
41212 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
41213 * ipa-inline-analysis.c (inline_write_summary): Likewise.
41214 * ipa-ref.c (ipa_record_reference): Likewise.
41215 * ipa-reference.c (analyze_function): Likewise.
41216 (ipa_reference_write_optimization_summary): Likewise.
41217 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
41218 (address_taken_from_non_vtable_p): Likewise.
41219 (comdat_can_be_unshared_p_1): Likewise.
41220 * lto-cgraph.c (lto_output_ref): Likewise.
41221 (add_references): Likewise.
41222 (compute_ltrans_boundary): Likewise.
41223 (output_symtab): Likewise.
41224 (input_ref): Likewise.
41225 (input_cgraph_1): Likewise.
41226 (output_cgraph_opt_summary): Likewise.
41227 * lto-streamer-out.c (lto_output): Likewise.
41228 (output_symbol_p): Likewise.
41229 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
41230 (lsei_start_function_in_partition): Likewise.
41231 (lsei_next_variable_in_partition): Likewise.
41232 (lsei_start_variable_in_partition): Likewise.
41233 * symtab.c (insert_to_assembler_name_hash): Likewise.
41234 (unlink_from_assembler_name_hash): Likewise.
41235 (symtab_unregister_node): Likewise.
41236 (symtab_remove_node): Likewise.
41237 (dump_symtab_node): Likewise.
41238 (verify_symtab_base): Likewise.
41239 (verify_symtab_node): Likewise.
41240 (symtab_make_decl_local): Likewise.
41241 (symtab_alias_ultimate_target): Likewise.
41242 (symtab_resolve_alias): Likewise.
41243 (symtab_get_symbol_partitioning_class): Likewise.
41244 * tree-phinodes.c (allocate_phi_node): Likewise.
41245 (reserve_phi_args_for_new_edge): Likewise.
41246 (remove_phi_args): Likewise.
41247 * varpool.c (varpool_node_for_asm): Likewise.
41248 (varpool_remove_unreferenced_decls): Likewise.
41250 2014-04-23 Jeff Law <law@redhat.com>
41252 PR tree-optimization/60902
41253 * tree-ssa-threadedge.c
41254 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
41255 invalidate outputs from statements that do not produce useful
41256 outputs for threading.
41258 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
41260 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
41261 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
41262 machine descriptions for Stack Smashing Protector.
41264 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
41266 * aarch64.md (<optab>_rol<mode>3): New pattern.
41267 (<optab>_rolsi3_uxtw): Likewise.
41268 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
41270 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
41272 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
41273 (arm_cortex_a12_tune): Likewise.
41275 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41277 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
41279 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41281 * config/arm/arm.md (arm_rev16si2): New pattern.
41282 (arm_rev16si2_alt): Likewise.
41283 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
41285 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41287 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
41288 (rev16<mode>2_alt): Likewise.
41289 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
41290 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
41291 (aarch_rev16_shleft_mask_imm_p): Likewise.
41292 (aarch_rev16_p_1): Likewise.
41293 (aarch_rev16_p): Likewise.
41294 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
41295 (aarch_rev16_shright_mask_imm_p): Likewise.
41296 (aarch_rev16_shleft_mask_imm_p): Likewise.
41298 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41300 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
41301 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
41303 (cortex_a53_extra_costs): Likewise.
41304 (cortex_a57_extra_costs): Likewise.
41305 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
41306 (cortexa7_extra_costs): Likewise.
41307 (cortexa8_extra_costs): Likewise.
41308 (cortexa12_extra_costs): Likewise.
41309 (cortexa15_extra_costs): Likewise.
41310 (v7m_extra_costs): Likewise.
41311 (arm_new_rtx_costs): Handle BSWAP.
41313 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41315 * config/arm/arm.c (cortexa8_extra_costs): New table.
41316 (arm_cortex_a8_tune): New tuning struct.
41317 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
41319 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41321 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
41323 2014-04-23 Richard Biener <rguenther@suse.de>
41325 * Makefile.in (OBJS): Remove loop-unswitch.o.
41326 * tree-pass.h (make_pass_rtl_unswitch): Remove.
41327 * passes.def (pass_rtl_unswitch): Likewise.
41328 * loop-init.c (gate_rtl_unswitch): Likewise.
41329 (rtl_unswitch): Likewise.
41330 (pass_data_rtl_unswitch): Likewise.
41331 (pass_rtl_unswitch): Likewise.
41332 (make_pass_rtl_unswitch): Likewise.
41333 * rtl.h (reversed_condition): Likewise.
41334 (compare_and_jump_seq): Likewise.
41335 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
41337 * loop-unroll.c (compare_and_jump_seq): Likewise.
41339 2014-04-23 Richard Biener <rguenther@suse.de>
41341 PR tree-optimization/60903
41342 * tree-ssa-loop-im.c (analyze_memory_references): Remove
41343 commented code block.
41344 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
41345 loop flags to newly created BBs and edges.
41347 2014-04-23 Nick Clifton <nickc@redhat.com>
41349 * config/msp430/msp430.c (msp430_handle_option): Move function
41351 (msp430_option_override): Simplify mcu and mcpu option handling.
41352 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
41353 support for -mhwmult command line option.
41354 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
41355 -mhwmult command line option.
41356 (msp430_hwmult_enabled): Delete.
41357 (msp43o_output_labelref): Add support for -mhwmult command line option.
41358 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
41359 (umulsidi3): Likewise.
41360 * config/msp430/msp430.opt (mmcu): Add Report attribute.
41361 (mcpu, mlarge, msmall): Likewise.
41362 (mhwmult): New option.
41363 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
41365 (msp430_is_f5_mcu): Remove prototype.
41366 (msp430_use_f5_series_hwmult): Add prototype.
41367 * config/msp430/msp430-opts.h: New file.
41368 * common/config/msp430: New directory.
41369 * common/config/msp430/msp430-common.c: New file.
41370 * config.gcc (msp430): Remove target_has_targetm_common.
41371 * doc/invoke.texi: Document -mhwmult command line option.
41373 2014-04-23 Nick Clifton <nickc@redhat.com>
41375 * config/i386/cygwin.h (ENDFILE_SPEC): Include
41376 default-manifest.o if it can be found in the search path.
41377 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
41379 2014-04-23 Terry Guo <terry.guo@arm.com>
41381 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
41383 2014-04-23 Richard Biener <rguenther@suse.de>
41385 PR middle-end/60895
41386 * tree-inline.c (declare_return_variable): Use mark_addressable.
41388 2014-04-23 Richard Biener <rguenther@suse.de>
41390 PR middle-end/60891
41391 * loop-init.c (loop_optimizer_init): Make sure to apply
41392 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
41394 2014-04-22 Jakub Jelinek <jakub@redhat.com>
41397 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
41399 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
41400 if flag_sanitize_undefined_trap_on_error.
41401 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
41402 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
41403 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
41404 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
41405 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
41406 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
41407 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
41408 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
41409 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
41410 * ubsan.c (ubsan_instrument_unreachable): Return
41411 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
41412 (ubsan_expand_null_ifn): Emit __builtin_trap ()
41413 if flag_sanitize_undefined_trap_on_error and
41414 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
41415 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
41416 instrument_bool_enum_load): Emit __builtin_trap () if
41417 flag_sanitize_undefined_trap_on_error and
41418 __builtin_handle_*_abort () if !flag_sanitize_recover.
41419 * doc/invoke.texi (-fsanitize-recover,
41420 -fsanitize-undefined-trap-on-error): Document.
41422 2014-04-22 Christian Bruel <christian.bruel@st.com>
41424 * config/sh/sh.md (mov<mode>): Replace movQIHI.
41425 Force immediates to SImode.
41427 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
41429 * config/nios2/nios2.md (UNSPEC_ROUND): New.
41430 (lroundsfsi2): New.
41431 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
41432 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
41433 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
41434 (nios2_fpu_insn): Add entry for round.
41435 (N2FPU_NO_ERRNO_P): Define.
41436 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
41438 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
41440 2014-04-22 Richard Henderson <rth@redhat.com>
41442 * config/aarch64/aarch64 (addti3, subti3): New expanders.
41443 (add<GPI>3_compare0): Remove leading * from name.
41444 (add<GPI>3_carryin): Likewise.
41445 (sub<GPI>3_compare0): Likewise.
41446 (sub<GPI>3_carryin): Likewise.
41447 (<su_optab>mulditi3): New expander.
41448 (multi3): New expander.
41449 (madd<GPI>): Remove leading * from name.
41451 2014-04-22 Martin Jambor <mjambor@suse.cz>
41453 * cgraphclones.c (cgraph_function_versioning): Copy
41454 ipa_transforms_to_apply instead of asserting it is empty.
41456 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
41459 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
41460 on count_exp to get mode.
41462 2014-04-22 Andrew Pinski <apinski@cavium.com>
41464 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
41465 Handle TLS for ILP32.
41466 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
41467 (tlsie_small_<mode>): this and handle PTR.
41468 (tlsie_small_sidi): New pattern.
41469 (tlsle_small): Change to an expand to handle ILP32.
41470 (tlsle_small_<mode>): New pattern.
41471 (tlsdesc_small): Rename to ...
41472 (tlsdesc_small_<mode>): this and handle PTR.
41474 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41476 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
41478 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41480 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
41481 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
41482 (aarch64_types_signed_poly_qualifiers): Likewise.
41483 (aarch64_types_unsigned_signed_qualifiers): Likewise.
41484 (aarch64_types_poly_signed_qualifiers): Likewise.
41485 (TYPES_REINTERP_SS): Type macro added.
41486 (TYPES_REINTERP_SU): Likewise.
41487 (TYPES_REINTERP_SP): Likewise.
41488 (TYPES_REINTERP_US): Likewise.
41489 (TYPES_REINTERP_PS): Likewise.
41490 (aarch64_fold_builtin): New expression folding added.
41491 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
41492 Declarations removed.
41493 (REINTERP_SS): Declarations added.
41494 (REINTERP_US): Likewise.
41495 (REINTERP_PS): Likewise.
41496 (REINTERP_SU): Likewise.
41497 (REINTERP_SP): Likewise.
41498 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
41499 (vreinterpretq_p8_f64): Likewise.
41500 (vreinterpret_p16_f64): Likewise.
41501 (vreinterpretq_p16_f64): Likewise.
41502 (vreinterpret_f32_f64): Likewise.
41503 (vreinterpretq_f32_f64): Likewise.
41504 (vreinterpret_f64_f32): Likewise.
41505 (vreinterpret_f64_p8): Likewise.
41506 (vreinterpret_f64_p16): Likewise.
41507 (vreinterpret_f64_s8): Likewise.
41508 (vreinterpret_f64_s16): Likewise.
41509 (vreinterpret_f64_s32): Likewise.
41510 (vreinterpret_f64_s64): Likewise.
41511 (vreinterpret_f64_u8): Likewise.
41512 (vreinterpret_f64_u16): Likewise.
41513 (vreinterpret_f64_u32): Likewise.
41514 (vreinterpret_f64_u64): Likewise.
41515 (vreinterpretq_f64_f32): Likewise.
41516 (vreinterpretq_f64_p8): Likewise.
41517 (vreinterpretq_f64_p16): Likewise.
41518 (vreinterpretq_f64_s8): Likewise.
41519 (vreinterpretq_f64_s16): Likewise.
41520 (vreinterpretq_f64_s32): Likewise.
41521 (vreinterpretq_f64_s64): Likewise.
41522 (vreinterpretq_f64_u8): Likewise.
41523 (vreinterpretq_f64_u16): Likewise.
41524 (vreinterpretq_f64_u32): Likewise.
41525 (vreinterpretq_f64_u64): Likewise.
41526 (vreinterpret_s64_f64): Likewise.
41527 (vreinterpretq_s64_f64): Likewise.
41528 (vreinterpret_u64_f64): Likewise.
41529 (vreinterpretq_u64_f64): Likewise.
41530 (vreinterpret_s8_f64): Likewise.
41531 (vreinterpretq_s8_f64): Likewise.
41532 (vreinterpret_s16_f64): Likewise.
41533 (vreinterpretq_s16_f64): Likewise.
41534 (vreinterpret_s32_f64): Likewise.
41535 (vreinterpretq_s32_f64): Likewise.
41536 (vreinterpret_u8_f64): Likewise.
41537 (vreinterpretq_u8_f64): Likewise.
41538 (vreinterpret_u16_f64): Likewise.
41539 (vreinterpretq_u16_f64): Likewise.
41540 (vreinterpret_u32_f64): Likewise.
41541 (vreinterpretq_u32_f64): Likewise.
41543 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41545 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
41546 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
41547 (vreinterpret_p8_s8): Likewise.
41548 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
41549 (vreinterpret_p8_s16): Likewise.
41550 (vreinterpret_p8_s32): Likewise.
41551 (vreinterpret_p8_s64): Likewise.
41552 (vreinterpret_p8_f32): Likewise.
41553 (vreinterpret_p8_u8): Likewise.
41554 (vreinterpret_p8_u16): Likewise.
41555 (vreinterpret_p8_u32): Likewise.
41556 (vreinterpret_p8_u64): Likewise.
41557 (vreinterpret_p8_p16): Likewise.
41558 (vreinterpretq_p8_s8): Likewise.
41559 (vreinterpretq_p8_s16): Likewise.
41560 (vreinterpretq_p8_s32): Likewise.
41561 (vreinterpretq_p8_s64): Likewise.
41562 (vreinterpretq_p8_f32): Likewise.
41563 (vreinterpretq_p8_u8): Likewise.
41564 (vreinterpretq_p8_u16): Likewise.
41565 (vreinterpretq_p8_u32): Likewise.
41566 (vreinterpretq_p8_u64): Likewise.
41567 (vreinterpretq_p8_p16): Likewise.
41568 (vreinterpret_p16_s8): Likewise.
41569 (vreinterpret_p16_s16): Likewise.
41570 (vreinterpret_p16_s32): Likewise.
41571 (vreinterpret_p16_s64): Likewise.
41572 (vreinterpret_p16_f32): Likewise.
41573 (vreinterpret_p16_u8): Likewise.
41574 (vreinterpret_p16_u16): Likewise.
41575 (vreinterpret_p16_u32): Likewise.
41576 (vreinterpret_p16_u64): Likewise.
41577 (vreinterpret_p16_p8): Likewise.
41578 (vreinterpretq_p16_s8): Likewise.
41579 (vreinterpretq_p16_s16): Likewise.
41580 (vreinterpretq_p16_s32): Likewise.
41581 (vreinterpretq_p16_s64): Likewise.
41582 (vreinterpretq_p16_f32): Likewise.
41583 (vreinterpretq_p16_u8): Likewise.
41584 (vreinterpretq_p16_u16): Likewise.
41585 (vreinterpretq_p16_u32): Likewise.
41586 (vreinterpretq_p16_u64): Likewise.
41587 (vreinterpretq_p16_p8): Likewise.
41588 (vreinterpret_f32_s8): Likewise.
41589 (vreinterpret_f32_s16): Likewise.
41590 (vreinterpret_f32_s32): Likewise.
41591 (vreinterpret_f32_s64): Likewise.
41592 (vreinterpret_f32_u8): Likewise.
41593 (vreinterpret_f32_u16): Likewise.
41594 (vreinterpret_f32_u32): Likewise.
41595 (vreinterpret_f32_u64): Likewise.
41596 (vreinterpret_f32_p8): Likewise.
41597 (vreinterpret_f32_p16): Likewise.
41598 (vreinterpretq_f32_s8): Likewise.
41599 (vreinterpretq_f32_s16): Likewise.
41600 (vreinterpretq_f32_s32): Likewise.
41601 (vreinterpretq_f32_s64): Likewise.
41602 (vreinterpretq_f32_u8): Likewise.
41603 (vreinterpretq_f32_u16): Likewise.
41604 (vreinterpretq_f32_u32): Likewise.
41605 (vreinterpretq_f32_u64): Likewise.
41606 (vreinterpretq_f32_p8): Likewise.
41607 (vreinterpretq_f32_p16): Likewise.
41608 (vreinterpret_s64_s8): Likewise.
41609 (vreinterpret_s64_s16): Likewise.
41610 (vreinterpret_s64_s32): Likewise.
41611 (vreinterpret_s64_f32): Likewise.
41612 (vreinterpret_s64_u8): Likewise.
41613 (vreinterpret_s64_u16): Likewise.
41614 (vreinterpret_s64_u32): Likewise.
41615 (vreinterpret_s64_u64): Likewise.
41616 (vreinterpret_s64_p8): Likewise.
41617 (vreinterpret_s64_p16): Likewise.
41618 (vreinterpretq_s64_s8): Likewise.
41619 (vreinterpretq_s64_s16): Likewise.
41620 (vreinterpretq_s64_s32): Likewise.
41621 (vreinterpretq_s64_f32): Likewise.
41622 (vreinterpretq_s64_u8): Likewise.
41623 (vreinterpretq_s64_u16): Likewise.
41624 (vreinterpretq_s64_u32): Likewise.
41625 (vreinterpretq_s64_u64): Likewise.
41626 (vreinterpretq_s64_p8): Likewise.
41627 (vreinterpretq_s64_p16): Likewise.
41628 (vreinterpret_u64_s8): Likewise.
41629 (vreinterpret_u64_s16): Likewise.
41630 (vreinterpret_u64_s32): Likewise.
41631 (vreinterpret_u64_s64): Likewise.
41632 (vreinterpret_u64_f32): Likewise.
41633 (vreinterpret_u64_u8): Likewise.
41634 (vreinterpret_u64_u16): Likewise.
41635 (vreinterpret_u64_u32): Likewise.
41636 (vreinterpret_u64_p8): Likewise.
41637 (vreinterpret_u64_p16): Likewise.
41638 (vreinterpretq_u64_s8): Likewise.
41639 (vreinterpretq_u64_s16): Likewise.
41640 (vreinterpretq_u64_s32): Likewise.
41641 (vreinterpretq_u64_s64): Likewise.
41642 (vreinterpretq_u64_f32): Likewise.
41643 (vreinterpretq_u64_u8): Likewise.
41644 (vreinterpretq_u64_u16): Likewise.
41645 (vreinterpretq_u64_u32): Likewise.
41646 (vreinterpretq_u64_p8): Likewise.
41647 (vreinterpretq_u64_p16): Likewise.
41648 (vreinterpret_s8_s16): Likewise.
41649 (vreinterpret_s8_s32): Likewise.
41650 (vreinterpret_s8_s64): Likewise.
41651 (vreinterpret_s8_f32): Likewise.
41652 (vreinterpret_s8_u8): Likewise.
41653 (vreinterpret_s8_u16): Likewise.
41654 (vreinterpret_s8_u32): Likewise.
41655 (vreinterpret_s8_u64): Likewise.
41656 (vreinterpret_s8_p8): Likewise.
41657 (vreinterpret_s8_p16): Likewise.
41658 (vreinterpretq_s8_s16): Likewise.
41659 (vreinterpretq_s8_s32): Likewise.
41660 (vreinterpretq_s8_s64): Likewise.
41661 (vreinterpretq_s8_f32): Likewise.
41662 (vreinterpretq_s8_u8): Likewise.
41663 (vreinterpretq_s8_u16): Likewise.
41664 (vreinterpretq_s8_u32): Likewise.
41665 (vreinterpretq_s8_u64): Likewise.
41666 (vreinterpretq_s8_p8): Likewise.
41667 (vreinterpretq_s8_p16): Likewise.
41668 (vreinterpret_s16_s8): Likewise.
41669 (vreinterpret_s16_s32): Likewise.
41670 (vreinterpret_s16_s64): Likewise.
41671 (vreinterpret_s16_f32): Likewise.
41672 (vreinterpret_s16_u8): Likewise.
41673 (vreinterpret_s16_u16): Likewise.
41674 (vreinterpret_s16_u32): Likewise.
41675 (vreinterpret_s16_u64): Likewise.
41676 (vreinterpret_s16_p8): Likewise.
41677 (vreinterpret_s16_p16): Likewise.
41678 (vreinterpretq_s16_s8): Likewise.
41679 (vreinterpretq_s16_s32): Likewise.
41680 (vreinterpretq_s16_s64): Likewise.
41681 (vreinterpretq_s16_f32): Likewise.
41682 (vreinterpretq_s16_u8): Likewise.
41683 (vreinterpretq_s16_u16): Likewise.
41684 (vreinterpretq_s16_u32): Likewise.
41685 (vreinterpretq_s16_u64): Likewise.
41686 (vreinterpretq_s16_p8): Likewise.
41687 (vreinterpretq_s16_p16): Likewise.
41688 (vreinterpret_s32_s8): Likewise.
41689 (vreinterpret_s32_s16): Likewise.
41690 (vreinterpret_s32_s64): Likewise.
41691 (vreinterpret_s32_f32): Likewise.
41692 (vreinterpret_s32_u8): Likewise.
41693 (vreinterpret_s32_u16): Likewise.
41694 (vreinterpret_s32_u32): Likewise.
41695 (vreinterpret_s32_u64): Likewise.
41696 (vreinterpret_s32_p8): Likewise.
41697 (vreinterpret_s32_p16): Likewise.
41698 (vreinterpretq_s32_s8): Likewise.
41699 (vreinterpretq_s32_s16): Likewise.
41700 (vreinterpretq_s32_s64): Likewise.
41701 (vreinterpretq_s32_f32): Likewise.
41702 (vreinterpretq_s32_u8): Likewise.
41703 (vreinterpretq_s32_u16): Likewise.
41704 (vreinterpretq_s32_u32): Likewise.
41705 (vreinterpretq_s32_u64): Likewise.
41706 (vreinterpretq_s32_p8): Likewise.
41707 (vreinterpretq_s32_p16): Likewise.
41708 (vreinterpret_u8_s8): Likewise.
41709 (vreinterpret_u8_s16): Likewise.
41710 (vreinterpret_u8_s32): Likewise.
41711 (vreinterpret_u8_s64): Likewise.
41712 (vreinterpret_u8_f32): Likewise.
41713 (vreinterpret_u8_u16): Likewise.
41714 (vreinterpret_u8_u32): Likewise.
41715 (vreinterpret_u8_u64): Likewise.
41716 (vreinterpret_u8_p8): Likewise.
41717 (vreinterpret_u8_p16): Likewise.
41718 (vreinterpretq_u8_s8): Likewise.
41719 (vreinterpretq_u8_s16): Likewise.
41720 (vreinterpretq_u8_s32): Likewise.
41721 (vreinterpretq_u8_s64): Likewise.
41722 (vreinterpretq_u8_f32): Likewise.
41723 (vreinterpretq_u8_u16): Likewise.
41724 (vreinterpretq_u8_u32): Likewise.
41725 (vreinterpretq_u8_u64): Likewise.
41726 (vreinterpretq_u8_p8): Likewise.
41727 (vreinterpretq_u8_p16): Likewise.
41728 (vreinterpret_u16_s8): Likewise.
41729 (vreinterpret_u16_s16): Likewise.
41730 (vreinterpret_u16_s32): Likewise.
41731 (vreinterpret_u16_s64): Likewise.
41732 (vreinterpret_u16_f32): Likewise.
41733 (vreinterpret_u16_u8): Likewise.
41734 (vreinterpret_u16_u32): Likewise.
41735 (vreinterpret_u16_u64): Likewise.
41736 (vreinterpret_u16_p8): Likewise.
41737 (vreinterpret_u16_p16): Likewise.
41738 (vreinterpretq_u16_s8): Likewise.
41739 (vreinterpretq_u16_s16): Likewise.
41740 (vreinterpretq_u16_s32): Likewise.
41741 (vreinterpretq_u16_s64): Likewise.
41742 (vreinterpretq_u16_f32): Likewise.
41743 (vreinterpretq_u16_u8): Likewise.
41744 (vreinterpretq_u16_u32): Likewise.
41745 (vreinterpretq_u16_u64): Likewise.
41746 (vreinterpretq_u16_p8): Likewise.
41747 (vreinterpretq_u16_p16): Likewise.
41748 (vreinterpret_u32_s8): Likewise.
41749 (vreinterpret_u32_s16): Likewise.
41750 (vreinterpret_u32_s32): Likewise.
41751 (vreinterpret_u32_s64): Likewise.
41752 (vreinterpret_u32_f32): Likewise.
41753 (vreinterpret_u32_u8): Likewise.
41754 (vreinterpret_u32_u16): Likewise.
41755 (vreinterpret_u32_u64): Likewise.
41756 (vreinterpret_u32_p8): Likewise.
41757 (vreinterpret_u32_p16): Likewise.
41758 (vreinterpretq_u32_s8): Likewise.
41759 (vreinterpretq_u32_s16): Likewise.
41760 (vreinterpretq_u32_s32): Likewise.
41761 (vreinterpretq_u32_s64): Likewise.
41762 (vreinterpretq_u32_f32): Likewise.
41763 (vreinterpretq_u32_u8): Likewise.
41764 (vreinterpretq_u32_u16): Likewise.
41765 (vreinterpretq_u32_u64): Likewise.
41766 (vreinterpretq_u32_p8): Likewise.
41767 (vreinterpretq_u32_p16): Likewise.
41769 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41771 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
41773 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
41775 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
41776 (vqnegd_s64): Likewise.
41777 (vqabs_s64): Likewise.
41778 (vqabsd_s64): Likewise.
41780 2014-04-22 Richard Henderson <rth@redhat.com>
41782 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
41783 computation to the top of the loop.
41785 2014-04-22 Renlin <renlin.li@arm.com>
41786 Jiong Wang <jiong.wang@arm.com>
41788 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
41789 * config/aarch64/aarch64.c (aarch64_layout_frame)
41790 (aarch64_initial_elimination_offset): Likewise.
41792 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
41794 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
41797 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
41799 * machmode.h (bitwise_mode_for_mode): Declare.
41800 * stor-layout.h (bitwise_type_for_mode): Likewise.
41801 * stor-layout.c (bitwise_mode_for_mode): New function.
41802 (bitwise_type_for_mode): Likewise.
41803 * builtins.c (fold_builtin_memory_op): Use it instead of
41804 int_mode_for_mode and build_nonstandard_integer_type.
41806 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41808 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
41809 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
41810 (*-*-solaris2*): Simplify.
41811 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
41812 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
41813 *-*-solaris2.9* handling.
41815 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
41817 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
41818 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
41819 handling, simplify.
41820 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
41821 * configure: Regenerate.
41823 * config/i386/sol2-9.h: Remove.
41825 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
41826 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
41827 Remove Solaris 9 references.
41829 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
41831 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
41832 (floatuns<GPI:mode><GPF:mode>2): Remove.
41833 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
41834 and floatuns conversions.
41835 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
41836 and floatuns conversions.
41837 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
41838 (w1,w2): New mode attributes for inequal width conversions.
41840 2014-04-22 Renlin Li <Renlin.Li@arm.com>
41842 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
41843 the output asm format.
41845 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
41847 * config/aarch64/aarch64-simd.md
41848 (aarch64_cm<optab>di): Always split.
41849 (*aarch64_cm<optab>di): New.
41850 (aarch64_cmtstdi): Always split.
41851 (*aarch64_cmtstdi): New.
41853 2014-04-22 Jakub Jelinek <jakub@redhat.com>
41855 PR tree-optimization/60823
41856 * omp-low.c (ipa_simd_modify_function_body): Go through
41857 all SSA_NAMEs and for those refering to vector arguments
41858 which are going to be replaced adjust SSA_NAME_VAR and,
41859 if it is a default definition, change it into a non-default
41860 definition assigned at the beginning of function from new_decl.
41861 (ipa_simd_modify_stmt_ops): Rewritten.
41862 * tree-dfa.c (set_ssa_default_def): When removing default def,
41863 check for NULL loc instead of NULL *loc.
41865 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41867 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
41868 restrictions on core registers for DImode values in Thumb2.
41870 2014-04-22 Ian Bolton <ian.bolton@arm.com>
41872 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
41873 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
41875 2014-04-22 Ian Bolton <ian.bolton@arm.com>
41877 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
41878 (*iordi_notzesidi_di): Likewise.
41879 (*iordi_notsesidi_di): Likewise.
41881 2014-04-22 Ian Bolton <ian.bolton@arm.com>
41883 * config/arm/arm-protos.h (tune_params): New struct members.
41884 * config/arm/arm.c: Initialise tune_params per processor.
41885 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
41886 for speed, based on new tune_params.
41888 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41890 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
41891 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
41892 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
41893 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
41894 * config/aarch64/arm_neon.h (vrnd_f64): Added.
41895 (vrnda_f64): Likewise.
41896 (vrndi_f64): Likewise.
41897 (vrndm_f64): Likewise.
41898 (vrndn_f64): Likewise.
41899 (vrndp_f64): Likewise.
41900 (vrndx_f64): Likewise.
41902 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
41904 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
41905 GET_MODE_SIZE argument is enum machine_mode.
41907 2014-04-22 Jakub Jelinek <jakub@redhat.com>
41910 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
41911 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
41913 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
41915 PR middle-end/60281
41916 * asan.c (asan_emit_stack_protection): Force the base to align to
41917 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
41918 appropriate bits if STRICT_ALIGNMENT.
41919 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
41921 (expand_used_vars): Leave a space in the stack frame for alignment
41922 if STRICT_ALIGNMENT.
41924 2014-04-21 David Malcolm <dmalcolm@redhat.com>
41926 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
41928 (gimple_store_p): Likewise.
41929 (gimple_assign_load_p): Likewise.
41930 (gimple_assign_cast_p): Likewise.
41931 (gimple_clobber_p): Likewise.
41933 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
41934 rather than a gimple.
41935 (gimple_assign_cast_p): Likewise.
41937 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
41940 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
41941 If mode is DDmode and TARGET_E500_DOUBLE allow move.
41943 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
41944 more debug information for E500 if -mdebug=reg.
41946 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
41949 * config/i386/i386.c (ix86_expand_builtin)
41950 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
41951 register for target RTX.
41952 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
41954 2014-04-18 Cong Hou <congh@google.com>
41956 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
41957 the widen-mult pattern by handling two operands with different sizes,
41958 and operands whose size is smaller than half of the result type.
41960 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
41962 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
41963 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
41964 (do_estimate_edge_time): Compute it.
41965 * ipa-inline.c (want_inline_small_function_p): Bypass
41966 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
41968 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
41970 * ipa-inline.c (spec_rem): New static variable.
41971 (dump_overall_stats): New function.
41972 (dump_inline_stats): New function.
41974 2014-04-18 Richard Henderson <rth@redhat.com>
41976 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
41977 to GET_MODE_SIZE, not a reg_class_t.
41979 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41981 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
41982 (vsx_xxmrglw_<mode>): Likewise.
41984 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
41987 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
41988 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
41989 (rs6000_init_hard_regno_mode_ok): Likewise.
41991 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
41993 * ipa-inline.c (inline_small_functions): Account only non-cold
41995 * doc/invoke.texi (inline-unit-growth): Update documentation.
41997 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
41999 * config/rs6000/rs6000.md (addti3, subti3): New.
42001 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
42004 * config/i386/i386.c (ix86_expand_clear): Remove outdated
42005 comment. Check optimize_insn_for_size_p instead of
42006 optimize_insn_for_speed_p.
42008 2014-04-17 Martin Jambor <mjambor@suse.cz>
42010 * gimple-iterator.c (gsi_start_edge): New function.
42011 * gimple-iterator.h (gsi_start_edge): Declare.
42012 * tree-sra.c (single_non_eh_succ): New function.
42013 (disqualify_ops_if_throwing_stmt): Renamed to
42014 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
42015 having one non-EH successor BB.
42016 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
42017 generate loads into replacements.
42018 (sra_modify_assign): Likewise and and also use the simple path for
42020 (sra_modify_function_body): Commit statements on edges.
42022 2014-04-17 Richard Biener <rguenther@suse.de>
42024 PR middle-end/60849
42025 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
42026 comparison results and add clarifying comment.
42028 2014-04-17 Jakub Jelinek <jakub@redhat.com>
42030 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
42031 (blank_mode): Initialize it.
42032 (emit_mode_size_inline, emit_mode_nunits_inline,
42033 emit_mode_inner_inline): New functions.
42034 (emit_insn_modes_h): Call them and surround their output with
42035 #if GCC_VERSION >= 4001 ... #endif.
42036 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
42037 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
42038 mode_* arrays if the argument is __builtin_constant_p.
42039 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
42040 is enum machine_mode.
42042 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42044 * passes.c (opt_pass::execute): Adjust.
42045 (pass_manager::execute_pass_mode_switching): Likewise.
42046 (early_local_passes::execute): Likewise.
42047 (execute_one_pass): Pass cfun to the pass's execute method.
42048 * tree-pass.h (opt_pass::execute): Add function * argument.
42049 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
42050 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
42051 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
42052 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
42053 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
42054 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
42055 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
42056 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
42057 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
42058 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
42059 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
42060 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
42061 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
42062 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
42063 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
42064 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
42065 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
42066 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
42067 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
42068 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
42069 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
42070 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
42071 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
42072 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
42073 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
42074 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
42075 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
42076 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
42077 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
42080 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42082 * passes.c (opt_pass::gate): Take function * argument.
42083 (gate_all_early_local_passes): Merge into
42084 (early_local_passes::gate): this.
42085 (gate_all_early_optimizations): Merge into
42086 (all_early_optimizations::gate): this.
42087 (gate_all_optimizations): Mege into
42088 (all_optimizations::gate): this.
42089 (gate_all_optimizations_g): Merge into
42090 (all_optimizations_g::gate): this.
42091 (gate_rest_of_compilation): Mege into
42092 (rest_of_compilation::gate): this.
42093 (gate_postreload): Merge into
42094 (postreload::gate): this.
42095 (dump_one_pass): Pass cfun to the pass's gate method.
42096 (execute_ipa_summary_passes): Likewise.
42097 (execute_one_pass): Likewise.
42098 (ipa_write_summaries_2): Likewise.
42099 (ipa_write_optimization_summaries_1): Likewise.
42100 (ipa_read_summaries_1): Likewise.
42101 (ipa_read_optimization_summaries_1): Likewise.
42102 (execute_ipa_stmt_fixups): Likewise.
42103 * tree-pass.h (opt_pass::gate): Add function * argument.
42104 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
42105 combine-stack-adj.c, combine.c, compare-elim.c,
42106 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
42107 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
42108 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
42109 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
42110 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
42111 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
42112 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
42113 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
42114 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
42115 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
42116 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
42117 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
42118 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
42119 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
42120 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
42121 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
42122 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
42123 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
42124 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
42125 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
42126 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
42127 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
42128 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
42129 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
42130 var-tracking.c, vtable-verify.c, web.c: Adjust.
42132 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42134 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
42135 * configure: Regenerate.
42137 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42139 * passes.c (dump_one_pass): don't check pass->has_gate.
42140 (execute_ipa_summary_passes): Likewise.
42141 (execute_one_pass): Likewise.
42142 (ipa_write_summaries_2): Likewise.
42143 (ipa_write_optimization_summaries_1): Likewise.
42144 (ipa_read_optimization_summaries_1): Likewise.
42145 (execute_ipa_stmt_fixups): Likewise.
42146 * tree-pass.h (pass_data::has_gate): Remove.
42147 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
42148 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
42149 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
42150 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
42151 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
42152 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
42153 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
42154 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
42155 gimple-low.c, gimple-ssa-isolate-paths.c,
42156 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
42157 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
42158 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
42159 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
42160 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
42161 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
42162 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
42163 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
42164 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
42165 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
42166 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
42167 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
42168 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
42169 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
42170 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
42171 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
42172 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
42173 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
42174 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
42175 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
42176 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
42177 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
42180 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42182 * pass_manager.h (pass_manager::register_dump_files_1): Remove
42184 * passes.c (pass_manager::register_dump_files_1): Merge into
42185 (pass_manager::register_dump_files): this, and remove its handling of
42186 properties since the pass always has the properties anyway.
42187 (pass_manager::pass_manager): Adjust.
42189 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42191 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
42192 * passes.c (pass_manager::register_dump_files_1): Remove dead code
42193 dealing with properties.
42194 (pass_manager::register_dump_files): Adjust.
42196 2014-03-20 Mark Wielaard <mjw@redhat.com>
42198 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
42199 then represent the bound as normal constant value.
42201 2014-04-17 Jakub Jelinek <jakub@redhat.com>
42204 Forward port from 4.8 branch
42205 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
42207 * config/i386/bmiintrin.h (_blsi_u32): New.
42208 (_blsi_u64): Ditto.
42209 (_blsr_u32): Ditto.
42210 (_blsr_u64): Ditto.
42211 (_blsmsk_u32): Ditto.
42212 (_blsmsk_u64): Ditto.
42213 (_tzcnt_u32): Ditto.
42214 (_tzcnt_u64): Ditto.
42216 2014-04-17 Kito Cheng <kito@0xlab.org>
42218 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
42220 2014-04-17 Richard Biener <rguenther@suse.de>
42222 PR middle-end/60849
42223 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
42224 boolean results for comparisons.
42226 2014-04-17 Richard Biener <rguenther@suse.de>
42228 PR tree-optimization/60836
42229 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
42230 initial PHI args to be gimple values.
42232 2014-04-17 Richard Biener <rguenther@suse.de>
42234 PR tree-optimization/60841
42235 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
42236 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
42237 of stmts to SLP build.
42238 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
42239 (vect_analyze_slp): Likewise.
42240 (vect_analyze_slp_instance): Likewise.
42241 (vect_build_slp_tree): Limit overall SLP tree growth.
42242 * tree-vectorizer.h (vect_analyze_data_refs,
42243 vect_analyze_slp): Adjust prototypes.
42245 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
42247 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
42250 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
42252 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
42253 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
42254 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
42255 for TARGET_SLOW_PSHUFB
42257 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
42259 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
42260 * config/i386/i386.c (intel_cost): Ditto.
42262 2014-04-17 Joey Ye <joey.ye@arm.com>
42264 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
42266 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
42268 * opts.c (common_handle_option): Disable -fipa-reference coorectly
42269 with -fuse-profile.
42271 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
42273 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
42274 (type_all_derivations_known_p): New predicate.
42275 (type_all_ctors_visible_p): New predicate.
42276 (type_possibly_instantiated_p): New predicate.
42277 (get_odr_type): Compute all_derivations_known.
42278 (dump_odr_type): Dump the flag.
42279 (maybe_record_type): Cleanup.
42280 (record_target_from_binfo): Add bases_to_consider array;
42281 record bases for types w/o instances and skip CXX destructor.
42282 (possible_polymorphic_call_targets_1): Add bases_to_consider
42283 and consider_construction parameters; check if type may have instance.
42284 (get_polymorphic_call_info): Set maybe_in_construction to true
42285 when we know nothing.
42286 (record_targets_from_bases): Skip CXX destructors; they are
42287 never called for types in construction.
42288 (possible_polymorphic_call_targets): Do not record target when
42289 type may not have instance.
42291 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
42294 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
42295 external aliases alive, too.
42297 2014-04-16 Andrew Pinski <apinski@cavium.com>
42299 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
42302 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
42304 * final.c (compute_alignments): Do not apply loop alignment to a block
42305 falling through to the exit.
42307 2014-04-16 Catherine Moore <clm@codesourcery.com>
42309 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
42310 Adjust constraints for microMIPS store patterns.
42312 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
42314 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
42316 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
42318 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
42319 (append_use): Run at -O0.
42320 (append_vdef): Likewise.
42321 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
42322 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
42324 2014-04-16 Jakub Jelinek <jakub@redhat.com>
42326 PR tree-optimization/60844
42327 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
42328 (propagate_op_to_single_use, remove_visited_stmt_chain,
42329 linearize_expr, repropagate_negates, reassociate_bb): Use it
42330 instead of gsi_remove.
42332 2014-04-16 Martin Jambor <mjambor@suse.cz>
42334 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
42335 ipa_transforms_to_apply.
42336 (cgraph_function_versioning): Assert that old_node has empty
42337 ipa_transforms_to_apply.
42338 * trans-mem.c (ipa_tm_create_version): Likewise.
42339 * tree-inline.c (tree_function_versioning): Do not duplicate
42340 ipa_transforms_to_apply.
42342 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
42345 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
42347 Pass necessary as flags on 64-bit Solaris/x86.
42348 Use lowercase relocs for x86_64-*-*.
42349 * configure: Regenerate.
42351 2014-04-15 Jan Hubicka <jh@suse.cz>
42353 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
42354 (maybe_record_node, likely_target_p): Use it.
42356 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42359 Revert following patch
42361 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
42364 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
42365 software floating point or no floating point registers, do not
42366 allow any type in the FPRs. Eliminate a test for SPE SIMD types
42367 in GPRs that occurs after we tested for GPRs that would never be
42370 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
42371 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
42372 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
42373 specifically allow DDmode, since that does not use the SPE SIMD
42376 2014-03-21 Mark Wielaard <mjw@redhat.com>
42378 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
42379 as unsigned or int depending on type and value used.
42381 2014-04-15 Richard Biener <rguenther@suse.de>
42383 PR rtl-optimization/56965
42384 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
42385 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
42387 * alias.c (true_dependence_1): Do not call
42388 nonoverlapping_component_refs_p.
42389 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
42390 nonoverlapping_component_refs_p.
42391 (indirect_refs_may_alias_p): Likewise.
42393 2014-04-15 Teresa Johnson <tejohnson@google.com>
42395 * cfg.c (dump_bb_info): Fix flags check.
42396 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
42398 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42400 PR rtl-optimization/60663
42401 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
42404 2014-04-15 Richard Biener <rguenther@suse.de>
42406 * lto-streamer.h (LTO_major_version): Bump to 4.
42408 2014-04-15 Richard Biener <rguenther@suse.de>
42410 * common.opt (lto_partition_model): New enum.
42411 (flto-partition=): Merge separate options with a single with argument,
42412 add -flto-partition=one support.
42413 * flag-types.h (enum lto_partition_model): Declare.
42414 * opts.c (finish_options): Remove duplicate -flto-partition=
42416 * lto-wrapper.c (run_gcc): Adjust.
42418 2014-04-15 Richard Biener <rguenther@suse.de>
42420 * alias.c (ncr_compar): New function.
42421 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
42423 2014-04-15 Richard Biener <rguenther@suse.de>
42425 * alias.c (record_component_aliases): Do not walk BINFOs.
42427 2014-04-15 Richard Biener <rguenther@suse.de>
42429 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
42430 Add struct function argument and adjust.
42431 (find_func_aliases_for_call): Likewise.
42432 (find_func_aliases): Likewise.
42433 (find_func_clobbers): Likewise.
42434 (intra_create_variable_infos): Likewise.
42435 (compute_points_to_sets): Likewise.
42436 (ipa_pta_execute): Adjust. Do not push/pop cfun.
42438 2014-04-15 Richard Biener <rguenther@suse.de>
42440 * tree.c (iterative_hash_expr): Use enum tree_code_class
42441 to store TREE_CODE_CLASS.
42442 (tree_block): Likewise.
42443 (tree_set_block): Likewise.
42444 * tree.h (fold_build_pointer_plus_loc): Use
42445 convert_to_ptrofftype_loc.
42447 2014-04-15 Jakub Jelinek <jakub@redhat.com>
42450 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
42453 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
42455 * cfgloop.h (struct loop): Move force_vectorize down.
42456 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
42457 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
42458 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
42459 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
42460 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
42461 * tree-core.h (enum annot_expr_kind): Add new kind values.
42462 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
42463 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
42465 * tree.def (ANNOTATE_EXPR): Tweak comment.
42467 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
42469 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
42472 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
42474 * tree.h (TYPE_IDENTIFIER): Declare.
42475 * tree.c (subrange_type_for_debug_p): Use it.
42476 * godump.c (go_format_type): Likewise.
42477 * dwarf2out.c (is_cxx_auto, modified_type_die,
42478 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
42479 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
42481 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
42484 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
42486 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
42488 * config/i386/i386.c (examine_argument): Return bool. Return true if
42489 parameter should be passed in memory.
42490 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
42491 (construct_container): Update calls to examine_argument.
42492 (function_arg_advance_64): Ditto.
42493 (return_in_memory_32): Merge with ix86_return_in_memory.
42494 (return_in_memory_64): Ditto.
42495 (return_in_memory_ms_64): Ditto.
42497 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
42499 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
42500 * coverage.c (coverage_compute_profile_id): Handle externally visible
42503 2014-04-14 Martin Jambor <mjambor@suse.cz>
42505 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
42506 DECL_DISREGARD_INLINE_LIMITS functions.
42508 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
42511 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
42513 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
42516 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
42517 optimize_insn_for_speed_p instead of
42518 optimize_function_for_speed_p.
42520 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
42522 * doc/invoke.texi (free): Document AArch64.
42524 2014-04-14 Richard Biener <rguenther@suse.de>
42526 PR tree-optimization/60042
42527 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
42528 (insert_into_preds_of_block): Do not prevent PHI insertion
42529 for REFERENCE exprs here ...
42530 (eliminate_dom_walker::before_dom_children): ... but prevent
42531 their use here under similar conditions when applied to the
42532 IL after PRE optimizations.
42534 2014-04-14 Richard Biener <rguenther@suse.de>
42536 * passes.def: Move early points-to after early SRA.
42538 2014-04-14 Richard Biener <rguenther@suse.de>
42540 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
42541 check for which sign-changes we allow when forwarding
42542 a converted value into a switch.
42544 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
42546 * stor-layout.c (place_field): Finalize non-constant offset for the
42549 2014-04-14 Richard Biener <rguenther@suse.de>
42551 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
42553 (expand_switch_using_bit_tests_p): Likewise.
42554 (process_switch): Compute and pass on speed_p based on the
42556 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
42557 optimize_bb_for_speed_p.
42559 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
42561 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
42562 * function.h (struct function): Rename has_force_vect_loops into
42563 has_force_vectorize_loops.
42564 * lto-streamer-in.c (input_cfg): Adjust for renaming.
42565 (input_struct_function_base): Likewise.
42566 * lto-streamer-out.c (output_cfg): Likewise.
42567 (output_struct_function_base): Likewise.
42568 * omp-low.c (expand_omp_simd): Likewise.
42569 * tree-cfg.c (move_sese_region_to_fn): Likewise.
42570 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
42571 (version_loop_for_if_conversion): Likewise.
42572 (tree_if_conversion): Likewise.
42573 (main_tree_if_conversion): Likewise.
42574 (gate_tree_if_conversion): Likewise.
42575 * tree-inline.c (copy_loops): Likewise.
42576 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
42577 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
42578 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
42579 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
42580 * tree-vectorizer.c (vectorize_loops): Likewise.
42581 * tree-vectorizer.h (unlimited_cost_model): Likewise.
42583 2014-04-14 Richard Biener <rguenther@suse.de>
42586 * lto-streamer-out.c (wrap_refs): New function.
42587 (lto_output): Wrap symbol references in global initializes in
42588 type-preserving MEM_REFs.
42590 2014-04-14 Christian Bruel <christian.bruel@st.com>
42592 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
42594 2014-04-14 Christian Bruel <christian.bruel@st.com>
42596 * config/sh/sh.md (setmemqi): New expand pattern.
42597 * config/sh/sh.h (CLEAR_RATIO): Define.
42598 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
42599 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
42601 2014-04-14 Richard Biener <rguenther@suse.de>
42603 PR middle-end/55022
42604 * fold-const.c (negate_expr_p): Don't negate directional rounding
42606 (fold_negate_expr): Likewise.
42608 2014-04-14 Richard Biener <rguenther@suse.de>
42610 PR tree-optimization/59817
42611 PR tree-optimization/60453
42612 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
42613 recursion to catch all CHRECs in the scalar evolution and restrict
42614 the predicate for the remains appropriately.
42616 2014-04-12 Catherine Moore <clm@codesourcery.com>
42618 * config/mips/constraints.md: Add new register constraint "kb".
42619 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
42620 (*movhi_internal): Likewise.
42621 (*movqi_internal): Likewise.
42622 * config/mips/mips.h (M16_STORE_REGS): New register class.
42623 (REG_CLASS_NAMES): Add M16_STORE_REGS.
42624 (REG_CLASS_CONTENTS): Likewise.
42625 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
42627 2014-04-11 Tobias Burnus <burnus@net-b.de>
42630 * doc/invoke.texi (-Wformat-signedness): Document it.
42631 (Wformat=2): Mention that this enables -Wformat-signedness.
42633 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
42635 * common/config/epiphany/epiphany-common.c
42636 (epiphany_option_optimization_table): Enable section anchors by
42637 default at -O1 or higher.
42638 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
42639 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
42640 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
42641 carries no extra cost.
42642 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
42643 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
42644 * config/epiphany/predicates.md (memclob_operand): New predicate.
42645 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
42646 Use memclob_operand predicate and X constraint for operand 3.
42648 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
42650 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
42651 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
42654 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
42656 PR rtl-optimization/60651
42657 * mode-switching.c (optimize_mode_switching): Make sure to emit
42658 sets of a lower numbered entity before sets of a higher numbered
42659 entity to a mode of the same or lower priority.
42660 When creating a seginfo for a basic block that starts with a code
42661 label, move the insertion point past the code label.
42662 (new_seginfo): Document and enforce requirement that
42663 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
42664 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
42665 * doc/tm.texi: Regenerate.
42667 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
42670 * config/arc/arc.c (arc_save_restore): Fix assert typo.
42672 2013-04-11 Jakub Jelinek <jakub@redhat.com>
42674 * BASE-VER: Set to 4.10.0.
42676 2014-04-11 Tobias Burnus <burnus@net-b.de>
42679 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
42680 * doc/gcc.texi (Service): Update description in the @menu
42681 * doc/invoke.texi (Option Summary): Remove misplaced and
42684 2014-04-11 Steve Ellcey <sellcey@mips.com>
42685 Jakub Jelinek <jakub@redhat.com>
42687 PR middle-end/60556
42688 * expr.c (convert_move): Use emit_store_flag_force instead of
42689 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
42692 2014-04-11 Richard Biener <rguenther@suse.de>
42694 PR middle-end/60797
42695 * varasm.c (assemble_alias): Avoid endless error reporting
42696 recursion by setting TREE_ASM_WRITTEN.
42698 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
42700 * config/s390/s390.md: Add a splitter for NOT rtx.
42702 2014-04-11 Jakub Jelinek <jakub@redhat.com>
42704 PR rtl-optimization/60663
42705 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
42707 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
42708 Jakub Jelinek <jakub@redhat.com>
42711 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
42712 flag from decl_node to node.
42714 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42717 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
42718 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
42719 ameliorating the cases where it can be.
42721 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
42724 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
42726 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
42727 (loadsync_<mode>): Change mode.
42728 (load_quadpti, store_quadpti): New.
42729 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
42730 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
42731 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
42733 2014-04-09 Cong Hou <congh@google.com>
42736 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
42739 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42741 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
42742 instead of vnor to exploit possible fusion opportunity in the
42744 (altivec_expand_vec_perm_const_le): Likewise.
42746 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
42748 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
42749 (loadsync_<mode>): Change mode.
42750 (load_quadpti, store_quadpti): New.
42751 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
42752 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
42754 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
42757 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
42758 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
42759 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
42761 2014-04-08 Richard Biener <rguenther@suse.de>
42763 PR middle-end/60706
42764 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
42765 a 64bit widest int print double-int similar to on HWI64 hosts.
42767 2014-04-08 Richard Biener <rguenther@suse.de>
42769 PR tree-optimization/60785
42770 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
42771 default defs properly.
42773 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
42775 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
42776 (Weffc++): Likewise.
42778 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
42780 * ipa-devirt.c (maybe_record_node): When node is not recorded,
42781 set completep to false rather than true.
42783 2014-04-07 Douglas B Rupp <rupp@adacore.com>
42786 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
42787 ARM_TARGET2_DWARF_FORMAT.
42789 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
42792 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
42793 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
42796 2014-04-07 Richard Biener <rguenther@suse.de>
42798 PR tree-optimization/60766
42799 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
42800 (may_eliminate_iv): Convert cand_value_at result to desired type.
42802 2014-04-07 Jason Merrill <jason@redhat.com>
42805 * common.opt (-fno-gnu-unique): Add.
42806 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
42808 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42810 * haifa-sched.c: Fix outdated function reference and minor
42811 grammar errors in introductory comment.
42813 2014-04-07 Richard Biener <rguenther@suse.de>
42815 PR middle-end/60750
42816 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
42817 for noreturn calls.
42818 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
42820 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
42823 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
42824 size accounting for thunks.
42825 (pa_asm_output_mi_thunk): Use final_start_function() and
42826 final_end_function() to output function start and end directives.
42828 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
42830 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
42831 device specific ISA/ feature information. Remove short_sp and
42832 errata_skip ds. Add avr_device_specific_features enum to have device
42834 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
42835 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
42836 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
42837 updated device specific info.
42838 * config/avr/avr-mcus.def: Merge device specific details to
42839 dev_attribute field.
42840 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
42842 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
42843 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
42844 assembler if RMW isa supported by current device.
42845 * config/avr/genmultilib.awk: Update as device info structure changed.
42846 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
42848 2014-04-04 Cong Hou <congh@google.com>
42850 PR tree-optimization/60656
42851 * tree-vect-stmts.c (supportable_widening_operation):
42852 Fix a bug that elements in a vector with vect_used_by_reduction
42853 property are incorrectly reordered when the operation on it is not
42854 consistant with the one in reduction operation.
42856 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
42858 PR rtl-optimization/60155
42859 * gcse.c (record_set_data): New function.
42860 (single_set_gcse): New function.
42861 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
42862 (hoist_code): Likewise.
42863 (get_pressure_class_and_nregs): Likewise.
42865 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
42867 * explow.c (probe_stack_range): Emit a final optimization blockage.
42869 2014-04-04 Anthony Green <green@moxielogic.com>
42871 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
42874 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
42877 * lto-cgraph.c (input_overwrite_node): Check that partitioning
42878 flags are set only during streaming.
42879 * ipa.c (process_references, walk_polymorphic_call_targets,
42880 symtab_remove_unreachable_nodes): Drop bodies of always inline
42881 after early inlining.
42882 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
42884 2014-04-04 Jakub Jelinek <jakub@redhat.com>
42885 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42888 * dwarf2out.c (const_ok_for_output_1): Reject expressions
42891 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42894 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
42896 (cortex_a53_fdivd): Likewise.
42898 2014-04-04 Martin Jambor <mjambor@suse.cz>
42901 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
42902 Adjust all callers.
42903 * cgraph.c (clone_of_p): Also return true if thunks match.
42904 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
42905 cgraph_function_or_thunk_node and an obsolete comment.
42906 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
42908 (build_function_decl_skip_args): Likewise.
42909 (set_new_clone_decl_and_node_flags): New function.
42910 (duplicate_thunk_for_node): Likewise.
42911 (redirect_edge_duplicating_thunks): Likewise.
42912 (cgraph_clone_node): New parameter args_to_skip, pass it to
42913 redirect_edge_duplicating_thunks which is called instead of
42914 cgraph_redirect_edge_callee.
42915 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
42916 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
42918 2014-04-04 Jeff Law <law@redhat.com>
42921 * config/arm/predicates.md (const_int_I_operand): New predicate.
42922 (const_int_M_operand): Similarly.
42923 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
42925 (insv_t2, extv_reg, extzv_t2): Likewise.
42926 (load_multiple_with_writeback): Similarly for const_int_I_operand.
42927 (pop_multiple_with_writeback_and_return): Likewise.
42928 (vfp_pop_multiple_with_writeback): Likewise
42930 2014-04-04 Richard Biener <rguenther@suse.de>
42933 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
42934 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
42936 * gimplify.h (gimple_add_tmp_var_fn): Declare.
42937 * gimplify.c (gimple_add_tmp_var_fn): New function.
42938 * gimple-expr.h (create_tmp_reg_fn): Declare.
42939 * gimple-expr.c (create_tmp_reg_fn): New function.
42940 * gimple-low.c (record_vars_into): Don't change cfun.
42941 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
42942 code generation without cfun.
42944 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
42947 * Makefile.in (install-driver): Fix shell scripting.
42949 2014-04-03 Cong Hou <congh@google.com>
42951 PR tree-optimization/60505
42952 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
42953 threshold of number of iterations below which no vectorization
42955 * tree-vect-loop.c (new_loop_vec_info):
42956 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
42957 * tree-vect-loop.c (vect_analyze_loop_operations):
42958 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
42959 * tree-vect-loop.c (vect_transform_loop):
42960 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
42961 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
42962 of iterations of the loop and see if we should build the epilogue.
42964 2014-04-03 Richard Biener <rguenther@suse.de>
42966 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
42967 (streamer_tree_cache_create): Adjust.
42968 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
42969 to allow optional nodes array.
42970 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
42971 (streamer_tree_cache_append): Likewise.
42972 (streamer_tree_cache_create): Create nodes array optionally
42973 as specified by parameter.
42974 * lto-streamer-out.c (create_output_block): Avoid maintaining
42975 the node array in the writer cache.
42976 (DFS_write_tree): Remove assertion.
42977 (produce_asm_for_decls): Free the out decl state hash table early.
42978 * lto-streamer-in.c (lto_data_in_create): Adjust for
42979 streamer_tree_cache_create prototype change.
42981 2014-04-03 Richard Biener <rguenther@suse.de>
42983 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
42984 set TREE_CHAIN to NULL_TREE.
42986 2014-04-03 Richard Biener <rguenther@suse.de>
42988 PR tree-optimization/60740
42989 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
42990 over all GIMPLE_COND operands.
42992 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
42994 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
42995 (Weffc++): Remove Scott's numbering, merge lists and reference
42998 2014-04-03 Nick Clifton <nickc@redhat.com>
43000 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
43003 2014-04-03 Martin Jambor <mjambor@suse.cz>
43005 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
43006 mention gcc_unreachable before failing.
43007 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
43010 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
43013 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
43014 inconsistent code and instead mark the context inconsistent.
43015 (possible_polymorphic_call_targets): For inconsistent contexts
43016 return empty complete list.
43018 2014-04-02 Anthony Green <green@moxielogic.com>
43020 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
43021 (extendqisi2, extendhisi2): Define.
43022 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
43023 (WCHAR_TYPE): Change to unsigned int.
43025 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43027 PR tree-optimization/60733
43028 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
43029 insertion point for PHI candidates to be the end of the feeding
43030 block for the PHI argument.
43032 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
43034 PR rtl-optimization/60650
43035 * lra-constraints.c (process_alt_operands): Decrease reject for
43036 earlyclobber matching.
43038 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43040 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
43042 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43044 * config/spu/spu.c (pad_bb): Do not crash when the last
43045 insn is CODE_FOR_blockage.
43047 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43049 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
43050 lies outside the target mode.
43052 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
43055 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
43056 software floating point or no floating point registers, do not
43057 allow any type in the FPRs. Eliminate a test for SPE SIMD types
43058 in GPRs that occurs after we tested for GPRs that would never be
43061 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
43062 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
43063 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
43064 specifically allow DDmode, since that does not use the SPE SIMD
43067 2014-04-02 Richard Biener <rguenther@suse.de>
43069 PR middle-end/60729
43070 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
43071 MODE_INTs. Properly use negv_optab.
43072 (expand_abs): Likewise.
43074 2014-04-02 Richard Biener <rguenther@suse.de>
43077 * Makefile.in (install-driver): Guard extra installs with special
43080 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
43082 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43083 Document vec_vgbbd.
43085 2014-04-01 Richard Henderson <rth@redhat.com>
43088 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
43089 alternative enabled before register allocation.
43091 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
43093 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
43094 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
43096 (nios2_large_got_address): Remove unneeded 'sym' parameter.
43097 (nios2_got_address): Update nios2_large_got_address call site.
43098 (nios2_delegitimize_address): New function.
43099 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
43100 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
43101 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
43103 2014-04-01 Martin Husemann <martin@duskware.de>
43105 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
43108 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
43110 PR rtl-optimization/60604
43111 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
43112 check from register_operand.
43113 (register_operand): Redefine in terms of general_operand.
43114 (nonmemory_operand): Use register_operand for the non-constant cases.
43116 2014-04-01 Richard Biener <rguenther@suse.de>
43118 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
43120 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
43122 * doc/invoke.texi (mapp-regs): Clarify.
43124 2014-03-31 Ulrich Drepper <drepper@gmail.com>
43126 * config/i386/avx512fintrin.h (__v32hi): Define type.
43127 (__v64qi): Likewise.
43128 (_mm512_set1_epi8): Define.
43129 (_mm512_set1_epi16): Define.
43130 (_mm512_set4_epi32): Define.
43131 (_mm512_set4_epi64): Define.
43132 (_mm512_set4_pd): Define.
43133 (_mm512_set4_ps): Define.
43134 (_mm512_setr4_epi64): Define.
43135 (_mm512_setr4_epi32): Define.
43136 (_mm512_setr4_pd): Define.
43137 (_mm512_setr4_ps): Define.
43138 (_mm512_setzero_epi32): Define.
43140 2014-03-31 Martin Jambor <mjambor@suse.cz>
43142 PR middle-end/60647
43143 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
43144 callsite_arguments_match_p. Updated all callers. Also check types of
43145 corresponding formal parameters and actual arguments.
43146 (not_all_callers_have_enough_arguments_p) Renamed to
43147 some_callers_have_mismatched_arguments_p.
43149 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
43151 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
43153 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
43156 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
43159 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
43161 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
43162 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
43164 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
43165 Use FMAMODE_NOVF512 mode iterator.
43166 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
43167 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
43168 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
43169 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
43171 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
43172 Use VF_128_256 mode iterator.
43173 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
43176 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
43178 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
43179 static chain if needed.
43181 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
43184 * lra-constraints.c (index_part_to_reg): New.
43185 (process_address): Use it.
43187 2014-03-27 Jeff Law <law@redhat.com>
43188 Jakub Jelinek <jakub@redhat.com>
43191 * expr.c (do_tablejump): Use simplify_gen_binary rather than
43192 gen_rtx_{PLUS,MULT} to build up the address expression.
43194 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
43195 creating non-canonical RTL.
43197 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
43200 * ipa-inline.c (want_inline_small_function_p): Short circuit large
43201 functions; reorganize to make cheap checks first.
43202 (inline_small_functions): Do not estimate growth when dumping;
43204 * ipa-inline.h (inline_summary): Add min_size.
43205 (growth_likely_positive): New function.
43206 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
43207 (set_cond_stmt_execution_predicate): Cleanup.
43208 (estimate_edge_size_and_time): Compute min_size.
43209 (estimate_calls_size_and_time): Likewise.
43210 (estimate_node_size_and_time): Likewise.
43211 (inline_update_overall_summary): Update min_size.
43212 (do_estimate_edge_time): Likewise.
43213 (do_estimate_edge_size): Update.
43214 (do_estimate_edge_hints): Update.
43215 (growth_likely_positive): New function.
43217 2014-03-28 Jakub Jelinek <jakub@redhat.com>
43220 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
43221 also if addr has VOIDmode.
43223 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43225 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
43226 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
43228 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
43229 instructions as well as AdvancedSIMD loads.
43231 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43233 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
43234 Use crypto_aese type.
43235 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
43236 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
43237 crypto_aese, crypto_aesmc. Move to types.md.
43238 * config/arm/types.md (crypto_aes): Split into crypto_aese,
43240 * config/arm/iterators.md (crypto_type): Likewise.
43242 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
43244 * cgraph.c: Include expr.h and tree-dfa.h.
43245 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
43248 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
43251 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
43252 regs from checking multi-reg pseudos.
43254 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
43256 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
43258 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43260 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
43261 if it would clobber the stack pointer, even temporarily.
43263 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
43265 * mode-switching.c: Make small adjustments to the top comment.
43267 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
43269 * config/rs6000/constraints.md (wD constraint): New constraint to
43270 match the constant integer to get the top DImode/DFmode out of a
43271 vector in a VSX register.
43273 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
43274 match the constant integer to get the top DImode/DFmode out of a
43275 vector in a VSX register.
43277 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
43280 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
43283 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
43284 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
43286 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
43287 Optimize vec_extract of 64-bit values, where the value being
43288 extracted is in the top word, where we can use scalar
43289 instructions. Add direct move and store support. Combine the big
43290 endian/little endian vector select load support into a single insn.
43291 (vsx_extract_<mode>_internal1): Likewise.
43292 (vsx_extract_<mode>_internal2): Likewise.
43293 (vsx_extract_<mode>_load): Likewise.
43294 (vsx_extract_<mode>_store): Likewise.
43295 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
43296 combined into vsx_extract_<mode>_load.
43297 (vsx_extract_<mode>_one_le): Likewise.
43299 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
43300 define the top 64-bit vector element.
43302 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
43305 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43306 Document vec_vbpermq builtin.
43309 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
43310 enable use of xxsldwi and xxpermdi builtin functions.
43311 (vec_xxpermdi): Likewise.
43313 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43314 Document use of vec_xxsldwi and vec_xxpermdi builtins.
43316 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
43318 PR rtl-optimization/60650
43319 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
43321 (find_spills_for): New.
43322 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
43323 Spill all pseudos on the second iteration.
43325 2014-03-27 Marek Polacek <polacek@redhat.com>
43328 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
43331 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43333 * config/s390/s390.c (s390_can_use_return_insn): Check for
43334 call-saved FPRs on 31 bit.
43336 2014-03-27 Jakub Jelinek <jakub@redhat.com>
43338 PR middle-end/60682
43339 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
43340 if they need regimplification, just drop them instead of
43341 calling gimple_regimplify_operands on them.
43343 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
43346 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
43347 (aarch64_frame_pointer_required): Adjust logic.
43348 (aarch64_can_eliminate): Adjust logic.
43349 (aarch64_override_options_after_change): Adjust logic.
43351 2014-03-27 Dehao Chen <dehao@google.com>
43353 * ipa-inline.c (early_inliner): Update node's inline info.
43355 2014-03-26 Dehao Chen <dehao@google.com>
43357 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
43358 compiler inserted conditional jumps for NAN float check.
43360 2014-03-26 Jakub Jelinek <jakub@redhat.com>
43362 * ubsan.h (ubsan_create_data): Change second argument's type
43363 to const location_t *.
43364 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
43366 (ubsan_create_data): Change second argument to const location_t *PLOC.
43367 Create Loc field whenever PLOC is non-NULL.
43368 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
43369 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
43373 * real.c (real_to_integer2): Change type of low to UHWI.
43375 2014-03-26 Tobias Burnus <burnus@net-b.de>
43377 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
43378 (CILK_SELF_SPECS): New define.
43379 (driver_self_specs): Use it.
43381 2014-03-26 Richard Biener <rguenther@suse.de>
43383 * tree-pretty-print.c (percent_K_format): Implement special
43384 case for LTO and its stripped down BLOCK tree.
43386 2014-03-26 Jakub Jelinek <jakub@redhat.com>
43389 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
43391 * tree-vrp.c (simplify_internal_call_using_ranges): If only
43392 one range is range_int_cst_p, but not both, at least optimize
43393 addition/subtraction of 0 and multiplication by 0 or 1.
43394 * gimple-fold.c (gimple_fold_call): Fold
43395 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
43396 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
43397 INTEGER_CSTs, try to fold at least x * 0 and y - y.
43399 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
43401 PR rtl-optimization/60452
43402 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
43403 <case REG>: Return 1 for invalid offsets from the frame pointer.
43405 2014-03-26 Marek Polacek <polacek@redhat.com>
43408 * doc/extend.texi (C Extensions): Mention variable-length arrays in
43411 2014-03-26 Marek Polacek <polacek@redhat.com>
43414 * doc/extend.texi (Designated Inits): Describe what happens to omitted
43417 2014-03-26 Marek Polacek <polacek@redhat.com>
43420 * ira-color.c (update_conflict_hard_regno_costs): Perform the
43421 multiplication in unsigned type.
43423 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
43425 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
43427 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
43429 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
43431 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
43434 * cif-code.def (UNREACHABLE) New code.
43435 * ipa-inline.c (inline_small_functions): Skip edges to
43436 __builtlin_unreachable.
43437 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
43438 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
43439 predicate to __bulitin_unreachable.
43440 (set_cond_stmt_execution_predicate): Fix issue when
43441 invert_tree_comparison returns ERROR_MARK.
43442 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
43443 propagate to inline clones.
43444 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
43446 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
43447 * cgraphclones.c (cgraph_clone_node): If call destination is already
43448 ureachable, do not redirect it back.
43449 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
43452 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
43454 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
43455 Do not modify inline clones.
43457 2014-03-25 Jakub Jelinek <jakub@redhat.com>
43459 * config/i386/i386.md (general_sext_operand): New mode attr.
43460 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
43461 don't generate (sign_extend (const_int)).
43462 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
43463 operands[2]. Use We constraint instead of <i> and
43464 <general_sext_operand> predicate instead of <general_operand>.
43465 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
43466 * config/i386/constraints.md (We): New constraint.
43467 * config/i386/predicates.md (x86_64_sext_operand,
43468 sext_operand): New predicates.
43470 2014-03-25 Martin Jambor <mjambor@suse.cz>
43473 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
43474 inconsistent devirtualizations to __builtin_unreachable.
43476 2014-03-25 Marek Polacek <polacek@redhat.com>
43479 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
43481 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
43483 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
43484 order of elements for big-endian.
43486 2014-03-25 Richard Biener <rguenther@suse.de>
43488 PR middle-end/60635
43489 * gimplify-me.c (gimple_regimplify_operands): Update the
43492 2014-03-25 Martin Jambor <mjambor@suse.cz>
43495 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
43496 (lto_output_varpool_node): Likewise.
43497 (input_overwrite_node): Likewise.
43498 (input_varpool_node): Likewise.
43500 2014-03-25 Richard Biener <rguenther@suse.de>
43502 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
43503 (run_gcc): Likewise.
43505 2014-03-25 Jakub Jelinek <jakub@redhat.com>
43507 * combine.c (simplify_compare_const): Add MODE argument.
43508 Handle mode_width 0 as very large mode_width.
43509 (try_combine, simplify_comparison): Adjust callers.
43511 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
43512 type to avoid signed integer overflow.
43513 * explow.c (plus_constant): Likewise.
43515 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
43517 * doc/generic.texi: Correct typos.
43519 2014-03-24 Tobias Burnus <burnus@net-b.de>
43521 * doc/invoke.texi (-flto): Expand section about
43522 using static libraries with LTO.
43524 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43526 PR rtl-optimization/60501
43527 * optabs.def (addptr3_optab): New optab.
43528 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
43529 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
43530 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
43532 * lra.c (emit_add3_insn): Use the addptr pattern if available.
43534 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
43536 2014-03-24 Ulrich Drepper <drepper@gmail.com>
43538 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
43541 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
43542 (_mm256_undefined_ps): Define.
43543 (_mm256_undefined_pd): Define.
43544 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
43545 (_mm_undefined_pd): Define.
43546 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
43547 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
43548 (_mm512_undefined_ps): Define.
43549 (_mm512_undefined_pd): Define.
43550 Use _mm*_undefined_*.
43551 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
43553 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
43555 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
43556 (lshr_simd): DI mode added.
43557 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
43558 (aarch64_ushr_simddi): Likewise.
43559 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
43560 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
43561 (vshrd_n_u64): Likewise.
43563 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
43565 * Makefile.in (s-macro_list): Depend on cc1.
43567 2014-03-23 Teresa Johnson <tejohnson@google.com>
43569 * ipa-utils.c (ipa_print_order): Use specified dump file.
43571 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
43573 PR rtl-optimization/60601
43574 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
43576 * gcc.c (eval_spec_function): Initialize save_growing_value.
43578 2014-03-22 Jakub Jelinek <jakub@redhat.com>
43581 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
43582 code == MINUS_EXPR, never swap op0 with op1.
43584 * toplev.c (init_local_tick): Avoid signed integer multiplication
43586 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
43587 shift by first operand's bitsize.
43589 2014-03-21 Jakub Jelinek <jakub@redhat.com>
43592 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
43593 redefine to 1 or 0.
43594 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
43595 TARGET_ISA_64BIT_P(x).
43597 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43599 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
43600 pattern for vector nor instead of subtract from splat(-1).
43601 (altivec_expand_vec_perm_const_le): Likewise.
43603 2014-03-21 Richard Henderson <rth@twiddle.net>
43606 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
43607 related insns after epilogue_completed.
43609 2014-03-21 Martin Jambor <mjambor@suse.cz>
43612 * cgraph.h (symtab_node): New flag body_removed.
43613 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
43614 when removing bodies.
43615 * symtab.c (dump_symtab_base): Dump body_removed flag.
43616 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
43617 had their bodies removed.
43619 2014-03-21 Martin Jambor <mjambor@suse.cz>
43622 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
43625 2014-03-21 Richard Biener <rguenther@suse.de>
43627 PR tree-optimization/60577
43628 * tree-core.h (struct tree_base): Document nothrow_flag use
43629 in DECL_NONALIASED.
43630 * tree.h (DECL_NONALIASED): New.
43631 (may_be_aliased): Adjust.
43632 * coverage.c (build_var): Set DECL_NONALIASED.
43634 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
43636 * expr.c (expand_expr_real_1): Remove outdated comment.
43638 2014-03-20 Jakub Jelinek <jakub@redhat.com>
43640 PR middle-end/60597
43641 * ira.c (adjust_cleared_regs): Call copy_rtx on
43642 *reg_equiv[REGNO (loc)].src_p before passing it to
43643 simplify_replace_fn_rtx.
43646 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
43647 into CONST, put pic register as first operand of PLUS. Use
43648 gen_const_mem for both 32-bit and 64-bit PIC got loads.
43650 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
43652 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
43654 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
43656 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
43657 around for store forwarding issue in the FPU on the UT699.
43658 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
43659 loads and operations if -mfix-ut699 is specified.
43660 (divtf3_hq): Tweak attribute.
43661 (sqrttf2_hq): Likewise.
43663 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
43665 * calls.c (store_one_arg): Remove incorrect const qualification on the
43666 type of the temporary.
43667 * cfgexpand.c (expand_return): Likewise.
43668 * expr.c (expand_constructor): Likewise.
43669 (expand_expr_real_1): Likewise.
43671 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
43673 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
43676 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
43679 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
43681 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
43683 * config/arm/aarch-common-protos.h
43684 (alu_cost_table): Fix spelling of "extend".
43685 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
43687 2014-03-19 Richard Biener <rguenther@suse.de>
43689 PR middle-end/60553
43690 * tree-core.h (tree_type_common): Re-order pointer members
43691 to reduce recursion depth during GC walks.
43693 2014-03-19 Marek Polacek <polacek@redhat.com>
43696 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
43697 before accessing it.
43699 2014-03-19 Richard Biener <rguenther@suse.de>
43702 * lto-streamer-in.c (input_function): In WPA stage do not drop
43705 2014-03-19 Jakub Jelinek <jakub@redhat.com>
43707 PR tree-optimization/60559
43708 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
43709 with build_zero_cst assignment.
43711 2014-03-18 Kai Tietz <ktietz@redhat.com>
43713 PR rtl-optimization/56356
43714 * sdbout.c (sdbout_parms): Verify that parms'
43715 incoming argument is valid.
43716 (sdbout_reg_parms): Likewise.
43718 2014-03-18 Richard Henderson <rth@redhat.com>
43721 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
43722 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
43723 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
43725 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
43727 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
43728 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
43729 Italicize plugin event names in description. Explain that
43730 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
43731 Remind that no GCC functions should be called after PLUGIN_FINISH.
43732 Explain what pragmas with expansion are.
43734 2014-03-18 Martin Liska <mliska@suse.cz>
43736 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
43737 gimple call statement is update.
43738 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
43739 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
43741 2014-03-18 Jakub Jelinek <jakub@redhat.com>
43744 * ubsan.c (ubsan_instrument_unreachable): Call
43745 initialize_sanitizer_builtins.
43746 (ubsan_pass): Likewise.
43749 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
43750 varpool_finalize_decl instead of rest_of_decl_compilation.
43752 2014-03-18 Richard Biener <rguenther@suse.de>
43754 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
43755 by using bitmap_and_compl instead of bitmap_and_compl_into.
43756 (df_rd_transfer_function): Likewise.
43758 2014-03-18 Richard Biener <rguenther@suse.de>
43760 * doc/lto.texi (fresolution): Fix typo.
43762 2014-03-18 Richard Biener <rguenther@suse.de>
43764 * doc/invoke.texi (flto): Update for changes in 4.9.
43766 2014-03-18 Richard Biener <rguenther@suse.de>
43768 * doc/loop.texi: Remove section on the removed lambda framework.
43769 Update loop docs with recent changes in preserving loop structure.
43771 2014-03-18 Richard Biener <rguenther@suse.de>
43773 * doc/lto.texi (-fresolution): Document.
43775 2014-03-18 Richard Biener <rguenther@suse.de>
43777 * doc/contrib.texi: Adjust my name.
43779 2014-03-18 Jakub Jelinek <jakub@redhat.com>
43782 * internal-fn.c: Include diagnostic-core.h.
43783 (expand_BUILTIN_EXPECT): New function.
43784 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
43785 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
43786 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
43787 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
43788 IFN_BUILTIN_EXPECT.
43789 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
43790 Revert 3 argument __builtin_expect code.
43791 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
43792 * gimple-fold.c (gimple_fold_call): Likewise.
43793 * tree.h (fold_builtin_expect): New prototype.
43794 * builtins.c (build_builtin_expect_predicate): Add predictor
43795 argument, if non-NULL, create 3 argument __builtin_expect.
43796 (fold_builtin_expect): No longer static. Add ARG2 argument,
43797 pass it through to build_builtin_expect_predicate.
43798 (fold_builtin_2): Adjust caller.
43799 (fold_builtin_3): Handle BUILT_IN_EXPECT.
43800 * internal-fn.def (BUILTIN_EXPECT): New.
43802 2014-03-18 Tobias Burnus <burnus@net-b.de>
43805 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
43806 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
43807 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
43809 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
43812 * predict.c (combine_predictions_for_bb): Fix up formatting.
43813 (expr_expected_value_1, expr_expected_value): Add predictor argument,
43814 fill what it points to if non-NULL.
43815 (tree_predict_by_opcode): Adjust caller, use the predictor.
43816 * predict.def (PRED_COMPARE_AND_SWAP): Add.
43818 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
43820 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
43821 proper constant for the store mode.
43823 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
43825 * symtab.c (change_decl_assembler_name): Fix transparent alias
43826 chain construction.
43828 2014-03-16 Renlin Li <Renlin.Li@arm.com>
43830 * config/aarch64/aarch64.c: Correct the comments about the
43831 aarch64 stack layout.
43833 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
43835 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
43836 check for GF_OMP_FOR_KIND_FOR.
43838 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
43840 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
43841 ymm and zmm register names.
43843 2014-03-17 Jakub Jelinek <jakub@redhat.com>
43846 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
43847 note creation for the 2010-08-31 changes.
43849 2014-03-17 Marek Polacek <polacek@redhat.com>
43851 PR middle-end/60534
43852 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
43853 as -fno-tree-loop-vectorize.
43854 (expand_omp_simd): Likewise.
43856 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
43858 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
43859 (eligible_for_call_delay): New prototype.
43860 * config/sparc/sparc.c (tls_call_delay): Rename into...
43861 (eligible_for_call_delay): ...this. Return false if the instruction
43862 cannot be put in the delay slot of a branch.
43863 (eligible_for_restore_insn): Simplify.
43864 (eligible_for_return_delay): Return false if the instruction cannot be
43865 put in the delay slot of a branch and simplify.
43866 (eligible_for_sibcall_delay): Return false if the instruction cannot be
43867 put in the delay slot of a branch.
43868 * config/sparc/sparc.md (fix_ut699): New attribute.
43869 (tls_call_delay): Delete.
43870 (in_call_delay): Reimplement.
43871 (eligible_for_sibcall_delay): Rename into...
43872 (in_sibcall_delay): ...this.
43873 (eligible_for_return_delay): Rename into...
43874 (in_return_delay): ...this.
43875 (in_branch_delay): Reimplement.
43876 (in_uncond_branch_delay): Delete.
43877 (in_annul_branch_delay): Delete.
43879 2014-03-14 Richard Henderson <rth@redhat.com>
43882 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
43883 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
43884 (*floathi<X87MODEF>2_i387_with_temp): Remove.
43885 (floathi splitters): Remove.
43886 (float<SWI48x>xf2): New pattern.
43887 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
43888 code that tried to handle DImode for 32-bit, but which was excluded
43889 by the pattern's condition. Drop allocation of stack temporary.
43890 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
43891 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
43892 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
43893 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
43894 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
43895 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
43896 (*float<SWI48><MODEF>2_sse_interunit): Remove.
43897 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
43898 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
43899 (*float<SWI48x><X87MODEF>2_i387): Remove.
43900 (all float _with_temp splitters): Remove.
43901 (*float<SWI48x><MODEF>2_i387): New pattern.
43902 (*float<SWI48><MODEF>2_sse): New pattern.
43903 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
43904 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
43906 2014-03-14 Jakub Jelinek <jakub@redhat.com>
43907 Marek Polacek <polacek@redhat.com>
43909 PR middle-end/60484
43910 * common.opt (dump_base_name_prefixed): New Variable.
43911 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
43912 if x_dump_base_name_prefixed is already set, set it at the end.
43914 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
43916 PR rtl-optimization/60508
43917 * lra-constraints.c (get_reload_reg): Add new parameter
43919 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
43920 Pass the new parameter values.
43922 2014-03-14 Richard Biener <rguenther@suse.de>
43924 * common.opt: Revert unintented changes from r205065.
43925 * opts.c: Likewise.
43927 2014-03-14 Richard Biener <rguenther@suse.de>
43929 PR middle-end/60518
43930 * cfghooks.c (split_block): Properly adjust all loops the
43931 block was a latch of.
43933 2014-03-14 Martin Jambor <mjambor@suse.cz>
43936 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
43939 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
43942 * config/avr/avr.c (avr_set_current_function): Pass function name
43943 through default_strip_name_encoding before sanity checking instead
43944 of skipping the first char of the assembler name.
43946 2014-03-13 Richard Henderson <rth@redhat.com>
43949 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
43950 (ix86_force_to_memory, ix86_free_from_memory): Remove.
43951 * config/i386/i386-protos.h: Likewise.
43952 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
43953 in the expander instead of a splitter.
43954 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
43955 any possibility of requiring a memory.
43956 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
43957 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
43958 (fp branch splitters): Update for ix86_split_fp_branch.
43959 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
43960 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
43961 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
43962 (*fop_<MODEF>_2_i387): Remove f/r alternative.
43963 (*fop_<MODEF>_3_i387): Likewise.
43964 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
43965 (splitters for the fop_* register patterns): Remove.
43966 (fscalexf4_i387): Rename from *fscalexf4_i387.
43967 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
43969 2014-03-13 Jakub Jelinek <jakub@redhat.com>
43971 PR tree-optimization/59779
43972 * tree-dfa.c (get_ref_base_and_extent): Use double_int
43973 type for bitsize and maxsize instead of HOST_WIDE_INT.
43975 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
43977 PR rtl-optimization/57320
43978 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
43979 the CFG after thread_prologue_and_epilogue_insns.
43981 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
43983 PR rtl-optimization/57189
43984 * lra-constraints.c (process_alt_operands): Disfavor spilling
43987 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
43989 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
43991 2014-03-13 Jakub Jelinek <jakub@redhat.com>
43993 PR tree-optimization/59025
43994 PR middle-end/60418
43995 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
43996 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
43998 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
44001 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
44002 calls of avr_out_plus_1.
44004 2014-03-13 Bin Cheng <bin.cheng@arm.com>
44006 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
44007 BB's single pred and update the father loop's latch info later.
44009 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
44011 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
44015 (VEC_base): Likewise.
44016 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
44017 registers, we need to swap double words in little endian mode.
44019 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
44020 to be a container mode for 128-bit integer operations added in ISA
44021 2.07. Unlike TImode and PTImode, the preferred register set is
44022 the Altivec/VMX registers for the 128-bit operations.
44024 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
44026 (rs6000_split_128bit_ok_p): Likewise.
44028 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
44029 macros for creating ISA 2.07 normal and overloaded builtin
44030 functions with 3 arguments.
44031 (BU_P8V_OVERLOAD_3): Likewise.
44032 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
44033 for use as overloaded functions.
44034 (VPERM_1TI_UNS): Likewise.
44035 (VSEL_1TI): Likewise.
44036 (VSEL_1TI_UNS): Likewise.
44037 (ST_INTERNAL_1ti): Likewise.
44038 (LD_INTERNAL_1ti): Likewise.
44039 (XXSEL_1TI): Likewise.
44040 (XXSEL_1TI_UNS): Likewise.
44041 (VPERM_1TI): Likewise.
44042 (VPERM_1TI_UNS): Likewise.
44043 (XXPERMDI_1TI): Likewise.
44044 (SET_1TI): Likewise.
44045 (LXVD2X_V1TI): Likewise.
44046 (STXVD2X_V1TI): Likewise.
44047 (VEC_INIT_V1TI): Likewise.
44048 (VEC_SET_V1TI): Likewise.
44049 (VEC_EXT_V1TI): Likewise.
44050 (EQV_V1TI): Likewise.
44051 (NAND_V1TI): Likewise.
44052 (ORC_V1TI): Likewise.
44053 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
44054 added in ISA 2.07. Add both normal 'altivec' builtins, and the
44055 overloaded builtin.
44056 (VADDUQM): Likewise.
44057 (VSUBCUQ): Likewise.
44058 (VADDEUQM): Likewise.
44059 (VADDECUQ): Likewise.
44060 (VSUBEUQM): Likewise.
44061 (VSUBECUQ): Likewise.
44063 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
44064 __int128_t and __uint128_t types.
44065 (__uint128_type): Likewise.
44066 (altivec_categorize_keyword): Add support for vector __int128_t,
44067 vector __uint128_t, vector __int128, and vector unsigned __int128
44068 as a container type for TImode operations that need to be done in
44069 VSX/Altivec registers.
44070 (rs6000_macro_to_expand): Likewise.
44071 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
44072 to support 128-bit integer instructions vaddcuq, vadduqm,
44073 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
44074 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
44076 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
44077 for V1TImode, and set up preferences to use VSX/Altivec registers.
44078 Setup VSX reload handlers.
44079 (rs6000_debug_reg_global): Likewise.
44080 (rs6000_init_hard_regno_mode_ok): Likewise.
44081 (rs6000_preferred_simd_mode): Likewise.
44082 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
44083 (easy_altivec_constant): Likewise.
44084 (output_vec_const_move): Likewise.
44085 (rs6000_expand_vector_set): Convert V1TImode set and extract to
44087 (rs6000_expand_vector_extract): Likewise.
44088 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
44090 (rs6000_const_vec): Add support for V1TImode.
44091 (rs6000_emit_le_vsx_load): Swap double words when loading or
44092 storing TImode/V1TImode.
44093 (rs6000_emit_le_vsx_store): Likewise.
44094 (rs6000_emit_le_vsx_move): Likewise.
44095 (rs6000_emit_move): Add support for V1TImode.
44096 (altivec_expand_ld_builtin): Likewise.
44097 (altivec_expand_st_builtin): Likewise.
44098 (altivec_expand_vec_init_builtin): Likewise.
44099 (altivec_expand_builtin): Likewise.
44100 (rs6000_init_builtins): Add support for V1TImode type. Add
44101 support for ISA 2.07 128-bit integer builtins. Define type names
44102 for the VSX/Altivec vector types.
44103 (altivec_init_builtins): Add support for overloaded vector
44104 functions with V1TImode type.
44105 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
44106 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
44108 (rs6000_split_128bit_ok_p): Likewise.
44109 (rs6000_handle_altivec_attribute): Create V1TImode from vector
44110 __int128_t and vector __uint128_t.
44112 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
44113 and mode attributes.
44115 (VSX_M2): Likewise.
44120 (VS_scalar): Likewise.
44121 (VS_double): Likewise.
44122 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
44124 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
44125 we support the ISA 2.07 128-bit integer arithmetic instructions.
44126 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
44127 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
44128 and TImode types for use with the builtin functions.
44129 (V1TI_type_node): Likewise.
44130 (unsigned_V1TI_type_node): Likewise.
44131 (intTI_type_internal_node): Likewise.
44132 (uintTI_type_internal_node): Likewise.
44134 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
44135 128-bit builtin functions.
44136 (UNSPEC_VADDEUQM): Likewise.
44137 (UNSPEC_VADDECUQ): Likewise.
44138 (UNSPEC_VSUBCUQ): Likewise.
44139 (UNSPEC_VSUBEUQM): Likewise.
44140 (UNSPEC_VSUBECUQ): Likewise.
44141 (VM): Add V1TImode to vector mode iterators.
44143 (VI_unit): Likewise.
44144 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
44145 (altivec_vaddcuq): Likewise.
44146 (altivec_vsubuqm): Likewise.
44147 (altivec_vsubcuq): Likewise.
44148 (altivec_vaddeuqm): Likewise.
44149 (altivec_vaddecuq): Likewise.
44150 (altivec_vsubeuqm): Likewise.
44151 (altivec_vsubecuq): Likewise.
44153 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
44155 (BOOL_128): Likewise.
44156 (BOOL_REGS_OUTPUT): Likewise.
44157 (BOOL_REGS_OP1): Likewise.
44158 (BOOL_REGS_OP2): Likewise.
44159 (BOOL_REGS_UNARY): Likewise.
44160 (BOOL_REGS_AND_CR0): Likewise.
44162 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
44163 128-bit integer builtin support.
44164 (vec_vadduqm): Likewise.
44165 (vec_vaddecuq): Likewise.
44166 (vec_vaddeuqm): Likewise.
44167 (vec_vsubecuq): Likewise.
44168 (vec_vsubeuqm): Likewise.
44169 (vec_vsubcuq): Likewise.
44170 (vec_vsubuqm): Likewise.
44172 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
44173 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
44174 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
44175 128-bit integer add/subtract to ISA 2.07.
44177 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
44179 * config/arc/arc.c (arc_predicate_delay_insns):
44180 Fix third argument passed to conditionalize_nonjump.
44182 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
44184 * config/aarch64/aarch64-builtins.c
44185 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
44186 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
44187 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
44188 instead of __builtin_lfloor.
44189 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
44191 2014-03-12 Jakub Jelinek <jakub@redhat.com>
44193 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
44194 (tree_ssa_ifcombine_bb_1): New function.
44195 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
44196 is an empty forwarder block to then_bb or vice versa and then_bb
44197 and else_bb are effectively swapped.
44199 2014-03-12 Christian Bruel <christian.bruel@st.com>
44202 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
44203 REG_CFA_DEF_CFA note.
44204 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
44205 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
44207 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
44209 PR tree-optimization/60454
44210 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
44212 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44214 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
44215 Do not define target_cpu_default2 to generic.
44216 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
44217 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
44218 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
44220 2014-03-12 Jakub Jelinek <jakub@redhat.com>
44221 Marc Glisse <marc.glisse@inria.fr>
44223 PR tree-optimization/60502
44224 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
44225 instead of build_low_bits_mask.
44227 2014-03-12 Jakub Jelinek <jakub@redhat.com>
44229 PR middle-end/60482
44230 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
44231 if there are multiple uses, but op doesn't live on E edge.
44232 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
44233 clobber stmts before __builtin_unreachable.
44235 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
44237 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
44238 hard_frame_pointer_rtx.
44239 * cse.c (cse_insn): Remove volatile check.
44240 * cselib.c (cselib_process_insn): Likewise.
44241 * dse.c (scan_insn): Likewise.
44243 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
44245 * config/arc/arc.c (conditionalize_nonjump): New function,
44247 (arc_ifcvt): ... this.
44248 (arc_predicate_delay_insns): Use it.
44250 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
44252 * config/arc/predicates.md (extend_operand): During/after reload,
44253 allow const_int_operand.
44254 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
44255 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
44256 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
44258 (umulsi3_highpart_i): Likewise.
44260 2014-03-11 Richard Biener <rguenther@suse.de>
44262 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
44263 Add asserts to guard possible wrong-code bugs.
44265 2014-03-11 Richard Biener <rguenther@suse.de>
44267 PR tree-optimization/60429
44268 PR tree-optimization/60485
44269 * tree-ssa-structalias.c (set_union_with_increment): Properly
44270 take into account all fields that overlap the shifted vars.
44271 (do_sd_constraint): Likewise.
44272 (do_ds_constraint): Likewise.
44273 (get_constraint_for_ptr_offset): Likewise.
44275 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
44277 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
44278 (nios2_compute_frame_layout):
44279 Add calculation of cfun->machine->fp_save_offset.
44280 (nios2_expand_prologue): Correct setting of frame pointer register
44282 (nios2_expand_epilogue): Update recovery of stack pointer from
44283 frame pointer accordingly.
44284 (nios2_initial_elimination_offset): Update calculation of offset
44285 for eliminating to HARD_FRAME_POINTER_REGNUM.
44287 2014-03-10 Jakub Jelinek <jakub@redhat.com>
44290 * ipa.c (symtab_remove_unreachable_nodes): Don't call
44291 cgraph_get_create_node on VAR_DECLs.
44293 2014-03-10 Richard Biener <rguenther@suse.de>
44295 PR middle-end/60474
44296 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
44298 2014-03-08 Douglas B Rupp <rupp@gnat.com>
44300 * config/vms/vms.opt (vms_float_format): New variable.
44302 2014-03-08 Tobias Burnus <burnus@net-b.de>
44304 * doc/invoke.texi (-fcilkplus): Update implementation status.
44306 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
44307 Richard Biener <rguenther@suse.de>
44309 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
44310 consistently accross all TUs.
44311 (run_gcc): Enable -fshort-double automatically at link at link-time
44312 and disallow override.
44314 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
44317 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
44318 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
44319 if they can't be used.
44321 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
44323 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
44324 for Solaris 11/x86 ld.
44325 * configure: Regenerate.
44327 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
44329 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
44330 (LIB_TLS_SPEC): Save as ld_tls_libs.
44331 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
44332 (HAVE_AS_IX86_TLSLDM): New test.
44333 * configure, config.in: Regenerate.
44334 * config/i386/i386.c (legitimize_tls_address): Fall back to
44335 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
44336 cannot support TLS_MODEL_LOCAL_DYNAMIC.
44337 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
44338 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
44340 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
44342 * common.opt (fira-loop-pressure): Mark as optimization.
44344 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
44346 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
44347 an OpenMP mappable type.
44349 2014-03-06 Matthias Klose <doko@ubuntu.com>
44351 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
44352 MULTILIB_OSDIRNAMES is not defined.
44354 2014-03-06 Jakub Jelinek <jakub@redhat.com>
44355 Meador Inge <meadori@codesourcery.com>
44358 * config/arm/arm.c (arm_tls_symbol_p): Remove.
44359 (arm_legitimize_address): Call legitimize_tls_address for any
44360 arm_tls_referenced_p expression, handle constant addend. Call it
44361 before testing for !TARGET_ARM.
44362 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
44364 2014-03-06 Richard Biener <rguenther@suse.de>
44366 PR middle-end/60445
44370 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
44372 * tree-streamer.c (record_common_node): Assert we don't record
44373 nodes with type double.
44374 (preload_common_node): Skip type double, complex double and double
44375 pointer since it is now frontend dependent due to fshort-double option.
44377 2014-03-06 Richard Biener <rguenther@suse.de>
44379 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
44380 or -fno-lto is specified and the linker has full plugin support.
44381 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
44382 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
44383 * lto-wrapper.c (merge_and_complain): Merge compile-time
44384 optimization levels.
44385 (run_gcc): And pass it through to the link options.
44387 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
44391 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44393 * cselib.c (remove_useless_values): Skip to avoid quadratic
44394 behavior if the condition moved from...
44395 (cselib_process_insn): ... here holds.
44397 2014-03-05 Jakub Jelinek <jakub@redhat.com>
44400 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
44401 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
44404 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
44405 (TM_H): Add x86-tune.def.
44407 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44409 * config/aarch64/aarch64.c (generic_tunings):
44410 Use cortexa57_extra_costs.
44412 2014-03-05 Jakub Jelinek <jakub@redhat.com>
44415 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
44416 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
44417 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
44420 2014-03-04 Heiher <r@hev.cc>
44422 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
44423 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
44425 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
44427 * config/i386/predicates.md (const2356_operand): Change to ...
44428 (const2367_operand): ... this.
44429 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
44431 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
44432 (*avx512pf_scatterpf<mode>sf): Ditto.
44433 (avx512pf_scatterpf<mode>df): Ditto.
44434 (*avx512pf_scatterpf<mode>df_mask): Ditto.
44435 (*avx512pf_scatterpf<mode>df): Ditto.
44436 * config/i386/i386.c (ix86_expand_builtin): Update
44437 incorrect hint operand error message.
44439 2014-03-04 Richard Biener <rguenther@suse.de>
44441 * lto-section-in.c (lto_get_section_data): Fix const cast.
44443 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
44445 * tree-streamer.c (record_common_node): Assert we don't record
44446 nodes with type double.
44447 (preload_common_node): Skip type double, complex double and double
44448 pointer since it is now frontend dependent due to fshort-double option.
44450 2014-03-04 Richard Biener <rguenther@suse.de>
44453 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
44454 (lto_input_toplevel_asms): Likewise.
44455 * lto-section-in.c (lto_get_section_data): Instead do it here
44458 2014-03-04 Richard Biener <rguenther@suse.de>
44460 PR tree-optimization/60382
44461 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
44462 dead PHIs a reduction.
44464 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
44466 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
44468 (_mm_prefetch): Move out of GCC target("sse") pragma.
44469 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
44470 GCC target("prfchw") pragma.
44471 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
44473 * config/i386/i386.c (ix86_option_override_internal): Enable
44474 -mprfchw with -mprefetchwt1.
44476 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
44478 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
44481 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
44483 * opts.h (CL_PCH_IGNORE): Define.
44484 * targhooks.c (option_affects_pch_p):
44485 Return false for options that have CL_PCH_IGNORE set.
44486 * opt-functions.awk: Process PchIgnore.
44487 * doc/options.texi: Document PchIgnore.
44489 * config/arc/arc.opt (misize): Add PchIgnore property.
44491 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44493 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
44494 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
44495 constraint on constants to permit them being loaded into
44496 GENERAL_REGS or BASE_REGS.
44498 2014-03-03 Nick Clifton <nickc@redhat.com>
44500 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
44501 anti-cacnonical alternatives.
44502 (negandhi3_real): New pattern.
44503 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
44505 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
44507 * config/avr/avr-mcus.def: Remove atxmega16x1.
44508 * config/avr/avr-tables.opt: Regenerate.
44509 * config/avr/t-multilib: Regenerate.
44510 * doc/avr-mmcu.texi: Regenerate.
44512 2014-03-03 Tobias Grosser <tobias@grosser.es>
44513 Mircea Namolaru <mircea.namolaru@inria.fr>
44515 PR tree-optimization/58028
44516 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
44519 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
44521 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
44522 not handled by recognizers.
44524 2014-03-03 Jakub Jelinek <jakub@redhat.com>
44526 PR middle-end/60175
44527 * function.c (expand_function_end): Don't emit
44528 clobber_return_register sequence if clobber_after is a BARRIER.
44529 * cfgexpand.c (construct_exit_block): Append instructions before
44530 return_label to prev_bb.
44532 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44534 * config/rs6000/constraints.md: Document reserved use of "wc".
44536 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
44539 * ipa.c (function_and_variable_visibility): When dissolving comdat
44540 group, also set all symbols to local.
44542 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
44547 2013-12-14 Jan Hubicka <jh@suse.cz>
44548 PR middle-end/58477
44549 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
44551 2014-03-02 Jon Beniston <jon@beniston.com>
44557 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
44558 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
44559 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
44560 (simple_return, *simple_return): New patterns
44561 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
44562 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
44564 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
44566 * dwarf2out.c (gen_subprogram_die): Tidy.
44568 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
44571 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
44572 (*mov_t_msb_neg_negc): ... this new insn.
44574 2014-02-28 Jason Merrill <jason@redhat.com>
44577 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
44580 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
44583 * dwarf2out.c (decltype_auto_die): New static.
44584 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
44585 (gen_type_die_with_usage): Handle 'decltype(auto)'.
44586 (is_cxx_auto): Likewise.
44588 2014-02-28 Ian Bolton <ian.bolton@arm.com>
44590 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
44591 we are not using general regs only.
44593 2014-02-28 Richard Biener <rguenther@suse.de>
44596 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
44597 previous fix and only allow to remove trivial pre-headers
44598 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
44599 (remove_forwarder_block): Properly update the latch of a loop.
44601 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44604 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
44605 (cselib_preserved_hash_table): New.
44606 (preserve_constants_and_equivs): Move preserved vals to it.
44607 (cselib_find_slot): Look it up first.
44608 (cselib_init): Initialize it.
44609 (cselib_finish): Release it.
44610 (dump_cselib_table): Dump it.
44612 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44615 * cselib.c (remove_useless_values): Skip to avoid quadratic
44616 behavior if the condition moved from...
44617 (cselib_process_insn): ... here holds.
44619 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44622 * var-tracking.c (vt_initialize): Apply the same condition to
44623 preserve the CFA base value.
44625 2014-02-28 Joey Ye <joey.ye@arm.com>
44628 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
44629 if reload in progress or completed.
44631 2014-02-28 Tobias Burnus <burnus@net-b.de>
44633 PR middle-end/60147
44634 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
44637 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
44639 * doc/tm.texi.in (Condition Code Status): Update documention for
44640 relative locations of cc0-setter and cc0-user.
44642 2014-02-27 Jeff Law <law@redhat.com>
44644 PR rtl-optimization/52714
44645 * combine.c (try_combine): When splitting an unrecognized PARALLEL
44646 into two independent simple sets, if I3 is a jump, ensure the
44647 pattern we place into I3 is a (set (pc) ...).
44649 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
44650 Jeff Law <law@redhat.com>
44652 PR rtl-optimization/49847
44653 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
44654 are in different blocks.
44655 * doc/tm.texi (Condition Code Status): Update documention for
44656 relative locations of cc0-setter and cc0-user.
44658 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
44661 * lra.c (lra_emit_add): Check SUBREG too.
44663 2014-02-27 Andreas Schwab <schwab@suse.de>
44665 * config/m68k/m68k.c (m68k_option_override): Disable
44666 -flive-range-shrinkage for classic m68k.
44667 (m68k_override_options_after_change): Likewise.
44669 2014-02-27 Marek Polacek <polacek@redhat.com>
44671 PR middle-end/59223
44672 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
44673 -Wmaybe-uninitialized.
44675 2014-02-27 Alan Modra <amodra@gmail.com>
44678 * reload1.c (emit_input_reload_insns): When reload_override_in,
44679 set old to rl->in_reg when rl->in_reg is a subreg.
44681 2014-02-26 Richard Biener <rguenther@suse.de>
44684 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
44686 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
44688 * common/config/i386/predicates.md (const1256_operand): Remove.
44689 (const2356_operand): New.
44690 (const_1_to_2_operand): Remove.
44691 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
44692 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
44693 (*avx512pf_gatherpf<mode>sf): Ditto.
44694 (avx512pf_gatherpf<mode>df): Ditto.
44695 (*avx512pf_gatherpf<mode>df_mask): Ditto.
44696 (*avx512pf_gatherpf<mode>df): Ditto.
44697 (avx512pf_scatterpf<mode>sf): Ditto.
44698 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
44699 (*avx512pf_scatterpf<mode>sf): Ditto.
44700 (avx512pf_scatterpf<mode>df): Ditto.
44701 (*avx512pf_scatterpf<mode>df_mask): Ditto.
44702 (*avx512pf_scatterpf<mode>df): Ditto.
44703 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
44705 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
44707 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
44708 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
44709 (_mm512_mask_testn_epi64_mask): Move to ...
44710 * config/i386/avx512cdintrin.h: Here.
44711 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
44712 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
44713 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
44714 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
44715 TARGET_AVX512F from TARGET_AVX512CD.
44717 2014-02-26 Richard Biener <rguenther@suse.de>
44720 * ipa.c (walk_polymorphic_call_targets): Properly guard
44721 call to inline_update_overall_summary.
44723 2014-02-26 Bin Cheng <bin.cheng@arm.com>
44726 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
44727 and latches only if requested. Fix latch if it is removed.
44728 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
44729 LOOPS_HAVE_PREHEADERS.
44731 2014-02-25 Andrew Pinski <apinski@cavium.com>
44733 * builtins.c (expand_builtin_thread_pointer): Create a new target
44734 when the target is NULL.
44736 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
44738 PR rtl-optimization/60317
44739 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
44740 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
44741 * lra-assigns.c: Include params.h.
44742 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
44743 other reload pseudos considerations.
44745 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44747 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
44748 to use canonical form for nor<mode>3.
44750 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44753 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
44756 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
44758 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
44759 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
44760 (ix86_handle_option): Handle OPT_mprefetchwt1.
44761 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
44762 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
44764 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
44765 OPTION_MASK_ISA_PREFETCHWT1.
44766 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
44767 (PTA_PREFETCHWT1): New.
44768 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
44769 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
44770 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
44771 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
44772 (*prefetch_avx512pf_<mode>_: Change into ...
44773 (*prefetch_prefetchwt1_<mode>: This.
44774 * config/i386/i386.opt (mprefetchwt1): New.
44775 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
44776 (_mm_prefetch): Handle intent to write.
44777 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
44779 2014-02-25 Richard Biener <rguenther@suse.de>
44781 PR middle-end/60291
44782 * emit-rtl.c (mem_attrs_htab): Remove.
44783 (mem_attrs_htab_hash): Likewise.
44784 (mem_attrs_htab_eq): Likewise.
44785 (set_mem_attrs): Always allocate new mem-attrs when something changed.
44786 (init_emit_once): Do not allocate mem_attrs_htab.
44788 2014-02-25 Richard Biener <rguenther@suse.de>
44791 * lto-opts.c (lto_write_options): Output non-explicit conservative
44792 -fwrapv, -fno-trapv and -fno-strict-overflow.
44793 * lto-wrapper.c (merge_and_complain): Handle merging those options.
44794 (run_gcc): And pass them through.
44796 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
44798 * sel-sched.c (calculate_new_fences): New parameter ptime.
44799 Calculate it as a maximum over all fence cycles.
44800 (sel_sched_region_2): Adjust the call to calculate_new_fences.
44801 Print the final schedule timing when sched_verbose.
44803 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
44805 PR rtl-optimization/60292
44806 * sel-sched.c (fill_vec_av_set): Do not reset target availability
44807 bit fot the fence instruction.
44809 2014-02-24 Alangi Derick <alangiderick@gmail.com>
44811 * calls.h: Fix typo in comment.
44813 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
44815 * config/pa/pa.c (pa_output_move_double): Don't valididate when
44816 adjusting offsetable addresses.
44818 2014-02-24 Guozhi Wei <carrot@google.com>
44820 * sparseset.h (sparseset_pop): Fix the wrong index.
44822 2014-02-24 Walter Lee <walt@tilera.com>
44824 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
44825 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
44827 * common/config/tilegx/tilegx-common.c
44828 (TARGET_DEFAULT_TARGET_FLAGS): Define.
44829 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
44830 (LINK_SPEC): Ditto.
44831 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
44832 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
44833 (tilegx_gimplify_va_arg_expr): Handle big endian.
44834 (tilegx_expand_unaligned_load): Ditto.
44835 (tilegx_expand_unaligned_store): Ditto.
44836 (TARGET_RETURN_IN_MSB): New.
44837 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
44838 (TARGET_ENDIAN_DEFAULT): New.
44839 (TARGET_BIG_ENDIAN): Handle big endian.
44840 (BYTES_BIG_ENDIAN): Ditto.
44841 (WORDS_BIG_ENDIAN): Ditto.
44842 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
44843 (ENDIAN_SPEC): New.
44844 (EXTRA_SPECS): New.
44845 * config/tilegx/tilegx.md (extv): Handle big endian.
44847 (insn_st<n>): Ditto.
44848 (insn_st<n>_add<bitsuffix>): Ditto.
44849 (insn_stnt<n>): Ditto.
44850 (insn_stnt<n>_add<bitsuffix>):Ditto.
44851 (vec_interleave_highv8qi): Handle big endian.
44852 (vec_interleave_highv8qi_be): New.
44853 (vec_interleave_highv8qi_le): New.
44854 (insn_v1int_h): Handle big endian.
44855 (vec_interleave_lowv8qi): Handle big endian.
44856 (vec_interleave_lowv8qi_be): New.
44857 (vec_interleave_lowv8qi_le): New.
44858 (insn_v1int_l): Handle big endian.
44859 (vec_interleave_highv4hi): Handle big endian.
44860 (vec_interleave_highv4hi_be): New.
44861 (vec_interleave_highv4hi_le): New.
44862 (insn_v2int_h): Handle big endian.
44863 (vec_interleave_lowv4hi): Handle big endian.
44864 (vec_interleave_lowv4hi_be): New.
44865 (vec_interleave_lowv4hi_le): New.
44866 (insn_v2int_l): Handle big endian.
44867 (vec_interleave_highv2si): Handle big endian.
44868 (vec_interleave_highv2si_be): New.
44869 (vec_interleave_highv2si_le): New.
44870 (insn_v4int_h): Handle big endian.
44871 (vec_interleave_lowv2si): Handle big endian.
44872 (vec_interleave_lowv2si_be): New.
44873 (vec_interleave_lowv2si_le): New.
44874 (insn_v4int_l): Handle big endian.
44875 * config/tilegx/tilegx.opt (mbig-endian): New option.
44876 (mlittle-endian): New option.
44877 * doc/install.texi: Document tilegxbe-linux.
44878 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
44880 2014-02-24 Martin Jambor <mjambor@suse.cz>
44883 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
44884 there are no parameter descriptors.
44886 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
44888 PR rtl-optimization/60268
44889 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
44890 initialization to ...
44891 (sched_rgn_init): ... here.
44892 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
44894 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
44896 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
44899 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
44901 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
44904 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
44906 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
44907 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
44909 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
44911 * config/microblaze/predicates.md: Add cmp_op predicate.
44912 * config/microblaze/microblaze.md: Add branch_compare instruction
44913 which uses cmp_op predicate and emits cmp insn before branch.
44914 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
44915 to microblaze_expand_conditional_branch and consolidate logic.
44916 (microblaze_expand_conditional_branch): emit branch_compare
44917 insn instead of handling cmp op separate from branch insn.
44919 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44921 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
44924 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44926 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
44927 define_insn with define_expand and new define_insn
44928 *altivec_lve<VI_char>x_internal.
44929 (altivec_stve<VI_char>x): Replace define_insn with define_expand
44930 and new define_insn *altivec_stve<VI_char>x_internal.
44931 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
44933 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
44935 (altivec_expand_stvex_be): New function.
44937 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
44939 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
44940 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
44941 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
44942 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
44944 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
44947 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
44948 instead of emit_move_insn.
44950 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44952 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
44953 vspltw with vsldoi.
44954 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
44955 gen_altivec_vsumsws.
44957 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44959 * config/rs6000/altivec.md (altivec_lvxl): Rename as
44960 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
44961 (altivec_lvxl_<mode>): New define_expand incorporating
44962 -maltivec=be semantics where needed.
44963 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
44964 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
44965 semantics where needed.
44966 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
44967 (altivec_stvx_<mode>): New define_expand incorporating
44968 -maltivec=be semantics where needed.
44969 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
44970 VM2 iterator instead of V4SI.
44971 (altivec_stvxl_<mode>): New define_expand incorporating
44972 -maltivec=be semantics where needed.
44973 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
44974 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
44975 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
44976 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
44977 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
44978 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
44979 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
44980 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
44981 ALTIVEC_BUILTIN_STVXL.
44982 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
44983 (altivec_expand_stvx_be): Likewise.
44984 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
44985 (altivec_expand_lvx_be): Likewise.
44986 (altivec_expand_stvx_be): Likewise.
44987 (altivec_expand_builtin): Add cases for
44988 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
44989 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
44990 (altivec_init_builtins): Add definitions for
44991 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
44992 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
44994 2014-02-21 Catherine Moore <clm@codesourcery.com>
44996 * doc/invoke.texi (mvirt, mno-virt): Document.
44997 * config/mips/mips.opt (mvirt): New option.
44998 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
45000 2014-02-21 Richard Biener <rguenther@suse.de>
45002 PR tree-optimization/60276
45003 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
45004 (STMT_VINFO_MIN_NEG_DIST): New macro.
45005 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
45006 STMT_VINFO_MIN_NEG_DIST.
45007 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
45008 made for negative dependence distances still hold.
45010 2014-02-21 Richard Biener <rguenther@suse.de>
45012 PR middle-end/60291
45013 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
45014 DECL_INITIAL for globals not in the current function context.
45016 2014-02-21 Jakub Jelinek <jakub@redhat.com>
45018 PR tree-optimization/56490
45019 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
45020 * tree-ssa-uninit.c: Include params.h.
45021 (compute_control_dep_chain): Add num_calls argument, return false
45022 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
45023 num_calls to recursive call.
45024 (find_predicates): Change dep_chain into normal array,
45025 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
45026 variable and adjust compute_control_dep_chain caller.
45027 (find_def_preds): Likewise.
45029 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
45031 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
45032 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
45034 2014-02-21 Nick Clifton <nickc@redhat.com>
45036 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
45037 (pushhi1): Likewise.
45038 (popqi1): Add mode to pre_dec.
45039 (pophi1): Likewise.
45041 2014-02-21 Jakub Jelinek <jakub@redhat.com>
45043 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
45044 mode for mask of V8SFmode permutation.
45046 2014-02-20 Richard Henderson <rth@redhat.com>
45049 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
45050 a new pseudo for OLDVAL.
45052 2014-02-20 Jakub Jelinek <jakub@redhat.com>
45055 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
45056 gen_reg_rtx if d->testing_p.
45057 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
45058 if d->testing_p and we will certainly return true.
45059 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
45062 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
45064 * emit-rtl.c (gen_reg_rtx): Assert that
45065 crtl->emit.regno_pointer_align_length is non-zero.
45067 2014-02-20 Richard Henderson <rth@redhat.com>
45070 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
45071 on failure the store back into EXPECT.
45073 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
45074 Sandra Loosemore <sandra@codesourcery.com>
45076 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
45077 * config/nios2/nios2.c (nios2_function_profiler): Add
45078 -fPIC (flag_pic == 2) support.
45079 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
45080 (nios2_large_offset_p): New function.
45081 (nios2_unspec_reloc_p): Move up position, update to use
45082 nios2_large_offset_p.
45083 (nios2_unspec_address): Remove function.
45084 (nios2_unspec_offset): New function.
45085 (nios2_large_got_address): New function.
45086 (nios2_got_address): Add large offset support.
45087 (nios2_legitimize_tls_address): Update usage of removed and new
45089 (nios2_symbol_binds_local_p): New function.
45090 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
45091 (nios2_legitimize_address): Update to use nios2_large_offset_p.
45092 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
45093 (nios2_print_operand): Merge H/L processing, add hiadj/lo
45094 processing for (const (unspec ...)).
45095 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
45097 2014-02-20 Richard Biener <rguenther@suse.de>
45099 * tree-cfg.c (replace_uses_by): Mark altered BBs before
45100 doing the substitution.
45101 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
45103 2014-02-20 Martin Jambor <mjambor@suse.cz>
45106 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
45107 info when checking whether lattices are bottom.
45109 2014-02-20 Richard Biener <rguenther@suse.de>
45111 PR middle-end/60221
45112 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
45115 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
45118 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
45119 parameter specifying the scaling.
45120 (inline_call): Update.
45121 (want_inline_recursively): Guard division by zero.
45122 (recursive_inlining): Update.
45123 * ipa-inline.h (clone_inlined_nodes): Update.
45125 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
45128 * config/i386/i386.c (classify_argument): Pass structures of size
45129 64 bytes or less in register.
45131 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
45132 Kirill Yukhin <kirill.yukhin@intel.com>
45134 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
45135 (_mm_rcp28_round_ss): Ditto.
45136 (_mm_rsqrt28_round_sd): Ditto.
45137 (_mm_rsqrt28_round_ss): Ditto.
45138 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
45139 (_mm_rcp14_round_ss): Ditto.
45140 (_mm_rsqrt14_round_sd): Ditto.
45141 (_mm_rsqrt14_round_ss): Ditto.
45142 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
45143 the first input operand, get rid of match_dup.
45144 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
45146 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
45148 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
45149 operand as the first input operand, set type attribute.
45150 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
45151 Set type attribute.
45152 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
45153 operand as the first input operand, set type attribute.
45155 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45157 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
45160 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
45163 * config/i386/i386.c (construct_container): Remove TFmode check
45164 for X86_64_INTEGER_CLASS.
45166 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
45169 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
45170 only when -Wpsabi is enabled.
45172 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
45175 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
45176 passing arrays in registers are the same as for structs, so remove the
45177 special case for them.
45179 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
45181 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
45182 destination type, extract only the valid bits if the source type is not
45183 integral and has a different mode.
45185 2014-02-19 Richard Biener <rguenther@suse.de>
45188 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
45191 2014-02-19 Richard Biener <rguenther@suse.de>
45194 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
45195 (ipa_modify_call_arguments): Emit an argument load explicitely and
45196 preserve virtual SSA form there and for the replacement call.
45197 Do not update SSA form nor free dominance info.
45199 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
45201 * ipa.c (function_and_variable_visibility): Also clear WEAK
45202 flag when disolving COMDAT_GROUP.
45204 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
45206 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
45207 * ipa-prop.c (ipa_set_jf_known_type): Return early when
45208 not devirtualizing.
45209 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
45210 do more sanity checks.
45211 (detect_type_change): Return true when giving up early.
45212 (compute_complex_assign_jump_func): Fix type parameter of
45213 ipa_set_ancestor_jf.
45214 (compute_complex_ancestor_jump_func): Likewise.
45215 (update_jump_functions_after_inlining): Fix updating of
45217 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
45219 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
45221 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
45222 inline clones when edge disappears.
45224 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
45227 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
45228 Split 64-bit moves into 2 patterns. Do not allow the use of
45229 direct move for TDmode in little endian, since the decimal value
45230 has little endian bytes within a word, but the 64-bit pieces are
45231 ordered in a big endian fashion, and normal subreg's of TDmode are
45233 (mov<mode>_64bit_dm): Likewise.
45234 (movtd_64bit_nodm): Likewise.
45236 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
45238 PR tree-optimization/60174
45239 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
45240 statement of an SSA_NAME that occurs in an abnormal PHI node.
45242 2014-02-18 Jakub Jelinek <jakub@redhat.com>
45245 * final.c (SEEN_BB): Remove.
45246 (SEEN_NOTE, SEEN_EMITTED): Renumber.
45247 (final_scan_insn): Don't force_source_line on second
45248 NOTE_INSN_BASIC_BLOCK.
45250 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
45253 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
45254 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
45255 (type_natural_mode): Warn ABI change when %zmm register is not
45256 available for AVX512F vector value passing.
45258 2014-02-18 Kai Tietz <ktietz@redhat.com>
45261 * config/i386/i386.c (ix86_expand_prologue): Use value in
45262 rax register as displacement when restoring %r10 or %rax.
45263 Fix wrong offset when restoring both registers.
45265 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
45267 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
45268 assertion with conditional return.
45270 2014-02-18 Jakub Jelinek <jakub@redhat.com>
45271 Uros Bizjak <ubizjak@gmail.com>
45274 * config/i386/driver-i386.c (host_detect_local_cpu): If
45275 YMM state is not saved by the OS, also clear has_f16c. Move
45276 CPUID 0x80000001 handling before YMM state saving checking.
45278 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
45280 PR rtl-optimization/58960
45281 * haifa-sched.c (alloc_global_sched_pressure_data): New,
45282 factored out from ...
45283 (sched_init): ... here.
45284 (free_global_sched_pressure_data): New, factored out from ...
45285 (sched_finish): ... here.
45286 * sched-int.h (free_global_sched_pressure_data): Declare.
45287 * sched-rgn.c (nr_regions_initial): New static global.
45288 (haifa_find_rgns): Initialize it.
45289 (schedule_region): Disable sched-pressure for the newly
45292 2014-02-17 Richard Biener <rguenther@suse.de>
45294 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
45295 release SSA defs of pattern stmts.
45297 2014-02-17 Richard Biener <rguenther@suse.de>
45299 * tree-inline.c (expand_call_inline): Release the virtual
45300 operand defined by the call we are about to inline.
45302 2014-02-17 Richard Biener <rguenther@suse.de>
45304 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
45306 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
45307 Ilya Tocar <ilya.tocar@intel.com>
45309 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
45310 arguments order in builtin.
45311 (_mm512_permutexvar_epi64): Ditto.
45312 (_mm512_mask_permutexvar_epi64): Ditto
45313 (_mm512_maskz_permutexvar_epi32): Ditto
45314 (_mm512_permutexvar_epi32): Ditto
45315 (_mm512_mask_permutexvar_epi32): Ditto
45317 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45319 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
45320 (p8_vmrgow): Likewise.
45322 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45324 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
45327 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
45330 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
45331 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
45332 into 64-bit and 32-bit moves. On 64-bit moves, add support for
45333 using direct move instructions on ISA 2.07. Also adjust
45334 instruction length for 64-bit.
45335 (mov<mode>_64bit, TFmode/TDmode): Likewise.
45336 (mov<mode>_32bit, TFmode/TDmode): Likewise.
45338 2014-02-15 Alan Modra <amodra@gmail.com>
45342 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
45343 find_replacement on parts of insn rtl that might be reloaded.
45345 2014-02-15 Richard Biener <rguenther@suse.de>
45347 PR tree-optimization/60183
45348 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
45349 (tree_ssa_phiprop): Calculate and free post-dominators.
45351 2014-02-14 Jeff Law <law@redhat.com>
45353 PR rtl-optimization/60131
45354 * ree.c (get_extended_src_reg): New function.
45355 (combine_reaching_defs): Use it rather than assuming location of REG.
45356 (find_and_remove_re): Verify first operand of extension is
45357 a REG before adding the insns to the copy list.
45359 2014-02-14 Roland McGrath <mcgrathr@google.com>
45361 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
45362 * configure: Regenerated.
45363 * config.in: Regenerated.
45364 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
45365 instead of ASM_SHORT.
45367 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
45368 Richard Earnshaw <rearnsha@arm.com>
45370 PR rtl-optimization/59535
45371 * lra-constraints.c (process_alt_operands): Encourage alternative
45372 when unassigned pseudo class is superset of the alternative class.
45373 (inherit_reload_reg): Don't inherit when optimizing for code size.
45374 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
45375 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
45376 modes not less than 4 for Thumb1.
45378 2014-02-14 Kyle McMartin <kyle@redhat.com>
45381 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
45383 2014-02-14 Richard Biener <rguenther@suse.de>
45385 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
45386 (get_frame_arg): Drop the assert with langhook types_compatible_p.
45387 Do not strip INDIRECT_REFs.
45389 2014-02-14 Richard Biener <rguenther@suse.de>
45392 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
45393 DECL_FUNCTION_SPECIFIC_TARGET.
45394 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
45395 * tree-streamer-out.c (pack_ts_target_option): Remove.
45396 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
45397 (write_ts_function_decl_tree_pointers): Do not stream
45398 DECL_FUNCTION_SPECIFIC_TARGET.
45399 * tree-streamer-in.c (unpack_ts_target_option): Remove.
45400 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
45401 (lto_input_ts_function_decl_tree_pointers): Do not stream
45402 DECL_FUNCTION_SPECIFIC_TARGET.
45404 2014-02-14 Jakub Jelinek <jakub@redhat.com>
45406 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
45407 (get_initial_def_for_induction, vectorizable_induction): Ignore
45408 debug stmts when looking for exit_phi.
45409 (vectorizable_live_operation): Fix up condition.
45411 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
45413 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
45414 nreverse() because it changes the content of original tree list.
45416 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
45418 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
45419 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
45421 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
45423 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
45424 GNU coding standards.
45426 2014-02-13 Jakub Jelinek <jakub@redhat.com>
45429 * dwarf2out.c (gen_subprogram_die): Don't call
45430 add_calling_convention_attribute if subr_die is old_die.
45432 2014-02-13 Sharad Singhai <singhai@google.com>
45434 * doc/optinfo.texi: Fix order of nodes.
45436 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
45438 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
45439 operands[2], not operands[3].
45441 2014-02-13 Richard Biener <rguenther@suse.de>
45444 * doc/install.texi (ISL): Update recommended version to 0.12.2,
45445 mention the possibility of an in-tree build.
45446 (CLooG): Update recommended version to 0.18.1, mention the
45447 possibility of an in-tree build and clarify that the ISL
45448 bundled with CLooG does not work.
45450 2014-02-13 Jakub Jelinek <jakub@redhat.com>
45453 * expr.c (compress_float_constant): If x is a hard register,
45454 extend into a pseudo and then move to x.
45456 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
45458 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
45459 caused by bad second argument to warning_at() with -mhotpatch and
45460 nested functions (e.g. with gfortran).
45462 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
45464 * opts.c (option_name): Remove "enabled by default" rider.
45466 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
45468 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
45470 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
45471 Uros Bizjak <ubizjak@gmail.com>
45474 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
45475 * configure: Regenerated.
45477 2014-02-12 Richard Biener <rguenther@suse.de>
45479 * vec.c (vec_prefix::calculate_allocation): Move as
45480 inline variant to vec.h.
45481 (vec_prefix::calculate_allocation_1): New out-of-line version.
45482 * vec.h (vec_prefix::calculate_allocation_1): Declare.
45483 (vec_prefix::m_has_auto_buf): Rename to ...
45484 (vec_prefix::m_using_auto_storage): ... this.
45485 (vec_prefix::calculate_allocation): Inline the easy cases
45486 and dispatch to calculate_allocation_1 which doesn't need the
45488 (va_heap::reserve): Use gcc_checking_assert.
45489 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
45490 m_using_auto_storage.
45491 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
45493 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
45494 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
45495 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
45497 2014-02-12 Richard Biener <rguenther@suse.de>
45499 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
45500 when we found a dependence.
45502 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
45504 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
45506 (maybe_fold_stmt): ... into this new function.
45507 * omp-low.c (lower_omp): Update comment.
45509 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
45512 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
45515 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
45517 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
45518 identifiers in comments.
45519 (cortexa53_extra_costs): Likewise.
45520 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
45521 (cortexa7_extra_costs): Likewise.
45522 (cortexa12_extra_costs): Likewise.
45523 (cortexa15_extra_costs): Likewise.
45524 (v7m_extra_costs): Likewise.
45526 2014-02-12 Richard Biener <rguenther@suse.de>
45528 PR middle-end/60092
45529 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
45530 of posix_memalign being successful.
45531 (lower_stmt): Restrict lowering of posix_memalign to when
45532 -ftree-bit-ccp is enabled.
45534 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
45536 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
45538 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
45540 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
45542 PR rtl-optimization/60116
45543 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
45544 other_insn once the combination has been validated.
45546 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
45549 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
45551 * ipa-devirt.c: Include demangle.h
45552 (odr_violation_reported): New static variable.
45553 (add_type_duplicate): Update odr_violations.
45554 (maybe_record_node): Add completep parameter; update it.
45555 (record_target_from_binfo): Add COMPLETEP parameter;
45556 update it as needed.
45557 (possible_polymorphic_call_targets_1): Likewise.
45558 (struct polymorphic_call_target_d): Add nonconstruction_targets;
45559 rename FINAL to COMPLETE.
45560 (record_targets_from_bases): Sanity check we found the binfo;
45561 fix COMPLETEP updating.
45562 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
45563 parameter, fix computing of COMPLETEP.
45564 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
45565 at LTO time do demangling.
45566 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
45567 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
45569 (gimple_get_virt_method_for_binfo): Likewise.
45570 * gimple-fold.h (gimple_get_virt_method_for_binfo,
45571 gimple_get_virt_method_for_vtable): Update prototypes.
45573 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
45576 * genautomata.c (add_presence_absence): Fix typo with
45577 {final_}presence_list.
45579 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
45582 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
45583 for VSX/Altivec vectors that land in GPR registers.
45585 2014-02-11 Richard Henderson <rth@redhat.com>
45586 Jakub Jelinek <jakub@redhat.com>
45589 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
45590 around drhs if type conversion to lacc->type is not useless.
45592 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45594 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
45596 (cortex-a57.cortex-a53): Likewise.
45597 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
45599 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45601 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
45604 2014-02-11 Renlin Li <Renlin.Li@arm.com>
45606 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
45607 add_options_for_arm_vfp3.
45609 2014-02-11 Jeff Law <law@redhat.com>
45611 PR middle-end/54041
45612 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
45613 object with an undesirable mode.
45615 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
45618 * config/i386/sol2-9.h: New file.
45619 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
45620 *-*-solaris2.9*): Use it.
45622 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
45624 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
45625 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
45627 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
45629 * config/microblaze/microblaze.c: Extend mcpu version format
45631 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
45633 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
45635 2014-02-10 Richard Henderson <rth@redhat.com>
45638 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
45639 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
45640 ms-abi vs -mno-accumulate-outgoing-args.
45641 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
45642 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
45645 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
45647 PR middle-end/60080
45648 * cfgexpand.c (expand_asm_operands): Attach source location to
45649 ASM_INPUT rtx objects.
45650 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
45652 2014-02-10 Nick Clifton <nickc@redhat.com>
45654 * config/mn10300/mn10300.c (popcount): New function.
45655 (mn10300_expand_prologue): Include saved registers in stack usage
45658 2014-02-10 Jeff Law <law@redhat.com>
45660 PR middle-end/52306
45661 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
45662 when changing the SET_DEST of a prior insn to avoid an input reload.
45664 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
45666 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
45667 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
45668 -mcall-openbsd, or -mcall-linux.
45669 (CC1_ENDIAN_BIG_SPEC): Remove.
45670 (CC1_ENDIAN_LITTLE_SPEC): Remove.
45671 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
45672 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
45673 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
45674 and %cc1_endian_default.
45675 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
45677 2014-02-10 Richard Biener <rguenther@suse.de>
45679 PR tree-optimization/60115
45680 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
45681 MEM_REF handling. Properly verify that the accesses are not
45682 out of the objects bound.
45684 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45686 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
45689 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
45691 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
45692 proper constants and fix formatting.
45693 (possible_polymorphic_call_targets): Fix formatting.
45695 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
45696 Ilya Tocar <ilya.tocar@intel.com>
45698 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
45699 (_mm512_loadu_epi32): Renamed into...
45700 (_mm512_loadu_si512): This.
45701 (_mm512_storeu_epi32): Renamed into...
45702 (_mm512_storeu_si512): This.
45703 (_mm512_maskz_ceil_ps): Removed.
45704 (_mm512_maskz_ceil_pd): Ditto.
45705 (_mm512_maskz_floor_ps): Ditto.
45706 (_mm512_maskz_floor_pd): Ditto.
45707 (_mm512_floor_round_ps): Ditto.
45708 (_mm512_floor_round_pd): Ditto.
45709 (_mm512_ceil_round_ps): Ditto.
45710 (_mm512_ceil_round_pd): Ditto.
45711 (_mm512_mask_floor_round_ps): Ditto.
45712 (_mm512_mask_floor_round_pd): Ditto.
45713 (_mm512_mask_ceil_round_ps): Ditto.
45714 (_mm512_mask_ceil_round_pd): Ditto.
45715 (_mm512_maskz_floor_round_ps): Ditto.
45716 (_mm512_maskz_floor_round_pd): Ditto.
45717 (_mm512_maskz_ceil_round_ps): Ditto.
45718 (_mm512_maskz_ceil_round_pd): Ditto.
45719 (_mm512_expand_pd): Ditto.
45720 (_mm512_expand_ps): Ditto.
45721 * config/i386/i386.c (ix86_builtins): Remove
45722 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
45723 (bdesc_args): Ditto.
45724 * config/i386/predicates.md (const1256_operand): New.
45725 (const_1_to_2_operand): Ditto.
45726 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
45727 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
45728 (*avx512pf_gatherpf<mode>sf): Ditto.
45729 (avx512pf_gatherpf<mode>df): Ditto.
45730 (*avx512pf_gatherpf<mode>df_mask): Ditto.
45731 (*avx512pf_gatherpf<mode>df): Ditto.
45732 (avx512pf_scatterpf<mode>sf): Ditto.
45733 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
45734 (*avx512pf_scatterpf<mode>sf): Ditto.
45735 (avx512pf_scatterpf<mode>df): Ditto.
45736 (*avx512pf_scatterpf<mode>df_mask): Ditto.
45737 (*avx512pf_scatterpf<mode>df): Ditto.
45738 (avx512f_expand<mode>): Removed.
45739 (<shift_insn><mode>3<mask_name>): Change predicate type.
45741 2014-02-08 Jakub Jelinek <jakub@redhat.com>
45743 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
45744 not at the end of datarefs vector use ordered_remove to avoid
45745 reordering datarefs vector.
45748 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
45749 mark local addressable non-static vars as GOVD_PRIVATE
45750 instead of GOVD_LOCAL.
45751 * omp-low.c (lower_omp_for): Move gimple_bind_vars
45752 and BLOCK_VARS of gimple_bind_block to new_stmt rather
45755 PR middle-end/60092
45756 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
45757 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
45758 assume_aligned or alloc_align attributes.
45759 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
45760 arguments. Handle also assume_aligned and alloc_align attributes.
45761 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
45762 calls to functions with assume_aligned or alloc_align attributes.
45763 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
45765 2014-02-08 Terry Guo <terry.guo@arm.com>
45767 * doc/invoke.texi: Document ARM -march=armv7e-m.
45769 2014-02-08 Jakub Jelinek <jakub@redhat.com>
45771 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
45772 flag on __cilkrts_rethrow builtin.
45775 * ipa-cp.c (determine_versionability): Fail at -O0
45776 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
45777 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
45780 2014-02-04 Jakub Jelinek <jakub@redhat.com>
45783 * tree-inline.c (copy_forbidden): Fail for
45784 __attribute__((optimize (0))) functions.
45786 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
45788 * varpool.c: Include pointer-set.h.
45789 (varpool_remove_unreferenced_decls): Variables in other partitions
45790 will not be output; be however careful to not lose information
45791 about partitioning.
45793 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
45795 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
45796 lookup in the vtable constructor.
45798 2014-02-07 Jeff Law <law@redhat.com>
45801 * config/m68k/m68k.md (ashldi_extsi): Turn into a
45802 define_insn_and_split.
45804 * ipa-inline.c (inline_small_functions): Fix typos.
45806 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45808 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
45809 (s390_can_use_return_insn): Declare.
45810 * config/s390/s390.h (EPILOGUE_USES): Define.
45811 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
45813 (s390_chunkify_start): Handle return JUMP_LABELs.
45814 (s390_early_mach): Emit a main_pool instruction on the entry edge.
45815 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
45816 (s390_can_use_return_insn): New functions.
45817 (s390_fix_long_loop_prediction): Handle conditional returns.
45818 (TARGET_SET_UP_BY_PROLOGUE): Define.
45819 * config/s390/s390.md (ANY_RETURN): New code iterator.
45820 (*creturn, *csimple_return, return, simple_return): New patterns.
45822 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45824 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
45825 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
45826 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
45827 REG_CFA_RESTORE list when deciding not to restore a register.
45829 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45831 * config/s390/s390.c: Include tree-pass.h and context.h.
45832 (s390_early_mach): New function, split out from...
45833 (s390_emit_prologue): ...here.
45834 (pass_data_s390_early_mach): New pass structure.
45835 (pass_s390_early_mach): New class.
45836 (s390_option_override): Create and register early_mach pass.
45837 Move to end of file.
45839 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45841 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
45842 to match for the exit block.
45844 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
45846 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
45847 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
45848 Reject misaligned operands.
45850 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
45852 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
45854 2014-02-07 Richard Biener <rguenther@suse.de>
45856 PR middle-end/60092
45857 * gimple-low.c (lower_builtin_posix_memalign): New function.
45858 (lower_stmt): Call it to lower posix_memalign in a way
45859 to make alignment info accessible.
45861 2014-02-07 Jakub Jelinek <jakub@redhat.com>
45864 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
45865 __builtin_setjmp_receiver.
45867 2014-02-07 Richard Biener <rguenther@suse.de>
45869 PR middle-end/60092
45870 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
45871 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
45872 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
45873 Handle BUILT_IN_POSIX_MEMALIGN.
45874 (find_func_clobbers): Likewise.
45875 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
45876 (call_may_clobber_ref_p_1): Likewise.
45878 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
45881 * ipa-devirt.c (record_target_from_binfo): Remove overactive
45884 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
45887 * lto-cgraph.c (lto_output_node): Use
45888 symtab_get_symbol_partitioning_class.
45889 (lto_output_varpool_node): likewise.
45890 (symtab_get_symbol_partitioning_class): Move here from
45891 lto/lto-partition.c
45892 * cgraph.h (symbol_partitioning_class): Likewise.
45893 (symtab_get_symbol_partitioning_class): Declare.
45895 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
45897 * ggc.h (ggc_internal_cleared_alloc): New macro.
45898 * vec.h (vec_safe_copy): Handle memory stats.
45899 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
45900 * target-globals.c (save_target_globals): Likewise.
45902 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
45905 * expr.c (emit_move_resolve_push): Export; be bit more selective
45906 on when to clear alias set.
45907 * expr.h (emit_move_resolve_push): Declare.
45908 * function.h (struct function): Add tail_call_marked.
45909 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
45910 * config/i386/i386-protos.h (ix86_expand_push): Remove.
45911 * config/i386/i386.md (TImode move expander): De not call
45913 (FP push expanders): Preserve memory attributes.
45914 * config/i386/sse.md (push<mode>1): Remove.
45915 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
45916 (ix86_expand_push): Remove.
45917 * config/i386/mmx.md (push<mode>1): Remove.
45919 2014-02-06 Jakub Jelinek <jakub@redhat.com>
45921 PR rtl-optimization/60030
45922 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
45923 lopart with paradoxical subreg before shifting it up by hprec.
45925 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45927 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
45928 Remove extra newline at end of file.
45929 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
45930 (arm_issue_rate): Handle cortexa57.
45931 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
45932 (cortex-a57.cortex-a53): Likewise.
45934 2014-02-06 Jakub Jelinek <jakub@redhat.com>
45937 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
45938 don't record in REG_FRAME_RELATED_EXPR registers not set in that
45940 (arm_expand_prologue): Adjust all callers.
45941 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
45942 info, registers also at the lowest numbered registers side. Use
45943 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
45947 * var-tracking.c (adjust_mems): Before adding a SET to
45948 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
45950 2014-02-06 Alan Modra <amodra@gmail.com>
45953 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
45954 change SDmode to DDmode when lra_in_progress.
45956 2014-02-06 Jakub Jelinek <jakub@redhat.com>
45958 PR middle-end/59150
45959 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
45960 free_data_ref on the dr first, and before goto again also set dr
45961 to the next dr. For simd_lane_access, free old datarefs[i] before
45962 overwriting it. For get_vectype_for_scalar_type failure, don't
45963 free_data_ref if simd_lane_access.
45965 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
45968 * tree.h (opts_for_fn): New inline function.
45969 (opt_for_fn): Define.
45970 * config/i386/i386.c (ix86_function_regparm): Use
45971 opt_for_fn (decl, optimize) instead of optimize.
45973 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
45975 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
45976 for SYMBOL_REF in large memory model.
45978 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45980 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
45981 and crypto support.
45982 (cortex-a57): Likewise.
45983 (cortex-a57.cortex-a53): Likewise.
45985 2014-02-06 Yury Gribov <y.gribov@samsung.com>
45986 Kugan Vivekanandarajah <kuganv@linaro.org>
45988 * config/arm/arm.c (arm_vector_alignment_reachable): Check
45990 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
45992 2014-02-06 Richard Biener <rguenther@suse.de>
45994 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
45995 set_loop_copy and initialize_original_copy_tables.
45997 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
45999 * config/aarch64/aarch64-simd.md
46000 (aarch64_ashr_simddi): Change QI to SI.
46002 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
46003 Jakub Jelinek <jakub@redhat.com>
46005 PR middle-end/60013
46006 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
46009 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46011 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
46012 CODE_FOR_altivec_vpku[hw]um to
46013 CODE_FOR_altivec_vpku[hw]um_direct.
46014 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
46015 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
46016 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
46017 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
46019 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46021 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
46022 generation for -maltivec=be.
46023 (altivec_vsumsws): Simplify redundant test.
46025 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46027 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
46028 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
46029 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
46030 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
46031 gen_altivec_vpkuwum.
46032 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
46034 (altivec_vpks<VI_char>ss): Likewise.
46035 (altivec_vpks<VI_char>us): Likewise.
46036 (altivec_vpku<VI_char>us): Likewise.
46037 (altivec_vpku<VI_char>um): Likewise.
46038 (altivec_vpku<VI_char>um_direct): New (copy of
46039 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
46041 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
46042 target is little endian and -maltivec=be is not specified.
46043 (*altivec_vupkhs<VU_char>_direct): New (copy of
46044 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
46045 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
46046 target is little endian and -maltivec=be is not specified.
46047 (*altivec_vupkls<VU_char>_direct): New (copy of
46048 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
46049 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
46050 little endian and -maltivec=be is not specified.
46051 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
46052 little endian and -maltivec=be is not specified.
46054 2014-02-05 Richard Henderson <rth@redhat.com>
46057 * combine-stack-adj.c: Revert r206943.
46058 * sched-int.h (struct deps_desc): Add last_args_size.
46059 * sched-deps.c (init_deps): Initialize it.
46060 (sched_analyze_insn): Add OUTPUT dependencies between insns that
46061 contain REG_ARGS_SIZE notes.
46063 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
46065 * lto-cgraph.c (asm_nodes_output): Make global.
46066 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
46067 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
46068 (driver_handle_option): Handle OPT_fwpa.
46070 2014-02-05 Jakub Jelinek <jakub@redhat.com>
46073 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
46074 a comment typo and formatting issue. If odr_hash hasn't been
46075 created, return vNULL and set *completep to false.
46077 PR middle-end/57499
46078 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
46079 bb with no successors.
46081 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
46084 * doc/invoke.texi (-march): Clarify documentation for ARM.
46085 (-mtune): Likewise.
46088 2014-02-05 Richard Biener <rguenther@suse.de>
46090 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
46091 when not vectorizing because of too many alias checks.
46092 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
46093 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
46095 2014-02-05 Nick Clifton <nickc@redhat.com>
46097 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
46098 accept extended registers in any mode when compiling for the MN10300.
46100 2014-02-05 Yury Gribov <y.gribov@samsung.com>
46102 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
46103 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
46104 sanitization attributes.
46105 (can_inline_edge_p): Likewise.
46106 (sanitize_attrs_match_for_inline_p): New function.
46108 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
46110 * ipa-prop.c (detect_type_change): Shor circuit testing of
46111 type changes on THIS pointer.
46113 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
46116 * config/pa/pa.c (legitimize_tls_address): Return original address
46117 if not passed a SYMBOL_REF rtx.
46118 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
46120 (pa_emit_move_sequence): Simplify TLS source operands.
46121 (pa_legitimate_constant_p): Reject all TLS constants.
46122 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
46123 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
46125 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
46127 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
46128 groups when we know they are controlled by LTO.
46129 * varasm.c (default_binds_local_p_1): If object is in other partition,
46130 it will be resolved locally.
46132 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
46134 * config/host-linux.c (linux_gt_pch_use_address): Don't
46135 use SSIZE_MAX because it is not always defined.
46137 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
46140 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
46141 threshold for pseudo splitting.
46142 (update_ebb_live_info): Process call argument hard registers and
46143 hard registers from insn definition too.
46144 (max_small_class_regs_num): New constant.
46145 (inherit_in_ebb): Update live hard regs through EBBs. Update
46146 reloads_num only for small register classes. Don't split for
46149 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
46152 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
46155 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
46157 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
46158 visibility is safe.
46160 2014-02-04 Marek Polacek <polacek@redhat.com>
46162 * gdbinit.in (pel): Define.
46164 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
46166 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
46169 2014-02-04 Richard Biener <rguenther@suse.de>
46172 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
46173 in function context local.
46174 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
46175 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
46176 similar to LTO_imported_decl_ref.
46178 2014-02-04 Jakub Jelinek <jakub@redhat.com>
46180 PR tree-optimization/60002
46181 * cgraphclones.c (build_function_decl_skip_args): Clear
46182 DECL_LANG_SPECIFIC.
46184 PR tree-optimization/60023
46185 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
46186 false to gsi_replace.
46187 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
46188 has been in some EH region and vec_stmt could throw, add
46189 vec_stmt into the same EH region.
46190 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
46191 has no lhs, ignore it.
46192 * internal-fn.c (expand_MASK_LOAD): Likewise.
46195 * tree-inline.c (copy_forbidden): Fail for
46196 __attribute__((optimize (0))) functions.
46199 * omp-low.c (simd_clone_struct_copy): If from->inbranch
46200 is set, copy one less argument.
46201 (expand_simd_clones): Don't subtract clone_info->inbranch
46202 from simd_clone_struct_alloc argument.
46204 PR rtl-optimization/57915
46205 * recog.c (simplify_while_replacing): If all unary/binary/relational
46206 operation arguments are constant, attempt to simplify those.
46208 PR middle-end/59261
46209 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
46210 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
46212 2014-02-04 Richard Biener <rguenther@suse.de>
46214 PR tree-optimization/60012
46215 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
46216 TBAA disambiguation to all DDRs.
46218 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
46221 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
46222 (LINK_SPEC): Use it for -shared, -shared-libgcc.
46224 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46227 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
46229 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46231 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
46232 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
46234 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46237 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
46238 to figure out targets of polymorphic calls with known decl.
46239 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
46240 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
46241 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
46242 (get_polymorphic_call_info): ... here.
46243 (get_polymorphic_call_info_from_invariant): New function.
46245 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46247 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
46248 lookup via vtable pointer; check for type consistency
46249 and turn inconsitent facts into UNREACHABLE.
46250 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
46251 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
46252 type inconsistent querries; return UNREACHABLE instead.
46254 2014-02-03 Richard Henderson <rth@twiddle.net>
46257 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
46258 already processed this node.
46259 (normalize_one_pred_1): Pass along mark_set.
46260 (normalize_one_pred): Create and destroy a pointer_set_t.
46261 (normalize_one_pred_chain): Likewise.
46263 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
46265 PR gcov-profile/58602
46266 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
46268 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46271 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
46272 -fno-devirtualize; try to devirtualize by the knowledge of
46273 virtual table pointer given by aggregate propagation.
46274 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
46275 (ipa_print_node_jump_functions): Dump also offset that
46276 is relevant for polymorphic calls.
46277 (determine_known_aggregate_parts): Add arg_type parameter; use it
46278 instead of determining the type from pointer type.
46279 (ipa_compute_jump_functions_for_edge): Update call of
46280 determine_known_aggregate_parts.
46281 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
46282 (gimple_get_virt_method_for_binfo): ... here; simplify using
46283 vtable_pointer_value_to_vtable.
46284 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
46285 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
46286 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
46287 (vtable_pointer_value_to_vtable): Break out from ...; handle also
46289 (vtable_pointer_value_to_binfo): ... here.
46290 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
46292 2014-02-03 Teresa Johnson <tejohnson@google.com>
46294 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
46295 redef of outer loop index variable.
46297 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
46301 * doc/extend.texi (Function Attributes): Typo.
46303 2014-02-03 Cong Hou <congh@google.com>
46305 PR tree-optimization/60000
46306 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
46307 if the vectorized statement is a store. A store statement can only
46308 appear at the end of pattern statements.
46310 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
46312 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
46313 (ix86_option_override_internal): Default long double to 64-bit for
46314 32-bit Bionic and to 128-bit for 64-bit Bionic.
46316 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
46317 TARGET_LONG_DOUBLE_128 is true.
46318 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
46320 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
46321 (mlong-double-64): Negate -mlong-double-128.
46322 (mlong-double-128): New option.
46324 * config/i386/i386-c.c (ix86_target_macros): Define
46325 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
46327 * doc/invoke.texi: Document -mlong-double-128.
46329 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
46331 PR rtl-optimization/60024
46332 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
46334 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
46336 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
46338 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
46340 PR rtl-optimization/57662
46341 * sel-sched.c (code_motion_path_driver): Do not mark already not
46342 existing blocks in the visiting bitmap.
46344 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
46346 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
46347 on the insn being emitted.
46349 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
46350 Will Deacon <will.deacon@arm.com>
46352 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
46354 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
46356 * config/arm/arm-tables.opt: Regenerate.
46358 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46360 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
46361 for vector types other than V16QImode.
46362 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
46363 define_expand, and call altivec_expand_vec_perm_le when producing
46364 code with little endian element order.
46365 (*altivec_vperm_<mode>_internal): New insn having previous
46366 behavior of altivec_vperm_<mode>.
46367 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
46368 altivec_expand_vec_perm_le when producing code with little endian
46370 (*altivec_vperm_<mode>_uns_internal): New insn having previous
46371 behavior of altivec_vperm_<mode>_uns.
46373 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46375 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
46376 (altivec_vsumsws): Add handling for -maltivec=be with a little
46378 (altivec_vsumsws_direct): New.
46379 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
46380 gen_altivec_vsumsws.
46382 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
46384 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
46385 vtable_pointer_value_to_binfo): New functions.
46386 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
46387 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
46389 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
46391 * config/nios2/nios2.md (load_got_register): Initialize GOT
46392 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
46393 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
46395 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
46397 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
46398 preserverd by passthrough, do not propagate the type.
46400 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
46402 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
46403 (mips_atomic_assign_expand_fenv): New function.
46404 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
46406 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
46408 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
46409 (__builtin_mips_set_fcsr): Likewise.
46410 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
46411 MIPS_USI_FTYPE_VOID.
46412 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
46413 (mips16_expand_set_fcsr): Likewise.
46414 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
46415 (mips16_set_fcsr_stub): Likewise.
46416 (mips16_get_fcsr_one_only_stub): New class.
46417 (mips16_set_fcsr_one_only_stub): Likewise.
46418 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
46419 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
46420 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
46421 (hard_float): New availability predicate.
46422 (mips_builtins): Add get_fcsr and set_fcsr.
46423 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
46424 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
46425 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
46426 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
46427 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
46430 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
46432 * config/mips/mips.c (mips_one_only_stub): New class.
46433 (mips_need_mips16_rdhwr_p): Replace with...
46434 (mips16_rdhwr_stub): ...this new variable.
46435 (mips16_stub_call_address): New function.
46436 (mips16_rdhwr_one_only_stub): New class.
46437 (mips_expand_thread_pointer): Use mips16_stub_call_address.
46438 (mips_output_mips16_rdhwr): Delete.
46439 (mips_finish_stub): New function.
46440 (mips_code_end): Use it to handle rdhwr stubs.
46442 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
46445 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
46446 when calculating size of integer atomic types.
46448 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
46450 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
46452 2014-02-01 Jakub Jelinek <jakub@redhat.com>
46454 PR tree-optimization/60003
46455 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
46456 * profile.c (branch_prob): Use gimple_call_builtin_p
46457 to check for BUILT_IN_SETJMP_RECEIVER.
46458 * tree-inline.c (copy_bb): Call notice_special_calls.
46460 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
46463 * lra-constraints.c (process_alt_operands): Update reload_sum only
46466 2014-01-31 Richard Henderson <rth@redhat.com>
46468 PR middle-end/60004
46469 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
46470 until after else_eh is processed.
46472 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
46474 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
46475 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
46476 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
46477 in smmintrin.h, remove them.
46478 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
46479 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
46480 * config/i386/i386.md (ROUND_SAE): Fix value.
46481 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
46482 (const48_operand): New.
46483 * config/i386/subst.md (round), (round_expand): Use
46484 const_4_or_8_to_11_operand.
46485 (round_saeonly), (round_saeonly_expand): Use const48_operand.
46487 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
46489 * config/i386/constraints.md (Yk): Swap meaning with k.
46490 * config/i386/i386.md (movhi_internal): Change Yk to k.
46491 (movqi_internal): Ditto.
46492 (*k<logic><mode>): Ditto.
46495 (kandn<mode>): Ditto.
46496 (*<code>hi_1): Ditto.
46497 (*<code>qi_1): Ditto.
46498 (kxnor<mode>): Ditto.
46499 (kortestzhi): Ditto.
46500 (kortestchi): Ditto.
46502 (*one_cmplhi2_1): Ditto.
46503 (*one_cmplqi2_1): Ditto.
46504 * config/i386/sse.md (): Change k to Yk.
46505 (avx512f_load<mode>_mask): Ditto.
46506 (avx512f_blendm<mode>): Ditto.
46507 (avx512f_store<mode>_mask): Ditto.
46508 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
46509 (avx512f_storedqu<mode>_mask): Ditto.
46510 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
46512 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
46513 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
46514 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
46515 (avx512f_maskcmp<mode>3): Ditto.
46516 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
46517 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
46518 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
46519 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
46520 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
46521 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
46522 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
46523 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
46524 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
46525 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
46526 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
46527 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
46528 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
46529 (vec_extract_lo_<mode>_maskm): Ditto.
46530 (vec_extract_hi_<mode>_maskm): Ditto.
46531 (avx512f_vternlog<mode>_mask): Ditto.
46532 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
46533 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
46534 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
46535 (avx512f_<code>v8div16qi2_mask): Ditto.
46536 (avx512f_<code>v8div16qi2_mask_store): Ditto.
46537 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
46538 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
46539 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
46540 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
46541 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
46542 (*avx512pf_gatherpf<mode>df_mask): Ditto.
46543 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
46544 (*avx512pf_scatterpf<mode>df_mask): Ditto.
46545 (avx512cd_maskb_vec_dupv8di): Ditto.
46546 (avx512cd_maskw_vec_dupv16si): Ditto.
46547 (avx512f_vpermi2var<mode>3_maskz): Ditto.
46548 (avx512f_vpermi2var<mode>3_mask): Ditto.
46549 (avx512f_vpermi2var<mode>3_mask): Ditto.
46550 (avx512f_vpermt2var<mode>3_maskz): Ditto.
46551 (*avx512f_gathersi<mode>): Ditto.
46552 (*avx512f_gathersi<mode>_2): Ditto.
46553 (*avx512f_gatherdi<mode>): Ditto.
46554 (*avx512f_gatherdi<mode>_2): Ditto.
46555 (*avx512f_scattersi<mode>): Ditto.
46556 (*avx512f_scatterdi<mode>): Ditto.
46557 (avx512f_compress<mode>_mask): Ditto.
46558 (avx512f_compressstore<mode>_mask): Ditto.
46559 (avx512f_expand<mode>_mask): Ditto.
46560 * config/i386/subst.md (mask): Change k to Yk.
46561 (mask_scalar_merge): Ditto.
46564 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
46566 * doc/extend.texi (Vector Extensions): Document ?: in C++.
46568 2014-01-31 Richard Biener <rguenther@suse.de>
46570 PR middle-end/59990
46571 * builtins.c (fold_builtin_memory_op): Make sure to not
46572 use a floating-point mode or a boolean or enumeral type for
46573 the copy operation.
46575 2014-01-30 DJ Delorie <dj@redhat.com>
46577 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
46578 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
46579 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
46580 whenever main() has an epilogue.
46582 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46584 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
46585 unused variable "field".
46586 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
46587 (vsx_mergeh_<mode>): Likewise.
46588 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
46589 (altivec_vmrghh): Likewise.
46590 (altivec_vmrghw): Likewise.
46591 (altivec_vmrglb): Likewise.
46592 (altivec_vmrglh): Likewise.
46593 (altivec_vmrglw): Likewise.
46594 (altivec_vspltb): Add missing uses.
46595 (altivec_vsplth): Likewise.
46596 (altivec_vspltw): Likewise.
46597 (altivec_vspltsf): Likewise.
46599 2014-01-30 Jakub Jelinek <jakub@redhat.com>
46602 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
46603 frame related instructions.
46605 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
46607 PR rtl-optimization/59959
46608 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
46609 any reload of register whose subreg is invalid.
46611 2014-01-30 Jakub Jelinek <jakub@redhat.com>
46613 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
46614 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
46615 Add missing return type - void.
46617 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46619 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
46620 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
46621 remove element index adjustment for endian (now handled in vsx.md
46623 (altivec_expand_vec_perm_const): Use
46624 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
46625 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
46626 (vsx_xxspltw_<mode>): Adjust element index for little endian.
46627 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
46628 define_expand and a new define_insn *altivec_vspltb_internal;
46629 adjust for -maltivec=be on a little endian target.
46630 (altivec_vspltb_direct): New.
46631 (altivec_vsplth): Divide into a define_expand and a new
46632 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
46633 little endian target.
46634 (altivec_vsplth_direct): New.
46635 (altivec_vspltw): Divide into a define_expand and a new
46636 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
46637 little endian target.
46638 (altivec_vspltw_direct): New.
46639 (altivec_vspltsf): Divide into a define_expand and a new
46640 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
46641 a little endian target.
46643 2014-01-30 Richard Biener <rguenther@suse.de>
46645 PR tree-optimization/59993
46646 * tree-ssa-forwprop.c (associate_pointerplus): Check we
46647 can propagate form the earlier stmt and avoid the transform
46648 when the intermediate result is needed.
46650 2014-01-30 Alangi Derick <alangiderick@gmail.com>
46652 * README.Portability: Fix typo.
46654 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
46656 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
46657 comparison_operator with ordered_comparison_operator.
46659 2014-01-30 Nick Clifton <nickc@redhat.com>
46661 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
46662 Rename to mn10300_store_multiple_regs.
46663 * config/mn10300/mn10300.c: Likewise.
46664 * config/mn10300/mn10300.md (store_movm): Fix typo: call
46665 store_multiple_regs.
46666 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
46667 Call mn10300_store_multiple_regs.
46669 2014-01-30 Nick Clifton <nickc@redhat.com>
46670 DJ Delorie <dj@redhat.com>
46672 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
46673 %fp 2 to keep registers after it properly word-aligned.
46674 (rl78_alloc_physical_registers_umul): Handle the case where both
46675 input operands are the same.
46677 2014-01-30 Richard Biener <rguenther@suse.de>
46679 PR tree-optimization/59903
46680 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
46683 2014-01-30 Jason Merrill <jason@redhat.com>
46686 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
46689 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
46691 2014-01-30 Richard Biener <rguenther@suse.de>
46693 PR tree-optimization/59951
46694 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
46696 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
46699 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
46700 SFmode to DFmode case.
46702 2014-01-29 DJ Delorie <dj@redhat.com>
46704 * config/msp430/msp430.opt (-minrt): New.
46705 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
46707 (ENDFILE_SPEC): Likewise.
46709 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
46711 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
46712 (estimate_function_body_sizes): Use it.
46714 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
46717 * dwarf2out.c (is_cxx_auto): New.
46718 (is_base_type): Use it.
46719 (gen_type_die_with_usage): Likewise.
46721 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46723 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
46724 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
46725 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
46726 -maltivec=be with LE targets.
46727 (vsx_mergeh_<mode>): Likewise.
46728 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
46729 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
46730 (altivec_vmrghb): Replace with define_expand and new
46731 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
46732 (altivec_vmrghb_direct): New define_insn.
46733 (altivec_vmrghh): Replace with define_expand and new
46734 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
46735 (altivec_vmrghh_direct): New define_insn.
46736 (altivec_vmrghw): Replace with define_expand and new
46737 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
46738 (altivec_vmrghw_direct): New define_insn.
46739 (*altivec_vmrghsf): Adjust for endianness.
46740 (altivec_vmrglb): Replace with define_expand and new
46741 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
46742 (altivec_vmrglb_direct): New define_insn.
46743 (altivec_vmrglh): Replace with define_expand and new
46744 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
46745 (altivec_vmrglh_direct): New define_insn.
46746 (altivec_vmrglw): Replace with define_expand and new
46747 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
46748 (altivec_vmrglw_direct): New define_insn.
46749 (*altivec_vmrglsf): Adjust for endianness.
46750 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
46751 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
46752 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
46753 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
46754 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
46755 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
46756 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
46757 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
46759 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
46761 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
46762 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
46765 2014-01-29 Richard Biener <rguenther@suse.de>
46767 PR tree-optimization/58742
46768 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
46769 associate_pointerplus_align.
46770 (associate_pointerplus_diff): New function.
46771 (associate_pointerplus): Likewise. Call associate_pointerplus_align
46772 and associate_pointerplus_diff.
46774 2014-01-29 Richard Biener <rguenther@suse.de>
46776 * lto-streamer.h (LTO_major_version): Bump to 3.
46777 (LTO_minor_version): Reset to 0.
46779 2014-01-29 Renlin Li <Renlin.Li@arm.com>
46781 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
46782 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
46783 (arm_file_start): Generate correct asm header for armv7ve.
46784 * config/arm/bpabi.h: Add multilib support for armv7ve.
46785 * config/arm/driver-arm.c: Change the architectures of cortex-a7
46786 and cortex-a15 to armv7ve.
46787 * config/arm/t-aprofile: Add multilib support for armv7ve.
46788 * doc/invoke.texi: Document -march=armv7ve.
46790 2014-01-29 Richard Biener <rguenther@suse.de>
46792 PR tree-optimization/58742
46793 * tree-ssa-forwprop.c (associate_plusminus): Return true
46794 if we changed sth, defer EH cleanup to ...
46795 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
46796 (simplify_mult): New function.
46798 2014-01-29 Jakub Jelinek <jakub@redhat.com>
46800 PR middle-end/59917
46801 PR tree-optimization/59920
46802 * tree.c (build_common_builtin_nodes): Remove
46803 __builtin_setjmp_dispatcher initialization.
46804 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
46805 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
46806 instead of gsi_after_labels + manually skipping debug stmts.
46807 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
46808 ignore bbs with IFN_ABNORMAL_DISPATCHER.
46809 * tree-inline.c (copy_edges_for_bb): Remove
46810 can_make_abnormal_goto argument, instead add abnormal_goto_dest
46811 argument. Ignore computed_goto_p stmts. Don't call
46812 make_abnormal_goto_edges. If a call might need abnormal edges
46813 for non-local gotos, see if it already has an edge to
46814 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
46815 with true argument, don't do anything then, otherwise add
46816 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
46817 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
46819 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
46820 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
46821 (lower_stmt): Don't set data->calls_builtin_setjmp.
46822 (lower_builtin_setjmp): Adjust comment.
46823 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
46824 * tree-cfg.c (found_computed_goto): Remove.
46825 (factor_computed_gotos): Remove.
46826 (make_goto_expr_edges): Return bool, true for computed gotos.
46827 Don't call make_abnormal_goto_edges.
46828 (build_gimple_cfg): Don't set found_computed_goto, don't call
46829 factor_computed_gotos.
46830 (computed_goto_p): No longer static.
46831 (make_blocks): Don't set found_computed_goto.
46832 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
46833 (make_edges): If make_goto_expr_edges returns true, push bb
46834 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
46835 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
46836 vector. Record mapping between bbs and OpenMP regions if there
46837 are any, adjust make_gimple_omp_edges caller. Call
46838 handle_abnormal_edges.
46839 (make_abnormal_goto_edges): Remove.
46840 * tree-cfg.h (make_abnormal_goto_edges): Remove.
46841 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
46842 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
46843 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
46844 * internal-fn.def (ABNORMAL_DISPATCHER): New.
46845 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
46846 filling *region also set *region_idx to (*region)->entry->index.
46849 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
46850 For REGs set ORIGINAL_REGNO.
46852 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
46854 * doc/md.texi: Mention that a target shouldn't implement
46855 vec_widen_(s|u)mul_even/odd pair if it is less efficient
46858 2014-01-29 Jakub Jelinek <jakub@redhat.com>
46860 PR tree-optimization/59594
46861 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
46862 a copy of the datarefs vector rather than the vector itself.
46864 2014-01-28 Jason Merrill <jason@redhat.com>
46867 * dwarf2out.c (auto_die): New static.
46868 (gen_type_die_with_usage): Handle C++1y 'auto'.
46869 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
46872 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
46875 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
46876 (SPEC_X32): Likewise.
46877 (SPEC_64): Likewise.
46878 * config/i386/i386.c (ix86_option_override_internal): Turn off
46879 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
46881 (x86_file_start): Output .code16gcc for TARGET_16BIT.
46882 * config/i386/i386.h (TARGET_16BIT): New macro.
46883 (TARGET_16BIT_P): Likewise.
46884 * config/i386/i386.opt: Add m16.
46885 * doc/invoke.texi: Document -m16.
46887 2014-01-28 Jakub Jelinek <jakub@redhat.com>
46889 PR preprocessor/59935
46890 * input.c (location_get_source_line): Bail out on when line number
46891 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
46893 2014-01-28 Richard Biener <rguenther@suse.de>
46895 PR tree-optimization/58742
46896 * tree-ssa-forwprop.c (associate_plusminus): Handle
46897 pointer subtraction of the form (T)(P + A) - (T)P.
46899 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
46901 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
46904 2014-01-28 Richard Biener <rguenther@suse.de>
46907 2014-01-28 Richard Biener <rguenther@suse.de>
46909 PR rtl-optimization/45364
46910 PR rtl-optimization/59890
46911 * var-tracking.c (local_get_addr_clear_given_value): Handle
46912 already cleared slot.
46913 (val_reset): Handle not allocated local_get_addr_cache.
46914 (vt_find_locations): Use post-order on the inverted CFG.
46916 2014-01-28 Richard Biener <rguenther@suse.de>
46918 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
46920 2014-01-28 Richard Biener <rguenther@suse.de>
46922 PR rtl-optimization/45364
46923 PR rtl-optimization/59890
46924 * var-tracking.c (local_get_addr_clear_given_value): Handle
46925 already cleared slot.
46926 (val_reset): Handle not allocated local_get_addr_cache.
46927 (vt_find_locations): Use post-order on the inverted CFG.
46929 2014-01-28 Alan Modra <amodra@gmail.com>
46931 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
46932 * configure.ac <recursive call for build != host>: Define
46933 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
46934 and LD_FOR_BUILD too.
46935 * configure: Regenerate.
46937 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
46939 * config/i386/i386.c (get_builtin_code_for_version): Separate
46940 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
46941 Broadwell from Haswell.
46943 2014-01-27 Steve Ellcey <sellcey@mips.com>
46945 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
46946 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
46947 * config/mips/mips.c (mips_option_override): Change setting
46949 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
46950 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
46951 Change from Mask to Var.
46953 2014-01-27 Jeff Law <law@redhat.com>
46955 * ipa-inline.c (inline_small_functions): Fix typo.
46957 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
46959 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
46960 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
46961 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
46962 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
46963 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
46964 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
46965 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
46966 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
46967 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
46968 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
46969 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
46970 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
46971 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
46972 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
46973 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
46974 (_mm512_storeu_epi64): Ditto.
46975 (_mm512_cmpge_epi32_mask): Ditto.
46976 (_mm512_cmpge_epu32_mask): Ditto.
46977 (_mm512_cmpge_epi64_mask): Ditto.
46978 (_mm512_cmpge_epu64_mask): Ditto.
46979 (_mm512_cmple_epi32_mask): Ditto.
46980 (_mm512_cmple_epu32_mask): Ditto.
46981 (_mm512_cmple_epi64_mask): Ditto.
46982 (_mm512_cmple_epu64_mask): Ditto.
46983 (_mm512_cmplt_epi32_mask): Ditto.
46984 (_mm512_cmplt_epu32_mask): Ditto.
46985 (_mm512_cmplt_epi64_mask): Ditto.
46986 (_mm512_cmplt_epu64_mask): Ditto.
46987 (_mm512_cmpneq_epi32_mask): Ditto.
46988 (_mm512_cmpneq_epu32_mask): Ditto.
46989 (_mm512_cmpneq_epi64_mask): Ditto.
46990 (_mm512_cmpneq_epu64_mask): Ditto.
46991 (_mm512_expand_pd): Ditto.
46992 (_mm512_expand_ps): Ditto.
46993 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
46994 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
46995 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
46996 * config/i386/i386.c (ix86_builtins): Add
46997 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
46998 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
46999 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
47000 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
47001 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
47002 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
47003 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
47004 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
47005 IX86_BUILTIN_PMOVUSQW512_MEM.
47006 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
47007 __builtin_ia32_pmovsqd512mem_mask,
47008 __builtin_ia32_pmovqd512mem_mask,
47009 __builtin_ia32_pmovusqw512mem_mask,
47010 __builtin_ia32_pmovsqw512mem_mask,
47011 __builtin_ia32_pmovqw512mem_mask,
47012 __builtin_ia32_pmovusdw512mem_mask,
47013 __builtin_ia32_pmovsdw512mem_mask,
47014 __builtin_ia32_pmovdw512mem_mask,
47015 __builtin_ia32_pmovqb512mem_mask,
47016 __builtin_ia32_pmovusqb512mem_mask,
47017 __builtin_ia32_pmovsqb512mem_mask,
47018 __builtin_ia32_pmovusdb512mem_mask,
47019 __builtin_ia32_pmovsdb512mem_mask,
47020 __builtin_ia32_pmovdb512mem_mask.
47021 (bdesc_args): Add __builtin_ia32_expanddf512,
47022 __builtin_ia32_expandsf512.
47023 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
47024 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
47025 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
47026 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
47027 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
47028 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
47029 (avx512f_<code>v8div16qi2_mask_store): This.
47030 (avx512f_expand<mode>): New.
47032 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
47034 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
47036 (_mm512_mask_prefetch_i64gather_pd): Ditto.
47037 (_mm512_prefetch_i32scatter_pd): Ditto.
47038 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
47039 (_mm512_prefetch_i64scatter_pd): Ditto.
47040 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
47041 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
47042 (_mm512_mask_prefetch_i64gather_ps): Ditto.
47043 (_mm512_prefetch_i32scatter_ps): Ditto.
47044 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
47045 (_mm512_prefetch_i64scatter_ps): Ditto.
47046 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
47047 * config/i386/i386-builtin-types.def: Define
47048 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
47049 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
47050 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
47051 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
47052 IX86_BUILTIN_SCATTERPFQPD.
47053 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
47054 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
47055 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
47056 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
47057 __builtin_ia32_scatterpfqps.
47058 (ix86_expand_builtin): Expand new built-ins.
47059 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
47060 fix memory access data type.
47061 (*avx512pf_gatherpf<mode>_mask): Ditto.
47062 (*avx512pf_gatherpf<mode>): Ditto.
47063 (avx512pf_scatterpf<mode>): Ditto.
47064 (*avx512pf_scatterpf<mode>_mask): Ditto.
47065 (*avx512pf_scatterpf<mode>): Ditto.
47066 (GATHER_SCATTER_SF_MEM_MODE): New.
47067 (avx512pf_gatherpf<mode>df): Ditto.
47068 (*avx512pf_gatherpf<mode>df_mask): Ditto.
47069 (*avx512pf_scatterpf<mode>df): Ditto.
47071 2014-01-27 Jakub Jelinek <jakub@redhat.com>
47074 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
47075 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
47078 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
47080 * common/config/arm/arm-common.c
47081 (arm_rewrite_mcpu): Handle multiple names.
47083 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
47085 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
47087 * gimple-builder.h (create_gimple_tmp): Delete.
47089 2014-01-27 Christian Bruel <christian.bruel@st.com>
47091 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
47094 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
47096 * config/pa/pa.md (call): Generate indirect long calls to non-local
47097 functions when outputing 32-bit code.
47098 (call_value): Likewise except for special call to buggy powf function.
47100 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
47101 portable runtime and PIC indirect calls.
47102 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
47103 and PIC call sequences. Use ldo instead of blr to set return register
47104 in PIC call sequence.
47106 2014-01-25 Walter Lee <walt@tilera.com>
47108 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
47109 avoid clobbering a live register.
47111 2014-01-25 Walter Lee <walt@tilera.com>
47113 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
47114 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
47115 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
47116 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
47118 2014-01-25 Walter Lee <walt@tilera.com>
47120 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
47121 arguments on even registers.
47122 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
47124 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
47125 (BIGGEST_ALIGNMENT): Ditto.
47126 (BIGGEST_FIELD_ALIGNMENT): Ditto.
47128 2014-01-25 Walter Lee <walt@tilera.com>
47130 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
47131 insns before bundling.
47132 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
47134 2014-01-25 Walter Lee <walt@tilera.com>
47136 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
47137 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
47138 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
47140 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
47142 * config/mips/constraints.md (kl): Delete.
47143 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
47144 define expands, using...
47145 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
47146 instructions for MIPS16.
47147 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
47148 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
47150 2014-01-25 Walter Lee <walt@tilera.com>
47152 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
47156 2014-01-25 Walter Lee <walt@tilera.com>
47158 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
47159 (TARGET_EXPAND_TO_RTL_HOOK): Define.
47161 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
47163 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
47166 2014-01-25 Jakub Jelinek <jakub@redhat.com>
47168 * print-rtl.c (in_call_function_usage): New var.
47169 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
47170 EXPR_LIST mode as mode and not as reg note name.
47172 PR middle-end/59561
47173 * cfgloopmanip.c (copy_loop_info): If
47174 loop->warned_aggressive_loop_optimizations, make sure
47175 the flag is set in target loop too.
47177 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
47179 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
47181 * builtins.def: Likewise.
47182 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
47183 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
47184 * ira.c (ira_setup_eliminable_regset): Likewise.
47185 * omp-low.c (gate_expand_omp): Likewise.
47186 (execute_lower_omp): Likewise.
47187 (diagnose_sb_0): Likewise.
47188 (gate_diagnose_omp_blocks): Likewise.
47189 (simd_clone_clauses_extract): Likewise.
47192 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
47194 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
47195 correction for little endian...
47196 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
47199 2014-01-24 Jeff Law <law@redhat.com>
47201 PR tree-optimization/59919
47202 * tree-vrp.c (find_assert_locations_1): Do not register asserts
47203 for non-returning calls.
47205 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
47207 * common/config/aarch64/aarch64-common.c
47208 (aarch64_rewrite_mcpu): Handle multiple names.
47209 * config/aarch64/aarch64.h
47210 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
47212 2014-01-24 Dodji Seketeli <dodji@redhat.com>
47214 * input.c (add_file_to_cache_tab): Handle the case where fopen
47217 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
47220 * config/i386/i386.md (pushsf splitter): Get stack adjustment
47221 from push operand if code of push isn't PRE_DEC.
47223 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
47226 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
47227 -mquad-memory-atomic. Update -mquad-memory documentation to say
47228 it is only used for non-atomic loads/stores.
47230 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
47231 -mquad-memory or -mquad-memory-atomic switches.
47233 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
47234 -mquad-memory-atomic to ISA 2.07 support.
47236 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
47237 to separate support of normal quad word memory operations (ldq, stq)
47238 from the atomic quad word memory operations.
47240 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
47241 support to separate non-atomic quad word operations from atomic
47242 quad word operations. Disable non-atomic quad word operations in
47243 little endian mode so that we don't have to swap words after the
47244 load and before the store.
47245 (quad_load_store_p): Add comment about atomic quad word support.
47246 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
47247 options printed with -mdebug=reg.
47249 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
47250 -mquad-memory-atomic as the test for whether we have quad word
47251 atomic instructions.
47252 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
47253 or -mp8-vector are used, allow byte/half-word atomic operations.
47255 * config/rs6000/sync.md (load_lockedti): Insure that the address
47256 is a proper indexed or indirect address for the lqarx instruction.
47257 On little endian systems, swap the hi/lo registers after the lqarx
47259 (load_lockedpti): Use indexed_or_indirect_operand predicate to
47260 insure the address is valid for the lqarx instruction.
47261 (store_conditionalti): Insure that the address is a proper indexed
47262 or indirect address for the stqcrx. instruction. On little endian
47263 systems, swap the hi/lo registers before doing the stqcrx.
47265 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
47266 insure the address is valid for the stqcrx. instruction.
47268 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
47269 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
47270 type of quad memory support is available.
47272 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
47274 PR regression/59915
47275 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
47276 there is a danger of looping.
47278 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
47280 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
47281 force flag_ira_loop_pressure if set via command line.
47283 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
47285 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
47286 (ashr_simd): New builtin handling DI mode.
47287 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
47288 (aarch64_sshr_simddi): New match pattern.
47289 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
47290 (vshrd_n_s64): Likewise.
47291 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
47293 2014-01-23 Nick Clifton <nickc@redhat.com>
47295 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
47296 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
47297 favour of mcu specific scripts.
47298 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
47301 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
47302 Alex Velenko <Alex.Velenko@arm.com>
47304 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
47305 (vaddv_s16): Likewise.
47306 (vaddv_s32): Likewise.
47307 (vaddv_u8): Likewise.
47308 (vaddv_u16): Likewise.
47309 (vaddv_u32): Likewise.
47310 (vaddvq_s8): Likewise.
47311 (vaddvq_s16): Likewise.
47312 (vaddvq_s32): Likewise.
47313 (vaddvq_s64): Likewise.
47314 (vaddvq_u8): Likewise.
47315 (vaddvq_u16): Likewise.
47316 (vaddvq_u32): Likewise.
47317 (vaddvq_u64): Likewise.
47318 (vaddv_f32): Likewise.
47319 (vaddvq_f32): Likewise.
47320 (vaddvq_f64): Likewise.
47321 (vmaxv_f32): Likewise.
47322 (vmaxv_s8): Likewise.
47323 (vmaxv_s16): Likewise.
47324 (vmaxv_s32): Likewise.
47325 (vmaxv_u8): Likewise.
47326 (vmaxv_u16): Likewise.
47327 (vmaxv_u32): Likewise.
47328 (vmaxvq_f32): Likewise.
47329 (vmaxvq_f64): Likewise.
47330 (vmaxvq_s8): Likewise.
47331 (vmaxvq_s16): Likewise.
47332 (vmaxvq_s32): Likewise.
47333 (vmaxvq_u8): Likewise.
47334 (vmaxvq_u16): Likewise.
47335 (vmaxvq_u32): Likewise.
47336 (vmaxnmv_f32): Likewise.
47337 (vmaxnmvq_f32): Likewise.
47338 (vmaxnmvq_f64): Likewise.
47339 (vminv_f32): Likewise.
47340 (vminv_s8): Likewise.
47341 (vminv_s16): Likewise.
47342 (vminv_s32): Likewise.
47343 (vminv_u8): Likewise.
47344 (vminv_u16): Likewise.
47345 (vminv_u32): Likewise.
47346 (vminvq_f32): Likewise.
47347 (vminvq_f64): Likewise.
47348 (vminvq_s8): Likewise.
47349 (vminvq_s16): Likewise.
47350 (vminvq_s32): Likewise.
47351 (vminvq_u8): Likewise.
47352 (vminvq_u16): Likewise.
47353 (vminvq_u32): Likewise.
47354 (vminnmv_f32): Likewise.
47355 (vminnmvq_f32): Likewise.
47356 (vminnmvq_f64): Likewise.
47358 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
47360 * config/aarch64/aarch64-simd.md
47361 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
47362 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
47363 (*aarch64_mul3_elt<mode>): Likewise.
47364 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
47365 (*aarch64_mul3_elt_to_64v2df): Likewise.
47366 (*aarch64_mla_elt<mode>): Likewise.
47367 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
47368 (*aarch64_mls_elt<mode>): Likewise.
47369 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
47370 (*aarch64_fma4_elt<mode>): Likewise.
47371 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
47372 (*aarch64_fma4_elt_to_64v2df): Likewise.
47373 (*aarch64_fnma4_elt<mode>): Likewise.
47374 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
47375 (*aarch64_fnma4_elt_to_64v2df): Likewise.
47376 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
47377 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
47378 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
47379 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
47380 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
47381 (aarch64_sqdmull_lane<mode>_internal): Likewise.
47382 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
47384 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
47386 * config/aarch64/aarch64-simd.md
47387 (aarch64_be_checked_get_lane<mode>): New define_expand.
47388 * config/aarch64/aarch64-simd-builtins.def
47389 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
47390 New builtin definition.
47391 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
47392 Use new safe be builtin.
47394 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
47396 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
47398 (aarch64_be_st1<mode>): Likewise.
47399 (aarch_ld1<VALL:mode>): Define_expand modified.
47400 (aarch_st1<VALL:mode>): Likewise.
47401 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
47402 (UNSPEC_ST1): Likewise.
47404 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
47406 * config/microblaze/microblaze.md: Add trap insn and attribute
47408 2014-01-23 Dodji Seketeli <dodji@redhat.com>
47410 PR preprocessor/58580
47411 * input.h (location_get_source_line): Take an additional line_size
47413 (void diagnostics_file_cache_fini): Declare new function.
47414 * input.c (struct fcache): New type.
47415 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
47416 New static constants.
47417 (diagnostic_file_cache_init, total_lines_num)
47418 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
47419 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
47420 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
47421 (get_next_line, read_next_line, goto_next_line, read_line_num):
47422 New static function definitions.
47423 (diagnostic_file_cache_fini): New function.
47424 (location_get_source_line): Take an additional output line_len
47425 parameter. Re-write using lookup_or_add_file_to_cache_tab and
47427 * diagnostic.c (diagnostic_finish): Call
47428 diagnostic_file_cache_fini.
47429 (adjust_line): Take an additional input parameter for the length
47430 of the line, rather than calculating it with strlen.
47431 (diagnostic_show_locus): Adjust the use of
47432 location_get_source_line and adjust_line with respect to their new
47433 signature. While displaying a line now, do not stop at the first
47434 null byte. Rather, display the zero byte as a space and keep
47435 going until we reach the size of the line.
47436 * Makefile.in: Add vec.o to OBJS-libcommon
47438 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
47439 Ilya Tocar <ilya.tocar@intel.com>
47441 * config/i386/avx512fintrin.h (_mm512_kmov): New.
47442 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
47443 (__builtin_ia32_kmov16): Ditto.
47444 * config/i386/i386.md (UNSPEC_KMOV): New.
47447 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
47449 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
47450 (_mm512_storeu_si512): Ditto.
47452 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
47455 * rtl.h (get_referenced_operands): Declare.
47456 * recog.c (get_referenced_operands): New function.
47457 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
47458 operands have been referenced when recording LO_SUM references.
47460 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
47462 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
47464 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
47466 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
47467 Enable for generic and recent AMD targets.
47469 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
47471 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
47472 ARG_SIZE note when adjustment was eliminated.
47474 2014-01-22 Jeff Law <law@redhat.com>
47476 PR tree-optimization/59597
47477 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
47478 in file. Accept new argument REGISTERING and use it to modify
47479 dump output appropriately.
47480 (register_jump_thread): Corresponding changes.
47481 (mark_threaded_blocks): Reinstate code to cancel unprofitable
47482 thread paths involving joiner blocks. Add code to dump cancelled
47483 jump threading paths.
47485 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
47487 PR rtl-optimization/59477
47488 * lra-constraints.c (inherit_in_ebb): Process call for living hard
47489 regs. Update reloads_num and potential_reload_hard_regs for all insns.
47491 2014-01-22 Tom Tromey <tromey@redhat.com>
47493 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
47495 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
47497 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
47499 PR rtl-optimization/59896
47500 * lra-constraints.c (process_alt_operands): Check unused note for
47501 matched operands of insn with no output reloads.
47503 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
47505 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
47506 (mips_move_from_gpr_cost): Likewise.
47508 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
47510 PR rtl-optimization/59858
47511 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
47512 ira_class_hard_regs_num.
47513 (process_alt_operands): Increase reject for dying matched operand.
47515 2014-01-21 Jakub Jelinek <jakub@redhat.com>
47518 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
47519 smaller than size, perform several stores or loads and stores
47520 at dst + count - size to store or copy all of size bytes, rather
47521 than just last modesize bytes.
47523 2014-01-20 DJ Delorie <dj@redhat.com>
47525 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
47526 that CLOBBERs are REGs before propogating their values.
47528 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
47530 PR middle-end/59789
47531 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
47532 (cgraph_inline_failed_type): New function.
47533 * cgraph.h (DEFCIFCODE): Add type.
47534 (cgraph_inline_failed_type_t): New enum.
47535 (cgraph_inline_failed_type): New prototype.
47536 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
47537 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
47538 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
47539 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
47540 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
47541 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
47542 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
47543 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
47544 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
47545 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
47546 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
47547 OPTIMIZATION_MISMATCH.
47548 * tree-inline.c (expand_call_inline): Emit errors during
47549 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
47551 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
47554 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
47555 mode attribute in insn output.
47557 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
47559 * output.h (output_constant): Delete.
47560 * varasm.c (output_constant): Make private.
47562 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
47564 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
47566 2014-01-20 Jakub Jelinek <jakub@redhat.com>
47568 PR middle-end/59860
47569 * tree.h (fold_builtin_strcat): New prototype.
47570 * builtins.c (fold_builtin_strcat): No longer static. Add len
47571 argument, if non-NULL, don't call c_strlen. Optimize
47572 directly into __builtin_memcpy instead of __builtin_strcpy.
47573 (fold_builtin_2): Adjust fold_builtin_strcat caller.
47574 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
47576 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
47578 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
47579 for SImode_address_operand operands, having only a REG argument.
47581 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
47583 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
47584 loader name using mbig-endian.
47585 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
47587 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
47589 * doc/invoke.texi (-march): Clarify documentation for AArch64.
47590 (-mtune): Likewise.
47593 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
47595 * config/aarch64/aarch64-protos.h
47596 (aarch64_cannot_change_mode_class_ptr): Declare.
47597 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
47598 aarch64_cannot_change_mode_class_ptr): New.
47599 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
47600 backend hook aarch64_cannot_change_mode_class.
47602 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
47604 * common/config/aarch64/aarch64-common.c
47605 (aarch64_handle_option): Don't handle any option order logic here.
47606 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
47607 selected_cpu, warn on architecture version mismatch.
47608 (aarch64_override_options): Fix parsing order for option strings.
47610 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
47611 Iain Sandoe <iain@codesourcery.com>
47614 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
47615 warning. Amend comment to reflect current functionality.
47617 2014-01-20 Richard Biener <rguenther@suse.de>
47619 PR middle-end/59860
47620 * builtins.c (fold_builtin_strcat): Remove case better handled
47621 by tree-ssa-strlen.c.
47623 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
47625 * config/aarch64/aarch64.opt
47626 (mcpu, march, mtune): Make case-insensitive.
47628 2014-01-20 Jakub Jelinek <jakub@redhat.com>
47631 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
47632 if operands[1] is a REG or ZERO_EXTEND of a REG.
47634 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
47636 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
47638 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
47640 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
47641 long non-pic millicode calls.
47643 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
47645 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
47647 2014-01-19 Kito Cheng <kito@0xlab.org>
47649 * builtins.c (expand_movstr): Check movstr expand done or fail.
47651 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
47652 H.J. Lu <hongjiu.lu@intel.com>
47655 * config/i386/i386.md (*lea<mode>): Zero-extend return register
47656 to DImode for zero-extended addresses.
47658 2014-01-19 Jakub Jelinek <jakub@redhat.com>
47660 PR rtl-optimization/57763
47661 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
47662 on the new indirect jump_insn and increment LABEL_NUSES (label).
47664 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
47668 * config.gcc (x86_archs): New variable.
47669 (x86_64_archs): Likewise.
47670 (x86_cpus): Likewise.
47671 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
47672 --with-arch/--with-cpu= options.
47673 Support --with-arch=/--with-cpu={nehalem,westmere,
47674 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
47676 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
47678 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
47679 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
47681 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
47683 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
47685 2014-01-18 Jakub Jelinek <jakub@redhat.com>
47688 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
47689 clear cpp_get_options (parse_in)->warn_unused_macros for
47690 ix86_target_macros_internal with cpp_define.
47692 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
47694 * jump.c (delete_related_insns): Keep (use (insn))s.
47695 * reorg.c (redundant_insn): Check for barriers too.
47697 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
47699 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
47701 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
47703 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
47704 call to $$dyncall when TARGET_LONG_CALLS is true.
47706 2014-01-17 Jeff Law <law@redhat.com>
47708 * ree.c (combine_set_extension): Temporarily disable test for
47709 changing number of hard registers.
47711 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
47713 PR middle-end/58125
47714 * ipa-inline-analysis.c (inline_free_summary):
47715 Do not free summary of aliases.
47717 2014-01-17 Jakub Jelinek <jakub@redhat.com>
47719 PR middle-end/59706
47720 * gimplify.c (gimplify_expr): Use create_tmp_var
47721 instead of create_tmp_var_raw. If cond doesn't have
47722 integral type, don't add the IFN_ANNOTATE builtin at all.
47724 2014-01-17 Martin Jambor <mjambor@suse.cz>
47727 * ipa-cp.c (prev_edge_clone): New variable.
47728 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
47729 Also resize prev_edge_clone vector.
47730 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
47731 (ipcp_edge_removal_hook): New function.
47732 (ipcp_driver): Register ipcp_edge_removal_hook.
47734 2014-01-17 Andrew Pinski <apinski@cavium.com>
47735 Steve Ellcey <sellcey@mips.com>
47738 * config/mips/mips.c (mips_print_operand): Check operand mode instead
47741 2014-01-17 Jeff Law <law@redhat.com>
47743 PR middle-end/57904
47744 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
47745 so that pass_ccp runs first.
47747 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
47749 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
47750 (ix86_adjust_cost): Use !TARGET_XXX.
47751 (do_reorder_for_imul): Likewise.
47752 (swap_top_of_ready_list): Likewise.
47753 (ix86_sched_reorder): Likewise.
47755 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
47757 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
47758 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
47759 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
47760 (intel_memset): New. Duplicate slm_memset.
47761 (intel_cost): New. Duplicate slm_cost.
47762 (m_INTEL): New macro.
47763 (processor_target_table): Add "intel".
47764 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
47765 with PROCESSOR_INTEL for "intel".
47766 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
47767 PROCESSOR_SILVERMONT.
47768 (ix86_issue_rate): Likewise.
47769 (ix86_adjust_cost): Likewise.
47770 (ia32_multipass_dfa_lookahead): Likewise.
47771 (swap_top_of_ready_list): Likewise.
47772 (ix86_sched_reorder): Likewise.
47773 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
47774 instead of TARGET_OPT_AGU.
47775 * config/i386/i386.h (TARGET_INTEL): New.
47776 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
47777 (processor_type): Add PROCESSOR_INTEL.
47778 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
47779 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
47781 2014-01-17 Marek Polacek <polacek@redhat.com>
47784 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
47787 2014-01-17 Richard Biener <rguenther@suse.de>
47789 PR tree-optimization/46590
47790 * opts.c (default_options_table): Add entries for
47791 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
47792 all enabled at -O1 but not for -Og.
47793 * common.opt (fbranch-count-reg): Remove Init(1).
47794 (fmove-loop-invariants): Likewise.
47795 (ftree-pta): Likewise.
47797 2014-01-17 Jakub Jelinek <jakub@redhat.com>
47799 * config/i386/i386.c (ix86_data_alignment): For compatibility with
47800 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
47801 decls to at least the GCC 4.8 used alignments.
47804 * tree-nested.c (convert_nonlocal_reference_stmt,
47805 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
47806 of GIMPLE_BIND stmts, adjust associated decls.
47808 2014-01-17 Richard Biener <rguenther@suse.de>
47810 PR tree-optimization/46590
47811 * vec.h (vec<>::bseach): New member function implementing
47812 binary search according to C89 bsearch.
47813 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
47814 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
47815 bitmap pointer again. Make accesses_in_loop a flat array.
47816 (mem_ref_obstack): New global.
47817 (outermost_indep_loop): Adjust for mem_ref->stored changes.
47818 (mark_ref_stored): Likewise.
47819 (ref_indep_loop_p_2): Likewise.
47820 (set_ref_stored_in_loop): New helper function.
47821 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
47822 (memref_free): Adjust.
47823 (record_mem_ref_loc): Simplify.
47824 (gather_mem_refs_stmt): Adjust.
47825 (sort_locs_in_loop_postorder_cmp): New function.
47826 (analyze_memory_references): Sort accesses_in_loop after
47827 loop postorder number.
47828 (find_ref_loc_in_loop_cmp): New function.
47829 (for_all_locs_in_loop): Find relevant cluster of locs in
47830 accesses_in_loop and iterate without recursion.
47831 (execute_sm): Avoid uninit warning.
47832 (struct ref_always_accessed): Simplify.
47833 (ref_always_accessed::operator ()): Likewise.
47834 (ref_always_accessed_p): Likewise.
47835 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
47836 loop postorder numbers here.
47837 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
47840 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
47843 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
47844 on decls for which assemble_alias has been called.
47846 2014-01-17 Nick Clifton <nickc@redhat.com>
47848 * config/msp430/msp430.opt: (mcpu): New option.
47849 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
47850 (msp430_option_override): Parse target_cpu. If the MCU name
47851 matches a generic string, clear target_mcu.
47852 (msp430_attr): Allow numeric interrupt values up to 63.
47853 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
47854 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
47856 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
47858 * config/msp430/msp430.md (popm): Use %J rather than %I.
47859 (addsi3): Use msp430_nonimmediate_operand for operand 2.
47860 (addhi_cy_i): Use immediate_operand for operand 2.
47861 * doc/invoke.texi: Document -mcpu option.
47863 2014-01-17 Richard Biener <rguenther@suse.de>
47865 PR rtl-optimization/38518
47866 * df.h (df_analyze_loop): Declare.
47867 * df-core.c: Include cfgloop.h.
47868 (df_analyze_1): Split out main part of df_analyze.
47869 (df_analyze): Adjust.
47870 (loop_inverted_post_order_compute): New function.
47871 (loop_post_order_compute): Likewise.
47872 (df_analyze_loop): New function avoiding whole-function
47873 postorder computes.
47874 * loop-invariant.c (find_defs): Use df_analyze_loop.
47875 (find_invariants): Adjust.
47876 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
47878 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
47880 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
47881 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
47883 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
47885 * ipa-ref.c (ipa_remove_stmt_references): Fix references
47886 traversal when removing references.
47888 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
47891 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
47893 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
47895 PR middle-end/56791
47896 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
47897 pushing a reload for an autoinc when we had previously reloaded an
47898 inner part of the address.
47900 2014-01-16 Jakub Jelinek <jakub@redhat.com>
47902 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
47904 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
47905 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
47906 when not giving up or versioning for alias only because of
47908 (vect_analyze_data_ref_dependences): Set to true.
47909 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
47911 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
47912 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
47915 PR middle-end/58344
47916 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
47919 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
47920 operand 0 predicate for gathers, use a new pseudo as subtarget.
47922 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
47924 PR middle-end/59609
47925 * lra-constraints.c (process_alt_operands): Add printing debug info.
47926 Check absence of input/output reloads for matched operands too.
47928 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
47930 PR rtl-optimization/59835
47931 * ira.c (ira_init_register_move_cost): Increase cost for
47934 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
47936 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
47938 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
47941 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
47942 non-register objects. Use gen_(high/low)part more consistently.
47945 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
47948 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
47949 endian support, remove tests for WORDS_BIG_ENDIAN.
47950 (p8_mfvsrd_3_<mode>): Likewise.
47951 (reload_gpr_from_vsx<mode>): Likewise.
47952 (reload_gpr_from_vsxsf): Likewise.
47953 (p8_mfvsrd_4_disf): Likewise.
47955 2014-01-16 Richard Biener <rguenther@suse.de>
47957 PR rtl-optimization/46590
47958 * lcm.c (compute_antinout_edge): Use postorder iteration.
47959 (compute_laterin): Use inverted postorder iteration.
47961 2014-01-16 Nick Clifton <nickc@redhat.com>
47963 PR middle-end/28865
47964 * varasm.c (output_constant): Return the number of bytes actually
47966 (output_constructor_array_range): Update the field size with the
47967 number of bytes emitted by output_constant.
47968 (output_constructor_regular_field): Likewise. Also do not
47969 complain if the total number of bytes emitted is now greater
47970 than the expected fieldpos.
47971 * output.h (output_constant): Update prototype and descriptive comment.
47973 2014-01-16 Marek Polacek <polacek@redhat.com>
47975 PR middle-end/59827
47976 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
47977 it is error_mark_node.
47979 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
47981 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
47982 VALID_AVX256_REG_OR_OI_MODE.
47984 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
47986 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
47987 current procedure should be profiled.
47989 2014-01-15 Andrew Pinski <apinski@cavium.com>
47991 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
47992 of moving from/to the STACK_REG register class.
47994 2014-01-15 Richard Henderson <rth@redhat.com>
47997 * reginfo.c (global_regs_decl): Globalize.
47998 * rtl.h (global_regs_decl): Declare.
47999 * ira.c (do_reload): Diagnose frame_pointer_needed and it
48000 reserved via global_regs.
48002 2014-01-15 Teresa Johnson <tejohnson@google.com>
48004 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
48006 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
48008 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
48009 and vmulosh rather than call gen_vec_widen_smult_*.
48010 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
48011 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
48012 (vec_widen_smult_even_v16qi): Likewise.
48013 (vec_widen_umult_even_v8hi): Likewise.
48014 (vec_widen_smult_even_v8hi): Likewise.
48015 (vec_widen_umult_odd_v16qi): Likewise.
48016 (vec_widen_smult_odd_v16qi): Likewise.
48017 (vec_widen_umult_odd_v8hi): Likewise.
48018 (vec_widen_smult_odd_v8hi): Likewise.
48019 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
48020 vmuloub rather than call gen_vec_widen_umult_*.
48021 (vec_widen_umult_lo_v16qi): Likewise.
48022 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
48023 vmulosb rather than call gen_vec_widen_smult_*.
48024 (vec_widen_smult_lo_v16qi): Likewise.
48025 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
48026 rather than call gen_vec_widen_umult_*.
48027 (vec_widen_umult_lo_v8hi): Likewise.
48028 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
48029 rather than call gen_vec_widen_smult_*.
48030 (vec_widen_smult_lo_v8hi): Likewise.
48032 2014-01-15 Jeff Law <law@redhat.com>
48034 PR tree-optimization/59747
48035 * ree.c (find_and_remove_re): Properly handle case where a second
48036 eliminated extension requires widening a copy created for elimination
48037 of a prior extension.
48038 (combine_set_extension): Ensure that the number of hard regs needed
48039 for a destination register does not change when we widen it.
48041 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
48043 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
48044 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
48045 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
48046 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
48047 (avr-*-rtems*): Likewise.
48048 (bfin*-rtems*): Likewise.
48049 (moxie-*-rtems*): Likewise.
48050 (h8300-*-rtems*): Likewise.
48051 (i[34567]86-*-rtems*): Likewise.
48052 (lm32-*-rtems*): Likewise.
48053 (m32r-*-rtems*): Likewise.
48054 (m68k-*-rtems*): Likewise.
48055 (microblaze*-*-rtems*): Likewise.
48056 (mips*-*-rtems*): Likewise.
48057 (powerpc-*-rtems*): Likewise.
48058 (sh-*-rtems*): Likewise.
48059 (sparc-*-rtems*): Likewise.
48060 (sparc64-*-rtems*): Likewise.
48061 (v850-*-rtems*): Likewise.
48062 (m32c-*-rtems*): Likewise.
48064 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
48066 PR rtl-optimization/59511
48067 * ira.c (ira_init_register_move_cost): Use memory costs for some
48068 cases of register move cost calculations.
48069 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
48070 instead of BB frequency.
48071 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
48072 * lra-assigns.c (find_hard_regno_for): Ditto.
48074 2014-01-15 Richard Biener <rguenther@suse.de>
48076 PR tree-optimization/59822
48077 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
48078 (vectorizable_load): Use it to hoist defs of uses of invariant
48079 loads out of the loop.
48081 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
48082 Kugan Vivekanandarajah <kuganv@linaro.org>
48085 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
48088 2014-01-15 Richard Biener <rguenther@suse.de>
48090 PR rtl-optimization/59802
48091 * lcm.c (compute_available): Use inverted postorder to seed
48092 the initial worklist.
48094 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
48097 * config/s390/s390.c (s390_preferred_reload_class): Don't return
48098 ADDR_REGS for invalid symrefs in non-PIC code.
48100 2014-01-15 Jakub Jelinek <jakub@redhat.com>
48103 * builtins.c (determine_block_size): Initialize *probable_max_size
48104 even if len_rtx is CONST_INT.
48106 2014-01-14 Andrew Pinski <apinski@cavium.com>
48108 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
48109 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
48110 (cortexa53_tunings): Likewise.
48111 (aarch64_sched_issue_rate): New function.
48112 (TARGET_SCHED_ISSUE_RATE): Define.
48114 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
48116 * ira-costs.c (find_costs_and_classes): Add missed
48117 ira_init_register_move_cost_if_necessary.
48119 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
48122 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
48124 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
48127 * config/i386/i386.c (type_natural_mode): Add a bool parameter
48128 to indicate if type is used for function return value. Warn ABI
48129 change if the vector mode isn't available for function return value.
48130 (ix86_function_arg_advance): Pass false to type_natural_mode.
48131 (ix86_function_arg): Likewise.
48132 (ix86_gimplify_va_arg): Likewise.
48133 (function_arg_32): Don't warn ABI change.
48134 (ix86_function_value): Pass true to type_natural_mode.
48135 (ix86_return_in_memory): Likewise.
48136 (ix86_struct_value_rtx): Removed.
48137 (TARGET_STRUCT_VALUE_RTX): Likewise.
48139 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
48141 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
48142 converting a conditional jump into a conditional return.
48144 2014-01-14 Richard Biener <rguenther@suse.de>
48146 PR tree-optimization/58921
48147 PR tree-optimization/59006
48148 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
48149 hoisting invariant stmts.
48150 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
48151 invariant loads on the preheader edge if possible.
48153 2014-01-14 Joey Ye <joey.ye@arm.com>
48155 * doc/plugin.texi (Building GCC plugins): Update to C++.
48157 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
48159 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
48160 (_mm_rcp28_round_ss): Ditto.
48161 (_mm_rsqrt28_round_sd): Ditto.
48162 (_mm_rsqrt28_round_ss): Ditto.
48163 (_mm_rcp28_sd): Ditto.
48164 (_mm_rcp28_ss): Ditto.
48165 (_mm_rsqrt28_sd): Ditto.
48166 (_mm_rsqrt28_ss): Ditto.
48167 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
48168 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
48169 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
48170 (IX86_BUILTIN_RCP28SD): Ditto.
48171 (IX86_BUILTIN_RCP28SS): Ditto.
48172 (IX86_BUILTIN_RSQRT28SD): Ditto.
48173 (IX86_BUILTIN_RSQRT28SS): Ditto.
48174 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
48175 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
48176 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
48177 (ix86_expand_special_args_builtin): Expand new FTYPE.
48178 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
48179 (srcp14<mode>): Make insn unary.
48180 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
48181 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
48182 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
48183 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
48184 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
48185 Fix rounding: make it SAE only.
48186 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
48188 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
48190 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
48191 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
48192 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
48193 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
48194 (round_saeonly_mask_scalar_operand4): Ditto.
48195 (round_saeonly_mask_scalar_op3): Ditto.
48196 (round_saeonly_mask_scalar_op4): Ditto.
48198 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48200 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
48201 Implement -maltivec=be for vec_insert and vec_extract.
48203 2014-01-10 DJ Delorie <dj@redhat.com>
48205 * config/msp430/msp430.md (call_internal): Don't allow memory
48206 references with SP as the base register.
48207 (call_value_internal): Likewise.
48208 * config/msp430/constraints.md (Yc): New. For memory references
48209 that don't use SP as a base register.
48211 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
48212 "an integer without a # prefix"
48213 * config/msp430/msp430.md (epilogue_helper): Use it.
48215 2014-01-13 Jakub Jelinek <jakub@redhat.com>
48218 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
48219 AVX512F gather builtins.
48220 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
48221 on gather decls with INTEGER_TYPE masktype.
48222 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
48223 directly into the builtin rather than hoisting it before loop.
48225 PR tree-optimization/59387
48226 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
48227 (scev_const_prop): If folded_casts and type has undefined overflow,
48228 use force_gimple_operand instead of force_gimple_operand_gsi and
48229 for each added stmt if it is assign with
48230 arith_code_with_undefined_signed_overflow, call
48231 rewrite_to_defined_overflow.
48232 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
48233 gimple-fold.h instead.
48234 (arith_code_with_undefined_signed_overflow,
48235 rewrite_to_defined_overflow): Moved to ...
48236 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
48237 rewrite_to_defined_overflow): ... here. No longer static.
48238 Include gimplify-me.h.
48239 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
48240 rewrite_to_defined_overflow): New prototypes.
48242 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48244 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
48246 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
48248 * builtins.c (get_object_alignment_2): Minor tweak.
48249 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
48251 2014-01-13 Christian Bruel <christian.bruel@st.com>
48253 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
48254 optimized non constant lengths.
48256 2014-01-13 Jakub Jelinek <jakub@redhat.com>
48259 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
48260 load as __atomic_load_N if possible.
48262 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
48264 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
48266 (rs6000_expand_builtin): Adjust call.
48268 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
48271 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
48272 * config/rs6000/rs6000.c: Include target-globals.h.
48273 (rs6000_set_current_function): Instead of doing target_reinit
48274 unconditionally, use save_target_globals_default_opts and
48275 restore_target_globals.
48277 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
48279 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
48280 (rs6000_expand_builtin): Handle mffs and mtfsf.
48281 (rs6000_init_builtins): Define mffs and mtfsf.
48282 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
48283 (rs6000_mffs): New pattern.
48284 (rs6000_mtfsf): New pattern.
48286 2014-01-11 Bin Cheng <bin.cheng@arm.com>
48288 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
48289 Start narrowing with START. Apply candidate-use pair
48290 and check overall cost in narrowing.
48291 (iv_ca_prune): Pass new argument.
48293 2014-01-10 Jeff Law <law@redhat.com>
48295 PR middle-end/59743
48296 * ree.c (combine_reaching_defs): Ensure the defining statement
48297 occurs before the extension when optimizing extensions with
48298 different source and destination hard registers.
48300 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
48303 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
48304 vtables into the type inheritance graph.
48306 2014-01-10 Jakub Jelinek <jakub@redhat.com>
48308 PR rtl-optimization/59754
48309 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
48310 modes in the REGNO != REGNO case.
48312 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48314 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
48316 2014-01-10 Jakub Jelinek <jakub@redhat.com>
48318 PR tree-optimization/59745
48319 * tree-predcom.c (tree_predictive_commoning_loop): Call
48320 free_affine_expand_cache if giving up because components is NULL.
48322 * target-globals.c (save_target_globals): Allocate < 4KB structs using
48323 GC in payload of target_globals struct instead of allocating them on
48324 the heap and the larger structs separately using GC.
48325 * target-globals.h (struct target_globals): Make regs, hard_regs,
48326 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
48327 of GTY((skip)) and change type to void *.
48328 (reset_target_globals): Cast loads from those fields to corresponding
48331 2014-01-10 Steve Ellcey <sellcey@mips.com>
48334 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
48335 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
48336 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
48338 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
48341 * aarch64-modes.def (CC_Zmode): New flags mode.
48342 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
48343 represents an equality.
48344 (aarch64_get_condition_code): Handle CC_Zmode.
48345 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
48347 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
48349 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
48350 extraction in good case.
48352 2014-01-10 Richard Biener <rguenther@suse.de>
48354 PR tree-optimization/59374
48355 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
48356 checking after SLP discovery. Mark stmts not participating
48357 in any SLP instance properly.
48359 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48361 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
48362 when handling a SET rtx.
48364 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48366 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
48367 (cortex-a57): Likewise.
48368 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
48370 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48372 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
48373 non-iwmmxt builtins.
48375 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
48379 * ipa-devirt.c record_target_from_binfo): Take as argument
48380 stack of binfos and lookup matching one for virtual inheritance.
48381 (possible_polymorphic_call_targets_1): Update.
48383 2014-01-10 Huacai Chen <chenhc@lemote.com>
48385 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
48386 kernel strings for Loongson-2E/2F/3A.
48388 2014-01-10 Jakub Jelinek <jakub@redhat.com>
48390 PR middle-end/59670
48391 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
48392 is_gimple_call before calling gimple_call_internal_p.
48394 2014-01-09 Steve Ellcey <sellcey@mips.com>
48396 * Makefile.in (TREE_FLOW_H): Remove.
48397 (TREE_SSA_H): Add file names from tree-flow.h.
48398 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
48399 * tree.h: Remove tree-flow.h reference.
48400 * hash-table.h: Remove tree-flow.h reference.
48401 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
48402 reference with tree-ssa-loop.h.
48404 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48406 * doc/invoke.texi: Add -maltivec={be,le} options, and document
48407 default element-order behavior for -maltivec.
48408 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
48409 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
48410 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
48411 when targeting big endian, at least for now.
48412 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
48414 2014-01-09 Jakub Jelinek <jakub@redhat.com>
48416 PR middle-end/47735
48417 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
48418 var satisfies use_register_for_decl, just take into account type
48419 alignment, rather than decl alignment.
48421 PR tree-optimization/59622
48422 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
48423 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
48424 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
48425 Don't devirtualize for inplace at all. For targets.length () == 1,
48426 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
48428 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
48430 * config/i386/i386.md (cpu): Remove the unused btver1.
48432 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
48434 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
48436 2014-01-09 Jakub Jelinek <jakub@redhat.com>
48439 * tree-core.h (struct target_globals): New forward declaration.
48440 (struct tree_target_option): Add globals field.
48441 * tree.h (TREE_TARGET_GLOBALS): Define.
48442 (prepare_target_option_nodes_for_pch): New prototype.
48443 * target-globals.h (struct target_globals): Define even if
48444 !SWITCHABLE_TARGET.
48445 * tree.c (prepare_target_option_node_for_pch,
48446 prepare_target_option_nodes_for_pch): New functions.
48447 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
48448 * config/i386/i386.c: Include target-globals.h.
48449 (ix86_set_current_function): Instead of doing target_reinit
48450 unconditionally, use save_target_globals_default_opts and
48451 restore_target_globals.
48453 2014-01-09 Richard Biener <rguenther@suse.de>
48455 PR tree-optimization/59715
48456 * tree-cfg.h (split_critical_edges): Declare.
48457 * tree-cfg.c (split_critical_edges): Export.
48458 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
48460 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
48462 * cfgexpand.c (expand_stack_vars): Optionally disable
48463 asan stack protection.
48464 (expand_used_vars): Likewise.
48465 (partition_stack_vars): Likewise.
48466 * asan.c (asan_emit_stack_protection): Optionally disable
48467 after return stack usage.
48468 (instrument_derefs): Optionally disable memory access instrumentation.
48469 (instrument_builtin_call): Likewise.
48470 (instrument_strlen_call): Likewise.
48471 (asan_protect_global): Optionally disable global variables protection.
48472 * doc/invoke.texi: Added doc for new options.
48473 * params.def: Added new options.
48474 * params.h: Likewise.
48476 2014-01-09 Jakub Jelinek <jakub@redhat.com>
48478 PR rtl-optimization/59724
48479 * ifcvt.c (cond_exec_process_if_block): Don't call
48480 flow_find_head_matching_sequence with 0 longest_match.
48481 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
48482 non-active insns if !stop_after.
48483 (try_head_merge_bb): Revert 2014-01-07 changes.
48485 2014-01-08 Jeff Law <law@redhat.com>
48487 * ree.c (get_sub_rtx): New function, extracted from...
48488 (merge_def_and_ext): Here.
48489 (combine_reaching_defs): Use get_sub_rtx.
48491 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
48493 * cgraph.h (varpool_variable_node): Do not choke on null node.
48495 2014-01-08 Catherine Moore <clm@codesourcery.com>
48497 * config/mips/mips.md (simple_return): Attempt to use JRC
48499 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
48501 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
48503 PR rtl-optimization/59137
48504 * reorg.c (steal_delay_list_from_target): Call update_block for
48506 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
48508 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48510 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
48511 two duplicate entries.
48513 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
48516 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
48518 * config/mips/mips.c (mips_truncated_op_cost): New function.
48519 (mips_rtx_costs): Adjust test for BADDU.
48520 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
48522 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
48524 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
48525 (*baddu_si): ...this new pattern.
48527 2014-01-08 Jakub Jelinek <jakub@redhat.com>
48530 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
48532 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
48534 PR middle-end/57748
48535 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
48537 (expand_expr, expand_normal): Adjust.
48538 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
48539 inner_reference_p. Use inner_reference_p to expand inner references.
48540 (store_expr): Adjust.
48541 * cfgexpand.c (expand_call_stmt): Adjust.
48543 2014-01-08 Rong Xu <xur@google.com>
48545 * gcov-io.c (gcov_var): Move from gcov-io.h.
48546 (gcov_position): Ditto.
48547 (gcov_is_error): Ditto.
48548 (gcov_rewrite): Ditto.
48549 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
48550 only part to libgcc/libgcov.h.
48552 2014-01-08 Marek Polacek <polacek@redhat.com>
48554 PR middle-end/59669
48555 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
48557 2014-01-08 Marek Polacek <polacek@redhat.com>
48560 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
48562 2014-01-08 Jakub Jelinek <jakub@redhat.com>
48564 PR rtl-optimization/59649
48565 * stor-layout.c (get_mode_bounds): For BImode return
48566 0 and STORE_FLAG_VALUE.
48568 2014-01-08 Richard Biener <rguenther@suse.de>
48570 PR middle-end/59630
48571 * gimple.h (is_gimple_builtin_call): Remove.
48572 (gimple_builtin_call_types_compatible_p): New.
48573 (gimple_call_builtin_p): New overload.
48574 * gimple.c (is_gimple_builtin_call): Remove.
48575 (validate_call): Rename to ...
48576 (gimple_builtin_call_types_compatible_p): ... this and export. Also
48577 check return types.
48578 (validate_type): New static function.
48579 (gimple_call_builtin_p): New overload and adjust.
48580 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
48581 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
48582 (gimple_fold_stmt_to_constant_1): Likewise.
48583 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
48585 2014-01-08 Richard Biener <rguenther@suse.de>
48587 PR middle-end/59471
48588 * gimplify.c (gimplify_expr): Gimplify register-register type
48589 VIEW_CONVERT_EXPRs to separate stmts.
48591 2014-01-07 Jeff Law <law@redhat.com>
48593 PR middle-end/53623
48594 * ree.c (combine_set_extension): Handle case where source
48595 and destination registers in an extension insn are different.
48596 (combine_reaching_defs): Allow source and destination registers
48597 in extension to be different under limited circumstances.
48598 (add_removable_extension): Remove restriction that the
48599 source and destination registers in the extension are the same.
48600 (find_and_remove_re): Emit a copy from the extension's
48601 destination to its source after the defining insn if
48602 the source and destination registers are different.
48604 PR middle-end/59285
48605 * ifcvt.c (merge_if_block): If we are merging a block with more than
48606 one successor with a block with no successors, remove any BARRIER
48607 after the second block.
48609 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
48611 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
48613 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
48616 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
48617 for 14-bit register offsets when INT14_OK_STRICT is false.
48619 2014-01-07 Roland Stigge <stigge@antcom.de>
48620 Michael Meissner <meissner@linux.vnet.ibm.com>
48623 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
48624 Only check TFmode for SPE constants. Don't check TImode or TDmode.
48626 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
48628 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
48631 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
48633 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
48634 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
48635 rtx is const0_rtx or not.
48637 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
48640 * target-globals.c (save_target_globals): Remove this_fn_optab
48642 * toplev.c: Include optabs.h.
48643 (target_reinit): Temporarily restore the global options if another
48644 set of options are in force.
48646 2014-01-07 Jakub Jelinek <jakub@redhat.com>
48648 PR rtl-optimization/58668
48649 * cfgcleanup.c (flow_find_cross_jump): Don't count
48650 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
48651 to determine what is counted.
48652 (flow_find_head_matching_sequence): Use active_insn_p to determine
48654 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
48656 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
48657 determine what is counted.
48659 PR tree-optimization/59643
48660 * tree-predcom.c (split_data_refs_to_components): If one dr is
48661 read and one write, determine_offset fails and the write isn't
48662 in the bad component, just put the read into the bad component.
48664 2014-01-07 Mike Stump <mikestump@comcast.net>
48665 Jakub Jelinek <jakub@redhat.com>
48668 * tree-core.h (struct tree_optimization_option): Change optabs
48669 type from unsigned char * to void *.
48670 * optabs.c (init_tree_optimization_optabs): Adjust
48671 TREE_OPTIMIZATION_OPTABS initialization.
48673 2014-01-06 Jakub Jelinek <jakub@redhat.com>
48676 * config/i386/i386.h (struct machine_function): Add
48677 no_drap_save_restore field.
48678 * config/i386/i386.c (ix86_save_reg): Use
48679 !cfun->machine->no_drap_save_restore instead of
48680 crtl->stack_realign_needed.
48681 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
48682 this function clears frame_pointer_needed. Set
48683 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
48684 and DRAP reg is needed.
48686 2014-01-06 Marek Polacek <polacek@redhat.com>
48689 * doc/implement-c.texi: Mention that other integer types are
48690 permitted as bit-field types in strictly conforming mode.
48692 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
48694 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
48695 is newly allocated.
48697 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
48699 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
48701 2014-01-06 Martin Jambor <mjambor@suse.cz>
48704 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
48706 * ipa-prop.c (ipa_print_node_params): Fix indentation.
48708 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
48712 * var-tracking.c (add_stores): Preserve the value of the source even if
48713 we don't record the store.
48715 2014-01-06 Terry Guo <terry.guo@arm.com>
48717 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
48719 2014-01-05 Iain Sandoe <iain@codesourcery.com>
48722 * config/darwin.c (darwin_function_section): Adjust return values to
48723 correspond to optimisation changes made in r206070.
48725 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
48727 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
48728 from prefetch_block tune setting.
48729 (nocona_cost): Correct size of prefetch block to 64.
48731 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
48733 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
48734 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
48735 used to save the static chain register in the computation of the offset
48736 from which the FP registers need to be restored.
48738 2014-01-04 Jakub Jelinek <jakub@redhat.com>
48740 PR tree-optimization/59519
48741 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
48742 ICE if get_current_def (current_new_name) is already non-NULL, as long
48743 as it is a phi result of some other phi in *new_exit_bb that has
48746 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
48747 or vmovdqu* for misaligned_operand.
48748 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
48749 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
48750 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
48751 aligned_mem for AVX512F masked aligned load and store builtins and for
48752 non-temporal moves.
48754 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
48756 PR tree-optimization/59651
48757 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
48758 Address range for negative step should be added by TYPE_SIZE_UNIT.
48760 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
48762 * config/m68k/m68k.c (handle_move_double): Handle pushes with
48763 overlapping registers also for registers other than the stack pointer.
48765 2014-01-03 Marek Polacek <polacek@redhat.com>
48768 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
48771 2014-01-03 Jakub Jelinek <jakub@redhat.com>
48774 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
48777 * config/i386/i386.md (MODE_SIZE): New mode attribute.
48778 (push splitter): Use <P:MODE_SIZE> instead of
48779 GET_MODE_SIZE (<P:MODE>mode).
48780 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
48781 (mov -1, reg peephole2): Likewise.
48782 * config/i386/sse.md (*mov<mode>_internal,
48783 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
48784 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
48785 *<code><mode>3, *andnot<mode>3<mask_name>,
48786 <mask_codefor><code><mode>3<mask_name>): Likewise.
48787 * config/i386/subst.md (mask_mode512bit_condition,
48788 sd_mask_mode512bit_condition): Likewise.
48790 2014-01-02 Xinliang David Li <davidxl@google.com>
48792 PR tree-optimization/59303
48793 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
48794 (dump_predicates): Better output format.
48795 (pred_equal_p): New function.
48796 (is_neq_relop_p): Ditto.
48797 (is_neq_zero_form_p): Ditto.
48798 (pred_expr_equal_p): Ditto.
48799 (pred_neg_p): Ditto.
48800 (simplify_pred): Ditto.
48801 (simplify_preds_2): Ditto.
48802 (simplify_preds_3): Ditto.
48803 (simplify_preds_4): Ditto.
48804 (simplify_preds): Ditto.
48805 (push_pred): Ditto.
48806 (push_to_worklist): Ditto.
48807 (get_pred_info_from_cmp): Ditto.
48808 (is_degenerated_phi): Ditto.
48809 (normalize_one_pred_1): Ditto.
48810 (normalize_one_pred): Ditto.
48811 (normalize_one_pred_chain): Ditto.
48812 (normalize_preds): Ditto.
48813 (normalize_cond_1): Remove function.
48814 (normalize_cond): Ditto.
48815 (is_gcond_subset_of): Ditto.
48816 (is_subset_of_any): Ditto.
48817 (is_or_set_subset_of): Ditto.
48818 (is_and_set_subset_of): Ditto.
48819 (is_norm_cond_subset_of): Ditto.
48820 (pred_chain_length_cmp): Ditto.
48821 (convert_control_dep_chain_into_preds): Type change.
48822 (find_predicates): Ditto.
48823 (find_def_preds): Ditto.
48824 (destroy_predicates_vecs): Ditto.
48825 (find_matching_predicates_in_rest_chains): Ditto.
48826 (use_pred_not_overlap_with_undef_path_pred): Ditto.
48827 (is_pred_expr_subset): Ditto.
48828 (is_pred_chain_subset_of): Ditto.
48829 (is_included_in): Ditto.
48830 (is_superset_of): Ditto.
48832 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
48834 Update copyright years.
48836 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
48838 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
48839 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
48840 config/arc/arc.md, config/arc/arc.opt,
48841 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
48842 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
48843 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
48844 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
48845 config/linux-protos.h, config/linux.c, config/winnt-c.c,
48846 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
48847 vtable-verify.c, vtable-verify.h: Use the standard form for the
48850 2014-01-02 Tobias Burnus <burnus@net-b.de>
48852 * gcc.c (process_command): Update copyright notice dates.
48853 * gcov-dump.c: Ditto.
48855 * doc/cpp.texi: Bump @copying's copyright year.
48856 * doc/cppinternals.texi: Ditto.
48857 * doc/gcc.texi: Ditto.
48858 * doc/gccint.texi: Ditto.
48859 * doc/gcov.texi: Ditto.
48860 * doc/install.texi: Ditto.
48861 * doc/invoke.texi: Ditto.
48863 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
48865 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
48867 2014-01-01 Jakub Jelinek <jakub@redhat.com>
48869 * config/i386/sse.md (*mov<mode>_internal): Guard
48870 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
48872 PR rtl-optimization/59647
48873 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
48874 new_rtx into UNSIGNED_FLOAT rtxes.
48876 Copyright (C) 2014 Free Software Foundation, Inc.
48878 Copying and distribution of this file, with or without modification,
48879 are permitted in any medium without royalty provided the copyright
48880 notice and this notice are preserved.