1 2014-12-18 Wilco Dijkstra <wilco.dijkstra@arm.com>
3 * gcc/config/aarch64/aarch64.c (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL):
5 (aarch64_min_divisions_for_recip_mul): New function.
7 2014-12-18 Wilco Dijkstra <wilco.dijkstra@arm.com>
9 * config/aarch64/aarch64-protos.h (tune-params): Add code alignment
11 * gcc/config/aarch64/aarch64.c (generic_tunings): Add code alignment
13 (cortexa53_tunings): Likewise.
14 (cortexa57_tunings): Likewise.
15 (thunderx_tunings): Likewise.
16 (aarch64_override_options): Use new alignment tunings.
18 2014-12-18 Martin Liska <mliska@suse.cz>
20 PR tree-optimization/64330
21 * ipa-icf.c (sem_variable::parse): Add checking
22 for externally visible symbols and do not introduce
23 an alias for an external declaration.
25 2014-12-18 Jan Hubicka <hubicka@ucw.cz>
28 * tree-inline.c (remap_gimple_stmt): Handle gimple_call_from_thunk_p
31 2014-12-18 Martin Liska <mliska@suse.cz>
34 * ipa-icf.c (sem_function::merge): Check for
35 decl_binds_to_current_def_p is newly added to merge operation.
37 2014-12-18 Bin Cheng <bin.cheng@arm.com>
39 PR tree-optimization/62178
40 * tree-ssa-loop-ivopts.c (cheaper_cost_with_cand): New function.
41 (iv_ca_replace): New function.
42 (try_improve_iv_set): New parameter try_replace_p.
43 Break local optimal fixed-point by calling iv_ca_replace.
44 (find_optimal_iv_set_1): Pass new argument to try_improve_iv_set.
46 2014-12-17 Dehao Chen <dehao@google.com>
48 * auto-profile.c (afdo_annotate_cfg): Invoke update_ssa in the right
50 (auto_profile): Recompute inline summary after processing cgraph node.
52 2014-12-17 Oleg Endo <olegendo@gcc.gnu.org>
55 * config/sh/sh_treg_combine.cc (is_conditional_insn): New function.
56 (cbranch_trace): Add member rtx* condition_rtx_in_insn, initialize it
57 accordingly in constructor.
58 (cbranch_trace::branch_condition_rtx_ref): New function.
59 (cbranch_trace::branch_condition_rtx): Use branch_condition_rtx_ref.
60 (sh_treg_combine::try_invert_branch_condition): Invert condition rtx
61 in insn using reversed_comparison_code and validate_change instead of
63 (sh_treg_combine::execute): Look for conditional insns in basic blocks
64 in addition to conditional branches.
65 * config/sh/sh.md (*movsicc_div0s): Remove combine patterns.
67 2014-12-17 Oleg Endo <olegendo@gcc.gnu.org>
70 * config/sh/sh_treg_combine.cc (sh_treg_combine::try_optimize_cbranch):
71 Combine ccreg inversion and cbranch into inverted cbranch.
73 2014-12-17 Vladimir Makarov <vmakarov@redhat.com>
75 * lra-constraints.c (process_alt_operands): Remove non
76 allocatable hard regs when considering
77 ira_prohibited_class_mode_regs.
79 2014-12-17 Jan Hubicka <hubicka@ucw.cz>
81 * sreal.h (sreal::normalize): Implement inline.
82 (sreal::normalize_up): New function.
83 (sreal::normalize_down): New function.
84 * sreal.c (sreal::normalize): Remove.
86 2014-12-17 James Greenhalgh <james.greenhalgh@arm.com>
88 * config/aarch64/aarch64.md (generic_sched): Delete it.
90 2014-12-17 Jan-Benedict Glaw <jbglaw@lug-owl.de>
92 * config/msp430/msp430.c (msp430_asm_output_addr_const_extra): Fix
93 unused argument warning.
95 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
97 * dwarf2out.h (struct array_descr_info): Remove the base_decl field.
98 * dwarf2out.c (enum dw_scalar_form): New.
99 (struct loc_descr_context): New.
100 (add_scalar_info): New.
101 (add_bound_info): Add a context parameter. Use add_scalar_info.
102 (loc_list_from_tree): Add a context parameter. Handle PLACEHOLDER_EXPR
103 nodes for type-related expressions. Likewise for base declarations.
104 (loc_descriptor_from_tree): Add a context parameter.
105 (subrange_type_die): Update calls to add_bound_info.
106 (tls_mem_loc_descriptor): Likewise.
107 (loc_list_for_address_of_addr_expr_of_indirect_ref): Add a context
108 parameter. Update calls to loc_list_from_tree.
109 (add_subscript_info): Update calls to add_bound_info.
110 (gen_array_type_die): Update calls to loc_list_from_tree and to
112 (descr_info_loc): Remove.
113 (add_descr_info_field): Remove.
114 (gen_descr_array_type_die): Switch add_descr_info_field calls into
115 add_scalar_info/add_bound_info ones.
116 (gen_subprogram_die): Update calls to loc_list_from_tree.
117 (gen_variable_die): Likewise.
119 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
121 * dwarf2out.c (print_loc_descr): New.
123 (print_attribute): New.
124 (print_loc_descr): New.
125 (print_die): Use print_dw_val.
126 (debug_dwarf_loc_descr): New.
127 * dwarf2out.h (debug_dwarf_loc_descr): New declaration.
129 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
131 * dwarf2out.c (gen_type_die_with_usage): Enable the array lang-hook
132 even when (dwarf_version < 3 && dwarf_strict).
133 (gen_descr_array_die): Do not output DW_AT_data_locationn,
134 DW_AT_associated, DW_AT_allocated and DW_AT_byte_stride DWARF
135 attributes when (dwarf_version < 3 && dwarf_strict).
137 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
139 * dwarf2out.h (enum array_descr_ordering): New.
140 (array_descr_dimen): Add a bounds_type structure field.
141 (struct array_descr_info): Add a field to hold index type information
142 and another one to hold ordering information.
143 * dwarf2out.c (gen_type_die_with_usage): Get the main variant before
144 invoking the array descriptor language hook. Initialize the
145 array_descr_info structure before calling the lang-hook.
146 (gen_descr_array_type_die): Use gen_type_die if not processing the main
147 type variant. Replace Fortran-specific code with generic one using
148 this new field. Add a GNAT descriptive type, if any. Output type
149 information for the array bound subrange, if any.
151 2014-12-17 H.J. Lu <hongjiu.lu@intel.com>
152 Jakub Jelinek <jakub@redhat.com>
153 Uros Bizjak <ubizjak@gmail.com>
156 * config/i386/i386-opts.h (ix86_align_data): New enum.
157 * config/i386/i386.c (ix86_data_alignment): Return the ABI
158 alignment value for -malign-data=abi, the cachine line size
159 for -malign-data=cacheline and the older GCC compatible
160 alignment value for for -malign-data=compat.
161 * config/i386/i386.opt (malign-data=): New.
162 * doc/invoke.texi: Document -malign-data=.
164 2014-12-17 Marek Polacek <polacek@redhat.com>
167 * match.pd: Add (x & ~m) | (y & m) -> ((x ^ y) & m) ^ x pattern.
169 2014-12-17 Jakub Jelinek <jakub@redhat.com>
171 PR tree-optimization/64322
172 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
173 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
175 2014-12-17 Tobias Burnus <burnus@net-b.de>
178 * flag-types.h (gfc_init_local_real, gfc_fcoarray,
179 gfc_convert): New enums; moved from fortran/.
181 2014-12-16 Jan Hubicka <hubicka@ucw.cz>
183 * fibonacci_heap.h (min): Return m_data instead of non-existing data.
185 2014-12-16 Jan Hubicka <hubicka@ucw.cz>
187 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Consider
188 return values of const calls as constants.
189 (estimate_function_body_sizes): Expect calls to have false predicates.
191 2014-12-16 Jan Hubicka <hubicka@ucw.cz>
193 * hwint.c (abs_hwi, absu_hwi): Move to ...
194 * hwint.h (abs_hwi, absu_hwi): ... here; make inline.
196 2014-12-16 Marek Polacek <polacek@redhat.com>
199 * match.pd: Add ((1 << A) & 1) != 0 -> A == 0 and
200 ((1 << A) & 1) == 0 -> A != 0.
202 2014-12-16 Richard Biener <rguenther@suse.de>
204 * genmatch.c (parser::parser): Initialize capture_ids.
205 (parser::parse_pattern): Properly allocate capture_ids before
206 using them. Set capture_ids to zero when its lifetime is
208 (parser::parse_simplify): Allocate capture_ids only if
211 2014-12-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
213 * sreal.c: Include math.h later.
215 2014-12-16 Felix Yang <felix.yang@huawei.com>
217 PR rtl-optimization/64240
218 * ddg.c (mark_mem_use): Check *iter instead of *x.
220 2014-12-16 Martin Liska <mliska@suse.cz>
223 * sreal.c (sreal::operator*): Replace std::abs with absu_hwi.
225 2014-12-16 Igor Zamyatin <igor.zamyatin@intel.com>
227 * config/i386/i386.c (ix86_address_cost): Add explicit restriction
228 to RTL level for the check for PIC register.
230 2014-12-16 Uros Bizjak <ubizjak@gmail.com>
232 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Move from here ...
233 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): ... and here ...
234 * config/i386/gnu-user-common.h (TARGET_CAN_SPLIT_STACK): ... to here.
236 2014-12-16 Chung-Ju Wu <jasonwucj@gmail.com>
239 * config/nds32/nds32.md (casesi_internal): Add '=r' for clobber
242 2014-12-15 DJ Delorie <dj@redhat.com>
244 * config/rl78/rl78.h: Remove SHORT_IMMEDIATES_SIGN_EXTEND.
246 2014-12-15 Jan Hubicka <hubicka@ucw.cz>
249 * tree-streamer.c (preload_common_nodes): Skip preloading
250 of main_identifier_node, pid_type and optimization/option nodes.
252 2014-12-15 Vladimir Makarov <vmakarov@redhat.com>
254 PR rtl-optimization/63397
255 * ira-int.h (ira_overall_cost, ira_reg_cost, ira_mem_cost): Use
257 (ira_load_cost, ira_store_cost, ira_shuffle_cost): Ditto.
258 * ira.c (ira_overall_cost, ira_overall_cost_before): Ditto.
259 (ira_reg_cost, ira_mem_cost): Ditto.
260 (ira_load_cost, ira_store_cost, ira_shuffle_cost): Ditto.
261 (calculate_allocation_cost, do_reload): Use the right
262 format for int64_t values.
264 2014-12-15 Jan Hubicka <hubicka@ucw.cz>
266 * sreal.h (to_double): New method.
267 (shift): Do not ICE on 0.
268 * sreal.c: Include math.h
269 (sreal::to_double): New.
271 2014-12-15 Jakub Jelinek <jakub@redhat.com>
273 PR rtl-optimization/64316
274 * simplify-rtx.c (simplify_relational_operation_1): For
275 (eq/ne (and x y) x) and (eq/ne (and x y) y) optimizations use
276 CONST0_RTX instead of const0_rtx.
278 2014-12-15 Vladimir Makarov <vmakarov@redhat.com>
281 * ira.c (rtx_moveable_p): Prevent UNSPEC_VOLATILE moves.
283 2014-12-15 Vladimir Makarov <vmakarov@redhat.com>
285 * ira-int.h (ira_prohibited_class_mode_regs): Remove.
286 (struct target_ira_int): Move x_ira_prohibited_class_mode_regs to
288 * ira.h (struct target_ira): ... here.
289 (ira_prohibited_class_mode_regs): Define.
290 * lra-constraints.c (process_alt_operands): Add one more condition
291 to refuse alternative when reload pseudo of given class can not
292 hold value of given mode.
294 2014-12-15 Richard Biener <rguenther@suse.de>
296 PR tree-optimization/64312
297 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Use
298 vuse_ssa_val as callback to walk_non_aliased_vuses.
299 (vn_reference_lookup): Likewise.
301 2014-12-15 Segher Boessenkool <segher@kernel.crashing.org>
303 * gcc/config/rs6000/rs6000.md (*add>mode>3_imm_dot,
304 *add<mode>3_imm_dot2): Change the constraint for the second
305 alternative for operand 1 from "r" to "b".
307 2014-12-15 Richard Biener <rguenther@suse.de>
309 * vec.h (vec::safe_grow): Guard against a grow to zero size.
311 2014-12-15 Richard Biener <rguenther@suse.de>
314 * match.pd (X / CST -> X * (1 / CST): Use const_binop instead of
315 fold_binary to compute the constant to multiply with.
317 2014-12-15 Richard Biener <rguenther@suse.de>
320 * cfgloop.c (mark_loop_for_removal): Make safe against multiple
321 invocations on the same loop.
323 2014-12-15 Marek Polacek <polacek@redhat.com>
326 * fold-const.c (negate_expr_p): Add INTEGRAL_TYPE_P check.
328 2014-12-15 Renlin Li <renlin.li@arm.com>
330 * config/aarch64/aarch64.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
331 (CTZ_DEFINED_VALUE_AT_ZERO): Update to support more modes.
333 2014-12-15 Jakub Jelinek <jakub@redhat.com>
336 * tsan.c (instrument_func_entry): Insert __tsan_func_entry
337 call on edge from entry block to single succ instead
338 of after labels of single succ of entry block.
340 2014-12-15 Richard Biener <rguenther@suse.de>
342 PR tree-optimization/64284
343 * tree-ssa-threadupdate.c (duplicate_seme_region): Mark
344 the loop for removal if we copied the loop header.
346 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
349 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Return bool.
350 * ipa.c (set_writeonly_bit): Track if reference was removed.
351 (ipa_discover_readonly_nonaddressable_vars): Return true if any
352 references was removed.
353 * ipa-reference.c (propagate): Return TODO_remove_functions if
354 reference was removed.
356 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
358 * ipa.c (process_references): Fix conditoinal on flag_optimize
360 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
363 * symtab.c (symbol_table::insert_to_assembler_name_hash
364 symbol_table::unlink_from_assembler_name_hash): Do not ICE when
365 DECL_ASSEMBLER_NAME is NULL.
367 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
369 * cgraphunit.c (analyze_functions): Always analyze targets of aliases.
371 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
374 * tree.c (virtual_method_call_p): Return false when OTR type has
377 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
379 * cgraphunit.c (analyze_functions): Do not analyze extern inline
380 funtions when not optimizing; skip comdat locals.
382 2014-12-14 H.J. Lu <hongjiu.lu@intel.com>
384 PR rtl-optimization/64037
385 * combine.c (setup_incoming_promotions): Pass the argument
386 before any promotions happen to promote_function_mode.
388 2014-12-12 Thomas Schwinge <thomas@codesourcery.com>
390 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGN): Define as a C statment.
392 2014-12-12 Vladimir Makarov <vmakarov@redhat.com>
395 * lra-constraints.c (process_alt_operands): Refuse alternative
396 when reload pseudo of given class can not hold value of given
399 2014-12-12 Thomas Schwinge <thomas@codesourcery.com>
401 * gimple-walk.c (walk_gimple_op) <GIMPLE_OMP_FOR>: Also check
402 intermediate walk_tree results for for_incr.
403 <GIMPLE_OMP_TARGET>: Walk child_fn and data_arg, too.
404 <GIMPLE_OMP_CRITICAL, GIMPLE_OMP_ATOMIC_STORE>: Pretty printing.
406 2014-12-12 Richard Sandiford <richard.sandiford@arm.com>
409 * wide-int.h (wi::div_round, wi::mod_round): Fix rounding of tied
411 * double-int.c (div_and_round_double): Fix handling of unsigned
412 cases. Use same rounding approach as wide-int.h.
414 2014-12-12 Marek Polacek <polacek@redhat.com>
417 * fold-const.c (fold_binary_loc): Add ANY_INTEGRAL_TYPE_P check.
419 2014-12-12 Jakub Jelinek <jakub@redhat.com>
421 PR tree-optimization/64269
422 * tree-ssa-forwprop.c (simplify_builtin_call): Bail out if
423 len2 or diff are too large.
425 2014-12-12 Richard Biener <rguenther@suse.de>
428 * tree-cfg.c (replace_uses_by): Guard assert properly.
430 2014-12-12 Anthony Green <green@moxielogic.com>
432 * config/moxie/moxie.md: Add use of zex instruction.
434 2014-12-12 Marc Glisse <marc.glisse@inria.fr>
436 * real.h (HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
437 HONOR_SIGN_DEPENDENT_ROUNDING): Replace macros with 3 overloaded
439 * real.c (HONOR_NANS): Fix indentation.
440 (HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
441 HONOR_SIGN_DEPENDENT_ROUNDING): Define three overloads.
442 * builtins.c (fold_builtin_cproj, fold_builtin_signbit,
443 fold_builtin_fmin_fmax, fold_builtin_classify): Simplify argument
445 * fold-const.c (operand_equal_p, fold_comparison, fold_binary_loc):
447 * gimple-fold.c (gimple_val_nonnegative_real_p): Likewise.
448 * ifcvt.c (noce_try_move, noce_try_minmax, noce_try_abs): Likewise.
449 * omp-low.c (omp_reduction_init): Likewise.
450 * rtlanal.c (may_trap_p_1): Likewise.
451 * simplify-rtx.c (simplify_const_relational_operation): Likewise.
452 * tree-ssa-dom.c (record_equality, record_edge_info): Likewise.
453 * tree-ssa-phiopt.c (value_replacement, abs_replacement): Likewise.
454 * tree-ssa-reassoc.c (eliminate_using_constants): Likewise.
455 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
457 2014-12-12 Jan Hubicka <hubicka@ucw.cz>
459 * ipa-inline.c (ipa_inline): Fix condition on when
460 TODO_remove_unreachable_functions is needed.
462 2014-12-12 Jan Hubicka <hubicka@ucw.cz>
464 * ipa-devirt.c (possible_polymorphic_call_targets): Return early
465 if otr_type has no BINFO.
467 2014-12-12 Zhenqiang Chen <zhenqiang.chen@arm.com>
469 PR rtl-optimization/63917
470 * ifcvt.c (cc_in_cond): New function.
471 (end_ifcvt_sequence): Make sure new generated insns do not clobber CC.
472 (noce_process_if_block, check_cond_move_block): Check CC references.
474 2014-12-11 Andrew Pinski <apinski@cavium.com>
476 * config/aarch64/aarch64-protos.h (tune_params): Add align field.
477 * config/aarch64/aarch64.c (generic_tunings): Specify align.
478 (cortexa53_tunings): Likewise.
479 (cortexa57_tunings): Likewise.
480 (thunderx_tunings): Likewise.
481 (aarch64_override_options): Set align_loops, align_jumps,
482 align_functions based on what the tuning struct.
484 2014-12-11 Eric Botcazou <ebotcazou@adacore.com>
486 * doc/md.texi (Insn Lengths): Fix description of (pc).
488 2014-12-11 Jan Hubicka <hubicka@ucw.cz>
491 * passes.c (execute_todo): Update call of remove_unreachable_nodes.
492 * ipa-chkp.c (chkp_produce_thunks): Use TODO_remove_functions.
493 * cgraphunit.c (symbol_table::process_new_functions): Add
494 IPA_SSA_AFTER_INLINING.
495 (ipa_passes): Update call of remove_unreachable_nodes.
496 (symbol_table::compile): Remove call of remove_unreachable_nodes.
497 * ipa-inline.c (inline_small_functions): Do not ICE with
499 (ipa_inline): Update symtab->state; fix formatting
500 update call of remove_unreachable_nodes.
501 * passes.c (execute_todo): Update call of remove_unreachable_nodes.
502 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
503 * cgraph.h (enum symtab_state): Add IPA_SSA_AFTER_INLINING.
504 (remove_unreachable_nodes): Update.
505 * ipa.c (process_references): Keep external references only
507 (walk_polymorphic_call_targets): Keep possible polymorphic call
508 target only when devirtualizing.
509 (symbol_table::remove_unreachable_nodes): Remove BEFORE_INLINING_P
511 (ipa_single_use): Update comment.
512 * ipa-pure-const.c (cdtor_p): New function.
513 (propagate_pure_const): Track if some cdtor was turned pure/const.
514 (execute): Return TODO_remove_functions if needed.
515 * ipa-comdats.c (ipa_comdats): Update comment.
517 2014-12-11 Aldy Hernandez <aldyh@redhat.com>
519 * dwarf2out.c (gen_lexical_block_die): Remove unused `depth'
521 (gen_inlined_subroutine_die): Same.
522 (gen_block_die): Same.
523 (decls_for_scope): Same.
525 2014-12-11 Renlin Li <renlin.li@arm.com>
527 * config/aarch64/aarch64-cores.def: Change all AARCH64_FL_FPSIMD to
528 AARCH64_FL_FOR_ARCH8.
529 * config/aarch64/aarch64.c (all_cores): Use FLAGS from
530 aarch64-cores.def file only.
532 2014-12-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
535 * diagnostic.c (diagnostic_action_after_output): Make it extern.
536 Take diagnostic_t argument instead of diagnostic_info. Count also
537 DK_WERROR towards max_errors.
538 (diagnostic_report_diagnostic): Update call according to the above.
539 (error_recursion): Likewise.
540 * diagnostic.h (diagnostic_action_after_output): Declare.
541 * pretty-print.c (pp_formatted_text_data): Delete.
542 (pp_append_r): Call output_buffer_append_r.
543 (pp_formatted_text): Call output_buffer_formatted_text.
544 (pp_last_position_in_text): Call output_buffer_last_position_in_text.
545 * pretty-print.h (output_buffer_formatted_text): New.
546 (output_buffer_append_r): New.
547 (output_buffer_last_position_in_text): New.
549 2014-12-11 Kyrylo Tkachov kyrylo.tkachov@arm.com
551 * config/aarch64/aarch64.c (aarch64_parse_extension): Update error
552 message to say +no only when removing extension.
554 2014-12-11 Andrew MacLeod <amacleod@redhat.com>
556 * config/tilepro/gen-mul-tables.cc: Add insn-codes.h to include list
557 for generator file. Add comment indicating it is a generated file.
558 * config/tilepro/mul-tables.c: Update generated file.
559 * config/tilegx/mul-tables.c: Likewise.
561 2014-12-11 Segher Boessenkool <segher@kernel.crashing.org>
563 * combine.c (try_combine): Do not allow combining a PARALLEL I2
564 with a register move I3 if that I2 is an asm.
566 2014-12-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
568 * config/arm/arm_neon.h (vrndqn_f32): Rename to...
569 (vrndnq_f32): ... this.
570 (vrndqa_f32): Rename to...
571 (vrndaq_f32): ... this.
572 (vrndqp_f32): Rename to...
573 (vrndpq_f32): ... this.
574 (vrndqm_f32): Rename to...
575 (vrndmq_f32): ... this.
576 (vrndx_f32): New intrinsic.
577 (vrndxq_f32): Likewise.
579 2014-12-11 Marek Polacek <polacek@redhat.com>
581 * fold-const.c (fold_negate_expr): Add ANY_INTEGRAL_TYPE_P check.
582 (extract_muldiv_1): Likewise.
583 (maybe_canonicalize_comparison_1): Likewise.
584 (fold_comparison): Likewise.
585 (tree_binary_nonnegative_warnv_p): Likewise.
586 (tree_binary_nonzero_warnv_p): Likewise.
587 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Likewise.
588 * tree-scalar-evolution.c (simple_iv): Likewise.
589 (scev_const_prop): Likewise.
590 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
591 * tree-vect-generic.c (expand_vector_operation): Likewise.
592 * tree.h (ANY_INTEGRAL_TYPE_CHECK): Define.
593 (ANY_INTEGRAL_TYPE_P): Define.
594 (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED, TYPE_OVERFLOW_TRAPS):
595 Add ANY_INTEGRAL_TYPE_CHECK.
596 (any_integral_type_check): New function.
598 2014-12-11 Tobias Burnus <burnus@net-b.de>
599 Manuel López-Ibáñez <manu@gcc.gnu.org>
601 * error.c (gfc_get_terminal_width): Renamed from
602 get_terminal_width and use same-named common function.
603 (gfc_error_init_1): Update call.
605 2014-12-10 Aldy Hernandez <aldyh@redhat.com>
607 * gdbhooks.py (class DWDieRefPrinter): New class.
608 (build_pretty_printer): Register dw_die_ref's.
610 2014-12-10 Ilya Tocar <ilya.tocar@intel.com>
612 * config.gcc: Support "knl".
613 * config/i386/driver-i386.c (host_detect_local_cpu): Detect "knl".
614 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
616 * config/i386/i386.c (m_KNL): Define.
617 (processor_target_table): Add "knl".
619 (ix86_issue_rate): Add PROCESSOR_KNL.
620 (ix86_adjust_cost): Ditto.
621 (ia32_multipass_dfa_lookahead): Ditto.
622 (get_builtin_code_for_version): Handle "knl".
623 (fold_builtin_cpu): Ditto.
624 * config/i386/i386.h (TARGET_KNL): Define.
625 (processor_type): Add PROCESSOR_KNL.
626 * config/i386/i386.md (attr "cpu"): Add knl.
627 * config/i386/x86-tune.def: Add m_KNL.
629 2014-12-10 Jan Hubicka <hubicka@ucw.cz>
631 * doc/invoke.texi: (-devirtualize-at-ltrans): Document.
632 * lto-cgraph.c (lto_output_varpool_node): Mark initializer as removed
633 when it is not streamed to the given ltrans.
634 (compute_ltrans_boundary): Make code adding all polymorphic
635 call targets conditional with !flag_wpa || flag_ltrans_devirtualize.
636 * common.opt (fdevirtualize-at-ltrans): New flag.
638 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
640 * varpool.c (varpool_node::get_create): Force output of vars with
641 "omp declare target" attribute.
643 2014-12-10 Marc Glisse <marc.glisse@inria.fr>
645 * real.h (HONOR_NANS): Replace macro with 3 overloaded declarations.
646 * real.c: Include rtl.h and options.h.
647 (HONOR_NANS): Define three overloads.
648 * builtins.c (fold_builtin_classify, fold_builtin_unordered_cmp):
649 Simplify argument of HONOR_NANS.
650 * fold-const.c (combine_comparisons, fold_truth_not_expr,
651 fold_cond_expr_with_comparison, merge_truthop_with_opposite_arm,
652 fold_comparison, fold_binary_loc): Likewise.
653 * ifcvt.c (noce_try_move, noce_try_minmax): Likewise.
654 * ipa-inline-analysis.c (add_clause,
655 set_cond_stmt_execution_predicate): Likewise.
656 * match.pd: Likewise.
657 * rtlanal.c (may_trap_p_1): Likewise.
658 * simplify-rtx.c (simplify_const_relational_operation): Likewise.
659 * tree-if-conv.c (parse_predicate): Likewise.
660 * tree-ssa-ccp.c (valid_lattice_transition): Likewise.
661 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
662 * tree-ssa-phiopt.c (minmax_replacement, neg_replacement): Likewise.
663 * tree-ssa-reassoc.c (eliminate_using_constants): Likewise.
664 * tree-ssa-tail-merge.c (gimple_equal_p): Likewise.
666 2014-12-10 Jakub Jelinek <jakub@redhat.com>
668 PR tree-optimization/62021
669 * omp-low.c (simd_clone_adjust_return_type): Use
670 vector of pointer_sized_int_node types instead vector of pointer
672 (simd_clone_adjust_argument_types): Likewise.
674 2014-12-10 Jakub Jelinek <jakub@redhat.com>
675 Evgeny Stupachenko <evstupac@gmail.com>
678 * config/i386/i386.c (expand_vec_perm_pblendv): If not testing_p,
679 set dcopy.target to a new pseudo.
681 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
683 * config/rs6000/rs6000.md (*add<mode>3): Remove condition.
685 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
687 * config/rs6000/40x.md (ppc403-compare): Remove "compare".
688 config/rs6000/440.md (ppc440-compare): Remove "compare".
689 config/rs6000/476.md (ppc476-compare): Remove "compare".
690 config/rs6000/601.md (ppc601-compare): Remove "compare".
691 config/rs6000/603.md (ppc603-compare): Remove "compare".
692 config/rs6000/6xx.md (ppc604-compare): Remove "compare".
693 config/rs6000/7450.md (ppc7450-compare): Remove "compare".
694 config/rs6000/7xx.md (ppc750-compare): Remove "compare".
695 config/rs6000/8540.md (ppc8540_su): Remove "compare".
696 config/rs6000/cell.md (cell-fast-cmp, cell-cmp-microcoded): Remove
698 config/rs6000/e300c2c3.md (ppce300c3_cmp): Remove "compare".
699 config/rs6000/e500mc.md (e500mc_su): Remove "compare".
700 config/rs6000/e500mc64.md (e500mc64_su2): Remove "compare".
701 config/rs6000/e5500.md (e5500_sfx2): Remove "compare".
702 config/rs6000/e6500.md (e6500_sfx2): Remove "compare".
703 config/rs6000/mpc.md (mpccore-compare): Remove "compare".
704 config/rs6000/power4.md (power4-compare): Remove "compare".
705 config/rs6000/power5.md (power5-compare): Remove "compare".
706 config/rs6000/power6.md (power6-compare): Remove "compare".
707 config/rs6000/power7.md (power7-compare): Remove "compare".
708 config/rs6000/power8.md (power8-compare): Remove "compare". Update
710 config/rs6000/rs6000.c (rs6000_adjust_cost) <TYPE_COMPARE>: Remove
712 (is_cracked_insn): Remove TYPE_COMPARE case.
713 (insn_must_be_first_in_group) <TYPE_COMPARE>: Remove (twice).
714 config/rs6000/rs6000.md (type): Remove "compare".
715 (cell_micro): Remove "compare".
716 config/rs6000/rs64.md (rs64a-compare): Remove "compare".
718 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
720 * config/rs6000/rs6000.md (*anddi3_2rld_dot, *anddi3_rld_dot2):
721 Change type from "compare" to "two".
723 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
726 * config/rs6000/predicates.md (unsigned_comparison_operator): New.
727 (signed_comparison_operator): New.
728 * config/rs6000/rs6000-protos.h (rs6000_emit_eqne): Declare.
729 * config/rs6000/rs6000.c (rs6000_emit_eqne): New function.
730 (rs6000_emit_sCOND): Remove ISEL test (move it to the expander).
731 * config/rs6000/rs6000.md (add<mode>3 for SDI): Expand DImode
732 add to addc,adde directly, if !TARGET_POWERPC64.
733 (sub<mode>3 for SDI): Expand DImode sub to subfc,subfe directly,
734 if !TARGET_POWERPC64.
735 (neg<mode>2): Delete expander.
736 (*neg<mode>2): Rename to "neg<mode>2".
737 (addti3, subti3): Delete.
738 (addti3, subti3): New expanders.
739 (*adddi3_noppc64, *subdi3_noppc64, *negdi2_noppc64): Delete.
740 (cstore<mode>4_unsigned): New expander.
741 (cstore<mode>4): Allow GPR as output (not just SI). Rewrite.
742 (cstore<mode>4 for FP): Remove superfluous quotes.
743 (*eq<mode>, *eq<mode>_compare, *plus_eqsi and splitter,
744 *compare_plus_eqsi and splitter, *plus_eqsi_compare and splitter,
745 *neg_eq0<mode>, *neg_eq<mode>, *ne0_<mode>, plus_ne0_<mode>,
746 compare_plus_ne0_<mode> and splitter, *compare_plus_ne0_<mode>_1 and
747 splitter, *plus_ne0_<mode>_compare and splitter, *leu<mode>,
748 *leu<mode>_compare and splitter, *plus_leu<mode>, *neg_leu<mode>,
749 *and_neg_leu<mode>, *ltu<mode>, *ltu<mode>_compare, *plus_ltu<mode>,
750 *plus_ltu<mode>_1, *plus_ltu<mode>compare, *neg_ltu<mode>, *geu<mode>,
751 *geu<mode>_compare and splitter, *plus_geu<mode>, *neg_geu<mode>,
752 *and_neg_geu<mode>, *plus_gt0<mode>, *gtu<mode>, *gtu<mode>_compare,
753 *plus_gtu<mode>, *plus_gtu<mode>_1, *plus_gtu<mode>_compare,
754 *neg_gtu<mode>, 12 anonymous insns, and 12 anonymous splitters):
756 (eq<mode>3, ne<mode>3): New.
757 (*neg_eq_<mode>, *neg_ne_<mode>): New.
758 (*plus_eq_<mode>, *plus_ne_<mode>): New.
759 (*minus_eq_<mode>, *minus_ne_<mode>): New.
761 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
764 * config/rs6000/predicates.md (adde_operand): New.
765 * config/rs6000/rs6000.md (add<mode>3_carry): New.
766 (*add<mode>3_imm_carry_pos): New.
767 (*add<mode>3_imm_carry_0): New.
768 (*add<mode>3_imm_carry_m1): New.
769 (*add<mode>3_imm_carry_neg): New.
770 (add<mode>3_carry_in): New.
771 (*add<mode>3_carry_in_internal): New.
772 (add<mode>3_carry_in_0): New.
773 (add<mode>3_carry_in_m1): New.
774 (subf<mode>3_carry): New.
775 (*subf<mode>3_imm_carry_0): New.
776 (*subf<mode>3_imm_carry_m1): New.
777 (subf<mode>3_carry_in): New.
778 (*subf<mode>3_carry_in_internal): New.
779 (subf<mode>3_carry_in_0): New.
780 (subf<mode>3_carry_in_m1): New.
781 (subf<mode>3_carry_in_xx): New.
783 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
786 * config/rs6000/rs6000.md (*add<mode>3_internal1): Rename to
788 (*add<mode>3_internal2, *add<mode>3_internal3, and (their splitters):
790 (*add<mode>3_dot, *add<mode>3_dot2): New.
791 (*add<mode>3_imm_dot, *add<mode>3_imm_dot2): New.
793 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
796 * config/rs6000/rs6000.md (*add<mode>3_internal1): Remove addic
799 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
802 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
803 *ctr<mode>_internal5, *ctr<mode>_internal6): Change "r" alternatives
804 to "b". Increase length.
805 (splitters for these): Split to cmp+addi instead of addic.
807 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
810 * config/rs6000/darwin.md (macho_low_si): Remove "r" alternative.
811 (macho_low_di): Ditto.
812 * config/rs6000/rs6000.md (*largetoc_low): Ditto.
813 (tocref<mode>): Ditto.
815 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0_elf_low_be): Ditto.
816 (mov_si<mode>_e500_subreg0_elf_low_le): Ditto.
817 (mov_si<mode>_e500_subreg4_elf_low_be): Ditto. Reformat condition.
818 (mov_si<mode>_e500_subreg4_elf_low_le): Ditto.
820 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
823 * config/rs6000/rs6000.c (TARGET_MD_ASM_CLOBBERS): Define.
824 (rs6000_md_asm_clobbers): New function.
826 2014-12-10 Felix Yang <felix.yang@huawei.com>
828 * config/aarch64/aarch64-protos.h (aarch64_function_profiler): Remove
829 declaration of removed function.
831 2014-12-10 Richard Biener <rguenther@suse.de>
834 (move_computations_dom_walker::before_dom_children): Clear
835 SSA_NAME_RANGE_INFO on moved stmts.
837 2014-12-10 Martin Liska <mliska@suse.cz>
839 * sreal.c (sreal::shift_right): New implementation
840 for int64_t as m_sig.
841 (sreal::normalize): Likewise.
842 (sreal::to_int): Likewise.
843 (sreal::operator+): Likewise.
844 (sreal::operator-): Likewise.
845 (sreal::operator*): Likewise.
846 (sreal::operator/): Likewise.
847 (sreal::signedless_minus): Removed.
848 (sreal::signedless_plus): Removed.
849 (sreal::debug): const keyword is added.
850 * sreal.h (sreal::operator<): New implementation
851 for int64_t as m_sig.
852 * ipa-inline.c (recursive_inlining): LONG_MIN is replaced
855 2014-12-10 Martin Liska <mliska@suse.cz>
857 * gimple-iterator.h (gsi_start_bb_nondebug): New function.
858 * ipa-icf-gimple.c (func_checker::compare_bb): Correct iteration
859 replaces loop based on precomputed number of non-debug statements.
861 2014-12-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
863 * config/linux.c (linux_has_ifunc_p): Remove.
864 * config/linux.h (TARGET_HAS_IFUNC_P): Use default version.
866 2014-12-10 Mantas Mikaitis <mantas.mikaitis@arm.com>
868 * contrib/check_GNU_style.sh (col): Got rid of cut operation
869 from the pipe chain and instead added cut inside awk command.
871 2014-12-10 Richard Biener <rguenther@suse.de>
873 PR tree-optimization/64191
874 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not
875 mark clobbers as necessary.
876 (eliminate_unnecessary_stmts): Keep clobbers live if we can.
878 2014-12-10 Jakub Jelinek <jakub@redhat.com>
881 * config/i386/sse.md (vec_dupv4sf): Move after
882 <mask_codefor><avx512>_vec_dup_gpr<mode><mask_name> pattern.
883 (*vec_dupv4si, *vec_dupv2di): Likewise.
884 (<mask_codefor><avx512>_vec_dup_mem<mode><mask_name>): Merge into ...
885 (<mask_codefor><avx512>_vec_dup_gpr<mode><mask_name>): ... this
887 (*vec_dup<mode> AVX2_VEC_DUP_MODE splitter): Disable for
888 TARGET_AVX512VL (for QI/HI scalar modes only if TARGET_AVX512BW
890 * config/i386/i386.c (enum ix86_builtins): Remove
891 IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
892 IX86_BUILTIN_PBROADCASTQ128_MEM_MASK and
893 IX86_BUILTIN_PBROADCASTQ512_MEM.
894 (bdesc_args): Use __builtin_ia32_pbroadcastq512_gpr_mask,
895 __builtin_ia32_pbroadcastq256_gpr_mask and
896 __builtin_ia32_pbroadcastq128_gpr_mask instead of *_mem_mask
897 regardless of OPTION_MASK_ISA_64BIT.
898 * config/i386/avx512fintrin.h (_mm512_set1_epi64,
899 _mm512_mask_set1_epi64, _mm512_maskz_set1_epi64): Use *_gpr_mask
900 builtins regardless of whether TARGET_64BIT is defined or not.
901 * config/i386/avx512vlintrin.h (_mm256_mask_set1_epi64,
902 _mm256_maskz_set1_epi64, _mm_mask_set1_epi64, _mm_maskz_set1_epi64):
905 * config/i386/sse.md (*mov<mode>_internal, *avx512f_gatherdi<mode>_2):
906 Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
908 2014-12-10 Oleg Endo <olegendo@gcc.gnu.org>
911 * doc/extend.texi (__builtin_sh_set_fpscr): Fix typo.
913 2014-12-10 Marek Polacek <polacek@redhat.com>
915 PR tree-optimization/61686
916 * tree-ssa-reassoc.c (range_entry_cmp): Use q->high instead of
919 2014-12-10 Kito Cheng <kito@0xlab.org>
921 * doc/libgcc.texi: Update text to match implementation in
924 2014-12-09 Trevor Saunders <tsaunders@mozilla.com>
926 * plugin.c, plugin.def, ggc.h, ggc-common.c, gengtype.h, gengtype.c,
927 gengtype-state.c, gengtype-parse.c, gentype-lex.l, gcc-plugin.h,
928 doc/plugins.texi, doc/gty.texi: Remove support for if_marked and
931 2014-12-10 Oleg Endo <olegendo@gcc.gnu.org>
934 * doc/extend.texi (__builtin_sh_get_fpscr, __builtin_sh_get_fpscr):
937 2014-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
940 * tree-ssa-reassoc.c (acceptable_pow_call): Disable transformation
941 for BUILT_IN_POW when flag_errno_math is present.
943 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
945 * lto-wrapper.c (compile_offload_image): Start processing in_argv
947 (run_gcc): Put offload objects into offload_argv, put LTO objects and
948 possible preceding arguments into lto_argv.
949 Pass offload_argv to compile_images_for_offload_targets instead of argv.
950 Use lto_argv for LTO recompilation instead of argv.
952 2014-12-09 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
954 * doc/install.texi: Describe --with-aix-soname option.
956 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
958 * config/aarch64/aarch64-simd.md (aarch64_get_lanedi): Remove.
960 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
963 * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane):
965 * config/aarch64/aarch64-simd.md (aarch64_be_checked_get_lane<mode\>):
967 * config/aarch64/arm_neon.h (aarch64_vget_lane_any): Use GCC
968 vector extensions, __aarch64_lane, __builtin_aarch64_im_lane_boundsi.
969 (__aarch64_vget_lane_f32, __aarch64_vget_lane_f64,
970 __aarch64_vget_lane_p8, __aarch64_vget_lane_p16,
971 __aarch64_vget_lane_s8, __aarch64_vget_lane_s16,
972 __aarch64_vget_lane_s32, __aarch64_vget_lane_s64,
973 __aarch64_vget_lane_u8, __aarch64_vget_lane_u16,
974 __aarch64_vget_lane_u32, __aarch64_vget_lane_u64,
975 __aarch64_vgetq_lane_f32, __aarch64_vgetq_lane_f64,
976 __aarch64_vgetq_lane_p8, __aarch64_vgetq_lane_p16,
977 __aarch64_vgetq_lane_s8, __aarch64_vgetq_lane_s16,
978 __aarch64_vgetq_lane_s32, __aarch64_vgetq_lane_s64,
979 __aarch64_vgetq_lane_u8, __aarch64_vgetq_lane_u16,
980 __aarch64_vgetq_lane_u32, __aarch64_vgetq_lane_u64): Delete.
981 (__aarch64_vdup_lane_any): Use __aarch64_vget_lane_any, remove
983 (__aarch64_vdup_lane_f32, __aarch64_vdup_lane_f64,
984 __aarch64_vdup_lane_p8, __aarch64_vdup_lane_p16,
985 __aarch64_vdup_lane_s8, __aarch64_vdup_lane_s16,
986 __aarch64_vdup_lane_s32, __aarch64_vdup_lane_s64,
987 __aarch64_vdup_lane_u8, __aarch64_vdup_lane_u16,
988 __aarch64_vdup_lane_u32, __aarch64_vdup_lane_u64,
989 __aarch64_vdup_laneq_f32, __aarch64_vdup_laneq_f64,
990 __aarch64_vdup_laneq_p8, __aarch64_vdup_laneq_p16,
991 __aarch64_vdup_laneq_s8, __aarch64_vdup_laneq_s16,
992 __aarch64_vdup_laneq_s32, __aarch64_vdup_laneq_s64,
993 __aarch64_vdup_laneq_u8, __aarch64_vdup_laneq_u16,
994 __aarch64_vdup_laneq_u32, __aarch64_vdup_laneq_u64): Remove argument
995 to __aarch64_vdup_lane_any.
996 (vget_lane_f32, vget_lane_f64, vget_lane_p8, vget_lane_p16,
997 vget_lane_s8, vget_lane_s16, vget_lane_s32, vget_lane_s64,
998 vget_lane_u8, vget_lane_u16, vget_lane_u32, vget_lane_u64,
999 vgetq_lane_f32, vgetq_lane_f64, vgetq_lane_p8, vgetq_lane_p16,
1000 vgetq_lane_s8, vgetq_lane_s16, vgetq_lane_s32, vgetq_lane_s64,
1001 vgetq_lane_u8, vgetq_lane_u16, vgetq_lane_u32, vgetq_lane_u64,
1002 vdupb_lane_p8, vdupb_lane_s8, vdupb_lane_u8, vduph_lane_p16,
1003 vduph_lane_s16, vduph_lane_u16, vdups_lane_f32, vdups_lane_s32,
1004 vdups_lane_u32, vdupb_laneq_p8, vdupb_laneq_s8, vdupb_laneq_u8,
1005 vduph_laneq_p16, vduph_laneq_s16, vduph_laneq_u16, vdups_laneq_f32,
1006 vdups_laneq_s32, vdups_laneq_u32, vdupd_laneq_f64, vdupd_laneq_s64,
1007 vdupd_laneq_u64, vfmas_lane_f32, vfma_laneq_f64, vfmad_laneq_f64,
1008 vfmas_laneq_f32, vfmss_lane_f32, vfms_laneq_f64, vfmsd_laneq_f64,
1009 vfmss_laneq_f32, vmla_lane_f32, vmla_lane_s16, vmla_lane_s32,
1010 vmla_lane_u16, vmla_lane_u32, vmla_laneq_f32, vmla_laneq_s16,
1011 vmla_laneq_s32, vmla_laneq_u16, vmla_laneq_u32, vmlaq_lane_f32,
1012 vmlaq_lane_s16, vmlaq_lane_s32, vmlaq_lane_u16, vmlaq_lane_u32,
1013 vmlaq_laneq_f32, vmlaq_laneq_s16, vmlaq_laneq_s32, vmlaq_laneq_u16,
1014 vmlaq_laneq_u32, vmls_lane_f32, vmls_lane_s16, vmls_lane_s32,
1015 vmls_lane_u16, vmls_lane_u32, vmls_laneq_f32, vmls_laneq_s16,
1016 vmls_laneq_s32, vmls_laneq_u16, vmls_laneq_u32, vmlsq_lane_f32,
1017 vmlsq_lane_s16, vmlsq_lane_s32, vmlsq_lane_u16, vmlsq_lane_u32,
1018 vmlsq_laneq_f32, vmlsq_laneq_s16, vmlsq_laneq_s32, vmlsq_laneq_u16,
1019 vmlsq_laneq_u32, vmul_lane_f32, vmul_lane_s16, vmul_lane_s32,
1020 vmul_lane_u16, vmul_lane_u32, vmuld_lane_f64, vmuld_laneq_f64,
1021 vmuls_lane_f32, vmuls_laneq_f32, vmul_laneq_f32, vmul_laneq_f64,
1022 vmul_laneq_s16, vmul_laneq_s32, vmul_laneq_u16, vmul_laneq_u32,
1023 vmulq_lane_f32, vmulq_lane_s16, vmulq_lane_s32, vmulq_lane_u16,
1024 vmulq_lane_u32, vmulq_laneq_f32, vmulq_laneq_f64, vmulq_laneq_s16,
1025 vmulq_laneq_s32, vmulq_laneq_u16, vmulq_laneq_u32) : Use
1026 __aarch64_vget_lane_any.
1028 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1031 * gcc/config/aarch64-builtins.c (aarch64_simd_expand_args): Update error
1032 message for SIMD_ARG_CONSTANT.
1034 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1037 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
1038 TYPES_BINOPV): Delete.
1039 (enum aarch64_builtins): Add AARCH64_BUILTIN_SIMD_LANE_CHECK and
1040 AARCH64_SIMD_PATTERN_START.
1041 (aarch64_init_simd_builtins): Register
1042 __builtin_aarch64_im_lane_boundsi; use AARCH64_SIMD_PATTERN_START.
1043 (aarch64_simd_expand_builtin): Handle AARCH64_BUILTIN_LANE_CHECK; use
1044 AARCH64_SIMD_PATTERN_START.
1046 * config/aarch64/aarch64-simd.md (aarch64_im_lane_boundsi): Delete.
1047 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound): Delete.
1049 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK): New.
1050 (__aarch64_vget_lane_f64, __aarch64_vget_lane_s64,
1051 __aarch64_vget_lane_u64, __aarch64_vset_lane_any, vdupd_lane_f64,
1052 vdupd_lane_s64, vdupd_lane_u64, vext_f32, vext_f64, vext_p8, vext_p16,
1053 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
1054 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
1055 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
1056 vextq_u64, vmulq_lane_f64): Use __AARCH64_LANE_CHECK.
1058 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1061 * config/aarch64/arm_neon.h (__AARCH64_NUM_LANES, __aarch64_lane *2):
1063 (aarch64_vset_lane_any): Redefine using previous, same for BE + LE.
1064 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
1065 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
1066 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64): Remove
1068 (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8, vld1_lane_p16,
1069 vld1_lane_s8, vld1_lane_s16, vld1_lane_s32, vld1_lane_s64,
1070 vld1_lane_u8, vld1_lane_u16, vld1_lane_u32, vld1_lane_u64): Call
1071 __aarch64_vset_lane_any rather than vset_lane_xxx.
1073 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1075 * config/aarch64/aarch64.md (absdi2): Remove scratch operand by
1076 earlyclobbering result operand.
1078 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
1079 Remove final qualifier_internal.
1080 (aarch64_fold_builtin): Stop folding abs builtins, except on floats.
1082 2014-12-09 Wilco Dijkstra <wilco.dijkstra@arm.com>
1084 * gcc/config/aarch64/aarch64-protos.h (tune-params): Add reasociation
1086 * gcc/config/aarch64/aarch64.c (TARGET_SCHED_REASSOCIATION_WIDTH):
1088 (aarch64_reassociation_width): New function.
1089 (generic_tunings): Add reassociation tuning parameters.
1090 (cortexa53_tunings): Likewise.
1091 (cortexa57_tunings): Likewise.
1092 (thunderx_tunings): Likewise.
1094 2014-12-09 Andrew Pinski <apinski@cavium.com>
1095 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1097 * config/aarch64/aarch64.c (AARCH64_FUSE_CMP_BRANCH): New define.
1098 (thunderx_tunings): Add AARCH64_FUSE_CMP_BRANCH to fuseable_ops.
1099 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_CMP_BRANCH.
1101 2014-12-09 David Malcolm <dmalcolm@redhat.com>
1104 * dumpfile.c (gcc::dump_manager::get_dump_file_info_by_switch):
1106 (gcc::dump_manager::get_dump_file_name): Split out bulk of
1107 implementation into a new overloaded variant taking a
1109 * dumpfile.h (gcc::dump_manager::get_dump_file_info_by_switch):
1111 (gcc::dump_manager::get_dump_file_name): New overloaded variant of
1112 this function, taking a dump_file_info *.
1114 2014-12-09 Uros Bizjak <ubizjak@gmail.com>
1118 2014-11-28 H.J. Lu <hongjiu.lu@intel.com>
1120 PR rtl-optimization/64037
1121 * combine.c (setup_incoming_promotions): Pass the argument
1122 before any promotions happen to promote_function_mode.
1124 2014-12-09 Richard Biener <rguenther@suse.de>
1126 PR tree-optimization/64193
1127 * tree-ssa-alias.c (walk_non_aliased_vuses): Add valueize parameter
1128 and valueize the VUSE before looking up the def stmt.
1129 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
1130 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Pass vn_valueize
1131 to walk_non_aliased_vuses.
1132 (vn_reference_lookup): Likewise.
1133 * tree-ssa-dom.c (lookup_avail_expr): Pass NULL as valueize
1134 callback to walk_non_aliased_vuses.
1136 2014-12-09 Richard Biener <rguenther@suse.de>
1139 * fold-const.c (fold_binary_loc): Use TREE_OVERFLOW_P.
1141 2014-12-09 Richard Biener <rguenther@suse.de>
1143 PR tree-optimization/64191
1144 * tree-vect-stmts.c (vect_stmt_relevant_p): Clobbers are
1145 not relevant (nor are their uses).
1147 2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
1149 * lto/lto-partition.c (privatize_symbol_name): Correctly
1150 privatize instrumentation clones.
1152 2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
1154 * lto-cgraph.c (input_cgraph_1): Don't break existing
1155 instrumentation clone references.
1156 * lto/lto-symtab.c (lto_cgraph_replace_node): Redirect
1157 instrumented_version references appropriately.
1159 2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
1162 * tree-chkp.c (chkp_make_static_bounds): Share bounds var
1163 between nodes sharing assembler name.
1165 2014-12-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1168 * config/rs6000/rs6000.c (rs6000_emit_move): Do not split TFmode
1169 constant moves if -mupper-regs-df.
1171 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Optimize moving
1173 (movtd_64bit_nodm): Likewise.
1174 (mov<mode>_32bit, FMOVE128 case): Likewise.
1176 2014-12-08 Sandra Loosemore <sandra@codesourcery.com>
1178 * simplify-rtx.c (simplify_relational_operation_1): Handle
1179 simplification identities for BICS patterns.
1181 2014-12-08 Trevor Saunders <tsaunders@mozilla.com>
1183 * config/nvptx/nvptx.c: Convert htabs to hash_table.
1185 2014-12-08 David Edelsohn <dje.gcc@gmail.com>
1188 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner)
1189 [SYMBOL_REF]: Do not explicitly call create_TOC_reference for
1190 TARGET_TOC. Always use rs6000_emit_move.
1192 2014-12-08 Mark Wielaard <mjw@redhat.com>
1195 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_ATOMIC.
1197 2014-11-15 David Wohlferd <dw@LimeGreenSocks.com>
1200 * cfgexpand.c (expand_asm_operands): Count all inline asm params.
1202 2014-12-08 David Malcolm <dmalcolm@redhat.com>
1205 * cgraph.h (xstrdup_for_dump): New function.
1206 * cgraph.c (cgraph_node::get_create): Replace use of xstrdup
1207 within fprintf with xstrdup_for_dump.
1208 (cgraph_edge::make_speculative): Likewise.
1209 (cgraph_edge::resolve_speculation): Likewise.
1210 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1211 (cgraph_node::dump): Likewise.
1212 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
1213 * ipa-cp.c (perhaps_add_new_callers): Likewise.
1214 * ipa-inline.c (report_inline_failed_reason): Likewise.
1215 (want_early_inline_function_p): Likewise.
1216 (edge_badness): Likewise.
1217 (update_edge_key): Likewise.
1218 (flatten_function): Likewise.
1219 (inline_always_inline_functions): Likewise.
1220 * ipa-profile.c (ipa_profile): Likewise.
1221 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
1222 (ipa_make_edge_direct_to_target): Likewise.
1223 (remove_described_reference): Likewise.
1224 (propagate_controlled_uses): Likewise.
1225 * ipa-utils.c (ipa_merge_profiles): Likewise.
1227 2014-12-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
1230 * ipa-polymorphic-call.c
1231 (pa_polymorphic_call_context::ipa_polymorphic_call): Allow RESULT_DECL.
1233 2014-12-08 Alex Velenko <Alex.Velenko@arm.com>
1235 * config/aarch64/aarch64.md (and_one_cmpl<mode>3_compare0_no_reuse):
1237 * (and_one_cmpl_<SHIFT:optab><mode>3_compare0_no_reuse):
1240 2014-12-08 Felix Yang <felix.yang@huawei.com>
1241 Haijian Zhang <z.zhanghaijian@huawei.com>
1242 Jiji Jiang <jiangjiji@huawei.com>
1243 Pengfei Sui <suipengfei@huawei.com>
1245 * config/aarch64/arm_neon.h (vrecpe_u32, vrecpeq_u32): Rewrite using
1247 (vfma_f32, vfmaq_f32, vfmaq_f64, vfma_n_f32, vfmaq_n_f32, vfmaq_n_f64,
1248 vfms_f32, vfmsq_f32, vfmsq_f64): Likewise.
1249 (vhsub_s8, vhsub_u8, vhsub_s16, vhsub_u16, vhsub_s32, vhsub_u32,
1250 vhsubq_s8, vhsubq_u8, vhsubq_s16, vhsubq_u16, vhsubq_s32, vhsubq_u32,
1251 vsubhn_s16, vsubhn_u16, vsubhn_s32, vsubhn_u32, vsubhn_s64, vsubhn_u66,
1252 vrsubhn_s16, vrsubhn_u16, vrsubhn_s32, vrsubhn_u32, vrsubhn_s64,
1253 vrsubhn_u64, vsubhn_high_s16, vsubhn_high_u16, vsubhn_high_s32,
1254 vsubhn_high_u32, vsubhn_high_s64, vsubhn_high_u64, vrsubhn_high_s16,
1255 vrsubhn_high_u16, vrsubhn_high_s32, vrsubhn_high_u32, vrsubhn_high_s64,
1256 vrsubhn_high_u64): Likewise.
1257 * config/aarch64/iterators.md (VDQ_SI): New mode iterator.
1258 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_URECPE.
1259 * config/aarch64/aarch64-simd.md (aarch64_urecpe<mode>): New pattern.
1260 * config/aarch64/aarch64-simd-builtins.def (shsub, uhsub, subhn, rsubhn,
1261 subhn2, rsubhn2, urecpe): New builtins.
1263 2014-12-08 Ilya Tocar <ilya.tocar@intel.com>
1265 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Handle v64qi.
1266 * config/i386/sse.md (VEC_PERM_AVX2): Add v64qi.
1268 2014-12-08 Ilya Tocar <ilya.tocar@intel.com>
1270 * config/i386/i386.c (expand_vec_perm_broadcast_1): Handle v64qi.
1271 (expand_vec_perm_vpermi2_vpshub2): New.
1272 (ix86_expand_vec_perm_const_1): Use it.
1273 (ix86_vectorize_vec_perm_const_ok): Handle v64qi.
1274 * config/i386/sse.md (VEC_PERM_CONST): Add v64qi.
1276 2014-12-08 Ilya Enkovich <ilya.enkovich@intel.com>
1278 * tree-chkp.c (chkp_build_returned_bound): Don't predict
1279 return bounds for strchr calls.
1281 2014-12-08 Ilya Enkovich <ilya.enkovich@intel.com>
1283 * tree-chkp.c (chkp_call_returns_bounds_p): New.
1284 (chkp_build_returned_bound): Use zero bounds as
1285 returned by calls not returning bounds.
1287 2014-12-08 Richard Biener <rguenther@suse.de>
1289 * builtins.c (fold_builtin_0): Remove unused ignore parameter.
1290 (fold_builtin_1): Likewise.
1291 (fold_builtin_3): Likewise.
1292 (fold_builtin_varargs): Likewise.
1293 (fold_builtin_2): Likewise. Do not fold stpcpy here.
1294 (fold_builtin_n): Adjust.
1295 (fold_builtin_stpcpy): Move to gimple-fold.c.
1296 (gimple_fold_builtin_stpcpy): Moved and gimplified from builtins.c.
1297 (gimple_fold_builtin): Fold stpcpy here.
1299 2014-12-07 Trevor Saunders <tsaunders@mozilla.com>
1301 * symtab.c (symtab_node::verify): Check for section attribute before
1302 asserting something isn't in a section and a comdat group.
1304 2014-12-07 Oleg Endo <olegendo@gcc.gnu.org>
1307 * config/sh/sh.md (extendqihi2): Allow only for TARGET_SH1.
1309 2014-12-07 Eric Botcazou <ebotcazou@adacore.com>
1311 * compare-elim.c: Fix head comment.
1312 (conforming_compare): Remove redundant test.
1313 (can_eliminate_compare): New function extracted from...
1314 (before_dom_children): ...here. Use it, replace direct uses of
1315 flag_non_call_exceptions and tidy up.
1316 (maybe_select_cc_mode): Tidy up.
1318 2014-12-07 Felix Yang <felix.yang@huawei.com>
1319 Shanyao Chen <chenshanyao@huawei.com>
1321 * config/aarch64/aarch64-simd.md (clrsb<mode>2, popcount<mode>2): New
1323 * config/aarch64/aarch64-simd-builtins.def (clrsb, popcount): New
1325 * config/aarch64/arm_neon.h (vcls_s8, vcls_s16, vcls_s32, vclsq_s8,
1326 vclsq_s16, vclsq_s32, vcnt_p8, vcnt_s8, vcnt_u8, vcntq_p8, vcntq_s8,
1327 vcntq_u8): Rewrite using builtin functions.
1329 2014-12-07 Jan Hubicka <hubicka@ucw.cz>
1331 * symtab.c (symtab_node::equal_address_to): New function.
1332 * cgraph.h (symtab_node::equal_address_to): Declare.
1333 * fold-const.c (fold_comparison, fold_binary_loc): Use it.
1334 * c-family/c-common.c: Refuse weaks for symbols that can not change
1337 2014-12-07 Jonathan Wakely <jwakely@redhat.com>
1339 * doc/invoke.texi (Warning Options): Fix spelling and grammar.
1341 2014-12-06 James Greenhalgh <james.greenhalgh@arm.com>
1342 Sebastian Pop <s.pop@samsung.com>
1343 Brian Rzycki <b.rzycki@samsung.com>
1345 PR tree-optimization/54742
1346 * params.def (max-fsm-thread-path-insns, max-fsm-thread-length,
1347 max-fsm-thread-paths): New.
1349 * doc/invoke.texi (max-fsm-thread-path-insns, max-fsm-thread-length,
1350 max-fsm-thread-paths): Documented.
1352 * tree-cfg.c (split_edge_bb_loc): Export.
1353 * tree-cfg.h (split_edge_bb_loc): Declared extern.
1355 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Restore the
1356 original value of cond when simplification fails.
1357 (fsm_find_thread_path): New.
1358 (fsm_find_control_statement_thread_paths): New.
1359 (thread_through_normal_block): Call find_control_statement_thread_paths.
1361 * tree-ssa-threadupdate.c (dump_jump_thread_path): Pretty print
1364 (duplicate_seme_region): New.
1365 (thread_through_all_blocks): Generate code for EDGE_FSM_THREAD edges
1366 calling duplicate_seme_region.
1368 * tree-ssa-threadupdate.h (jump_thread_edge_type): Add EDGE_FSM_THREAD.
1370 2014-12-06 H.J. Lu <hongjiu.lu@intel.com>
1373 * config/i386/i386.c (decide_alg): Don't assert "alg != libcall"
1374 for TARGET_INLINE_STRINGOPS_DYNAMICALLY.
1376 2014-12-05 Jakub Jelinek <jakub@redhat.com>
1379 * sanopt.c (maybe_optimize_asan_check_ifn): If base_checks is
1380 non-NULL, call maybe_get_dominating_check on it even if g is
1383 2014-12-05 Jeff Law <law@redhat.com>
1385 * doc/md.texi: Note problems using function calls to determine
1386 insn lengths and point readers to a potential workaround.
1388 2014-12-05 Andreas Schwab <schwab@linux-m68k.org>
1390 * combine.c (is_parallel_of_n_reg_sets)
1391 (can_split_parallel_of_n_reg_sets): Only define if !HAVE_cc0.
1393 2014-12-05 Andrew Pinski <apinski@cavium.com>
1395 * config/aarch64/aarch64-simd-builtins.def (bswap): Use CF2 rather
1396 than CF10 so 2 is appended on the code.
1397 * config/aarch64/aarch64-simd.md (bswap<mode>): Rename to ...
1398 (bswap<mode>2): This so it matches for the optabs.
1400 2014-12-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
1402 * regrename.c (find_best_rename_reg): Rename to ...
1403 (find_rename_reg): This. Also add a parameter to skip tick check.
1404 * regrename.h: Likewise.
1405 * config/c6x/c6x.c (try_rename_operands): Adapt to above renaming.
1407 2014-12-05 Martin Jambor <mjambor@suse.cz>
1410 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Convert alignment
1411 from bits to bytes after checking they are byte-aligned.
1413 2014-12-05 Renlin Li <renlin.li@arm.com>
1415 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Rename IDENT to SCHED.
1416 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
1417 * config/aarch64/aarch64.c (AARCH64_CORE): Rename X to IDENT,
1420 2014-12-05 Bin Cheng <bin.cheng@arm.com>
1422 * config/aarch64/aarch64.md (load_pair<mode>): Split to
1423 load_pairsi, load_pairdi, load_pairsf and load_pairdf.
1424 (load_pairsi, load_pairdi, load_pairsf, load_pairdf): Split
1425 from load_pair<mode>. New alternative to support int/fp
1426 registers in fp/int mode patterns.
1427 (store_pair<mode>:): Split to store_pairsi, store_pairdi,
1428 store_pairsf and store_pairdi.
1429 (store_pairsi, store_pairdi, store_pairsf, store_pairdf): Split
1430 from store_pair<mode>. New alternative to support int/fp
1431 registers in fp/int mode patterns.
1432 (*load_pair_extendsidi2_aarch64): New pattern.
1433 (*load_pair_zero_extendsidi2_aarch64): New pattern.
1434 (aarch64-ldpstp.md): Include.
1435 * config/aarch64/aarch64-ldpstp.md: New file.
1436 * config/aarch64/aarch64-protos.h (aarch64_gen_adjusted_ldpstp):
1438 (extract_base_offset_in_addr): New.
1439 (aarch64_operands_ok_for_ldpstp): New.
1440 (aarch64_operands_adjust_ok_for_ldpstp): New.
1441 * config/aarch64/aarch64.c (enum sched_fusion_type): New enum.
1442 (TARGET_SCHED_FUSION_PRIORITY): New hook.
1443 (fusion_load_store): New functon.
1444 (extract_base_offset_in_addr): New function.
1445 (aarch64_gen_adjusted_ldpstp): New function.
1446 (aarch64_sched_fusion_priority): New function.
1447 (aarch64_operands_ok_for_ldpstp): New function.
1448 (aarch64_operands_adjust_ok_for_ldpstp): New function.
1450 2014-12-05 Olivier Hainque <hainque@adacore.com>
1452 * defaults.h: (DWARF_REG_TO_UNWIND_COLUMN): Define default.
1453 * dwarf2cfi.c (init_one_dwarf_reg_size): Honor
1454 DWARF_REG_TO_UNWIND_COLUMN.
1456 2014-12-05 Olivier Hainque <hainque@adacore.com>
1458 * dwarf2cfi.c (init_one_dwarf_reg_size): New helper, processing
1459 one particular reg for expand_builtin_init_dwarf_reg_sizes.
1460 (expand_builtin_init_dwarf_reg_sizes): Rework to use helper and
1461 account for dwarf register spans.
1463 2014-12-05 Ilya Enkovich <ilya.enkovich@intel.com>
1466 * config/i386/i386.md (*jcc_1_bnd): New.
1469 (*jcc_1): Remove bnd prefix.
1473 2014-12-05 Renlin Li <renlin.li@arm.com>
1475 * config/aarch64/aarch64.c (aarch64_parse_cpu): Don't define
1477 (aarch64_override_options): Use selected_cpu's tuning.
1479 2014-12-05 David Edelsohn <dje.gcc@gmail.com>
1481 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_LOCAL): Append
1482 alignment to section name. Increase default alignment to word.
1484 2014-12-05 Martin Jambor <mjambor@suse.cz>
1486 * cgraph.h (cgraph_node): New method expand_all_artificial_thunks.
1487 (cgraph_edge): New method redirect_callee_duplicating_thunks.
1488 * cgraphclones.c (duplicate_thunk_for_node): Donot expand newly
1490 (redirect_edge_duplicating_thunks): Turned into edge method
1491 redirect_callee_duplicating_thunks.
1492 (cgraph_node::expand_all_artificial_thunks): New method.
1493 (create_clone): Call expand_all_artificial_thunks.
1494 * ipa-cp.c (perhaps_add_new_callers): Call
1495 redirect_callee_duplicating_thunks instead of redirect_callee.
1496 Also call expand_all_artificial_thunks.
1498 2014-12-05 Ilya Enkovich <ilya.enkovich@intel.com>
1501 * doc/sourcebuild.texi: Add mempcpy and stpcpy for Effective-Target
1504 2014-12-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1506 * diagnostic.h (diagnostic_expand_location): New inline function.
1507 * diagnostic.c (diagnostic_build_prefix): Use it.
1508 (diagnostic_show_locus): Likewise.
1510 2014-12-04 H.J. Lu <hongjiu.lu@intel.com>
1513 * configure.ac (HAVE_LD_PIE_COPYRELOC): Always define.
1514 * configure: Regenerated.
1516 2014-12-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1518 * diagnostic.c (diagnostic_color_init): New.
1519 * diagnostic.h: Declare.
1520 * gcc.c (driver::global_initializations): Use it.
1521 (driver_handle_option): Handle -fdiagnostics-color_.
1522 * toplev.c: Do not include diagnostic-color.h.
1523 (process_options): Do not initialize color diagnostics here.
1524 * common.opt (fdiagnostics-color=): Add Driver.
1525 * opts-global.c (init_options_once): Initialize color here.
1526 * opts.c (common_handle_option): Use diagnostics_color_init.
1527 * diagnostic-color.h: Fix comment.
1529 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1531 * tree-pretty-print.c (INDENT): Rename "buffer" to "pp".
1533 (buffer): Rename this variable to...
1536 (do_niy): Rename param from "buffer" to "pp".
1537 (dump_decl_name): Likewise.
1538 (dump_function_name): Likewise.
1539 (dump_function_declaration): Likewise.
1540 (dump_array_domain): Likewise.
1541 (dump_omp_clause): Likewise.
1542 (dump_omp_clauses): Likewise.
1543 (dump_location): Likewise.
1544 (dump_block_node): Likewise.
1545 (dump_generic_node): Likewise.
1546 (print_declaration): Likewise.
1547 (print_struct_decl): Likewise.
1548 (print_call_name): Likewise.
1549 (pretty_print_string): Likewise.
1550 (newline_and_indent): Likewise.
1552 (print_generic_decl): Update for renaming of "buffer" to
1554 (print_generic_stmt): Likewise.
1555 (print_generic_stmt_indented): Likewise.
1556 (print_generic_expr): Likewise.
1557 (maybe_init_pretty_print): Likewise.
1559 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1562 * tree-pretty-print.c: Eliminate include of <new>.
1563 (buffer): Convert this variable from a pretty_printer to a
1565 (initialized): Eliminate this variable in favor of the NULL-ness
1567 (print_generic_decl): Update for "buffer" becoming a pointer.
1568 (print_generic_stmt): Likewise.
1569 (print_generic_stmt_indented): Likewise.
1570 (print_generic_expr): Likewise.
1571 (maybe_init_pretty_print): Likewise, allocating "buffer" on the
1572 heap and using its non-NULL-ness to ensure idempotency.
1574 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1577 * ipa-prop.c (ipa_register_cgraph_hooks): Guard insertion of
1578 ipa_add_new_function on function_insertion_hook_holder being
1580 * ipa-reference.c (ipa_reference_c_finalize): Remove
1581 node_removal_hook_holder and node_duplication_hook_holder if
1582 they've been added to symtab.
1583 * toplev.c (toplev::finalize): Call ipa_reference_c_finalize
1584 before cgraph_c_finalize so that the former can access "symtab".
1586 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1588 * doc/cfg.texi (GIMPLE statement iterators): Add note about
1589 gphi_iterator, and use one in the example.
1590 * doc/gimple.texi (Tuple specific accessors): Add missing
1591 GIMPLE_GOTO section and menu item.
1592 (gimple_build_asm, gimple gimple_build_assign_with_ops)
1593 gimple_call_mark_uninlinable, gimple_call_cannot_inline_p): Remove
1594 description of removed functions.
1595 (gimple_build_assign, gimple_build_bind, gimple_build_call,
1596 gimple_build_call_from_tree, gimple_build_call_vec,
1597 gimple_build_catch, gimple_build_cond,
1598 gimple_build_cond_from_tree, gimple_build_debug_bind,
1599 gimple_build_eh_filter, gimple_build_label, gimple_build_goto,
1600 gimple_build_omp_atomic_load, gimple_build_omp_atomic_store,
1601 gimple_build_omp_continue, gimple_build_omp_critical,
1602 gimple_build_omp_for, gimple_build_omp_parallel,
1603 gimple_build_omp_sections, gimple_build_omp_single,
1604 gimple_build_return, gimple_build_resx, gimple_build_switch,
1605 gimple_build_try): Update return type within description to
1606 reflect changes in gimple.h to using gimple subclasses.
1607 (gimple_build_asm_vec): Update return type, params and
1609 (gimple_asm_ninputs): Update param.
1610 (gimple_asm_noutputs, gimple_asm_nclobbers, gimple_asm_input_op
1611 gimple_asm_set_input_op, gimple_asm_output_op
1612 gimple_asm_set_output_op, gimple_asm_clobber_op,
1613 gimple_asm_set_clobber_op, gimple_asm_string,
1614 gimple_asm_volatile_p, gimple_asm_set_volatile, gimple_bind_vars,
1615 gimple_bind_set_vars, gimple_bind_append_vars, gimple_bind_body,
1616 gimple_bind_set_body, gimple_bind_add_stmt, gimple_bind_add_seq,
1617 gimple_bind_block, gimple_bind_set_block, gimple_call_set_fn,
1618 gimple_call_return_type, gimple_call_set_chain,
1619 gimple_call_set_tail, gimple_call_tail_p,
1620 gimple_call_copy_skip_args, gimple_catch_types,
1621 gimple_catch_types_ptr, gimple_catch_handler,
1622 gimple_catch_set_types, gimple_catch_set_handler,
1623 gimple_cond_set_code, gimple_cond_set_lhs, gimple_cond_set_rhs,
1624 gimple_cond_true_label, gimple_cond_set_true_label,
1625 gimple_cond_set_false_label, gimple_cond_false_label,
1626 gimple_cond_make_false, gimple_cond_make_true,
1627 gimple_eh_filter_set_types, gimple_eh_filter_set_failure,
1628 gimple_eh_must_not_throw_fndecl,
1629 gimple_eh_must_not_throw_set_fndecl, gimple_label_label,
1630 gimple_label_set_label, gimple_goto_set_dest,
1631 gimple_omp_atomic_load_set_lhs, gimple_omp_atomic_load_lhs,
1632 gimple_omp_atomic_load_set_rhs, gimple_omp_atomic_load_rhs,
1633 gimple_omp_atomic_store_set_val, gimple_omp_atomic_store_val,
1634 gimple_omp_continue_control_def,
1635 gimple_omp_continue_control_def_ptr,
1636 gimple_omp_continue_set_control_def,
1637 gimple_omp_continue_control_use,
1638 gimple_omp_continue_control_use_ptr,
1639 gimple_omp_continue_set_control_use, gimple_omp_critical_name,
1640 gimple_omp_critical_name_ptr, gimple_omp_critical_set_name,
1641 gimple_omp_parallel_clauses_ptr, gimple_omp_parallel_set_clauses,
1642 gimple_omp_parallel_child_fn, gimple_omp_parallel_child_fn_ptr,
1643 gimple_omp_parallel_set_child_fn, gimple_omp_parallel_data_arg,
1644 gimple_omp_parallel_data_arg_ptr,
1645 gimple_omp_parallel_set_data_arg, gimple_omp_single_set_clauses,
1646 gimple_phi_set_result, gimple_phi_set_arg, gimple_resx_region,
1647 gimple_resx_set_region, gimple_return_retval,
1648 gimple_return_set_retval, gimple_switch_num_labels,
1649 gimple_switch_set_num_labels, gimple_switch_index,
1650 gimple_switch_set_index, gimple_switch_label,
1651 gimple_switch_set_label, gimple_switch_default_label,
1652 gimple_switch_set_default_label, gimple_try_set_eval,
1653 gimple_try_set_cleanup): Update initial param within description
1654 to reflect changes in gimple.h to using gimple subclasses.
1655 (Adding a new GIMPLE statement code): Update to reflect gimple
1656 statement subclassing.
1658 2014-12-04 Sriraman Tallam <tmsriram@google.com>
1659 H.J. Lu <hongjiu.lu@intel.com>
1661 * configure.ac (HAVE_LD_PIE_COPYRELOC): Defined to 1 if
1662 Linux/x86-64 linker supports PIE with copy reloc.
1663 * config.in: Regenerated.
1664 * configure: Likewise.
1666 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
1667 pc-relative address for undefined, non-weak, non-function
1668 symbol reference in 64-bit PIE if linker supports PIE with
1671 * doc/sourcebuild.texi: Document pie_copyreloc target.
1673 2014-12-04 Marek Polacek <polacek@redhat.com>
1676 * fold-const.c (fold_unary_loc): Perform the negation in A's type
1677 when transforming ~ (A - 1) or ~ (A + -1) to -A.
1679 2014-12-04 Tobias Burnus <burnus@net-b.de>
1681 * Makefile.in: Remove CLOOGLIB and CLOOGINC.
1683 2014-12-04 Richard Biener <rguenther@suse.de>
1685 * doc/match-and-simplify.texi: Update for recent changes.
1687 2014-12-04 Martin Jambor <mjambor@suse.cz>
1689 * ipa-prop.h (ipa_alignment): New type.
1690 (ipa_jump_func): New field alignment.
1691 (ipcp_transformation_summary) New type.
1692 (ipcp_grow_transformations_if_necessary): Declare.
1693 (ipa_node_agg_replacements): Removed.
1694 (ipcp_transformations): Declare.
1695 (ipcp_get_transformation_summary): New function.
1696 (ipa_get_agg_replacements_for_node): Use it.
1697 * ipa-cp.c (ipcp_param_lattices): New field alignment.
1698 (print_all_lattices): Also print alignment.
1699 (alignment_bottom_p): New function.
1700 (set_alignment_to_bottom): Likewise.
1701 (set_all_contains_variable): Also set alignment to bottom.
1702 (initialize_node_lattices): Likewise.
1703 (propagate_alignment_accross_jump_function): New function.
1704 (propagate_constants_accross_call): Call it.
1705 (ipcp_store_alignment_results): New function.
1706 (ipcp_driver): Call it.
1707 * ipa-prop.c (ipa_node_agg_replacements): Removed.
1708 (ipcp_transformations): New.
1709 (ipa_print_node_jump_functions_for_edge): Also print alignment.
1710 (ipa_set_jf_unknown): New function.
1711 (detect_type_change_from_memory_writes): Use ipa_set_jf_unknown.
1712 (ipa_compute_jump_functions_for_edge): Also calculate alignment.
1713 (update_jump_functions_after_inlining): Use ipa_set_jf_unknown.
1714 (ipcp_grow_transformations_if_necessary): New function.
1715 (ipa_set_node_agg_value_chain): Use ipcp_transformations.
1716 (ipa_node_removal_hook): Likewise.
1717 (ipa_node_duplication_hook): Also duplicate alignment results.
1718 (ipa_write_jump_function): Also stream alignments.
1719 (ipa_read_jump_function): Use ipa_set_jf_unknown, also stream
1721 (write_agg_replacement_chain): Renamed to
1722 write_ipcp_transformation_info, also stream alignments.
1723 (read_agg_replacement_chain): Renamed to
1724 read_ipcp_transformation_info, also stream alignments.
1725 (ipa_prop_write_all_agg_replacement): Renamed to
1726 ipcp_write_transformation_summaries. Stream always.
1727 (ipa_prop_read_all_agg_replacement): Renamed to
1728 ipcp_read_transformation_summaries.
1729 (ipcp_update_alignments): New function.
1730 (ipcp_transform_function): Call it, free also alignments.
1732 2014-12-04 Richard Biener <rguenther@suse.de>
1734 * gimple-fold.c (replace_stmt_with_simplification): Properly
1735 fail when maybe_push_res_to_seq fails.
1737 2014-12-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1739 * config/aarch64/aarch64.md (define_insn "prefetch"): New.
1741 2014-12-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1743 * doc/install.texi: Remove mentions of cloog and ppl.
1744 * doc/invoke.texi: Likewise
1746 2014-12-04 Jakub Jelinek <jakub@redhat.com>
1749 * convert.c (convert_to_real, convert_to_expr, convert_to_complex):
1750 Handle COMPOUND_EXPR.
1752 2014-12-04 Richard Biener <rguenther@suse.de>
1754 * builtins.c (target_newline): Export.
1755 (target_percent_s_newline): Likewise.
1756 (fold_builtin_1): Do not fold printf functions here.
1757 (fold_builtin_2): Likewise.
1758 (fold_builtin_3): Likewise, do not fold strncat.
1759 (fold_builtin_strncat): Move to gimple-fold.c.
1760 (fold_builtin_printf): Likewise.
1761 * builtins.h (target_newline): Declare.
1762 (target_percent_s_newline): Likewise.
1763 * gimple-fold.c (gimple_fold_builtin_strncat): Move from
1764 builtins.c and gimplify.
1765 (gimple_fold_builtin_printf): Likewise.
1766 (gimple_fold_builtin): Fold strncat, printf, printf_unlocked,
1767 vprintf, printf_chk and vprintf_chk here.
1769 2014-12-03 David Edelsohn <dje.gcc@gmail.com>
1771 * config/rs6000/rs6000.md (floatsidf2_internal): Use std::swap.
1772 (floatunssidf2_internal): Same.
1773 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Same.
1774 (rs6000_emit_int_cmove): Same.
1775 (rs6000_sched_reorder): Same.
1776 (altivec_expand_vec_perm_const): Same.
1777 (rs6000_expand_vec_perm_const_1): Same.
1779 2014-12-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1781 PR rtl-optimization/64010
1782 * reload.c (push_reload): Before reusing a register contained
1783 in an operand as input reload register, ensure that it is not
1784 used in CALL_INSN_FUNCTION_USAGE.
1786 2014-12-03 Ulrich Drepper <drepper@gmail.com>
1788 * Makefile.in: Use $(LN_S) instead of $(LN) -s and remove file first
1791 2014-12-03 Jakub Jelinek <jakub@redhat.com>
1793 * expmed.c (expand_mult): Use std::swap.
1796 * expmed.c (expand_widening_mult): Return const0_rtx if
1799 * doc/gimple.texi (gimple_build_assign_with_ops): Remove.
1800 (gimple_build_assign): Document the new overloads.
1802 2014-12-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1805 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
1806 not create LO_SUM address for constant addresses if the type can
1807 go in Altivec registers.
1809 2014-12-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1812 * pretty-print.c (output_buffer::output_buffer): Init flush_p to true.
1813 (pp_flush): Flush only if flush_p.
1814 (pp_really_flush): New.
1815 * pretty-print.h (struct output_buffer): Add flush_p.
1816 (pp_really_flush): Declare.
1818 2014-12-03 Jakub Jelinek <jakub@redhat.com>
1820 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add $(GENGTYPE_OBJS),
1821 gcc-ar.o, gcc-nm.o and gcc-ranlib.o.
1822 (GENGTYPE_OBJS): New.
1823 (gengtype-lex.o, gengtype-parse.o, gengtype-state.o, gengtype.o):
1824 Remove explicit dependencies.
1825 (CFLAGS-gengtype-lex.o, CFLAGS-gengtype-parse.o,
1826 CFLAGS-gengtype-state.o, CFLAGS-gengtype.o): Add -DHOST_GENERATOR_FILE
1827 instead of -DGENERATOR_FILE.
1828 (CFLAGS-errors.o): New.
1829 * gengtype.c: Instead of testing GENERATOR_FILE define, test
1830 HOST_GENERATOR_FILE. If defined, include config.h and define
1831 GENERATOR_FILE afterwards, otherwise include bconfig.h.
1832 * gengtype-parse.c: Likewise.
1833 * gengtype-state.c: Likewise.
1834 * gengtype-lex.l: Likewise.
1835 * errors.c: Likewise.
1837 2014-12-03 Joern Rennecke <joern.rennecke@embecosm.com>
1839 * config/epiphany/epiphany.c (epiphany_override_options):
1840 If TARGET_SOFT_CMPSF is not enabled, set flag_finite_math_only.
1841 * config/epiphany/epiphany.md (mov<mode>cc): Don't use
1842 reverse_condition_maybe_unordered if flag_finite_math_only is set.
1844 2014-12-03 Andrew Stubbs <ams@codesourcery.com>
1848 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
1849 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
1850 when architecture is older than ARMv7.
1852 2014-12-03 Richard Biener <rguenther@suse.de>
1854 * builtins.c (target_percent_c): Export.
1855 (fold_builtin_fprintf): Move to gimple-fold.c.
1856 (fold_builtin_2): Do not fold fprintf functions.
1857 (fold_builtin_3): Likewise.
1858 (fold_builtin_4): Remove.
1859 (fold_builtin_n): Do not call fold_builtin_4.
1860 * builtins.h (target_percent_c): Declare.
1861 * gimple-fold.c (gimple_fold_builtin_fprintf): Move from
1862 builtins.c and gimplify.
1863 (gimple_fold_builtin): Fold fprintf, fprintf_unlocked, vfprintf,
1864 fprintf_chk and vfprintf_chk here.
1866 2014-12-03 Martin Jambor <mjambor@suse.cz>
1869 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Check
1870 type sizes before view_converting.
1872 2014-12-03 H.J. Lu <hongjiu.lu@intel.com>
1874 PR rtl-optimization/64151
1875 PR rtl-optimization/64156
1876 * ira-costs.c (scan_one_insn): Revert r218266.
1878 2014-12-03 Richard Biener <rguenther@suse.de>
1880 * builtins.c (fold_builtin_fpclassify): Change to take
1881 array of arguments instead of CALL_EXPR tree.
1882 (MAX_ARGS_TO_FOLD_BUILTIN): Remove.
1883 (fold_builtin_n): Dispatch to fold_builtin_varargs.
1884 (fold_call_expr): Always use fold_builtin_n.
1885 (fold_builtin_call_array): Change to not build the unfolded call,
1886 always use fold_builtin_n.
1887 (fold_builtin_varargs): Change to take array of arguments instead
1889 (fold_call_stmt): Always use fold_builtin_n.
1890 * tree.c (build_call_expr_loc_array): Use fold_build_call_array_loc.
1891 * fold-const.c (fold_build_call_array_loc): Build the call
1892 if fold_builtin_call_array returned NULL_TREE.
1893 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Do not build
1894 a CALL_EXPR and use fold_builtin_call_array instead of
1897 2014-12-03 Alan Lawrence <alan.lawrence@arm.com>
1899 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>, orn<mode>3,
1900 bic<mode>3, add<mode>3, sub<mode>3, neg<mode>2, abs<mode>2, and<mode>3,
1901 ior<mode>3, xor<mode>3, one_cmpl<mode>2,
1902 aarch64_simd_lshr<mode> ,arch64_simd_ashr<mode>,
1903 aarch64_simd_imm_shl<mode>, aarch64_simd_reg_sshl<mode>,
1904 aarch64_simd_reg_shl<mode>_unsigned, aarch64_simd_reg_shr<mode>_signed,
1905 ashl<mode>3, lshr<mode>3, ashr<mode>3, vashl<mode>3,
1906 reduc_plus_scal_<mode>, aarch64_vcond_internal<mode><mode>,
1907 vcondu<mode><mode>, aarch64_cm<optab><mode>, aarch64_cmtst<mode>):
1908 Change VDQ to VDQ_I.
1910 (mul<mode>3): Change VDQM to VDQ_BHSI.
1911 (aarch64_simd_vec_set<mode>,vashr<mode>3, vlshr<mode>3, vec_set<mode>,
1912 aarch64_mla<mode>, aarch64_mls<mode>, <su><maxmin><mode>3,
1913 aarch64_<sur>h<addsub><mode>): Change VQ_S to VDQ_BHSI.
1915 (*aarch64_<su>mlal<mode>, *aarch64_<su>mlsl<mode>,
1916 aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>,
1917 aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>, aarch64_<sur>shll_n<mode>):
1918 Change VDW to VD_BHSI.
1919 (*aarch64_combinez<mode>, *aarch64_combinez_be<mode>):
1920 Change VDIC to VD_BHSI.
1922 * config/aarch64/aarch64-simd-builtins.def (saddl, uaddl, ssubl, usubl,
1923 saddw, uaddw, ssubw, usubw, shadd, uhadd, srhadd, urhadd, sshll_n,
1924 ushll_n): Change BUILTIN_VDW to BUILTIN_VD_BHSI.
1926 * config/aarch64/iterators.md (SDQ_I, VDQ, VQ_S, VSDQ_I_BHSI, VDQM, VDW,
1927 VDIC, VDQQHS): Remove.
1928 (Vwtype): Update comment (changing VDW to VD_BHSI).
1930 2014-12-03 Richard Biener <rguenther@suse.de>
1933 * builtins.c (fold_builtin_logarithm): Implement simplifications ...
1934 * match.pd: ... here as patterns.
1936 2014-12-03 Prachi Godbole <prachi.godbole@imgtec.com>
1938 * config/mips/p5600.md (define_automaton, define_cpu_unit): Replace
1939 p5600_agen_pipe and p5600_alu_pipe with p5600_agen_alq_pipe.
1940 (p5600_int_arith_1, p5600_int_arith_2, p5600_int_arith_4): Change
1943 2014-12-03 Tom de Vries <tom@codesourcery.com>
1945 PR rtl-optimization/63957
1946 * doc/invoke.texi: Replace -fuse-caller-save with -fipa-ra.
1947 * final.c (rest_of_handle_final): Replace flag_use_caller_save with
1949 (get_call_reg_set_usage): Same.
1950 * lra-assigns.c (lra_assign): Same.
1951 * lra-constraints.c (need_for_call_save_p): Same.
1952 * lra-lives.c (process_bb_lives): Same.
1953 * lra.c (lra): Same.
1954 * calls.c (expand_call): Same.
1955 (emit_library_call_value_1): Same.
1956 * config/arm/arm.c (arm_option_override): Same.
1957 * opts.c (default_options_table): Replace OPT_fuse_caller_save with
1959 * target.def (call_fusage_contains_non_callee_clobbers): Replace
1960 fuse-caller-save with fipa-ra.
1961 * doc/tm.texi (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Same.
1964 2014-12-03 Yury Gribov <y.gribov@samsung.com>
1966 * sanopt.c (maybe_get_single_definition): New function.
1967 (maybe_get_dominating_check): Ditto.
1968 (can_remove_asan_check): Ditto.
1969 (struct tree_map_traits): New struct.
1970 (struct sanopt_ctx): Use custom traits for asan_check_map.
1971 (maybe_optimize_ubsan_null_ifn): Move code to
1972 maybe_get_dominating_check.
1973 (maybe_optimize_asan_check_ifn): Move code and take non-SSA expressions
1974 into account when optimizing.
1975 (sanopt_optimize_walker): Optimize ASan checks even when
1978 2014-12-03 Ilya Enkovich <ilya.enkovich@intel.com>
1980 * config/i386/constraints.md (Yr): New.
1981 * config/i386/i386.h (reg_class): Add NO_REX_SSE_REGS.
1982 (REG_CLASS_NAMES): Likewise.
1983 (REG_CLASS_CONTENTS): Likewise.
1984 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add alternatives
1985 which use only NO_REX_SSE_REGS.
1986 (vec_set<mode>_0): Likewise.
1987 (*vec_setv4sf_sse4_1): Likewise.
1988 (sse4_1_insertps): Likewise.
1989 (*sse4_1_extractps): Likewise.
1990 (*sse4_1_mulv2siv2di3<mask_name>): Likewise.
1991 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Likewise.
1992 (*sse4_1_<code><mode>3<mask_name>): Likewise.
1993 (*sse4_1_<code><mode>3): Likewise.
1994 (*sse4_1_eqv2di3): Likewise.
1995 (sse4_2_gtv2di3): Likewise.
1996 (*vec_extractv4si): Likewise.
1997 (*vec_concatv2si_sse4_1): Likewise.
1998 (vec_concatv2di): Likewise.
1999 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Likewise.
2000 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Likewise.
2001 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Likewise.
2002 (<vi8_sse4_1_avx2_avx512>_movntdqa): Likewise.
2003 (<sse4_1_avx2>_mpsadbw): Likewise.
2004 (<sse4_1_avx2>packusdw<mask_name>): Likewise.
2005 (<sse4_1_avx2>_pblendvb): Likewise.
2006 (sse4_1_pblendw): Likewise.
2007 (sse4_1_phminposuw): Likewise.
2008 (sse4_1_<code>v8qiv8hi2<mask_name>): Likewise.
2009 (sse4_1_<code>v4qiv4si2<mask_name>): Likewise.
2010 (sse4_1_<code>v4hiv4si2<mask_name>): Likewise.
2011 (sse4_1_<code>v2qiv2di2<mask_name>): Likewise.
2012 (sse4_1_<code>v2hiv2di2<mask_name>): Likewise.
2013 (sse4_1_<code>v2siv2di2<mask_name>): Likewise.
2014 (sse4_1_ptest): Likewise.
2015 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Likewise.
2016 (sse4_1_round<ssescalarmodesuffix>): Likewise.
2017 * config/i386/subst.md (mask_prefix4): New.
2018 * config/i386/x86-tune.def (X86_TUNE_AVOID_4BYTE_PREFIXES): New.
2020 2014-12-03 Segher Boessenkool <segher@kernel.crashing.org>
2022 PR rtl-optimization/52714
2023 * combine.c (try_combine): Allow combining two insns into two
2024 new insns if at least one of those is a noop.
2026 2014-12-03 Bin Cheng <bin.cheng@arm.com>
2028 * target.def (fusion_priority): Wrap code with @smallexample.
2029 * doc/tm.texi: Regenerated.
2031 2014-12-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2033 * diagnostic.c (diagnostic_show_locus): Honor override_column when
2036 2014-12-02 Dmitry Vyukov <dvyukov@google.com>
2038 * asan.c: (asan_finish_file): Use default priority for constructors
2041 2014-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2044 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove
2045 invalid UNSPEC_TOCREL sanity check under ENABLE_CHECKING.
2047 2014-12-02 H.J. Lu <hongjiu.lu@intel.com>
2050 * config/i386/i386.c (decide_alg): Stop only if there aren't
2051 any usable algorithms.
2053 2014-12-02 Tom de Vries <tom@codesourcery.com>
2055 PR rtl-optimization/63718
2056 * config/arm/arm.c (arm_option_override): Disable fuse-caller-save for
2059 2014-12-02 Richard Biener <rguenther@suse.de>
2061 * match.pd: When combining divisions exclude the degenerate
2062 case involving INT_MIN from overflow handling.
2064 2014-12-02 Wilco Dijkstra <wilco.dijkstra@arm.com>
2066 * ira-costs.c (scan_one_insn): Improve spill cost adjustment.
2068 2014-12-02 Martin Jambor <mjambor@suse.cz>
2071 * ipa-cp.c (same_node_or_its_all_contexts_clone_p): New function.
2072 (cgraph_edge_brings_value_p): New parameter dest, use
2073 same_node_or_its_all_contexts_clone_p and check availability.
2074 (cgraph_edge_brings_value_p): Likewise.
2075 (get_info_about_necessary_edges): New parameter dest, pass it to
2076 cgraph_edge_brings_value_p. Update caller.
2077 (gather_edges_for_value): Likewise.
2078 (perhaps_add_new_callers): Use cgraph_edge_brings_value_p to check
2079 both the destination and availability.
2081 2014-12-02 Uros Bizjak <ubizjak@gmail.com>
2084 * config/alpha/alpha.md (call_value_osf_tlsgd): Do not split insn
2085 using post-reload splitter. Use peephole2 pass instead.
2086 (call_value_osf_tlsldm): Ditto.
2087 (TLS_CALL): New int iterator.
2088 (tls): New int attribute.
2089 (call_value_osf_<tls>): Merge insn pattern from call_value_osf_tlsgd
2090 and call_value_tlsldm using TLS_CALL int iterator.
2092 2014-12-02 Richard Biener <rguenther@suse.de>
2093 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
2095 * genmatch.c: Include hash-set.h.
2096 (fatal_at): Add source_location overload.
2097 (parser::record_operlist): New method.
2098 (parser::push_simplify): Likewise.
2099 (parser::oper_lists_set): New member.
2100 (parser::oper_lists): Likewise.
2101 (parser::parse_operation): Record seen operator list references.
2102 (parser::parse_c_expr): Likewise.
2103 (parser::parse_simplify): Init oper_lists_set and oper_lists
2104 and use push_simplify.
2105 (parser::parser): Init oper_lists_set and oper_lists.
2107 2014-12-02 Richard Biener <rguenther@suse.de>
2109 * match.pd: Restrict division combining to trunc_div and
2112 2014-12-02 Jakub Jelinek <jakub@redhat.com>
2114 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv):
2115 Remove NULL last argument from create_tmp_var calls.
2116 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Likewise.
2117 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv): Likewise.
2118 * config/i386/i386.c (add_condition_to_bb,
2119 ix86_atomic_assign_expand_fenv): Likewise.
2120 * config/mep/mep.c (mep_gimplify_va_arg_expr): Likewise.
2121 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
2122 * config/aarch64/aarch64-builtins.c
2123 (aarch64_atomic_assign_expand_fenv): Likewise.
2124 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
2126 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): Likewise.
2127 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Likewise.
2128 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
2130 * config/alpha/alpha.c (alpha_gimple_fold_builtin): Use
2131 gimple_build_assign instead of gimple_build_assign_with_ops and swap
2132 the order of first two arguments.
2133 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
2134 Likewise. Remove last NULL_TREE argument.
2136 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2138 PR rtl-optimization/59278
2139 * combine (reg_dead_at_p): Consider REG_UNUSED notes.
2141 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2143 * combine.c (try_combine): Use is_parallel_of_n_reg_sets some more.
2145 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2147 * combine.c (is_parallel_of_n_reg_sets): New function.
2148 (can_split_parallel_of_n_reg_sets): New function.
2149 (try_combine): If I2 is a PARALLEL of two SETs, split it into
2150 two insns if possible.
2152 2014-12-01 Tobias Burnus <burnus@net-b.de>
2153 Jack Howarth <howarth@bromo.med.uc.edu>
2156 * configure.ac (ac_has_isl_schedule_constraints_compute_schedule):
2158 * doc/install.texi (ISL): Permit ISL 0.14.
2159 * graphite-optimize-isl.c (getScheduleForBandList, optimize_isl):
2160 Conditionally use ISL 0.13+ functions.
2161 * graphite-interchange.c: Make 'extern "C"' conditional.
2162 * graphite-isl-ast-to-gimple.c: Ditto.
2163 * graphite-poly.c: Ditto.
2164 * graphite-sese-to-poly.c: Ditto.
2165 * config.in: Regenerate.
2166 * gcc/configure: Regenerate.
2168 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2170 * combine.c (distribute_links): Handle multiple SETs.
2172 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2174 * combine.c (struct insn_link): New field `regno'.
2175 (alloc_insn_link): New parameter `regno'. Use it.
2176 (find_single_use): Check the new field.
2177 (can_combine_def_p, can_combine_use_p): New functions. Split
2179 (create_log_links): ... here. Correct data type of `regno'.
2180 Adjust call to alloc_insn_link.
2181 (adjust_for_new_dest): Find regno, use it in call to
2183 (try_combine): Check reg_used_between_p when combining a PARALLEL
2184 as earlier insn. Adjust call to alloc_insn_link.
2185 (distribute_links): Check the new field.
2187 2014-12-01 David Malcolm <dmalcolm@redhat.com>
2190 * real.c (real_from_string): Add missing mpfr_clear.
2192 2014-12-01 David Malcolm <dmalcolm@redhat.com>
2195 * tree-ssa-math-opts.c (execute_cse_sincos_1): Fix a missing
2196 release of stmts by converting it to an auto_vec.
2198 2014-12-01 Richard Biener <rguenther@suse.de>
2200 * Makefile.in (gimple-match.o-warn): Use -Wno-unused instead of
2201 -Wno-unused-variable and -Wno-unused-but-set-variable to restore
2202 bootstrap with old GCC.
2203 (generic-match.o-warn): Likewise.
2205 2014-12-01 Richard Biener <rguenther@suse.de>
2207 * fold-const.c (const_binop): Handle POINTER_PLUS_EXPR.
2208 Properly handle FIXED_CST shifts by INTEGER_CST.
2209 (const_binop): Move COMPLEX_EXPR, VEC_PACK_TRUNC_EXPR,
2210 VEC_PACK_FIX_TRUNC_EXPR, VEC_WIDEN_MULT_LO_EXPR,
2211 VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_EVEN_EXPR and
2212 VEC_WIDEN_MULT_ODD_EXPR handling here from ...
2213 (fold_binary_loc): ... here. Call const_binop overload
2216 2014-12-01 Marek Polacek <polacek@redhat.com>
2217 Jakub Jelinek <jakub@redhat.com>
2220 * ubsan.c (instrument_object_size): Stop searching if the base
2221 occurs in abnormal phi.
2223 2014-12-01 Marek Polacek <polacek@redhat.com>
2226 * ubsan.c (is_ubsan_builtin_p): Check also built-in class.
2228 2014-12-01 Jakub Jelinek <jakub@redhat.com>
2230 * gimple.h (gimple_build_assign_stat): Remove prototype.
2231 (gimple_build_assign): Remove define. Add overload prototypes
2232 with tree lhs and either a tree rhs, or enum tree_code and
2233 1, 2 or 3 tree operands.
2234 * gimple.c (gimple_build_assign_stat): Renamed to...
2235 (gimple_build_assign): ... this. Add overloads with
2236 enum tree_code and 1, 2 or 3 tree operands.
2237 (gimple_build_assign_with_ops): Remove 1 and 2 operand overloads.
2238 Rename the 3 operand overload to ...
2239 (gimple_build_assign_1): ... this. Make it static inline.
2240 * tree-ssa-strlen.c (get_string_length): Use gimple_build_assign
2241 instead of gimple_build_assign_with_ops, swap the order of first
2242 two arguments and adjust formatting where necessary.
2243 * tree-vect-slp.c (vect_get_constant_vectors,
2244 vect_create_mask_and_perm): Likewise.
2245 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
2246 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
2247 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
2248 * tsan.c (instrument_builtin_call): Likewise.
2249 * tree-chkp.c (chkp_compute_bounds_for_assignment,
2250 chkp_generate_extern_var_bounds): Likewise.
2251 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
2252 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
2253 * gimple-builder.c (build_assign, build_type_cast): Likewise.
2254 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
2255 * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
2256 gimple_mod_subtract): Likewise.
2257 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
2258 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
2259 vect_recog_sad_pattern, vect_handle_widen_op_by_const,
2260 vect_recog_widen_mult_pattern, vect_recog_pow_pattern,
2261 vect_recog_widen_sum_pattern, vect_operation_fits_smaller_type,
2262 vect_recog_over_widening_pattern, vect_recog_widen_shift_pattern,
2263 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
2264 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
2265 adjust_bool_pattern_cast, adjust_bool_pattern,
2266 vect_recog_bool_pattern): Likewise.
2267 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
2268 insert_initializers, introduce_cast_before_cand,
2269 replace_one_candidate): Likewise.
2270 * tree-ssa-math-opts.c (insert_reciprocals, powi_as_mults_1,
2271 powi_as_mults, build_and_insert_binop, build_and_insert_cast,
2272 pass_cse_sincos::execute, bswap_replace, convert_mult_to_fma):
2274 * tree-tailcall.c (adjust_return_value_with_ops,
2275 update_accumulator_with_ops): Likewise.
2276 * tree-predcom.c (reassociate_to_the_same_stmt): Likewise.
2277 * tree-ssa-reassoc.c (build_and_add_sum,
2278 optimize_range_tests_to_bit_test, update_ops,
2279 maybe_optimize_range_tests, rewrite_expr_tree, linearize_expr,
2280 negate_value, repropagate_negates, attempt_builtin_powi,
2281 reassociate_bb): Likewise.
2282 * tree-vect-loop.c (vect_is_simple_reduction_1,
2283 get_initial_def_for_induction, vect_create_epilog_for_reduction):
2285 * ipa-split.c (split_function): Likewise.
2286 * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
2287 abs_replacement, neg_replacement): Likewise.
2288 * tree-profile.c (gimple_gen_edge_profiler): Likewise.
2289 * tree-vrp.c (simplify_truth_ops_using_ranges,
2290 simplify_float_conversion_using_ranges,
2291 simplify_internal_call_using_ranges): Likewise.
2292 * gimple-fold.c (rewrite_to_defined_overflow, gimple_build): Likewise.
2293 * tree-vect-generic.c (expand_vector_divmod,
2294 optimize_vector_constructor): Likewise.
2295 * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn,
2296 instrument_bool_enum_load): Likewise.
2297 * tree-ssa-loop-manip.c (create_iv): Likewise.
2298 * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
2299 expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
2300 expand_cilk_for, simd_clone_adjust): Likewise.
2301 * trans-mem.c (expand_transaction): Likewise.
2302 * tree-vect-data-refs.c (bump_vector_ptr, vect_permute_store_chain,
2303 vect_setup_realignment, vect_permute_load_chain,
2304 vect_shift_permute_load_chain): Likewise.
2305 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
2306 vectorizable_simd_clone_call, vect_gen_widened_results_half,
2307 vect_create_vectorized_demotion_stmts, vectorizable_conversion,
2308 vectorizable_shift, vectorizable_operation, vectorizable_store,
2309 permute_vec_elements, vectorizable_load): Likewise.
2311 2014-12-01 Richard Biener <rguenther@suse.de>
2314 * tree.c (int_cst_hasher::hash): Use TYPE_UID instead of
2315 htab_hash_pointer to not break PCH.
2317 2014-12-01 Richard Biener <rguenther@suse.de>
2319 PR tree-optimization/15346
2320 * Makefile.in (gimple-match.o-warn): Remove -Wno-unused-parameter,
2321 add -Wno-unused-but-set-variable.
2322 * match.pd: Combine two successive divisions.
2324 2014-12-01 Richard Biener <rguenther@suse.de>
2327 * match.pd: Allow conversions in ~A + 1 -> -A, add -A - 1 -> ~A
2329 * fold-const.c (fold_binary_loc): Remove transforms here.
2331 2014-12-01 Maciej W. Rozycki <macro@codesourcery.com>
2333 * config/mips/mips.c (mips16_build_call_stub): Move the save of
2334 the return address in $18 ahead of passing arguments to FPRs.
2336 2014-12-01 Ilya Enkovich <ilya.enkovich@intel.com>
2339 * tree-chkp.c (chkp_find_bound_slots_1): Allow non constant
2340 values in array domain.
2342 2014-12-01 Yuri Rumyantsev <ysrumyan@gmail.com>
2344 PR tree-optimization/63941
2345 * tree-if-conv.c (add_to_predicate_list): Delete wrong assertion that
2346 DOM_BB has non-true predicate, conditionally set non-true predicate
2349 2014-12-01 Martin Jambor <mjambor@suse.cz>
2352 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Convert
2353 value of the argument to the type of the value in the condition.
2355 2014-12-01 Oleg Endo <olegendo@gcc.gnu.org>
2359 * config/sh/sh.c (sh_unspec_insn_p,
2360 sh_insn_operands_modified_between_p): New functions.
2361 (sh_split_movrt_negc_to_movt_xor): Do not delete insn if its operands
2362 are modified or if it has side effects, may trap or is volatile.
2364 2014-11-29 Jakub Jelinek <jakub@redhat.com>
2366 * gimple-expr.h (create_tmp_var_raw, create_tmp_var,
2367 create_tmp_reg): Add default NULL value to last argument.
2368 * tree-ssanames.h (make_ssa_name, copy_ssa_name): Likewise.
2369 * gimple-low.c (lower_builtin_posix_memalign): Remove NULL
2370 last argument from create_tmp_var_raw, create_tmp_var,
2371 create_tmp_reg, make_ssa_name and copy_ssa_name calls.
2372 * tree-ssa-strlen.c (get_string_length): Likewise.
2373 * tree-emutls.c (gen_emutls_addr, lower_emutls_1): Likewise.
2374 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
2375 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2376 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2377 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
2378 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2379 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
2380 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
2381 * tsan.c (instrument_expr, instrument_builtin_call,
2382 instrument_func_entry): Likewise.
2383 * varpool.c (add_new_static_var): Likewise.
2384 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
2385 * gimplify.c (internal_get_tmp_var, gimplify_return_expr,
2386 gimplify_modify_expr_to_memcpy, gimplify_modify_expr_to_memset,
2387 gimplify_init_ctor_eval_range, gimplify_init_constructor,
2388 gimplify_omp_atomic, gimplify_expr): Likewise.
2389 * gimple-builder.c (build_assign, build_type_cast): Likewise.
2390 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1,
2391 slpeel_update_phi_nodes_for_guard2, slpeel_tree_peel_loop_to_edge,
2392 vect_loop_versioning): Likewise.
2393 * tree-if-conv.c (version_loop_for_if_conversion): Likewise.
2394 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
2395 * tree-vect-patterns.c (vect_handle_widen_op_by_const,
2396 vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
2397 vect_recog_over_widening_pattern): Likewise.
2398 * tree-sra.c (build_ref_for_offset, create_access_replacement):
2400 * tree-cfg.c (make_blocks): Likewise.
2401 * tree-eh.c (lower_eh_constructs_2, lower_resx, lower_eh_dispatch):
2403 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
2404 * tree-complex.c (get_component_ssa_name, expand_complex_div_wide):
2406 * tree-ssa-math-opts.c (build_and_insert_cast): Likewise.
2407 * tree-tailcall.c (update_accumulator_with_ops): Likewise.
2408 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm,
2409 execute_load_motion, reassociate_to_the_same_stmt): Likewise.
2410 * tree-ssa-reassoc.c (build_and_add_sum,
2411 optimize_range_tests_to_bit_test, update_ops,
2412 maybe_optimize_range_tests, rewrite_expr_tree, linearize_expr,
2413 negate_value, repropagate_negates): Likewise.
2414 * tree-vect-loop.c (vect_is_simple_reduction_1,
2415 vect_create_epilog_for_reduction): Likewise.
2416 * ipa-split.c (split_function): Likewise.
2417 * tree-inline.c (remap_ssa_name, setup_one_parameter,
2418 declare_return_variable, tree_function_versioning): Likewise.
2419 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
2420 * cfgexpand.c (update_alias_info_with_stack_vars, expand_used_vars):
2422 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
2423 neg_replacement): Likewise.
2424 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
2426 * tree-vrp.c (simplify_truth_ops_using_ranges,
2427 simplify_float_conversion_using_ranges,
2428 simplify_internal_call_using_ranges): Likewise.
2429 * tree-switch-conversion.c (emit_case_bit_tests,
2430 build_one_array, build_arrays, gen_def_assigns): Likewise.
2431 * gimple-fold.c (gimple_fold_builtin_memory_op,
2432 gimple_fold_builtin_strcat, gimple_fold_call, gimple_build): Likewise.
2433 * tree-vect-generic.c (expand_vector_divmod,
2434 optimize_vector_constructor): Likewise.
2435 * ubsan.c (ubsan_encode_value, ubsan_expand_null_ifn,
2436 ubsan_expand_objsize_ifn, instrument_si_overflow,
2437 instrument_bool_enum_load, instrument_nonnull_arg): Likewise.
2438 * tree-outof-ssa.c (insert_backedge_copies): Likewise.
2439 * tree-ssa-loop-manip.c (create_iv,
2440 tree_transform_and_unroll_loop): Likewise.
2441 * omp-low.c (scan_omp_parallel, lower_rec_simd_input_clauses,
2442 lower_rec_input_clauses, lower_lastprivate_clauses,
2443 expand_parallel_call, expand_omp_for_static_chunk,
2444 expand_omp_atomic_pipeline, expand_omp_target,
2445 maybe_add_implicit_barrier_cancel, lower_omp_single_simple,
2446 lower_omp_critical, lower_omp_for, task_copyfn_copy_decl,
2447 lower_depend_clauses, lower_omp_target, lower_omp_1,
2448 ipa_simd_modify_stmt_ops, simd_clone_adjust): Likewise.
2449 * tree-parloops.c (take_address_of, create_phi_for_local_result,
2450 create_call_for_reduction_1, separate_decls_in_region,
2451 create_parallel_loop): Likewise.
2452 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence,
2453 handle_scalar_deps_crossing_scop_limits): Likewise.
2454 * trans-mem.c (lower_transaction, build_tm_load, build_tm_store,
2455 expand_assign_tm, expand_call_tm, expand_transaction,
2456 ipa_tm_insert_gettmclone_call): Likewise.
2457 * tree-vect-data-refs.c (bump_vector_ptr, vect_setup_realignment):
2459 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
2460 vectorizable_call, vectorizable_simd_clone_call,
2461 vectorizable_conversion, vectorizable_store, permute_vec_elements,
2462 vectorizable_load): Likewise.
2464 2014-11-29 Tobias Burnus <burnus@net-b.de>
2465 Manuel López-Ibáñez <manu@gcc.gnu.org>
2467 * opt-functions.awk (lang_enabled_by): Support || for
2469 * optc-gen.awk: Ditto.
2470 * doc/options.texi (LangEnabledBy, EnabledBy): Document the
2473 2014-11-28 Mike Stump <mikestump@comcast.net>
2475 * bitmap.c (bitmap_ior): Zap current as it could be deleted.
2476 (bitmap_ior_and_compl): Likewise.
2478 2014-11-28 Vladimir Makarov <vmakarov@redhat.com>
2481 * lra.c (lra_substitute_pseudo): Ignore constant with int mode for
2484 2014-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2487 * config/rs6000/rs6000.md (and<mode>3): Don't generate
2488 and<mode>3_imm unless rs6000_gen_cell_microcode is true.
2490 2014-11-28 Vladimir Makarov <vmakarov@redhat.com>
2492 PR rtl-optimization/64087
2493 * lra-lives.c (process_bb_lives): Add debug output.
2494 (lra_create_live_ranges): Don't remove dead insn on the second
2495 call of lra_create_live_ranges_1.
2497 2014-11-28 H.J. Lu <hongjiu.lu@intel.com>
2499 PR rtl-optimization/64037
2500 * combine.c (setup_incoming_promotions): Pass the argument
2501 before any promotions happen to promote_function_mode.
2503 2014-11-28 Evgeny Stupachenko <evstupac@gmail.com>
2505 * tree-vect-data-refs.c (vect_transform_grouped_load): Limit shift
2506 permutations to loads group of size 3.
2508 2014-11-28 Jiong Wang <jiong.wang@arm.com>
2510 * config/arm/arm.md (copysignsf3): New pattern.
2511 (copysigndf3): Likewise.
2513 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
2514 Ilya Verbin <ilya.verbin@intel.com>
2516 * omp-low.c (lower_omp_critical): Mark critical sections
2517 inside target functions as offloadable.
2519 2014-11-28 Ilya Verbin <ilya.verbin@intel.com>
2521 * lto-wrapper.c (run_gcc): Set have_lto and have_offload if at least one
2522 file contains sections with LTO and offload IR, respectively.
2524 2014-11-28 Ilya Verbin <ilya.verbin@intel.com>
2526 * cgraphunit.c (ipa_passes): Handle flag_generate_offload.
2527 (symbol_table::compile): Set flag_generate_offload if there is something
2529 * common.opt (flag_generate_offload): New Variable declaration.
2530 * dwarf2out.c (dwarf2out_finish): Handle flag_generate_offload.
2531 * ipa-inline-analysis.c (inline_generate_summary): Do not skip if
2532 flag_generate_offload is set.
2533 * lto-streamer.c (gate_lto_out): Handle flag_generate_offload.
2534 * passes.c (ipa_write_summaries): Do not skip if flag_generate_offload
2536 * toplev.c (compile_file): Emit LTO marker if offload info has been
2537 previously emitted. Do not emit lto_slim marker if
2538 flag_generate_offload is without flag_generate_lto.
2539 * tree.c (free_lang_data): Do not skip if flag_generate_offload is set.
2541 2014-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2543 * config/arm/arm-cores.def (cortex-a17.cortex-a7): New entry.
2544 * config/arm/arm-tables.opt: Regenerate.
2545 * config/arm/arm-tune.md: Regenerate.
2546 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a17.cortex-a7.
2547 * config/arm/t-aprofile: Add cortex-a17.cortex-a7 entry to
2550 2014-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2552 * config/arm/arm.md (generic_sched): Specify cortexa17 in 'no' list.
2553 Include cortex-a17.md.
2554 * config/arm/arm.c (arm_issue_rate): Specify 2 for cortexa17.
2555 * config/arm/arm-cores.def (cortex-a17): New entry.
2556 * config/arm/arm-tables.opt: Regenerate.
2557 * config/arm/arm-tune.md: Regenerate.
2558 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=cortex-a17.
2559 * config/arm/cortex-a17.md: New file.
2560 * config/arm/cortex-a17-neon.md: New file.
2561 * config/arm/driver-arm.c (arm_cpu_table): Add entry for cortex-a17.
2562 * config/arm/t-aprofile: Add cortex-a17 entries to MULTILIB_MATCHES.
2564 2014-11-28 Richard Biener <rguenther@suse.de>
2567 * genmatch.c (dt_node::gen_kids_1): New function, split out
2568 from dt_node::gen_kids.
2569 (decision_tree::cmp_node): DT_TRUE are generally not equal.
2570 (decision_tree::find_node): Treat DT_TRUE as barrier for
2571 node CSE on the same level.
2572 (dt_node::append_node): Do not keep DT_TRUE last.
2573 (dt_node::gen_kids): Emit code after each DT_TRUE node seen.
2575 2014-11-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2577 * config/arm/t-aprofile (MULTILIB_MATCHES): New entry for
2580 2014-11-27 Uros Bizjak <ubizjak@gmail.com>
2582 * config/i386/i386.md (preferred_for_size): New attribute
2583 (*pushxf): Split Yx*r constraints to r,*r. Use preferred_for_size
2584 attribute to conditionally disable alternative 1.
2585 (*pushdf): Split Yd*r constraints to r,*r. Use preferred_for_size
2586 and prefered_for_speed attributes to conditionally disable
2588 (*movxf_internal): Split Yx*r constraints to r,*r. Use
2589 preferred_for_size attribute to conditionally disable
2590 alternatives 3 and 4.
2591 (*movdf_internal): Split Yd*r constraints to r,*r. Use
2592 preferred_for_size and prefered_for_speed attributes to conditionally
2593 disable alternatives 3 and 4.
2594 * config/i386/constraints.md (Yd, Yx): Remove register constraints.
2596 2014-11-27 Eric Botcazou <ebotcazou@adacore.com>
2598 * dwarf2out.c (set_block_origin_self): Skip nested functions.
2600 2014-11-27 H.J. Lu <hongjiu.lu@intel.com>
2603 * config/i386/i386.h (REAL_PIC_OFFSET_TABLE_REGNUM): Use
2605 * config/i386/rdos64.h (REAL_PIC_OFFSET_TABLE_REGNUM): Removed.
2607 2014-11-27 Martin Liska <mliska@suse.cz>
2608 David Malcolm <dmalcolm@redhat.com>
2610 * ipa-icf.c (sem_function::equals_private): int* is replaced with
2612 (sem_function::bb_dict_test): Likewise.
2613 * ipa-icf.h: Likewise.
2615 2014-11-27 Richard Biener <rguenther@suse.de>
2618 * fold-const.c (const_unop): Re-instantiate missing condition
2619 before calling fold_abs_const.
2621 PR tree-optimization/64088
2622 * tree-ssa-tail-merge.c (update_debug_stmt): After resetting
2623 the stmt break from the loop over use operands.
2625 2014-11-27 Ilya Tocar <ilya.tocar@intel.com>
2627 * config/i386/cpuid.h (bit_MPX, bit_BNDREGS, bit_BNDCSR):
2629 * config/i386/i386.c (get_builtin_code_for_version): Add avx512f.
2630 (fold_builtin_cpu): Ditto.
2631 * doc/extend.texi: Documment it.
2633 2014-11-27 Jakub Jelinek <jakub@redhat.com>
2636 * expr.c (expand_expr_addr_expr_1) <case COMPOUND_LITERAL_EXPR>:
2637 Handle it by returning address of COMPOUND_LITERAL_EXPR_DECL
2638 not only if modifier is EXPAND_INITIALIZER, but whenever
2639 COMPOUND_LITERAL_EXPR_DECL is non-NULL and TREE_STATIC.
2641 PR tree-optimization/64024
2642 * tree-vectorizer.h (struct _stmt_vec_info): Remove simd_clone_fndecl
2643 field. Add simd_clone_info field.
2644 (STMT_VINFO_SIMD_CLONE_FNDECL): Remove.
2645 (STMT_VINFO_SIMD_CLONE_INFO): Define.
2646 * tree-vect-stmts.c (vectorizable_simd_clone_call): Adjust for
2647 STMT_VINFO_SIMD_CLONE_FNDECL becoming first element of
2648 STMT_VINFO_SIMD_CLONE_INFO vector. For linear arguments, remember
2649 base and linear_step from analysis phase and use it during transform
2650 phase, biased by the difference between LOOP_VINFO_NITERS{_UNCHANGED,}
2651 multiplied by linear_step.
2652 (free_stmt_vec_info): Release STMT_VINFO_SIMD_CLONE_INFO.
2655 * alias.c (find_base_term): Use std::swap. Prefer tmp2
2656 if it is CONSTANT_P other than CONST_INT.
2658 2014-11-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
2661 * config/arm/arm.c (dump_minipool): dispatch to consttable pattern
2663 * config/arm/arm.md (consttable_1): Move from config/arm/thumb1.md and
2664 make it TARGET_EITHER.
2665 (consttable_2): Move from config/arm/thumb1.md, make it TARGET_EITHER
2666 and move HFmode handling from consttable_4 to it.
2667 (consttable_4): Move HFmode handling to consttable_2 pattern.
2668 * config/arm/thumb1.md (consttable_1): Move to config/arm/arm.md.
2669 (consttable_2): Ditto.
2671 2014-11-27 Richard Biener <rguenther@suse.de>
2673 * tree-ssa-sccvn.c (try_to_simplify): Allow
2674 gimple_fold_stmt_to_constant_1 to follow SSA edges.
2676 2014-11-27 Richard Biener <rguenther@suse.de>
2678 PR tree-optimization/64083
2679 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
2680 forcibly mark loop for removal the wrong way.
2682 2014-11-27 Richard Biener <rguenther@suse.de>
2685 * alias.c (mems_in_disjoint_alias_sets_p): Remove assert
2686 and instead return false when !fstrict-aliasing.
2688 2014-11-27 Richard Biener <rguenther@suse.de>
2690 PR tree-optimization/61634
2691 * tree-vect-slp.c: Include gimple-walk.h.
2692 (vect_detect_hybrid_slp_stmts): Rewrite to propagate hybrid
2693 down the SLP tree for one scalar statement.
2694 (vect_detect_hybrid_slp_1): New walker function.
2695 (vect_detect_hybrid_slp_2): Likewise.
2696 (vect_detect_hybrid_slp): Properly handle pattern statements
2697 in a pre-scan over all loop stmts.
2699 2014-11-27 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2702 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2703 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
2704 aarch64_convert_mode, aarch64_gen_ccmp_first,
2705 aarch64_gen_ccmp_next): New functions.
2706 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
2708 2014-11-26 Jakub Jelinek <jakub@redhat.com>
2710 * gcc.c (SANITIZER_SPEC): Don't error on -fsanitize=thread
2711 without -pie or -shared, error on -fsanitize=thread -static instead.
2713 2014-11-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
2716 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Fix comment.
2717 (cgraph_node::function_or_virtual_thunk_symbol): New function.
2718 (cgraph_node::call_for_symbol_and_aliases): Fix comment.
2719 (cgraph_node::call_for_symbol_thunks_and_aliases): Adjust comment.
2720 Add new optional parameter exclude_virtual_thunks.
2721 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Add new
2722 optional parameter exclude_virtual_thunks.
2723 (cgraph_node::set_const_flag): Don't propagate to virtual thunks.
2724 (cgraph_node::set_pure_flag): Likewise.
2725 (cgraph_node::function_symbol): Simplified.
2726 (cgraph_node::function_or_virtual_thunk_symbol): New function.
2727 * ipa-pure-const.c (analyze_function): For virtual thunks set
2728 pure_const_state to IPA_NEITHER.
2729 (propagate_pure_const): Use function_or_virtual_thunk_symbol.
2731 2014-11-26 Richard Biener <rguenther@suse.de>
2734 * tree-data-ref.c (split_constant_offset_1): Do not follow
2735 SSA edges for SSA names with SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2737 2014-11-26 Richard Biener <rguenther@suse.de>
2739 * fold-const.h (const_unop): Declare.
2740 (const_binop): Likewise.
2741 * fold-const.c (const_binop): Export overload that expects
2742 a type parameter and dispatches to fold_relational_const as well.
2743 Check both operand kinds for guarding the transforms.
2744 (const_unop): New function, with constant folding from fold_unary_loc.
2745 (fold_unary_loc): Dispatch to const_unop for tcc_constant operand.
2746 Remove constant folding done there from the simplifications.
2747 (fold_binary_loc): Check for constants using CONSTANT_CLASS_P.
2748 (fold_negate_expr): Remove dead code from the REAL_CST case.
2749 Avoid building garbage in the COMPLEX_CST case.
2750 * gimple-match-head.c (gimple_resimplify1): Dispatch to
2752 (gimple_resimplify2): Dispatch to const_binop.
2753 (gimple_simplify): Likewise.
2755 2014-11-26 Ilya Enkovich <ilya.enkovich@intel.com>
2758 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Ignore
2759 debug statement when searching for a new position for
2760 bounds load/creation statement.
2762 2014-11-26 Marek Polacek <polacek@redhat.com>
2765 * asan.c (initialize_sanitizer_builtins): Add BT_FN_SIZE_CONST_PTR_INT
2766 var. Conditionally build BUILT_IN_OBJECT_SIZE decl.
2767 (ATTR_PURE_NOTHROW_LEAF_LIST): Define.
2769 2014-11-26 Ilya Enkovich <ilya.enkovich@intel.com>
2772 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Use
2773 proper size for function_code bitfield.
2774 (pack_ts_function_decl_value_fields): Likewise.
2776 2014-11-21 Mark Wielaard <mjw@redhat.com>
2778 * doc/invoke.texi (-gdwarf-@{version}): Mention experimental DWARFv5.
2779 * opts.c (common_handle_option): Accept -gdwarf-5.
2780 * dwarf2out.c (is_cxx): Add DW_LANG_C_plus_plus_11 and
2781 DW_LANG_C_plus_plus_14.
2782 (lower_bound_default): Likewise. Plus DW_LANG_C11.
2783 (gen_compile_unit_die): Output DW_LANG_C_plus_plus_11,
2784 DW_LANG_C_plus_plus_14 or DW_LANG_C11.
2785 (output_compilation_unit_header): Output at most a DWARFv4 header.
2786 (output_skeleton_debug_sections): Likewise.
2787 (output_line_info): Likewise.
2788 (output_aranges): Document header version number.
2790 2014-11-26 Richard Biener <rguenther@suse.de>
2792 * gimple-fold.c (get_symbol_constant_value): Allow all
2793 GIMPLE register type zero-constants.
2795 2014-11-26 Mark Wielaard <mjw@redhat.com>
2797 * dwarf2out.c (gen_subprogram_die): Add DW_AT_noreturn when the
2798 function decl has TREE_THIS_VOLATILE.
2800 2014-11-26 Richard Biener <rguenther@suse.de>
2802 PR tree-optimization/62238
2803 * tree-predcom.c (ref_at_iteration): Unshare the expression
2804 before gimplifying it.
2805 (prepare_initializers_chain): Discard unused seq.
2807 2014-11-26 Prachi Godbole <prachi.godbole@imgtec.com>
2809 * config/mips/mips.c (mips_rtx_cost_data): Fix memory_latency cost
2812 2014-11-25 Vladimir Makarov <vmakarov@redhat.com>
2814 * ira-lives.c (process_bb_node_lives): Make code with conditional
2815 REAL_PIC_OFFSET_TABLE_REGNUM.
2817 2014-11-25 Vladimir Makarov <vmakarov@redhat.com>
2820 * ira-lives.c (process_bb_node_lives): Check and remove conflict
2821 of pic pseudo with pic hard reg.
2823 2014-11-25 Rohit <rohitarulraj@freescale.com>
2826 * config/rs6000/darwin.h (REGISTER_NAMES): Update based on 32 newly
2827 added GCC hard register numbers for SPE high registers.
2829 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2831 * bt-load.c (migrate_btr_defs): Get the key of a heap entry
2832 before removing it, not after.
2834 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2836 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Remove
2839 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2841 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_POP): Use addi instead
2844 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2846 * config/rs6000/rs6000.md (iorxor, IORXOR): Delete code_attrs.
2847 (rest of file): Replace those with code resp. CODE.
2849 2014-11-25 Tom de Vries <tom@codesourcery.com>
2851 * tree-cfg.c (verify_sese): New function.
2852 (move_sese_region_to_fn): Call verify_sese.
2853 * tree-cfg.h (verify_sese): Declare.
2855 2014-11-25 Richard Biener <rguenther@suse.de>
2858 * lto-streamer-out.c (output_struct_function_base): Stream
2860 * lto-streamer-in.c (input_struct_function_base): Likewise.
2862 2014-11-25 Martin Liska <mliska@suse.cz>
2866 * sreal.c (sreal::operator+): Addition fixed.
2867 (sreal::signedless_plus): Negative numbers are
2869 (sreal::operator-): Subtraction is fixed.
2870 (sreal::signedless_minus): Negative numbers are
2872 * sreal.h (sreal::operator<): Equal negative numbers
2873 are compared correctly.
2874 (sreal::shift): New checking asserts are introduced.
2877 2014-11-25 Richard Biener <rguenther@suse.de>
2879 PR tree-optimization/61927
2880 * tree-vect-loop.c (vect_analyze_loop_2): Revert ordering
2881 of group and pattern analysis to the one in GCC 4.8.
2883 2014-11-25 Ilya Tocar <ilya.tocar@intel.com>
2884 Jakub Jelinek <jakub@redhat.com>
2886 * gcc.c (handle_foffload_option): Remove unnecessary calls to strchr,
2888 * lto-wrapper.c (append_offload_options): Likewise.
2890 2014-11-25 Eric Botcazou <ebotcazou@adacore.com>
2892 * config/rs6000/rs6000.c (rs6000_call_aix): For the AIX ABI, do not
2893 load the static chain if the call was originally direct.
2895 2014-11-25 Jan Hubicka <hubicka@ucw.cz>
2898 * ipa-prop.c (ipa_analyze_call_uses): Don't call get_dynamic_type when
2899 devirtualization is disabled.
2901 2014-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2904 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
2905 Altivec & -16 mask if the type is not valid for Altivec registers.
2906 (rs6000_secondary_reload_memory): Add support for ((reg + const) +
2907 reg) that occurs during push_reload processing.
2909 * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
2910 alternative for moving constant vectors which are easy altivec
2911 constants to GPRs. Set the length attribute each of the
2914 * config/rs6000/rs6000-cpus.def: Undo November 21st changes, a
2915 work in progress patch was committed instead of the fixes for
2917 * config/rs6000/rs6000.c: Likewise.
2919 2014-11-22 Jan Hubicka <hubicka@ucw.cz>
2922 * ipa-inline-transform.c (can_remove_node_now_p_1): Handle alises
2923 and -fno-devirtualize more carefully.
2924 (can_remove_node_now_p): Update.
2926 2014-11-24 Andrew Pinski <apinski@cavium.com>
2929 * shrink-wrap.c (move_insn_for_shrink_wrap): Allow LO_SUM also.
2931 2014-11-24 Alan Lawrence <alan.lawrence@arm.com>
2933 * config/aarch64/aarch64-simd.md (vec_shr<mode>): New.
2935 2014-11-24 Alan Lawrence <alan.lawrence@arm.com>
2937 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
2938 Refactor by combining switch statements and make arrays into scalars.
2940 2014-11-24 David Edelsohn <dje.gcc@gmail.com>
2943 * dbxout.c: Include stringpool.h
2944 (dbxout_type) [default]: Ignore auto type.
2946 2014-11-24 Richard Biener <rguenther@suse.de>
2948 PR tree-optimization/63679
2949 * tree-ssa-sccvn.c: Include ipa-ref.h, plugin-api.h and cgraph.h.
2950 (copy_reference_ops_from_ref): Fix non-constant ADDR_EXPR case
2951 to properly leave off at -1.
2952 (fully_constant_vn_reference_p): Generalize folding from
2953 constant initializers.
2954 (vn_reference_lookup_3): When looking through aggregate copies
2955 handle offsetted reads and try simplifying the result to
2957 * gimple-fold.h (fold_ctor_reference): Export.
2958 * gimple-fold.c (fold_ctor_reference): Likewise.
2960 2014-11-24 Petr Murzin <petr.murzin@intel.com>
2962 * simplify-rtx.c (simplify_ternary_operation): Simplify
2963 vec_merge (vec_duplicate (vec_select)).
2965 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2967 * config/aarch64/aarch64.c (AARCH64_FUSE_ADRP_LDR): Define.
2968 (cortexa53_tunings): Specify AARCH64_FUSE_ADRP_LDR in fuseable_ops.
2969 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_LDR.
2971 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2973 * config/aarch64/aarch64.c (AARCH64_FUSE_MOVK_MOVK): Define.
2974 (cortexa53_tunings): Specify AARCH64_FUSE_MOVK_MOVK in fuseable_ops.
2975 (cortexa57_tunings): Likewise.
2976 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_MOVK_MOVK.
2978 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2980 * sched-deps.c (sched_macro_fuse_insns): Do not check modified_in_p
2981 in the not conditional jump case.
2982 * doc/tm.texi (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
2983 * target.def (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
2985 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2987 * config/aarch64/aarch64.c: Include tm-constrs.h
2988 (AARCH64_FUSE_ADRP_ADD): Define.
2989 (cortexa57_tunings): Add AARCH64_FUSE_ADRP_ADD to fuseable_ops.
2990 (cortexa53_tunings): Likewise.
2991 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_ADD.
2993 2014-11-24 Martin Liska <mliska@suse.cz>
2995 * ipa-inline.c (edge_badness): long is replaced by sreal
2996 as fibonacci_heap template type.
2997 (update_edge_key): Likewise.
2998 (inline_small_functions): Likewise.
3000 2014-11-24 Martin Liska <mliska@suse.cz>
3002 * predict.c (propagate_freq): More elegant sreal API is used.
3003 (estimate_bb_frequencies): Precomputed constants replaced by integer
3005 * sreal.c (sreal::normalize): New function.
3006 (sreal::to_int): Likewise.
3007 (sreal::operator+): Likewise.
3008 (sreal::operator-): Likewise.
3009 (sreal::signedless_plus): Likewise.
3010 (sreal::signedless_minus): Likewise.
3011 (sreal::operator/): Negative number support is added.
3012 * sreal.h: Definition of new functions added.
3013 (inline sreal operator<<): New function.
3014 (inline sreal operator>>): Likewise.
3016 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3018 * config/aarch64/aarch64-protos.h (struct tune_params): Add
3020 * config/aarch64/aarch64.c (generic_tunings): Specify fuseable_ops.
3021 (cortexa53_tunings): Likewise.
3022 (cortexa57_tunings): Likewise.
3023 (thunderx_tunings): Likewise.
3024 (aarch64_macro_fusion_p): New function.
3025 (aarch_macro_fusion_pair_p): Likewise.
3026 (TARGET_SCHED_MACRO_FUSION_P): Define.
3027 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
3028 (AARCH64_FUSE_MOV_MOVK): Likewise.
3029 (AARCH64_FUSE_NOTHING): Likewise.
3031 2014-11-24 Martin Liska <mliska@suse.cz>
3034 * bb-reorder.c (find_traces_1_round): decreate_key is replaced
3035 with replace_key method.
3036 * fibonacci_heap.h (fibonacci_heap::insert): New argument.
3037 (fibonacci_heap::replace_key_data): Likewise.
3038 (fibonacci_heap::replace_key): New method that can even increment key,
3039 this operation costs O(log N).
3040 (fibonacci_heap::extract_min): New argument.
3041 (fibonacci_heap::delete_node): Likewise.
3043 2014-11-24 Richard Biener <rguenther@suse.de>
3045 PR tree-optimization/55334
3046 * function.h (struct function): Add last_clique member.
3047 * tree-inline.c (remap_dependence_clique): New function.
3048 (remap_gimple_op_r): Remap dependence cliques in MEM_REFs.
3049 (copy_tree_body_r): Likewise.
3050 (copy_cfg_body): Free dependence map.
3051 (copy_gimple_seq_and_replace_locals): Likewise.
3052 * tree-pretty-print.c (dump_generic_node): Dump
3054 * tree-ssa-alias.c (refs_may_alias_p_1): Use dependence info
3055 to answer alias query.
3056 * tree-ssa-structalias.c: Include tree-phinodes.h, ssa-iterators.h,
3057 tree-pretty-print.h and gimple-walk.h.
3058 (struct variable_info): Add is_restrict_var flag and ruid
3060 (new_var_info): Initialize is_restrict_var.
3061 (make_constraint_from_restrict): Likewise.
3062 (create_variable_info_for): Exclude restricts from global vars
3064 (intra_create_variable_infos): But not those from parameters.
3065 (visit_loadstore): New function.
3066 (maybe_set_dependence_info): Likewise.
3067 (compute_dependence_clique): Likewise.
3068 (compute_may_aliases): Call compute_dependence_clique.
3069 * tree-data-ref.c (dr_analyze_indices): Copy dependence info
3071 (dr_may_alias_p): Use recorded dependence info to answer
3073 * tree-core.h (struct tree_base): Add clique, base struct in
3075 * tree.h (MR_DEPENDENCE_CLIQUE): New macro.
3076 (MR_DEPENDENCE_BASE): Likewise.
3077 * tree-inline.h (dependence_hasher): New hash-map kind.
3078 (struct copy_body_data): Add dependence_map pointer.
3079 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Avoid
3080 throwing away dependence info.
3081 * tree-streamer-in.c (unpack_value_fields): Stream dependence info.
3082 * tree-streamer-out.c (streamer_pack_tree_bitfields): Likewise.
3084 2014-11-23 Oleg Endo <olegendo@gcc.gnu.org>
3087 * config/sh/sh_optimize_sett_clrt.cc
3088 (sh_optimize_sett_clrt::find_last_ccreg_values): Return bool instead
3089 of void. Abort at complex edges.
3090 (sh_optimize_sett_clrt::execute): Do nothing if find_last_ccreg_values
3093 2014-11-22 John David Anglin <danglin@gcc.gnu.org>
3096 * configure.ac: Check for strtol, strtoul, strtoll and strtoull
3098 * configure: Regenerated.
3099 * config.in: Regenerated.
3101 2014-11-22 Jan Hubicka <hubicka@ucw.cz>
3103 * ipa.c (symbol_table::remove_unreachable_nodes): Mark all inline
3104 clones as having abstract origin used.
3105 * ipa-inline-transform.c (can_remove_node_now_p_1): Drop abstract
3107 (clone_inlined_nodes): Copy abstract originflag.
3108 * lto-cgraph.c (compute_ltrans_boundary): Use get_create to get
3109 abstract origin node.
3111 2014-11-22 Uros Bizjak <ubizjak@gmail.com>
3113 * params.def (PARAM_MAX_COMPLETELY_PEELED_INSNS): Increase to 200.
3114 * config/i386/i386.c (ix86_option_override_internal): Do not increase
3115 PARAM_MAX_COMPLETELY_PEELED_INSNS.
3117 2014-11-22 Oleg Endo <olegendo@gcc.gnu.org>
3121 * config/sh/sh_treg_combine.cc (sh_treg_combine::make_not_reg_insn):
3122 Do not emit bitwise not insn. Emit logical not insn sequence instead.
3123 Adjust related comments throughout the file.
3125 2014-11-22 Oleg Endo <olegendo@gcc.gnu.org>
3129 * config/sh/sh.c (sh_is_logical_t_store_expr,
3130 sh_try_omit_signzero_extend): Use rtx_insn* for insn argument.
3131 (sh_split_movrt_negc_to_movt_xor): New function.
3132 (sh_find_set_of_reg): Move to ...
3133 * config/sh/sh-protos.h (sh_find_set_of_reg): ... here and convert
3134 to template function.
3135 (set_of_reg): Use rtx_insn* for insn member.
3136 (sh_is_logical_t_store_expr, sh_try_omit_signzero_extend): Use
3137 rtx_insn* for insn argument.
3138 * config/sh/sh.md (movrt_negc, *movrt_negc): Split into movt-xor
3139 sequence using new sh_split_movrt_negc_to_movt_xor function.
3140 (movrt_xor): Allow also for SH2A.
3141 (*movt_movrt): Delete insns and splits.
3143 2014-11-22 Marc Glisse <marc.glisse@inria.fr>
3145 PR tree-optimization/60770
3146 * tree-sra.c (clobber_subtree): New function.
3147 (sra_modify_constructor_assign): Call it.
3149 2014-11-21 Vladimir Makarov <vmakarov@redhat.com>
3152 * lra-lives.c (mark_regno_live, mark_regno_dead): Remove last
3154 (process_bb_lives): Rename dead_insn_p on remove_p
3155 and global_live_info_p on dead_insn_p. Calculate local live info
3156 unconditionally. Remove last argument in calls mark_regno_live and
3157 mark_regno_dead. Reorganize body of EXECUTE_IF_SET_IN_BITMAP.
3158 (lra_create_live_ranges): Rename to lra_create_live_ranges_1.
3159 Return bool. Rename global_live_info_p on dead_insn_p. Return
3160 flag of live info change.
3161 (lra_create_live_ranges): New.
3163 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3167 * internal-fn.c (expand_arith_overflow_result_store,
3168 expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow): Use
3169 do_compare_rtx_and_jump instead of emit_cmp_and_jump_insns everywhere,
3170 adjust arguments to those functions. Use unsignedp = true for
3171 EQ, NE, GEU, LEU, LTU and GTU comparisons.
3173 PR tree-optimization/64006
3174 * tree-vrp.c (stmt_interesting_for_vrp): Return true
3175 for {ADD,SUB,MUL}_OVERFLOW internal calls.
3176 (vrp_visit_assignment_or_call): For {ADD,SUB,MUL}_OVERFLOW
3177 internal calls, check if any REALPART_EXPR/IMAGPART_EXPR
3178 immediate uses would change their value ranges and return
3179 SSA_PROP_INTERESTING if so, or SSA_PROP_NOT_INTERESTING
3180 if there are some REALPART_EXPR/IMAGPART_EXPR immediate uses
3181 interesting for vrp.
3183 2014-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3186 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
3187 Altivec & -16 mask if the type is not valid for Altivec registers.
3188 (rs6000_secondary_reload_memory): Add support for ((reg + const) +
3189 reg) that occurs during push_reload processing.
3191 * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
3192 alternative for moving constant vectors which are easy altivec
3193 constants to GPRs. Set the length attribute each of the
3196 2014-11-21 Matthew Fortune <matthew.fortune@imgtec.com>
3198 * configure.ac: When checking for MIPS .module support ensure that
3199 o32 FPXX is supported to avoid a second configure check.
3200 * configure: Regenerate.
3202 2014-11-21 Jiong Wang <jiong.wang@arm.com>
3204 * config/aarch64/iterators.md (VS): New mode iterator.
3205 (vsi2qi): New mode attribute.
3207 * config/aarch64/aarch64-simd-builtins.def: New entry for ctz.
3208 * config/aarch64/aarch64-simd.md (ctz<mode>2): New pattern for ctz.
3209 * config/aarch64/aarch64-builtins.c
3210 (aarch64_builtin_vectorized_function): Support BUILT_IN_CTZ.
3212 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
3215 * configure: Regenerated.
3217 2014-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3219 * config/aarch64/arm_neon.h (vsqrt_f64): New intrinsic.
3221 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3223 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
3224 OPTION_MASK_ISA_PCOMMIT_SET): New.
3225 (ix86_handle_option): Handle OPT_mpcommit.
3226 * config.gcc: Add pcommitintrin.h
3227 * config/i386/pcommitintrin.h: New file.
3228 * config/i386/cpuid.h (bit_PCOMMIT): Define.
3229 * config/i386/driver-i386.c (host_detect_local_cpu): Detect pcommit.
3230 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3232 * config/i386/i386.c (ix86_target_string): Add -mpcommit.
3233 (PTA_PCOMMIT): Define.
3234 (ix86_option_override_internal): Handle new option.
3235 (ix86_valid_target_attribute_inner_p): Add pcommit.
3236 (ix86_builtins): Add IX86_BUILTIN_PCOMMIT.
3237 (bdesc_special_args): Add __builtin_ia32_pcommit.
3238 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Define.
3239 * config/i386/i386.md (unspecv): Add UNSPECV_PCOMMIT.
3240 (pcommit): New instruction.
3241 * config/i386/i386.opt: Add mpcommit.
3242 * config/i386/x86intrin.h: Include pcommitintrin.h.
3244 2014-11-20 Mark Wielaard <mjw@redhat.com>
3247 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use lang_GNU_C.
3248 * config/darwin.c (darwin_file_end): Use lang_GNU_CXX.
3249 (darwin_override_options): Likewise.
3250 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
3252 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3254 * dbxout.c (get_lang_number): Likewise.
3255 (dbxout_type): Likewise.
3256 (dbxout_symbol_location): Likewise.
3257 * dwarf2out.c (add_prototyped_attribute): Add DW_AT_prototype
3258 also for DW_LANG_{C,C99,ObjC}.
3259 (highest_c_language): New function.
3260 (gen_compile_unit_die): Call highest_c_language to merge LTO
3261 TRANSLATION_UNIT_LANGUAGE. Use strncmp language_string to
3262 determine if DW_LANG_C99 or DW_LANG_C89 should be returned.
3263 * fold-const.c (fold_cond_expr_with_comparison): Use lang_GNU_CXX.
3264 * langhooks.h (struct lang_hooks): Add version comment to name.
3265 (lang_GNU_C): New function declaration.
3266 (lang_GNU_CXX): Likewise.
3267 * langhooks.c (lang_GNU_C): New function.
3268 (lang_GNU_CXX): Likewise.
3269 * vmsdbgout.c (vmsdbgout_init): Use lang_GNU_C and lang_GNU_CXX.
3271 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3273 * common/config/i386/i386-common.c (OPTION_MASK_ISA_CLWB_UNSET,
3274 OPTION_MASK_ISA_CLWB_SET): New.
3275 (ix86_handle_option): Handle OPT_mclwb.
3276 * config.gcc: Add clwbintrin.h.
3277 * config/i386/clwbintrin.h: New file.
3278 * config/i386/cpuid.h (bit_CLWB): Define.
3279 * config/i386/driver-i386.c (host_detect_local_cpu): Detect clwb.
3280 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3282 * config/i386/i386.c (ix86_target_string): Add -mclwb.
3284 (ix86_option_override_internal): Handle new option.
3285 (ix86_valid_target_attribute_inner_p): Add clwb.
3286 (ix86_builtins): Add IX86_BUILTIN_CLWB.
3287 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clwb.
3288 (ix86_expand_builtin): Handle IX86_BUILTIN_CLWB.
3289 * config/i386/i386.h (TARGET_CLWB, TARGET_CLWB_P): Define.
3290 * config/i386/i386.md (unspecv): Add UNSPECV_CLWB.
3291 (clwb): New instruction.
3292 * config/i386/i386.opt: Add mclwb.
3293 * config/i386/x86intrin.h: Include clwbintrin.h.
3295 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3297 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET
3298 OPTION_MASK_ISA_AVX512VBMI_UNSET): New.
3299 (ix86_handle_option): Handle OPT_mavx512vbmi.
3300 * config.gcc: Add avx512vbmiintrin.h, avx512vbmivlintrin.h.
3301 * config/i386/avx512vbmiintrin.h: New file.
3302 * config/i386/avx512vbmivlintrin.h: Ditto.
3303 * config/i386/cpuid.h (bit_AVX512VBMI): New.
3304 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vbmi.
3305 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3307 * config/i386/i386.c (ix86_target_string): Add -mavx512vbmi.
3308 (PTA_AVX512VBMI): Define.
3309 (ix86_option_override_internal): Handle new options.
3310 (ix86_valid_target_attribute_inner_p): Add avx512vbmi,
3311 (ix86_builtins): Add IX86_BUILTIN_VPMULTISHIFTQB512,
3312 IX86_BUILTIN_VPMULTISHIFTQB256, IX86_BUILTIN_VPMULTISHIFTQB128,
3313 IX86_BUILTIN_VPERMVARQI512_MASK, IX86_BUILTIN_VPERMT2VARQI512,
3314 IX86_BUILTIN_VPERMT2VARQI512_MASKZ, IX86_BUILTIN_VPERMI2VARQI512,
3315 IX86_BUILTIN_VPERMVARQI256_MASK, IX86_BUILTIN_VPERMVARQI128_MASK,
3316 IX86_BUILTIN_VPERMT2VARQI256, IX86_BUILTIN_VPERMT2VARQI256_MASKZ,
3317 IX86_BUILTIN_VPERMT2VARQI128, IX86_BUILTIN_VPERMI2VARQI256,
3318 IX86_BUILTIN_VPERMI2VARQI128.
3319 (bdesc_special_args): Add __builtin_ia32_vpmultishiftqb512_mask,
3320 __builtin_ia32_vpmultishiftqb256_mask,
3321 __builtin_ia32_vpmultishiftqb128_mask,
3322 __builtin_ia32_permvarqi512_mask, __builtin_ia32_vpermt2varqi512_mask,
3323 __builtin_ia32_vpermt2varqi512_maskz,
3324 __builtin_ia32_vpermi2varqi512_mask, __builtin_ia32_permvarqi256_mask,
3325 __builtin_ia32_permvarqi128_mask, __builtin_ia32_vpermt2varqi256_mask,
3326 __builtin_ia32_vpermt2varqi256_maskz,
3327 __builtin_ia32_vpermt2varqi128_mask,
3328 __builtin_ia32_vpermt2varqi128_maskz,
3329 __builtin_ia32_vpermi2varqi256_mask,
3330 __builtin_ia32_vpermi2varqi128_mask.
3331 (ix86_hard_regno_mode_ok): Allow big masks for AVX512VBMI.
3332 * config/i386/i386.h (TARGET_AVX512VBMI, TARGET_AVX512VBMI_P): Define.
3333 * config/i386/i386.opt: Add mavx512vbmi.
3334 * config/i386/immintrin.h: Include avx512vbmiintrin.h,
3335 avx512vbmivlintrin.h.
3336 * config/i386/sse.md (unspec): Add UNSPEC_VPMULTISHIFT.
3337 (VI1_AVX512VL): New iterator.
3338 (<avx512>_permvar<mode><mask_name>): Use it.
3339 (<avx512>_vpermi2var<mode>3_maskz): Ditto.
3340 (<avx512>_vpermi2var<mode>3<sd_maskz_name>): Ditto.
3341 (<avx512>_vpermi2var<mode>3_mask): Ditto.
3342 (<avx512>_vpermt2var<mode>3_maskz): Ditto.
3343 (<avx512>_vpermt2var<mode>3<sd_maskz_name>): Ditto.
3344 (<avx512>_vpermt2var<mode>3_mask): Ditto.
3345 (vpmultishiftqb<mode><mask_name>): Ditto.
3347 2014-11-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3349 PR rtl-optimization/63952
3350 * optabs.c (prepare_cmp_insn): Do not call can_compare_p for CCmode.
3351 * config/s390/s390.md ("cbranchcc4"): Accept any s390_comparison.
3352 Remove incorrect TARGET_HARD_FLOAT check and no-op expander code.
3354 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3356 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512IFMA_SET,
3357 OPTION_MASK_ISA_AVX512IFMA_UNSET): New.
3358 (ix86_handle_option): Handle OPT_mavx512ifma.
3359 * config.gcc: Add avx512ifmaintrin.h, avx512ifmavlintrin.h.
3360 * config/i386/avx512ifmaintrin.h: New file.
3361 * config/i386/avx512ifmaivlntrin.h: Ditto.
3362 * config/i386/cpuid.h (bit_AVX512IFMA): New.
3363 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3365 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3367 * config/i386/i386.c (ix86_target_string): Add -mavx512ifma.
3368 (PTA_AVX512IFMA): Define.
3369 (ix86_option_override_internal): Handle new options.
3370 (ix86_valid_target_attribute_inner_p): Add avx512ifma.
3371 (ix86_builtins): Add IX86_BUILTIN_VPMADD52LUQ512,
3372 IX86_BUILTIN_VPMADD52HUQ512, IX86_BUILTIN_VPMADD52LUQ256,
3373 IX86_BUILTIN_VPMADD52HUQ256, IX86_BUILTIN_VPMADD52LUQ128,
3374 IX86_BUILTIN_VPMADD52HUQ128, IX86_BUILTIN_VPMADD52LUQ512_MASKZ,
3375 IX86_BUILTIN_VPMADD52HUQ512_MASKZ, IX86_BUILTIN_VPMADD52LUQ256_MASKZ,
3376 IX86_BUILTIN_VPMADD52HUQ256_MASKZ, IX86_BUILTIN_VPMADD52LUQ128_MASKZ,
3377 IX86_BUILTIN_VPMADD52HUQ128_MASKZ.
3378 (bdesc_special_args): Add __builtin_ia32_vpmadd52luq512_mask,
3379 __builtin_ia32_vpmadd52luq512_maskz,
3380 __builtin_ia32_vpmadd52huq512_mask,
3381 __builtin_ia32_vpmadd52huq512_maskx,
3382 __builtin_ia32_vpmadd52luq256_mask,
3383 __builtin_ia32_vpmadd52luq256_maskz,
3384 __builtin_ia32_vpmadd52huq256_mask,
3385 __builtin_ia32_vpmadd52huq256_maskz,
3386 __builtin_ia32_vpmadd52luq128_mask,
3387 __builtin_ia32_vpmadd52luq128_maskz,
3388 __builtin_ia32_vpmadd52huq128_mask,
3389 __builtin_ia32_vpmadd52huq128_maskz,
3390 * config/i386/i386.h (TARGET_AVX512IFMA, TARGET_AVX512IFMA_P): Define.
3391 * config/i386/i386.opt: Add mavx512ifma.
3392 * config/i386/immintrin.h: Include avx512ifmaintrin.h,
3393 avx512ifmavlintrin.h.
3394 * config/i386/sse.md (unspec): Add UNSPEC_VPMADD52LUQ,
3396 (VPMADD52): New iterator.
3397 (vpmadd52type): New attribute.
3398 (vpamdd52huq<mode>_maskz): New.
3399 (vpamdd52luq<mode>_maskz): Ditto.
3400 (vpamdd52<vpmadd52type><mode><sd_maskz_name>): Ditto.
3401 (vpamdd52<vpmadd52type><mode>_mask): Ditto.
3403 2014-11-21 Alan Lawrence <alan.lawrence@arm.com>
3406 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
3407 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
3409 2014-11-21 Andrew Bennett <andrew.bennett@imgtec.com>
3411 * config/mips/mips.c (mips_process_sync_loop): Place a
3412 nop in the delay slot of the branch likely instruction.
3413 (mips_output_sync_loop): Ensure mips_branch_likely is
3414 set before calling mips_output_sync_loop.
3415 (mips_sync_loop_insns): Likewise.
3417 2014-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3420 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Allow
3421 the base pointer of vec_vsx_ld and vec_vsx_st to take a pointer to
3424 2014-11-21 Georg-Johann Lay <avr@gjlay.de>
3426 Forward-port from 2014-10-30 4_9-branch r216934
3429 * config/avr/avr-protos.h (regmask): New inline function.
3430 (avr_fix_inputs, avr_emit3_fix_outputs): New protos.
3431 * config/avr/avr.c (avr_fix_operands, avr_move_fixed_operands)
3432 (avr_fix_inputs, avr_emit3_fix_outputs): New functions.
3433 * config/avr/avr-fixed.md (mulqq3_nomul, muluqq3_nomul)
3434 (mul<ALL2QA>3, mul<ALL4A>3, <usdiv><ALL1Q>3, <usdiv><ALL2QA>3)
3435 (<usdiv><ALL4A>3, round<ALL124QA>3): Fix input operands.
3436 * config/avr/avr-dimode.md (add<ALL8>3, sub<ALL8>3)
3437 (<ss_addsub><ALL8S>3, <us_addsub><ALL8U>3, cbranch<ALL8>4)
3438 (<di_shifts><ALL8>3, <any_extend>mulsidi3): Fix input operands.
3439 * config/avr/avr.md (mulqi3_call, mulhi3_call, mulsi3, mulpsi3)
3440 (mulu<QIHI>si3, muls<QIHI>si3, mulohisi3, <any_extend>mulhisi3)
3441 (usmulhisi3, <any_extend>mulhi3_highpart, mulsqipsi3)
3442 (fmul, fmuls, fmulsu): Fix operands. Turn insn into expander as
3445 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3448 * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
3449 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
3451 2014-11-21 James Greenhalgh <james.greenhalgh@arm.com>
3453 * config/aarch64/aarch64-simd.md
3454 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Add a tab between
3455 output mnemonic and operands.
3456 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
3457 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
3459 2014-11-21 Evgeny Stupachenko <evstupac@gmail.com>
3461 * config/i386/i386.c (ix86_option_override_internal): Increase
3462 PARAM_MAX_COMPLETELY_PEELED_INSNS.
3464 2014-11-21 Evgeny Stupachenko <evstupac@gmail.com>
3467 * config/i386/i386.c (expand_vec_perm_even_odd_pack): New.
3468 (expand_vec_perm_even_odd_1): Add new expand for V8HI mode,
3469 replace for V16QI, V16HI and V32QI modes.
3470 (ix86_expand_vec_perm_const_1): Add new expand.
3472 2014-11-21 Nick Clifton <nickc@redhat.com>
3474 * config/rl78/rl78-real.md (movqi_from_es): New pattern.
3475 * config/rl78/rl78.c (struct machine_function): Add uses_es field.
3476 (rl78_expand_prologue): Save the ES register in interrupt handlers
3478 (rl78_expand_epilogue): Restore the ES register if necessary.
3479 (rl78_start_function): Mention if the function uses the ES
3481 (rl78_lo16): Record the use of the ES register.
3482 (transcode_memory_rtx): Likewise.
3484 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3486 PR tree-optimization/61773
3487 * tree-ssa-strlen.c (get_string_length): Don't assert
3488 stpcpy has been prototyped if si->stmt is BUILT_IN_MALLOC.
3491 * simplify-rtx.c (simplify_immed_subreg): Return NULL for integer
3492 modes wider than MAX_BITSIZE_MODE_ANY_INT. If not using
3493 CONST_WIDE_INT, make sure r fits into CONST_DOUBLE.
3495 2014-11-21 Markus Trippelsdorf <markus@trippelsdorf.de>
3497 * config/rs6000/rs6000.c (includes_rldic_lshift_p): Use
3498 HOST_WIDE_INT_M1U instead of ~0.
3499 (includes_rldicr_lshift_p): Likewise.
3501 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3503 * config/nds32/nds32.c (nds32_legitimate_address_p): For LO_SUM,
3504 we need to look into its operand to determine if it is a valid
3507 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3509 * config/nds32/nds32.c (nds32_emit_stack_push_multiple): Add new
3510 vaarg_p argument and create correct CFI info.
3511 (nds32_expand_prologue): Pass true or false to
3512 nds32_emit_stack_push_multiple function.
3514 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3516 * config/nds32/nds32.c (nds32_expand_prologue): Set fp_adjust_insn
3517 as RTX_FRAME_RELATED_P rtx.
3519 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3521 * config/nds32/nds32.opt (march): Add help message.
3523 2014-11-20 Patrick Palka <ppalka@gcc.gnu.org>
3525 * tree-vrp.c (test_for_singularity): New parameter
3526 strict_overflow_p. Set *strict_overflow_p to true if signed
3527 overflow must be undefined for the return value to satisfy the
3529 (simplify_cond_using_ranges): Don't perform the simplification
3530 if it violates overflow rules.
3532 2014-11-20 Marek Polacek <polacek@redhat.com>
3534 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Fix typo.
3536 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
3538 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
3539 condition would be removed due to undefined behaviour.
3541 2014-11-20 Andrew Pinski <apinski@cavium.com>
3545 * ipa-polymorphic-call.c (possible_placement_new):
3546 Use POINTER_SIZE instead of GET_MODE_BITSIZE (Pmode).
3547 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
3548 (extr_type_from_vtbl_ptr_store): Likewise.
3550 2014-11-20 Markus Trippelsdorf <markus@trippelsdorf.de>
3552 * config/rs6000/constraints.md: Avoid signed integer overflows.
3553 * config/rs6000/predicates.md: Likewise.
3554 * config/rs6000/rs6000.c (num_insns_constant_wide): Likewise.
3555 (includes_rldic_lshift_p): Likewise.
3556 (includes_rldicr_lshift_p): Likewise.
3557 * emit-rtl.c (const_wide_int_htab_hash): Likewise.
3558 * loop-iv.c (determine_max_iter): Likewise.
3559 (iv_number_of_iterations): Likewise.
3560 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Likewise.
3561 * varasm.c (get_section_anchor): Likewise.
3563 2014-11-20 Charles Baylis <charles.baylis@linaro.org>
3566 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Pass
3567 expression to aarch64_simd_lane_bounds.
3568 * config/aarch64/aarch64-protos.h (aarch64_simd_lane_bounds): Update
3570 * config/aarch64/aarch64-simd.md: (aarch64_combinez<mode>): Update
3571 call to aarch64_simd_lane_bounds.
3572 (aarch64_get_lanedi): Likewise.
3573 (aarch64_ld2_lane<mode>): Likewise.
3574 (aarch64_ld3_lane<mode>): Likewise.
3575 (aarch64_ld4_lane<mode>): Likewise.
3576 (aarch64_im_lane_boundsi): Likewise.
3577 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Add exp
3578 parameter. Report calling function in error message if exp is non-NULL.
3580 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3583 * config/sh/sh.c: Use signed char for signed field.
3585 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3587 * cfgexpand.c, gimple-ssa.h, trans-mem.c: Replace htab with
3590 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3592 * ipa-utils.c, lto-section-in.c, lto-streamer.h,
3593 tree-scalar-evolution.c: Replace htab with hash_table.
3595 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3597 * lto-section-in.c (lto_delete_in_decl_state): Adjust.
3598 (lto_free_function_in_decl_state): Likewise.
3599 * lto-streamer-out.c (copy_function_or_variable): Likewise.
3600 * lto-streamer.h (lto_file_decl_data_get_ ## name): Likewise.
3601 (lto_file_decl_data_num_ ## name ## s): Likewise.
3602 (struct lto_tree_ref_table): Remove.
3603 (struct lto_in_decl_state): Replace lto_tree_ref_table with vec<tree>.
3605 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3607 * hash-map.h (hash_map::iterator): New class.
3608 (hash_map::begin): New method.
3609 (hash_map::end): Likewise.
3610 * alias.c, config/alpha/alpha.c, dwarf2asm.c, omp-low.c, tree.h:
3611 replace splay_tree with hash_map.
3613 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3615 * hash-table.h (hash_table::hash_table): Call alloc_entries.
3616 (hash_table::alloc_entries): new method.
3617 (hash_table::expand): Call alloc_entries.
3618 (hash_table::empty): Likewise.
3620 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3622 * config/i386/i386.c, function.c, trans-mem.c, tree-core.h,
3623 tree.c, tree.h, ubsan.c, varasm.c: Use hash_table instead of htab.
3625 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3627 * doc/gty.texi: Document the new cache gty attribute.
3628 * gengtype.c (finish_cache_funcs): New function.
3629 (write_roots): Call gt_clear_cache on global variables with the cache
3631 * ggc-common.c (ggc_mark_roots): Call gt_clear_caches.
3632 * ggc.h (gt_clear_caches): New declaration.
3633 * hash-table.h (struct ggc_cache_hasher): New hasher for caches in gc
3635 (gt_cleare_cache): New function.
3636 * emit-rtl.c, rtl.h, tree.c: Use hash_table instead of htab.
3638 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3640 * combine.c (try_combine): Prefer to delete dead SETs inside
3641 a PARALLEL over keeping them.
3643 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3645 * combine.c (combine_validate_cost): Always print the insn costs
3648 2014-11-20 Richard Henderson <rth@redhat.com>
3651 * config/i386/i386.c (ix86_static_chain): Reinstate the check
3652 for DECL_STATIC_CHAIN.
3654 2014-11-20 Tejas Belagod <tejas.belagod@arm.com>
3656 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol):
3658 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate,
3659 aarch64_cannot_force_const_mem, aarch64_classify_address,
3660 aarch64_classify_symbolic_expression): Fixup call to
3661 aarch64_classify_symbol.
3662 (aarch64_classify_symbol): Add range-checking for
3663 symbol + offset addressing for tiny and small models.
3665 2014-11-20 Richard Biener <rguenther@suse.de>
3668 * match.pd ((p +p off1) +p off2 -> (p +p (off1 + off2))):
3669 Guard with single-use operand 0.
3671 2014-11-20 Richard Biener <rguenther@suse.de>
3673 PR tree-optimization/63677
3674 * tree-ssa-dom.c: Include gimplify.h for unshare_expr.
3675 (avail_exprs_stack): Make a vector of pairs.
3676 (struct hash_expr_elt): Replace stmt member with vop member.
3677 (expr_elt_hasher::equal): Simplify.
3678 (initialize_hash_element): Adjust.
3679 (initialize_hash_element_from_expr): Likewise.
3680 (dom_opt_dom_walker::thread_across_edge): Likewise.
3681 (record_cond): Likewise.
3682 (dom_opt_dom_walker::before_dom_children): Likewise.
3683 (print_expr_hash_elt): Likewise.
3684 (remove_local_expressions_from_table): Restore previous state
3686 (record_equivalences_from_stmt): Record &x + CST as constant
3687 &MEM[&x, CST] for further propagation.
3688 (vuse_eq): New function.
3689 (lookup_avail_expr): For loads use the alias oracle to see
3690 whether a candidate from the expr hash is usable.
3691 (avail_expr_hash): Do not hash VUSEs.
3693 2014-11-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3696 * config/arm/arm.md (*movhi_insn): Use right formatting
3699 2014-11-20 Igor Zamyatin <igor.zamyatin@intel.com>
3702 * function.c (assign_parms): Move init of pic_offset_table_rtx
3704 * cfgexpand.c (expand_used_vars): ...here.
3706 2014-11-19 Jan Hubicka <hubicka@ucw.cz>
3708 * tree.c (free_lang_data_in_type): If BINFO has no important
3709 information in it, set it to NULL.
3710 (get_binfo_at_offset): Do not walk fields, only bases.
3711 * ipa-utils.h (polymorphic_type_binfo_p): Be ready for BINFO_TYPE
3713 * ipa-polymorphic-call.c (record_known_type): Likewise.
3715 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3718 * ipa-icf.c (sem_item_optimizer::~sem_item_optimizer): Free each
3719 congruence_class_group *.
3721 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
3724 * config/i386/i386.c (put_condition_code) <case LTU, case GEU>:
3725 Output "b" and "nb" suffix for FP mode.
3727 2014-11-19 Jan Hubicka <hubicka@ucw.cz>
3730 * tree-streamer-out.c (write_ts_function_decl_tree_pointers): Stream
3731 out DECL_FUNCTION_SPECIFIC_TARGET
3732 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): Stream
3733 in DECL_FUNCTION_SPECIFIC_TARGET.
3735 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3738 * pass_manager.h (GCC_PASS_LISTS): Add all_late_ipa_passes.
3740 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3743 * lra.c (lra): After creating live ranges in preparation for call
3744 to lra_inheritance, set live_p to true.
3746 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3749 * tree-ssa-threadedge.c (thread_across_edge): Don't just release
3751 * tree-ssa-threadupdate.c (delete_jump_thread_path): Likewise.
3753 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3756 * tree-ssa-pre.c (do_regular_insertion): Convert "avail" from
3757 vec<> to auto_vec<> to fix a leak.
3759 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3762 * dwarf2out.c (dwarf2out_c_finalize): Free producer_string.
3764 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3767 * ira-costs.c (ira_costs_c_finalize): New function.
3768 * ira.h (ira_costs_c_finalize): New prototype.
3769 * toplev.c (toplev::finalize): Call ira_costs_c_finalize.
3771 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3774 * ipa-reference.c (ipa_reference_c_finalize): Release
3775 optimization_summary_obstack.
3777 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3780 * toplev.c (toplev::finalize): Free opts_obstack.
3782 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3785 * toplev.c (toplev::finalize): Clean up save_decoded_options.
3787 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3791 (find_rarely_executed_basic_blocks_and_crossing_edges): Convert
3792 local bbs_in_hot_partition from vec<> to auto_vec<>.
3794 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3797 * config/alpha/alpha.c (alpha_option_override): Remove static from
3798 "handle_trap_shadows_info" and "align_insns_info".
3799 * config/i386/i386.c (ix86_option_override): Likewise for
3800 "insert_vzeroupper_info".
3801 * config/rl78/rl78.c (rl78_asm_file_start): Likewise for
3802 "rl78_devirt_info" and "rl78_move_elim_info".
3803 * config/rs6000/rs6000.c (rs6000_option_override): Likewise for
3804 "analyze_swaps_info".
3805 * context.c (gcc::context::~context): New.
3806 * context.h (gcc::context::~context): New.
3807 * dumpfile.c (dump_files): Add "false" initializers for new field
3809 (gcc::dump_manager::~dump_manager): New.
3810 (gcc::dump_manager::dump_register): Add param "take_ownership".
3811 * dumpfile.h (struct dump_file_info): Add field "owns_strings".
3812 (gcc::dump_manager::~dump_manager): New.
3813 (gcc::dump_manager::dump_register): Add param "take_ownership".
3814 * pass_manager.h (gcc::pass_manager::operator delete): New.
3815 (gcc::pass_manager::~pass_manager): New.
3816 * passes.c (pass_manager::register_one_dump_file): Pass "true" to
3817 new "owns_strings" argument to dump_register.
3818 (pass_manager::operator delete): New.
3819 (delete_pass_tree): New function.
3820 (pass_manager::~pass_manager): New.
3821 * statistics.c (statistics_early_init): Pass "false" to
3822 new "owns_strings" argument to dump_register.
3823 * toplev.c (toplev::finalize): Clean up the context and thus the
3826 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3829 * reginfo.c (finish_subregs_of_mode): Replace obstack_finish with
3830 obstack_free when cleaning up valid_mode_changes_obstack.
3832 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3835 * opts.c (finalize_options_struct): New.
3836 * opts.h (finalize_options_struct): New.
3837 * toplev.c (toplev::finalize): Call finalize_options_struct
3838 on global_options and global_options_set.
3840 2014-11-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
3841 Jakub Jelinek <jakub@redhat.com>
3845 * gcc.c (process_command): Don't check for input/output
3846 filename equality if output is HOST_BIT_BUCKET.
3847 * toplev.c (init_asm_output): Likewise.
3849 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3851 Merger of git branch "gimple-classes-v2-option-3".
3853 * ChangeLog.gimple-classes: New.
3855 * coretypes.h (struct gcond): Add forward decl.
3856 (struct gdebug): Likewise.
3857 (struct ggoto): Likewise.
3858 (struct glabel): Likewise.
3859 (struct gswitch): Likewise.
3860 (struct gassign): Likewise.
3861 (struct gasm): Likewise.
3862 (struct gcall): Likewise.
3863 (struct gtransaction): Likewise.
3864 (struct greturn): Likewise.
3865 (struct gbind): Likewise.
3866 (struct gcatch): Likewise.
3867 (struct geh_filter): Likewise.
3868 (struct geh_mnt): Likewise.
3869 (struct geh_else): Likewise.
3870 (struct gresx): Likewise.
3871 (struct geh_dispatch): Likewise.
3872 (struct gphi): Likewise.
3873 (struct gtry): Likewise.
3874 (struct gomp_atomic_load): Likewise.
3875 (struct gomp_atomic_store): Likewise.
3876 (struct gomp_continue): Likewise.
3877 (struct gomp_critical): Likewise.
3878 (struct gomp_for): Likewise.
3879 (struct gomp_parallel): Likewise.
3880 (struct gomp_task): Likewise.
3881 (struct gomp_sections): Likewise.
3882 (struct gomp_single): Likewise.
3883 (struct gomp_target): Likewise.
3884 (struct gomp_teams): Likewise.
3886 * doc/gimple.texi (Class hierarchy of GIMPLE statements): Update
3887 for renaming of gimple subclasses.
3889 * gdbhooks.py: Update.
3891 * gimple-iterator.c (gsi_for_phi): New.
3892 (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
3894 * gimple-iterator.h (struct gphi_iterator): New subclass of
3895 gimple_stmt_iterator.
3896 (gsi_for_phi): New prototype.
3897 (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
3899 (gsi_next_nonvirtual_phi): Strengthen param from
3900 gimple_stmt_iterator * to gphi_iterator *, and local "phi" from
3903 * gsstruct.def: Update for renamings of classes.
3905 * gimple.c (gimple_build_return): Strengthen return type from
3906 gimple to greturn *.
3907 (gimple_call_reset_alias_info): Strengthen param to gcall *.
3908 (gimple_build_call_1): Strengthen return type from gimple to
3910 (gimple_build_call_vec): Likewise.
3911 (gimple_build_call): Likewise.
3912 (gimple_build_call_valist): Likewise.
3913 (gimple_build_call_internal_1): Likewise.
3914 (gimple_build_call_internal): Likewise.
3915 (gimple_build_call_internal_vec): Likewise.
3916 (gimple_build_call_from_tree): Likewise.
3917 (gimple_build_assign_stat): Strengthen return type from gimple to
3919 (gimple_build_assign_with_ops): Likewise.
3920 (gimple_build_assign_with_ops): Likewise.
3921 (gimple_build_cond): Strengthen return type from gimple to
3923 (gimple_build_cond_from_tree): Likewise.
3924 (gimple_cond_set_condition_from_tree): Require a gcond *.
3925 (gimple_build_label): Strengthen return type from gimple to
3927 (gimple_build_goto): Strengthen return type from gimple to
3929 (gimple_build_bind): Strengthen return type from gimple to
3931 (gimple_build_asm_1): Strengthen return type from gimple to
3933 (gimple_build_asm_vec): Likewise.
3934 (gimple_build_catch): Strengthen return type from gimple to
3936 (gimple_build_eh_filter): Strengthen return type from gimple to
3938 (gimple_build_eh_must_not_throw): Strengthen return type from
3939 gimple to geh_mnt *.
3940 (gimple_build_eh_else): Strengthen return type from gimple to
3942 (gimple_build_try): Update for renaming of gimple_statement_try to
3944 (gimple_build_resx): Strengthen return type from gimple to
3946 (gimple_build_switch_nlabels): Strengthen return type from gimple
3948 (gimple_build_switch): Likewise.
3949 (gimple_build_eh_dispatch): Strengthen return type from gimple to
3951 (gimple_build_debug_bind_stat): Strengthen return type from gimple
3953 (gimple_build_debug_source_bind_stat): Strengthen return type from
3955 (gimple_build_omp_critical): Strengthen return type from gimple to
3957 (gimple_build_omp_for): Strengthen return type from gimple to
3959 (gimple_build_omp_parallel): Strengthen return type from gimple to
3961 (gimple_build_omp_task): Strengthen return type from gimple to
3963 (gimple_build_omp_continue): Strengthen return type from gimple to
3965 (gimple_build_omp_sections): Strengthen return type from gimple to
3967 (gimple_build_omp_single): Strengthen return type from gimple to
3969 (gimple_build_omp_target): Strengthen return type from gimple to
3971 (gimple_build_omp_teams): Strengthen return type from gimple to
3973 (gimple_build_omp_atomic_load): Strengthen return type from gimple
3974 to gomp_atomic_load *.
3975 (gimple_build_omp_atomic_store): Strengthen return type from gimple
3976 to gomp_atomic_store *.
3977 (gimple_build_transaction): Strengthen return type from gimple
3979 (empty_stmt_p): Replace check for GIMPLE_BIND with a dyn_cast.
3980 (gimple_call_fnspec): Require a const gcall *.
3981 (gimple_call_arg_flags): Likewise.
3982 (gimple_call_return_flags): Likewise.
3983 (gimple_set_bb): Add a checked cast.
3984 (gimple_copy): Within the cases, add locals of the appropriate
3985 subclass and use in place of "stmt" and "copy" for typesafety.
3986 (gimple_has_side_effects): Add a checked cast.
3987 (gimple_could_trap_p_1): Likewise.
3988 (gimple_call_copy_skip_args): Require a gcall *, and return one.
3989 (gimple_asm_clobbers_memory_p): Require a const gasm *.
3990 (infer_nonnull_range): Replace a check for GIMPLE_RETURN with a
3991 dyn_cast, introducing local "return_stmt" and using ti in place
3994 * gimple.h (gimple_vec): Eliminate this typedef.
3995 (struct gimple_statement_call): Rename to...
3996 (struct gcall): ...this.
3997 (struct gimple_statement_bind): Rename to...
3998 (struct gbind): ...this.
3999 (struct gimple_statement_catch): Rename to...
4000 (struct gcatch): ...this.
4001 (struct gimple_statement_eh_filter): Rename to...
4002 (struct geh_filter): ...this.
4003 (struct gimple_statement_eh_else): Rename to...
4004 (struct geh_else): ...this.
4005 (struct gimple_statement_eh_mnt): Rename to...
4006 (struct geh_mnt): ...this.
4007 (struct gimple_statement_phi): Rename to...
4008 (struct gphi): ...this.
4009 (struct gimple_statement_resx): Rename to...
4010 (struct gresx): ...this.
4011 (struct gimple_statement_eh_dispatch): Rename to...
4012 (struct geh_dispatch): ...this.
4013 (struct gimple_statement_try): Rename to...
4014 (struct gtry): ...this.
4015 (struct gimple_statement_asm): Rename to...
4016 (struct gasm): ...this.
4017 (struct gimple_statement_omp_critical): Rename to...
4018 (struct gomp_critical): ...this.
4019 (struct gimple_statement_omp_for): Rename to...
4020 (struct gomp_for): ...this.
4021 (struct gimple_statement_omp_parallel): Rename to...
4022 (struct gomp_parallel): ...this.
4023 (struct gimple_statement_omp_target): Rename to...
4024 (struct gomp_target): ...this.
4025 (struct gimple_statement_omp_task): Rename to...
4026 (struct gomp_task): ...this.
4027 (struct gimple_statement_omp_sections): Rename to...
4028 (struct gomp_sections): ...this.
4029 (struct gimple_statement_omp_continue): Rename to...
4030 (struct gomp_continue): ...this.
4031 (struct gimple_statement_omp_single): Rename to...
4032 (struct gomp_single): ...this.
4033 (struct gimple_statement_omp_teams): Rename to...
4034 (struct gomp_teams): ...this.
4035 (struct gimple_statement_omp_atomic_load): Rename to...
4036 (struct gomp_atomic_load): ...this.
4037 (struct gimple_statement_omp_atomic_store :): Rename to...
4038 (struct gomp_atomic_store :): ...this.
4039 (struct gimple_statement_transaction): Rename to...
4040 (struct gtransaction): ...this.
4041 (struct gcond): New subclass.
4042 (struct gdebug): New subclass.
4043 (struct ggoto): New subclass.
4044 (struct glabel): New subclass.
4045 (struct gswitch): New subclass.
4046 (struct gassign): New subclass.
4047 (struct greturn): New subclass.
4048 (is_a_helper <gimple_statement_asm *>::test): Rename to...
4049 (is_a_helper <gasm *>::test): ...this.
4050 (is_a_helper <gimple_statement_bind *>::test): Rename to...
4051 (is_a_helper <gbind *>::test): ...this.
4052 (is_a_helper <gassign *>::test): New.
4053 (is_a_helper <gimple_statement_call *>::test): Rename to...
4054 (is_a_helper <gcall *>::test): ...this.
4055 (is_a_helper <gimple_statement_catch *>::test): Rename to...
4056 (is_a_helper <gcatch *>::test): ...this.
4057 (is_a_helper <gimple_statement_resx *>::test): Rename to...
4058 (is_a_helper <gresx *>::test): ...this.
4059 (is_a_helper <gcond *>::test): New.
4060 (is_a_helper <gdebug *>::test): New.
4061 (is_a_helper <ggoto *>::test): New.
4062 (is_a_helper <glabel *>::test): New.
4063 (is_a_helper <gimple_statement_eh_dispatch *>::test): Rename to...
4064 (is_a_helper <geh_dispatch *>::test): ...this.
4065 (is_a_helper <gimple_statement_eh_else *>::test): Rename to...
4066 (is_a_helper <geh_else *>::test): ...this.
4067 (is_a_helper <gimple_statement_eh_filter *>::test): Rename to...
4068 (is_a_helper <geh_filter *>::test): ...this.
4069 (is_a_helper <gimple_statement_eh_mnt *>::test): Rename to...
4070 (is_a_helper <geh_mnt *>::test): ...this.
4071 (is_a_helper <gimple_statement_omp_atomic_load *>::test): Rename to...
4072 (is_a_helper <gomp_atomic_load *>::test): ...this.
4073 (is_a_helper <gimple_statement_omp_atomic_store *>::test): Rename to...
4074 (is_a_helper <gomp_atomic_store *>::test): ...this.
4075 (is_a_helper <gimple_statement_omp_continue *>::test): Rename to...
4076 (is_a_helper <gomp_continue *>::test): ...this.
4077 (is_a_helper <gimple_statement_omp_critical *>::test): Rename to...
4078 (is_a_helper <gomp_critical *>::test): ...this.
4079 (is_a_helper <gimple_statement_omp_for *>::test): Rename to...
4080 (is_a_helper <gomp_for *>::test): ...this.
4081 (is_a_helper <gimple_statement_omp_parallel *>::test): Rename to...
4082 (is_a_helper <gomp_parallel *>::test): ...this.
4083 (is_a_helper <gimple_statement_omp_target *>::test): Rename to...
4084 (is_a_helper <gomp_target *>::test): ...this.
4085 (is_a_helper <gimple_statement_omp_sections *>::test): Rename to...
4086 (is_a_helper <gomp_sections *>::test): ...this.
4087 (is_a_helper <gimple_statement_omp_single *>::test): Rename to...
4088 (is_a_helper <gomp_single *>::test): ...this.
4089 (is_a_helper <gimple_statement_omp_teams *>::test): Rename to...
4090 (is_a_helper <gomp_teams *>::test): ...this.
4091 (is_a_helper <gimple_statement_omp_task *>::test): Rename to...
4092 (is_a_helper <gomp_task *>::test): ...this.
4093 (is_a_helper <gimple_statement_phi *>::test): Rename to...
4094 (is_a_helper <gphi *>::test): ...this.
4095 (is_a_helper <gimple_statement_transaction *>::test): Rename to...
4096 (is_a_helper <gtransaction *>::test): ...this.
4097 (is_a_helper <greturn *>::test): New.
4098 (is_a_helper <gswitch *>::test): New.
4099 (is_a_helper <gimple_statement_try *>::test): Rename to...
4100 (is_a_helper <gtry *>::test): ...this.
4101 (is_a_helper <const gimple_statement_asm *>::test): Rename to...
4102 (is_a_helper <const gasm *>::test): ...this.
4103 (is_a_helper <const gimple_statement_bind *>::test): Rename to...
4104 (is_a_helper <const gbind *>::test): ...this.
4105 (is_a_helper <const gimple_statement_call *>::test): Rename to...
4106 (is_a_helper <const gcall *>::test): ...this.
4107 (is_a_helper <const gimple_statement_catch *>::test): Rename to...
4108 (is_a_helper <const gcatch *>::test): ...this.
4109 (is_a_helper <const gimple_statement_resx *>::test): Rename to...
4110 (is_a_helper <const gresx *>::test): ...this.
4111 (is_a_helper <const gimple_statement_eh_dispatch *>::test): Rename to...
4112 (is_a_helper <const geh_dispatch *>::test): ...this.
4113 (is_a_helper <const gimple_statement_eh_filter *>::test): Rename to...
4114 (is_a_helper <const geh_filter *>::test): ...this.
4115 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
4117 (is_a_helper <const gomp_atomic_load *>::test): ...this.
4118 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
4120 (is_a_helper <const gomp_atomic_store *>::test): ...this.
4121 (is_a_helper <const gimple_statement_omp_continue *>::test):
4123 (is_a_helper <const gomp_continue *>::test): ...this.
4124 (is_a_helper <const gimple_statement_omp_critical *>::test):
4126 (is_a_helper <const gomp_critical *>::test): ...this.
4127 (is_a_helper <const gimple_statement_omp_for *>::test): Rename to...
4128 (is_a_helper <const gomp_for *>::test): ...this.
4129 (is_a_helper <const gimple_statement_omp_parallel *>::test):
4131 (is_a_helper <const gomp_parallel *>::test): ...this.
4132 (is_a_helper <const gimple_statement_omp_target *>::test): Rename to...
4133 (is_a_helper <const gomp_target *>::test): ...this.
4134 (is_a_helper <const gimple_statement_omp_sections *>::test):
4136 (is_a_helper <const gomp_sections *>::test): ...this.
4137 (is_a_helper <const gimple_statement_omp_single *>::test): Rename to...
4138 (is_a_helper <const gomp_single *>::test): ...this.
4139 (is_a_helper <const gimple_statement_omp_teams *>::test): Rename to...
4140 (is_a_helper <const gomp_teams *>::test): ...this.
4141 (is_a_helper <const gimple_statement_omp_task *>::test): Rename to...
4142 (is_a_helper <const gomp_task *>::test): ...this.
4143 (is_a_helper <const gimple_statement_phi *>::test): Rename to...
4144 (is_a_helper <const gphi *>::test): ...this.
4145 (is_a_helper <const gimple_statement_transaction *>::test): Rename to...
4146 (is_a_helper <const gtransaction *>::test): ...this.
4147 (gimple_build_return): Strengthen return type to greturn *.
4148 (gimple_call_reset_alias_info): Require a gcall *.
4149 (gimple_build_call_vec): Return a gcall *.
4150 (gimple_build_call): Likewise.
4151 (gimple_build_call_valist): Likewise.
4152 (gimple_build_call_internal): Likewise.
4153 (gimple_build_call_internal_vec): Likewise.
4154 (gimple_build_call_from_tree): Likewise.
4155 (gimple_build_assign_stat): Return a gassign *.
4156 (gimple_build_assign_with_ops): Likewise.
4157 (gimple_build_cond): Return a gcond *.
4158 (gimple_build_cond_from_tree): Likewise.
4159 (gimple_cond_set_condition_from_tree): Require a gcond *.
4160 (gimple_build_label): Return a glabel *.
4161 (gimple_build_goto): Return a ggoto *.
4162 (gimple_build_bind): Return a gbind *.
4163 (gimple_build_asm_vec): Return a gasm *.
4164 (gimple_build_catch): Return a gcatch *.
4165 (gimple_build_eh_filter): Return a geh_filter *.
4166 (gimple_build_eh_must_not_throw): Return a geh_mnt *.
4167 (gimple_build_eh_else): Return a geh_else *.
4168 (gimple_build_try): Return a gtry *.
4169 (gimple_build_resx): Return a gresx *.
4170 (gimple_build_switch_nlabels): Return a gswitch *.
4171 (gimple_build_switch): Return a gswitch *.
4172 (gimple_build_eh_dispatch): Return a geh_dispatch *.
4173 (gimple_build_debug_bind_stat): Return a gdebug *.
4174 (gimple_build_debug_source_bind_stat): Return a gdebug *.
4175 (gimple_build_omp_critical): Return a gomp_critical *.
4176 (gimple_build_omp_for): Return a gomp_for *.
4177 (gimple_build_omp_parallel): Return a gomp_parallel *.
4178 (gimple_build_omp_task): Return a gomp_task *.
4179 (gimple_build_omp_continue): Return a gomp_continue *.
4180 (gimple_build_omp_sections): Return a gomp_sections *.
4181 (gimple_build_omp_single): Return a gomp_single *.
4182 (gimple_build_omp_target): Return a gomp_target *.
4183 (gimple_build_omp_teams): Return a gomp_teams *.
4184 (gimple_build_omp_atomic_load): Return a gomp_atomic_load *.
4185 (gimple_build_omp_atomic_store): Return a gomp_atomic_store *.
4186 (gimple_build_transaction): Return a gtransaction *.
4187 (gimple_call_arg_flags): Require a const gcall *.
4188 (gimple_call_return_flags): Likewise.
4189 (gimple_call_copy_skip_args): Require and return a gcall *.
4190 (gimple_asm_clobbers_memory_p): Require a const gasm *.
4191 (gimple_seq_first_stmt_as_a_bind): New.
4192 (gimple_assign_nontemporal_move_p): Require a const gassign *
4193 rather than a const_gimple.
4194 (gimple_call_internal_fn): Update for renaming to gcall.
4195 (gimple_call_fntype): Likewise.
4196 (gimple_call_set_fntype): Require a gcall * rather than a gimple.
4197 (gimple_call_set_fn): Likewise.
4198 (gimple_call_set_internal_fn): Likewise.
4199 (gimple_call_set_chain): Likewise.
4200 (gimple_call_set_tail): Likewise.
4201 (gimple_call_tail_p): Likewise.
4202 (gimple_call_set_return_slot_opt): Likewise.
4203 (gimple_call_return_slot_opt_p): Likewise.
4204 (gimple_call_set_from_thunk): Likewise.
4205 (gimple_call_from_thunk_p): Likewise.
4206 (gimple_call_set_va_arg_pack): Likewise.
4207 (gimple_call_va_arg_pack_p): Likewise.
4208 (gimple_call_set_nothrow): Likewise.
4209 (gimple_call_nothrow_p): Likewise.
4210 (gimple_call_set_alloca_for_var): Likewise.
4211 (gimple_call_alloca_for_var_p): Likewise.
4212 (gimple_call_use_set): Likewise.
4213 (gimple_call_clobber_set): Likewise.
4214 (gimple_call_return_type): Require a const gcall * rather than a
4216 (gimple_call_chain_ptr): Likewise.
4217 (gimple_call_copy_flags): Require a pair of gcall *.
4218 (gimple_cond_set_code): Require a gcond * rather than a gimple
4219 (gimple_cond_set_lhs): Likewise.
4220 (gimple_cond_set_rhs): Likewise.
4221 (gimple_cond_set_true_label): Likewise.
4222 (gimple_cond_set_false_label): Likewise.
4223 (gimple_cond_make_false): Likewise.
4224 (gimple_cond_make_true): Likewise.
4225 (gimple_cond_lhs_ptr): Require a const gcond * rather than a
4227 (gimple_cond_rhs_ptr): Likewise.
4228 (gimple_cond_true_label): Likewise.
4229 (gimple_cond_false_label): Likewise.
4230 (gimple_cond_true_p): Likewise.
4231 (gimple_cond_false_p): Likewise.
4232 (gimple_cond_set_condition): Likewise.
4233 (gimple_label_label): Require a const glabel *.
4234 (gimple_label_set_label): Require a glabel *.
4235 (gimple_goto_set_dest): Require a ggoto *.
4236 (gimple_bind_vars): Require a const gbind *.
4237 (gimple_bind_block): Likewise.
4238 (gimple_bind_set_vars): Require a gbind *.
4239 (gimple_bind_append_vars): Likewise.
4240 (gimple_bind_body_ptr): Likewise.
4241 (gimple_bind_body): Likewise.
4242 (gimple_bind_set_body): Likewise.
4243 (gimple_bind_add_stmt): Likewise.
4244 (gimple_bind_add_seq): Likewise.
4245 (gimple_bind_set_block): Likewise.
4246 (gimple_asm_ninputs): Require a const gasm *.
4247 (gimple_asm_noutputs): Likewise.
4248 (gimple_asm_nclobbers): Likewise.
4249 (gimple_asm_nlabels): Likewise.
4250 (gimple_asm_input_op): Likewise.
4251 (gimple_asm_input_op_ptr): Likewise.
4252 (gimple_asm_output_op): Likewise.
4253 (gimple_asm_output_op_ptr): Likewise.
4254 (gimple_asm_clobber_op): Likewise.
4255 (gimple_asm_label_op): Likewise.
4256 (gimple_asm_string): Likewise.
4257 (gimple_asm_volatile_p): Likewise.
4258 (gimple_asm_input_p): Likewise.
4259 (gimple_asm_set_input_op): Require a gasm *.
4260 (gimple_asm_set_output_op): Likewise.
4261 (gimple_asm_set_clobber_op): Likewise.
4262 (gimple_asm_set_label_op): Likewise.
4263 (gimple_asm_set_volatile): Likewise.
4264 (gimple_asm_set_input): Likewise.
4265 (gimple_catch_types): Require a const gcatch *.
4266 (gimple_catch_types_ptr): Require a gcatch *.
4267 (gimple_catch_handler_ptr): Likewise.
4268 (gimple_catch_handler): Likewise.
4269 (gimple_catch_set_types): Likewise.
4270 (gimple_catch_set_handler): Likewise.
4271 (gimple_eh_filter_types): Update for renaming of subclass to
4273 (gimple_eh_filter_types_ptr): Likewise.
4274 (gimple_eh_filter_failure_ptr): Likewise.
4275 (gimple_eh_filter_set_types): Require a geh_filter *.
4276 (gimple_eh_filter_set_failure): Likewise.
4277 (gimple_eh_must_not_throw_fndecl): Require a geh_mnt *.
4278 (gimple_eh_must_not_throw_set_fndecl): Likewise.
4279 (gimple_eh_else_n_body_ptr): Require a geh_else *.
4280 (gimple_eh_else_n_body): Likewise.
4281 (gimple_eh_else_e_body_ptr): Likewise.
4282 (gimple_eh_else_e_body): Likewise.
4283 (gimple_eh_else_set_n_body): Likewise.
4284 (gimple_eh_else_set_e_body): Likewise.
4285 (gimple_try_set_kind): Require a gtry *.
4286 (gimple_try_set_catch_is_cleanup): Likewise.
4287 (gimple_try_set_eval): Likewise.
4288 (gimple_try_set_cleanup): Likewise.
4289 (gimple_try_eval_ptr): Update for renaming of subclass to gtry.
4290 (gimple_try_cleanup_ptr): Likewise.
4291 (gimple_phi_capacity): Update for renaming of subclass to gphi.
4292 (gimple_phi_num_args): Likewise.
4293 (gimple_phi_result): Likewise.
4294 (gimple_phi_result_ptr): Likewise.
4295 (gimple_phi_arg): Likewise.
4296 (gimple_phi_set_result): Require a gphi *.
4297 (gimple_phi_set_arg): Likewise.
4298 (gimple_phi_arg_def_ptr): Likewise.
4299 (gimple_phi_arg_edge): Likewise.
4300 (gimple_phi_arg_location): Likewise.
4301 (gimple_phi_arg_location_from_edge): Likewise.
4302 (gimple_phi_arg_set_location): Likewise.
4303 (gimple_phi_arg_has_location): Likewise.
4304 (gimple_resx_region): Require a const gresx *.
4305 (gimple_resx_set_region): Require a gresx *.
4306 (gimple_eh_dispatch_region): Require a const geh_dispatch *.
4307 (gimple_eh_dispatch_set_region): Require a geh_dispatch *.
4308 (gimple_switch_num_labels): Require a const gswitch *.
4309 (gimple_switch_set_num_labels): Likewise.
4310 (gimple_switch_index): Likewise.
4311 (gimple_switch_index_ptr): Likewise.
4312 (gimple_switch_label): Likewise.
4313 (gimple_switch_default_label): Likewise.
4314 (gimple_switch_set_index): Require a gswitch *.
4315 (gimple_switch_set_label): Likewise.
4316 (gimple_switch_set_default_label): Likewise.
4317 (gimple_omp_critical_name): Require a const gomp_critical *.
4318 (gimple_omp_critical_name_ptr): Require a gomp_critical *.
4319 (gimple_omp_critical_set_name): Likewise.
4320 (gimple_omp_for_set_kind): Require a gomp_for *.
4321 (gimple_omp_for_set_combined_p): Likewise.
4322 (gimple_omp_for_set_combined_into_p): Likewise.
4323 (gimple_omp_for_clauses): Update for renaming of subclass to
4325 (gimple_omp_for_clauses_ptr): Likewise.
4326 (gimple_omp_for_set_clauses): Likewise.
4327 (gimple_omp_for_collapse): Likewise.
4328 (gimple_omp_for_index): Likewise.
4329 (gimple_omp_for_index_ptr): Likewise.
4330 (gimple_omp_for_set_index): Likewise.
4331 (gimple_omp_for_initial): Likewise.
4332 (gimple_omp_for_initial_ptr): Likewise.
4333 (gimple_omp_for_set_initial): Likewise.
4334 (gimple_omp_for_final): Likewise.
4335 (gimple_omp_for_final_ptr): Likewise.
4336 (gimple_omp_for_set_final): Likewise.
4337 (gimple_omp_for_incr): Likewise.
4338 (gimple_omp_for_incr_ptr): Likewise.
4339 (gimple_omp_for_set_incr): Likewise.
4340 (gimple_omp_for_pre_body): Likewise.
4341 (gimple_omp_for_set_pre_body): Likewise.
4342 (gimple_omp_parallel_clauses): Update for renaming of subclass to
4344 (gimple_omp_parallel_clauses_ptr): Require a gomp_parallel *.
4345 (gimple_omp_parallel_set_clauses): Likewise.
4346 (gimple_omp_parallel_child_fn_ptr): Likewise.
4347 (gimple_omp_parallel_set_child_fn): Likewise.
4348 (gimple_omp_parallel_data_arg_ptr): Likewise.
4349 (gimple_omp_parallel_set_data_arg): Likewise.
4350 (gimple_omp_parallel_child_fn): Require a const gomp_parallel *.
4351 (gimple_omp_parallel_data_arg): Likewise.
4352 (gimple_omp_task_clauses): Update for renaming of subclass to
4354 (gimple_omp_task_clauses_ptr): Likewise.
4355 (gimple_omp_task_set_clauses): Likewise.
4356 (gimple_omp_task_child_fn): Likewise.
4357 (gimple_omp_task_child_fn_ptr): Likewise.
4358 (gimple_omp_task_set_child_fn): Likewise.
4359 (gimple_omp_task_data_arg): Likewise.
4360 (gimple_omp_task_data_arg_ptr): Likewise.
4361 (gimple_omp_task_set_data_arg): Likewise.
4362 (gimple_omp_taskreg_clauses): Whitespace fixes.
4363 (gimple_omp_taskreg_clauses_ptr): Likewise.
4364 (gimple_omp_taskreg_set_clauses): Likewise.
4365 (gimple_omp_taskreg_child_fn): Likewise.
4366 (gimple_omp_taskreg_child_fn_ptr): Likewise.
4367 (gimple_omp_taskreg_set_child_fn): Likewise.
4368 (gimple_omp_taskreg_data_arg): Likewise.
4369 (gimple_omp_taskreg_data_arg_ptr): Likewise.
4370 (gimple_omp_taskreg_set_data_arg): Likewise.
4371 (gimple_omp_task_copy_fn): Update for renaming of subclass to
4373 (gimple_omp_task_copy_fn_ptr): Likewise.
4374 (gimple_omp_task_set_copy_fn): Likewise.
4375 (gimple_omp_task_arg_size): Likewise.
4376 (gimple_omp_task_arg_size_ptr): Likewise.
4377 (gimple_omp_task_set_arg_size): Likewise.
4378 (gimple_omp_task_arg_align): Likewise.
4379 (gimple_omp_task_arg_align_ptr): Likewise.
4380 (gimple_omp_task_set_arg_align): Likewise.
4381 (gimple_omp_single_clauses): Update for renaming of subclass to
4383 (gimple_omp_single_clauses_ptr): Likewise.
4384 (gimple_omp_single_set_clauses): Likewise.
4385 (gimple_omp_target_clauses): Update for renaming of subclass to
4387 (gimple_omp_target_clauses_ptr): Likewise.
4388 (gimple_omp_target_set_clauses): Require a gomp_target *.
4389 (gimple_omp_target_set_kind): Likewise.
4390 (gimple_omp_target_child_fn_ptr): Likewise.
4391 (gimple_omp_target_set_child_fn): Likewise.
4392 (gimple_omp_target_data_arg_ptr): Likewise.
4393 (gimple_omp_target_set_data_arg): Likewise.
4394 (gimple_omp_target_child_fn): Require a const gomp_target *.
4395 (gimple_omp_target_data_arg): Likewise.
4396 (gimple_omp_teams_clauses): Update for renaming of subclass to
4398 (gimple_omp_teams_clauses_ptr): Likewise.
4399 (gimple_omp_teams_set_clauses): Require a gomp_teams *.
4400 (gimple_omp_sections_clauses): Update for renaming of subclass to
4402 (gimple_omp_sections_clauses_ptr): Likewise.
4403 (gimple_omp_sections_set_clauses): Likewise.
4404 (gimple_omp_sections_control): Likewise.
4405 (gimple_omp_sections_control_ptr): Likewise.
4406 (gimple_omp_sections_set_control): Likewise.
4407 (gimple_omp_for_set_cond): Likewise.
4408 (gimple_omp_for_cond): Likewise.
4409 (gimple_omp_atomic_store_set_val): Require a gomp_atomic_store *.
4410 (gimple_omp_atomic_store_val_ptr): Likewise.
4411 (gimple_omp_atomic_load_set_lhs): Likewise.
4412 (gimple_omp_atomic_store_val): Require a const gomp_atomic_store *.
4413 (gimple_omp_atomic_load_lhs): Likewise.
4414 (gimple_omp_atomic_load_rhs): Likewise.
4415 (gimple_omp_atomic_load_lhs_ptr): Require a gomp_atomic_load *.
4416 (gimple_omp_atomic_load_set_rhs): Likewise.
4417 (gimple_omp_atomic_load_rhs_ptr): Likewise.
4418 (gimple_omp_continue_control_def): Require a const gomp_continue *.
4419 (gimple_omp_continue_control_use): Likewise.
4420 (gimple_omp_continue_control_def_ptr): Require a gomp_continue *.
4421 (gimple_omp_continue_set_control_def): Likewise.
4422 (gimple_omp_continue_control_use_ptr): Likewise.
4423 (gimple_omp_continue_set_control_use): Likewise.
4424 (gimple_transaction_body_ptr): Require a gtransaction *.
4425 (gimple_transaction_body): Likewise.
4426 (gimple_transaction_label_ptr): Likewise.
4427 (gimple_transaction_label): Require a const gtransaction *.
4428 (gimple_transaction_subcode): Likewise.
4429 (gimple_transaction_set_body): Require a gtransaction *.
4430 (gimple_transaction_set_label): Likewise.
4431 (gimple_transaction_set_subcode): Likewise.
4432 (gimple_return_retval_ptr): Require a const greturn *.
4433 (gimple_return_retval): Likewise.
4434 (gimple_return_set_retval): Require a greturn *.
4435 (gimple_expr_type): Introduce local "call_stmt" and use in place of
4436 "stmt" for typesafety.
4438 * asan.c: Use gimple subclasses.
4439 * auto-profile.c: Likewise.
4440 * builtins.c: Likewise.
4441 * builtins.h: Likewise.
4442 * cfgexpand.c: Likewise.
4443 * cfgloop.c: Likewise.
4444 * cfgloopmanip.c: Likewise.
4445 * cgraph.c: Likewise.
4446 * cgraph.h: Likewise.
4447 * cgraphbuild.c: Likewise.
4448 * cgraphclones.c: Likewise.
4449 * cgraphunit.c: Likewise.
4451 * gimple-builder.c: Likewise.
4452 * gimple-builder.h: Likewise.
4453 * gimple-fold.c: Likewise.
4454 * gimple-low.c: Likewise.
4455 * gimple-pretty-print.c: Likewise.
4456 * gimple-ssa-isolate-paths.c: Likewise.
4457 * gimple-ssa-strength-reduction.c: Likewise.
4458 * gimple-streamer-in.c: Likewise.
4459 * gimple-streamer-out.c: Likewise.
4460 * gimple-walk.c: Likewise.
4461 * gimplify-me.c: Likewise.
4462 * gimplify.c: Likewise.
4463 * gimplify.h: Likewise.
4464 * graphite-scop-detection.c: Likewise.
4465 * graphite-sese-to-poly.c: Likewise.
4466 * internal-fn.c: Likewise.
4467 * internal-fn.def:: Likewise.
4468 * internal-fn.h: Likewise.
4469 * ipa-icf-gimple.c: Likewise.
4470 * ipa-icf-gimple.h: Likewise.
4471 * ipa-icf.c: Likewise.
4472 * ipa-inline-analysis.c: Likewise.
4473 * ipa-prop.c: Likewise.
4474 * ipa-prop.h: Likewise.
4475 * ipa-pure-const.c: Likewise.
4476 * ipa-split.c: Likewise.
4477 * lto-streamer-in.c: Likewise.
4478 * lto-streamer-out.c: Likewise.
4479 * omp-low.c: Likewise.
4480 * predict.c: Likewise.
4481 * sanopt.c: Likewise.
4483 * ssa-iterators.h: Likewise.
4485 * trans-mem.c: Likewise.
4486 * tree-call-cdce.c: Likewise.
4487 * tree-cfg.c: Likewise.
4488 * tree-cfg.h: Likewise.
4489 * tree-cfgcleanup.c: Likewise.
4490 * tree-chkp.c: Likewise.
4491 * tree-chkp.h: Likewise.
4492 * tree-complex.c: Likewise.
4493 * tree-data-ref.c: Likewise.
4494 * tree-dfa.c: Likewise.
4495 * tree-eh.c: Likewise.
4496 * tree-eh.h: Likewise.
4497 * tree-emutls.c: Likewise.
4498 * tree-if-conv.c: Likewise.
4499 * tree-inline.c: Likewise.
4500 * tree-inline.h: Likewise.
4501 * tree-into-ssa.c: Likewise.
4502 * tree-into-ssa.h: Likewise.
4503 * tree-loop-distribution.c: Likewise.
4504 * tree-nrv.c: Likewise.
4505 * tree-object-size.c: Likewise.
4506 * tree-outof-ssa.c: Likewise.
4507 * tree-parloops.c: Likewise.
4508 * tree-phinodes.c: Likewise.
4509 * tree-phinodes.h: Likewise.
4510 * tree-predcom.c: Likewise.
4511 * tree-profile.c: Likewise.
4512 * tree-scalar-evolution.c: Likewise.
4513 * tree-scalar-evolution.h
4514 * tree-sra.cn_function):
4515 * tree-ssa-alias.c: Likewise.
4516 * tree-ssa-alias.h: Likewise.
4517 * tree-ssa-ccp.c: Likewise.
4518 * tree-ssa-coalesce.c: Likewise.
4519 * tree-ssa-copy.c: Likewise.
4520 * tree-ssa-copyrename.c: Likewise.
4521 * tree-ssa-dce.c: Likewise.
4522 * tree-ssa-dom.c: Likewise.
4523 * tree-ssa-forwprop.c: Likewise.
4524 * tree-ssa-ifcombine.c: Likewise.
4525 * tree-ssa-live.c: Likewise.
4526 * tree-ssa-loop-im.c: Likewise.
4527 * tree-ssa-loop-ivcanon.c: Likewise.
4528 * tree-ssa-loop-ivopts.c: Likewise.
4529 * tree-ssa-loop-manip.c: Likewise.
4530 * tree-ssa-loop-niter.c: Likewise.
4531 * tree-ssa-loop-prefetch.c: Likewise.
4532 * tree-ssa-loop-unswitch.c: Likewise.
4533 * tree-ssa-math-opts.c: Likewise.
4534 * tree-ssa-operands.c: Likewise.
4535 * tree-ssa-phiopt.c: Likewise.
4536 * tree-ssa-phiprop.c: Likewise.
4537 * tree-ssa-pre.c: Likewise.
4538 * tree-ssa-propagate.c: Likewise.
4539 * tree-ssa-propagate.h: Likewise.
4540 * tree-ssa-reassoc.c: Likewise.
4541 * tree-ssa-sccvn.c: Likewise.
4542 * tree-ssa-sccvn.h: Likewise.
4543 * tree-ssa-sink.c: Likewise.
4545 * tree-ssa-structalias.c
4546 * tree-ssa-tail-merge.c: Likewise.
4547 * tree-ssa-ter.c: Likewise.
4548 * tree-ssa-threadedge.c: Likewise.
4549 * tree-ssa-threadedge.h: Likewise.
4550 * tree-ssa-threadupdate.c: Likewise.
4551 * tree-ssa-uncprop.c: Likewise.
4552 * tree-ssa-uninit.c: Likewise.
4553 * tree-ssa.c: Likewise.
4554 * tree-stdarg.c: Likewise.
4555 * tree-switch-conversion.c: Likewise.
4556 * tree-tailcall.c: Likewise.
4557 * tree-vect-data-refs.c: Likewise.
4558 * tree-vect-generic.c: Likewise.
4559 * tree-vect-loop-manip.c: Likewise.
4560 * tree-vect-loop.c: Likewise.
4561 * tree-vect-patterns.c: Likewise.
4562 * tree-vect-slp.c: Likewise.
4563 * tree-vect-stmts.c: Likewise.
4564 * tree-vectorizer.h: Likewise.
4565 * tree-vrp.c: Likewise.
4567 * ubsan.c: Likewise.
4568 * value-prof.c: Likewise.
4569 * value-prof.h: Likewise.
4570 * vtable-verify.c: Likewise.
4572 2014-11-19 Markus Trippelsdorf <markus@trippelsdorf.de>
4574 * config/rs6000/constraints.md: Avoid signed integer overflows.
4575 * config/rs6000/predicates.md: Likewise.
4577 2014-11-19 Renlin Li <Renlin.Li@arm.com>
4580 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): New.
4582 2014-11-19 Renlin Li <Renlin.Li@arm.com>
4585 * ira.c (ira): Update preferred class.
4587 2014-11-19 Jakub Jelinek <jakub@redhat.com>
4589 * gimple.h (gimple_build_assign_with_ops): Add unary arg overload.
4590 (gimple_assign_set_rhs_with_ops_1): Renamed to ...
4591 (gimple_assign_set_rhs_with_ops): ... this. Adjust binary arg
4592 inline overload to use it. Add unary arg overload.
4593 * gimple.c (gimple_build_assign_with_ops): New unary arg overload.
4594 (gimple_assign_set_rhs_from_tree): Use
4595 gimple_assign_set_rhs_with_ops instead of
4596 gimple_assign_set_rhs_with_ops_1.
4597 (gimple_assign_set_rhs_with_ops_1): Renamed to ...
4598 (gimple_assign_set_rhs_with_ops): ... this.
4599 * ipa-split.c (split_function): Remove last NULL argument
4600 from gimple_build_assign_with_ops call.
4601 * tree-ssa-loop-im.c
4602 (move_computations_dom_walker::before_dom_children): Likewise.
4603 * tsan.c (instrument_builtin_call): Likewise.
4604 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
4605 vectorizable_conversion, vectorizable_load): Likewise.
4606 * tree-vect-loop.c (vect_is_simple_reduction_1,
4607 get_initial_def_for_induction): Likewise.
4608 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
4609 * tree-vect-patterns.c (vect_handle_widen_op_by_const,
4610 vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
4611 vect_recog_over_widening_pattern, vect_recog_rotate_pattern,
4612 vect_recog_vector_vector_shift_pattern, vect_recog_divmod_pattern,
4613 vect_recog_mixed_size_cond_pattern, adjust_bool_pattern_cast,
4614 adjust_bool_pattern, vect_recog_bool_pattern): Likewise.
4615 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
4616 neg_replacement): Likewise.
4617 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
4618 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
4619 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4620 * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
4621 expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
4622 simd_clone_adjust): Likewise.
4623 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
4624 * gimple-ssa-strength-reduction.c (introduce_cast_before_cand,
4625 replace_one_candidate): Likewise.
4626 * gimple-builder.c (build_type_cast): Likewise.
4627 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
4628 (forward_propagate_addr_expr_1): Remove last NULL argument
4629 from gimple_assign_set_rhs_with_ops call.
4630 (simplify_vector_constructor): Use gimple_assign_set_rhs_with_ops
4631 instead of gimple_assign_set_rhs_with_ops_1.
4632 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Remove last NULL
4633 argument from gimple_build_assign_with_ops call.
4634 (repropagate_negates): Remove last NULL argument from
4635 gimple_assign_set_rhs_with_ops call.
4636 * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn): Remove
4637 last NULL argument from gimple_build_assign_with_ops call.
4638 (instrument_bool_enum_load): Likewise. Remove last NULL argument
4639 from gimple_assign_set_rhs_with_ops call.
4640 * tree-ssa-math-opts.c (build_and_insert_cast, convert_mult_to_fma):
4641 Remove last NULL argument from gimple_build_assign_with_ops call.
4642 (bswap_replace): Likewise. Use gimple_assign_set_rhs_with_ops instead
4643 of gimple_assign_set_rhs_with_ops_1.
4644 (convert_plusminus_to_widen): Use gimple_assign_set_rhs_with_ops
4645 instead of gimple_assign_set_rhs_with_ops_1.
4646 * gimple-fold.c (replace_stmt_with_simplification): Likewise.
4647 (rewrite_to_defined_overflow, gimple_build): Remove last NULL argument
4648 from gimple_build_assign_with_ops call.
4649 * tree-ssa-strlen.c (handle_pointer_plus): Remove last NULL argument
4650 from gimple_assign_set_rhs_with_ops call.
4651 * tree-vrp.c (simplify_truth_ops_using_ranges,
4652 simplify_bit_ops_using_ranges): Remove last NULL argument from
4653 gimple_assign_set_rhs_with_ops call.
4654 (simplify_float_conversion_using_ranges,
4655 simplify_internal_call_using_ranges): Remove last NULL argument from
4656 gimple_build_assign_with_ops call.
4658 2014-11-19 Wilco Dijkstra <wdijkstr@arm.com>
4661 * config/aarch64/aarch64.c (generic_regmove_cost): Increase FP move
4664 2014-11-19 Marek Polacek <polacek@redhat.com>
4667 * ubsan.c (instrument_object_size): Check for MEM_REF.
4669 2014-11-19 Ilya Verbin <ilya.verbin@intel.com>
4672 * cgraph.c (cgraph_node::create): Guard g->have_offload with
4673 ifdef ENABLE_OFFLOADING.
4674 * omp-low.c (create_omp_child_function): Likewise.
4675 (expand_omp_target): Guard node->mark_force_output and offload_funcs
4676 with ifdef ENABLE_OFFLOADING.
4677 * varpool.c (varpool_node::get_create): Guard g->have_offload and
4678 offload_vars with ifdef ENABLE_OFFLOADING.
4680 2014-11-19 Felix Yang <felix.yang@huawei.com>
4681 Shanyao Chen <chenshanyao@huawei.com>
4684 * config/arm/arm.md (define_attr "arch"): Add v6t2.
4685 (define_attr "arch_enabled"): Add test for the above.
4686 (*movhi_insn_arch4): Add new alternative.
4688 2014-11-19 Richard Henderson <rth@redhat.com>
4690 * c-family/c-common.c (c_common_reswords): Add
4691 __builtin_call_with_static_chain.
4692 * c-family/c-common.h (RID_BUILTIN_CALL_WITH_STATIC_CHAIN): New.
4693 * c/c-parser.c (c_parser_postfix_expression): Handle it.
4694 * doc/extend.texi (__builtin_call_with_static_chain): Document it.
4696 * calls.c (prepare_call_address): Allow decl or type for first arg.
4697 (expand_call): Pass type to prepare_call_address if no decl.
4698 * gimple-fold.c (gimple_fold_call): Eliminate the static chain if
4699 the function doesn't use it; fold it otherwise.
4700 * gimplify.c (gimplify_call_expr): Gimplify the static chain.
4701 * tree-cfg.c (verify_gimple_call): Allow a static chain on indirect
4704 * targhooks.c (default_static_chain): Remove check for
4706 * config/moxie/moxie.c (moxie_static_chain): Likewise.
4707 * config/i386/i386.c (ix86_static_chain): Allow decl or type
4708 as the first argument.
4709 * config/xtensa/xtensa.c (xtensa_static_chain): Change the name
4710 of the unused first parameter.
4711 * doc/tm.texi (TARGET_STATIC_CHAIN): Document the first parameter
4713 * target.def (static_chain): Likewise.
4715 2014-11-19 Renlin Li <renlin.li@arm.com>
4717 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
4718 __ARM_FP_FAST, __ARM_FEATURE_FMA, __ARM_FP,
4719 __ARM_FEATURE_NUMERIC_MAXMIN, __ARM_NEON_FP.
4721 2014-11-19 Marek Polacek <polacek@redhat.com>
4724 * fold-const.c (negate_expr_p) <case NEGATE_EXPR>: Return
4725 !TYPE_OVERFLOW_SANITIZED.
4726 (fold_negate_expr) <case INTEGER_CST>: Fold when overflow
4727 does not trap and when overflow wraps, or when SANITIZE_SI_OVERFLOW
4730 2014-11-19 Ilya Tocar <ilya.tocar@intel.com>
4732 * collect2.c (main): Don't call fatal_error before
4733 diagnostic_initialize.
4734 * lto-wrapper.c (main): Likewise.
4736 2014-11-19 Tom de Vries <tom@codesourcery.com>
4738 PR tree-optimization/62167
4739 * tree-ssa-tail-merge.c (stmt_local_def): Handle statements with vuse
4741 (gimple_equal_p): Don't use vn_valueize to compare for lhs equality of
4744 2014-11-19 Jakub Jelinek <jakub@redhat.com>
4746 PR tree-optimization/63915
4747 * tree-vect-stmts.c (vectorizable_simd_clone_call): Pass
4748 true instead of false as last argument to gsi_replace.
4751 * internal-fn.c (expand_ubsan_result_store): New function.
4752 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
4753 Use it instead of just emit_move_insn.
4755 2014-11-19 Richard Biener <rguenther@suse.de>
4757 PR tree-optimization/63844
4758 * omp-low.c (fixup_child_record_type): Use a restrict qualified
4759 referece type for the receiver parameter.
4761 2014-11-19 Jakub Jelinek <jakub@redhat.com>
4764 * ubsan.c: Include tree-eh.h.
4765 (instrument_bool_enum_load): Handle loads that can throw.
4767 PR rtl-optimization/63843
4768 * simplify-rtx.c (simplify_binary_operation_1) <case ASHIFTRT>: For
4769 optimization of ashiftrt of subreg of lshiftrt, check that code
4772 2014-11-18 Andrew MacLeod <amacleod@redhat.com>
4774 * attribs.c (decl_attributes): Remove always true condition,
4775 TREE_TYPE(x) will never compare equal to a TYPE_DECL.
4777 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
4780 * target.def (use_by_pieces_infrastructure_p): Take unsigned
4781 HOST_WIDE_INT as the size parameter.
4782 * targhooks.c (default_use_by_pieces_infrastructure_p): Likewise.
4783 * targhooks.h (default_use_by_pieces_infrastructure_p): Likewise.
4784 * config/arc/arc.c (arc_use_by_pieces_infrastructure_p)): Likewise.
4785 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p)): Likewise.
4786 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p)): Likewise.
4787 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p)): Likewise.
4788 * config/aarch64/aarch64.c
4789 (aarch64_use_by_pieces_infrastructure_p)): Likewise.
4790 * doc/tm.texi: Regenerate.
4792 2014-11-18 Jan Hubicka <hubicka@ucw.cz>
4794 * ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn.
4795 (ipa_value_from_jfunc, ipa_context_from_jfunc): Skip sanity check.
4796 (ipa_get_indirect_edge_target_1): Use opt_for_fn.
4797 (good_cloning_opportunity_p): Likewise.
4798 (ipa-cp gate): Enable ipa-cp with LTO.
4799 * ipa-profile.c (ipa_propagate_frequency): Use opt_for_fn.
4800 * ipa.c (symbol_table::remove_unreachable_nodes): Always build type
4802 * ipa-inline-transform.c (inline_transform): Check if there are inlines
4803 to apply even at -O0.
4804 * cgraphunit.c (cgraph_node::finalize_function): Use opt_for_fn.
4805 (analyze_functions): Build type inheritance graph.
4806 * ipa-inline.c (can_inline_edge_p): Use opt_for_fn.
4807 (want_early_inline_function_p, want_inline_small_function_p):
4809 (check_callers): Likewise.
4810 (edge_badness): Likewise.
4811 (inline_small_functions): Always be ready for indirect inlining
4813 (ipa_inline): Always use want_inline_function_to_all_callers_p.
4814 (early_inline_small_functions): Use opt_for_fn.
4815 * ipa-inline-analysis.c (estimate_function_body_sizes): use opt_for_fn.
4816 (estimate_function_body_sizes): Likewise.
4817 (compute_inline_parameters): Likewise.
4818 (estimate_edge_devirt_benefit): Likewise.
4819 (inline_analyze_function): Likewise.
4820 * ipa-devirt.c (ipa_devirt): Likewise.
4821 (gate): Use in_lto_p.
4822 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): Use opt_for_fn.
4823 (try_make_edge_direct_virtual_call): Likewise.
4824 (update_indirect_edges_after_inlining): Likewise.
4825 (ipa_free_all_structures_after_ipa_cp): Add in_lto_p check.
4826 * common.opt (findirect-inlining): Turn into optimization.
4827 * ipa-pure-const.c (add_new_function): Use opt_for_fn.
4828 (pure_const_generate_summary): Likewise.
4829 (gate_pure_const): Always enable with in_lto_p.
4831 2014-11-18 Maciej W. Rozycki <macro@codesourcery.com>
4833 * config/mips/mips.md (compression): Add `micromips32' setting.
4834 (enabled, length): Handle it.
4835 (shift_compression): Replace `micromips' with `micromips32' in
4836 the `compression' attribute.
4837 (*add<mode>3, sub<mode>3): Likewise.
4839 2014-11-18 Maciej W. Rozycki <macro@codesourcery.com>
4841 * gcc/config/mips/mips.md (*jump_absolute): Use a branch when in
4842 range, a jump otherwise.
4844 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4846 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_to_from_gp):
4848 (cortex_a15_gp_to_vfp): ...This.
4849 (cortex_a15_fp_to_gp): ...And this.
4850 Define and comment bypass from vfp operations to fp->gp moves.
4852 2014-11-18 Martin Liska <mliska@suse.cz>
4854 * var-tracking.c (vt_find_locations): New fibonacci_node is used.
4856 2014-11-18 Martin Liska <mliska@suse.cz>
4858 * bt-load.c (add_btr_def): New fibonacci_heap is used.
4859 (migrate_btr_defs): Likewise.
4861 2014-11-18 Martin Liska <mliska@suse.cz>
4863 * tracer.c (tail_duplicate): New fibonacci_heap class is used.
4865 2014-11-18 Martin Liska <mliska@suse.cz>
4867 * bb-reorder.c (mark_bb_visited): New fibonacci_heap is used.
4868 (find_traces): Likewise.
4869 (find_traces_1_round): Likewise.
4871 2014-11-18 Martin Liska <mliska@suse.cz>
4873 * fibonacci_heap.h: New file.
4874 (fibonacci_heap::insert): Created from fibheap_insert.
4875 (fibonacci_heap::empty): Created from fibheap_empty.
4876 (fibonacci_heap::nodes): Created from fibheap_nodes.
4877 (fibonacci_heap::min_key): Created from fibheap_min_key.
4878 (fibonacci_heap::decrease_key): Created from fibheap_replace_key.
4879 (fibonacci_heap::replace_key_data): Created from fibheap_replace_key_data.
4880 (fibonacci_heap::extract_min): Created from fibheap_extract_min.
4881 (fibonacci_heap::min): Created from fibheap_min.
4882 (fibonacci_heap::replace_data): Created from fibheap_replace_data.
4883 (fibonacci_heap::delete_node): Created from fibheap_delete_node.
4884 (fibonacci_heap::union_with): Created from fibheap_union.
4885 * ipa-inline.c (update_edge_key): New heap API is used.
4886 (update_caller_keys): Likewise.
4887 (update_callee_keys): Likewise.
4888 (lookup_recursive_calls): Likewise.
4889 (recursive_inlining): Likewise.
4890 (add_new_edges_to_heap): Likewise.
4891 (heap_edge_removal_hook): Likewise.
4892 (inline_small_functions): Likewise.
4894 2014-11-18 Marek Polacek <polacek@redhat.com>
4897 * asan.c (asan_global_struct): Create a TYPE_DECL for "__asan_global",
4898 put it into TYPE_NAME and TYPE_STUB_DECL.
4899 * ubsan.c (ubsan_type_descriptor_type): New variable.
4900 Function renamed to ...
4901 (ubsan_get_type_descriptor_type): ... this. Cache
4902 return value in ubsan_type_descriptor_type variable.
4903 Create a TYPE_DECL for "__ubsan_type_descriptor", put it into
4904 TYPE_NAME and TYPE_STUB_DECL.
4905 (ubsan_get_source_location_type): Create a TYPE_DECL for
4906 "__ubsan_source_location", put it into TYPE_NAME and TYPE_STUB_DECL.
4907 (ubsan_type_descriptor, ubsan_create_data): Call
4908 ubsan_get_type_descriptor_type instead of ubsan_type_descriptor_type.
4909 Create a TYPE_DECL for name, put it into TYPE_NAME and TYPE_STUB_DECL.
4911 2014-11-18 Felix Yang <felix.yang@huawei.com>
4913 * config/aarch64/aarch64.c (doloop_end): New pattern.
4914 * config/aarch64/aarch64.md (TARGET_CAN_USE_DOLOOP_P): Implement.
4916 2014-11-18 Jason Merrill <jason@redhat.com>
4918 * tree.c (warn_deprecated_use): Show declaration with inform.
4920 2014-11-18 Richard Biener <rguenther@suse.de>
4922 PR tree-optimization/63914
4923 * tree-ssa-ccp.c (canonicalize_value): Remove float value
4925 (valid_lattice_transition): Allow (partial) transition
4926 from NaN to non-NaN if !HONOR_NANS.
4927 (set_lattice_value): Check for valid lattice transitions
4928 only when checking is enabled.
4930 2014-11-18 Bernd Schmidt <bernds@codesourcery.com>
4932 * config/nvptx/nvptx.c: Include <sstream> directly after "config.h".
4934 2014-11-18 Christophe Lyon <christophe.lyon@linaro.org>
4936 * config/arm/neon-testgen.ml (emit_prologue): Handle new
4937 compile_test_optim argument.
4938 (emit_automatics): Rename to emit_variables. Support variable
4939 indentation of its output.
4940 (compile_test_optim): New function.
4941 (test_intrinsic): Call compile_test_optim.
4942 * config/arm/neon.ml (features): Add Compiler_optim.
4943 (ops): Add Compiler_optim feature to Vbic and Vorn.
4944 (type_in_crypto_only): Replace 'or' by '||'.
4945 (reinterp): Likewise.
4946 (reinterpq): Likewise.
4948 2014-11-18 Alan Lawrence <alan.lawrence@arm.com>
4950 * config/aarch64/arm_neon.h (vld1_dup_f32, vld1_dup_f64, vld1_dup_p8,
4951 vld1_dup_p16, vld1_dup_s8, vld1_dup_s16, vld1_dup_s32, vld1_dup_s64,
4952 vld1_dup_u8, vld1_dup_u16, vld1_dup_u32, vld1_dup_u64, vld1q_dup_f32,
4953 vld1q_dup_f64, vld1q_dup_p8, vld1q_dup_p16, vld1q_dup_s8, vld1q_dup_s16,
4954 vld1q_dup_s32, vld1q_dup_s64, vld1q_dup_u8, vld1q_dup_u16,
4955 vld1q_dup_u32, vld1q_dup_u64): Replace inline asm with vdup_n_ and
4956 pointer dereference.
4958 2014-11-18 Marc Glisse <marc.glisse@inria.fr>
4960 * tree.c (element_mode, integer_truep): New functions.
4961 * tree.h (element_mode, integer_truep): Declare them.
4962 * fold-const.c (negate_expr_p, fold_negate_expr, combine_comparisons,
4963 fold_cond_expr_with_comparison, fold_real_zero_addition_p,
4964 fold_comparison, fold_ternary_loc, tree_call_nonnegative_warnv_p,
4965 fold_strip_sign_ops): Use element_mode.
4966 (fold_binary_loc): Use element_mode and element_precision.
4967 * match.pd: Use integer_truep, element_mode, element_precision,
4968 VECTOR_TYPE_P and build_one_cst. Extend some transformations to
4969 vectors. Simplify A/-A.
4971 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4973 * config/arm/arm.md (unaligned_loaddi): Use std::swap instead of
4974 manual swapping implementation.
4975 (movcond_addsi): Likewise.
4976 * config/arm/arm.c (arm_canonicalize_comparison): Likewise.
4977 (arm_select_dominance_cc_mode): Likewise.
4978 (arm_reload_out_hi): Likewise.
4979 (gen_operands_ldrd_strd): Likewise.
4980 (output_move_double): Likewise.
4981 (arm_print_operand_address): Likewise.
4982 (thumb_output_move_mem_multiple): Likewise.
4985 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
4987 * config/arm/arm-builtins.c (CONVERT_QUALIFIERS): Delete.
4988 (COPYSIGNF_QUALIFIERS): Likewise.
4989 (CREATE_QUALIFIERS): Likewise.
4990 (DUP_QUALIFIERS): Likewise.
4991 (FLOAT_WIDEN_QUALIFIERS): Likewise.
4992 (FLOAT_NARROW_QUALIFIERS): Likewise.
4993 (REINTERP_QUALIFIERS): Likewise.
4994 (RINT_QUALIFIERS): Likewise.
4995 (SPLIT_QUALIFIERS): Likewise.
4996 (FIXCONV_QUALIFIERS): Likewise.
4997 (SCALARMUL_QUALIFIERS): Likewise.
4998 (SCALARMULL_QUALIFIERS): Likewise.
4999 (SCALARMULH_QUALIFIERS): Likewise.
5000 (SELECT_QUALIFIERS): Likewise.
5001 (VTBX_QUALIFIERS): Likewise.
5002 (SHIFTIMM_QUALIFIERS): Likewise.
5003 (SCALARMAC_QUALIFIERS): Likewise.
5004 (LANEMUL_QUALIFIERS): Likewise.
5005 (LANEMULH_QUALIFIERS): Likewise.
5006 (LANEMULL_QUALIFIERS): Likewise.
5007 (SHIFTACC_QUALIFIERS): Likewise.
5008 (SHIFTINSERT_QUALIFIERS): Likewise.
5009 (VTBL_QUALIFIERS): Likewise.
5010 (LOADSTRUCT_QUALIFIERS): Likewise.
5011 (LOADSTRUCTLANE_QUALIFIERS): Likewise.
5012 (STORESTRUCT_QUALIFIERS): Likewise.
5013 (STORESTRUCTLANE_QUALIFIERS): Likewise.
5014 (neon_builtin_type_mode): Delete.
5015 (v8qi_UP): Map to V8QImode.
5016 (v8qi_UP): Map to V8QImode.
5017 (v4hi_UP): Map to V4HImode.
5018 (v4hf_UP): Map to V4HFmode.
5019 (v2si_UP): Map to V2SImode.
5020 (v2sf_UP): Map to V2SFmode.
5021 (di_UP): Map to DImode.
5022 (v16qi_UP): Map to V16QImode.
5023 (v8hi_UP): Map to V8HImode.
5024 (v4si_UP): Map to V4SImode.
5025 (v4sf_UP): Map to V4SFmode.
5026 (v2di_UP): Map to V2DImode.
5027 (ti_UP): Map to TImode.
5028 (ei_UP): Map to EImode.
5029 (oi_UP): Map to OImode.
5030 (neon_itype): Delete.
5031 (neon_builtin_datum): Remove itype, make mode a machine_mode.
5032 (VAR1): Update accordingly.
5033 (arm_init_neon_builtins): Use machine_mode directly.
5034 (neon_dereference_pointer): Likewise.
5035 (arm_expand_neon_args): Use qualifiers to decide operand types.
5036 (arm_expand_neon_builtin): Likewise.
5037 * config/arm/arm_neon_builtins.def: Remap operation type for
5040 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5042 * config/arm/arm-builtins.c (arm_scalar_builtin_types): New.
5043 (enum arm_simd_type): Likewise.
5044 (struct arm_simd_type_info): Likewise
5045 (arm_mangle_builtin_scalar_type): Likewise.
5046 (arm_mangle_builtin_vector_type): Likewise.
5047 (arm_mangle_builtin_type): Likewise.
5048 (arm_simd_builtin_std_type): Likewise.
5049 (arm_lookup_simd_builtin_type): Likewise.
5050 (arm_simd_builtin_type): Likewise.
5051 (arm_init_simd_builtin_types): Likewise.
5052 (arm_init_simd_builtin_scalar_types): Likewise.
5053 (arm_init_neon_builtins): Rewrite using qualifiers.
5054 * config/arm/arm-protos.h (arm_mangle_builtin_type): New.
5055 * config/arm/arm-simd-builtin-types.def: New file.
5056 * config/arm/t-arm (arm-builtins.o): Depend on it.
5057 * config/arm/arm.c (arm_mangle_type): Call arm_mangle_builtin_type.
5058 * config/arm/arm_neon.h (int8x8_t): Use new internal type.
5059 (int16x4_t): Likewise.
5060 (int32x2_t): Likewise.
5061 (float16x4_t): Likewise.
5062 (float32x2_t): Likewise.
5063 (poly8x8_t): Likewise.
5064 (poly16x4_t): Likewise.
5065 (uint8x8_t): Likewise.
5066 (uint16x4_t): Likewise.
5067 (uint32x2_t): Likewise.
5068 (int8x16_t): Likewise.
5069 (int16x8_t): Likewise.
5070 (int32x4_t): Likewise.
5071 (int64x2_t): Likewise.
5072 (float32x4_t): Likewise.
5073 (poly8x16_t): Likewise.
5074 (poly16x8_t): Likewise.
5075 (uint8x16_t): Likewise.
5076 (uint16x8_t): Likewise.
5077 (uint32x4_t): Likewise.
5078 (uint64x2_t): Likewise.
5080 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5082 * gcc/config/arm/arm-builtins.c (arm_type_qualifiers): New.
5083 (neon_itype): Add new types corresponding to the types used in
5085 (arm_unop_qualifiers): New.
5086 (arm_bswap_qualifiers): Likewise.
5087 (arm_binop_qualifiers): Likewise.
5088 (arm_ternop_qualifiers): Likewise.
5089 (arm_getlane_qualifiers): Likewise.
5090 (arm_lanemac_qualifiers): Likewise.
5091 (arm_setlane_qualifiers): Likewise.
5092 (arm_combine_qualifiers): Likewise.
5093 (arm_load1_qualifiers): Likewise.
5094 (arm_load1_lane_qualifiers): Likewise.
5095 (arm_store1_qualifiers): Likewise.
5096 (arm_storestruct_lane_qualifiers): Likewise.
5097 (UNOP_QUALIFIERS): Likewise.
5098 (DUP_QUALIFIERS): Likewise.
5099 (SPLIT_QUALIFIERS): Likewise.
5100 (CONVERT_QUALIFIERS): Likewise.
5101 (FLOAT_WIDEN_QUALIFIERS): Likewise.
5102 (FLOAT_NARROW_QUALIFIERS): Likewise.
5103 (RINT_QUALIFIERS): Likewise.
5104 (COPYSIGNF_QUALIFIERS): Likewise.
5105 (CREATE_QUALIFIERS): Likewise.
5106 (REINTERP_QUALIFIERS): Likewise.
5107 (BSWAP_QUALIFIERS): Likewise.
5108 (BINOP_QUALIFIERS): Likewise.
5109 (FIXCONV_QUALIFIERS): Likewise.
5110 (SCALARMUL_QUALIFIERS): Likewise.
5111 (SCALARMULL_QUALIFIERS): Likewise.
5112 (SCALARMULH_QUALIFIERS): Likewise.
5113 (TERNOP_QUALIFIERS): Likewise.
5114 (SELECT_QUALIFIERS): Likewise.
5115 (VTBX_QUALIFIERS): Likewise.
5116 (GETLANE_QUALIFIERS): Likewise.
5117 (SHIFTIMM_QUALIFIERS): Likewise.
5118 (LANEMAC_QUALIFIERS): Likewise.
5119 (SCALARMAC_QUALIFIERS): Likewise.
5120 (SETLANE_QUALIFIERS): Likewise.
5121 (SHIFTINSERT_QUALIFIERS): Likewise.
5122 (SHIFTACC_QUALIFIERS): Likewise.
5123 (LANEMUL_QUALIFIERS): Likewise.
5124 (LANEMULL_QUALIFIERS): Likewise.
5125 (LANEMULH_QUALIFIERS): Likewise.
5126 (COMBINE_QUALIFIERS): Likewise.
5127 (VTBL_QUALIFIERS): Likewise.
5128 (LOAD1_QUALIFIERS): Likewise.
5129 (LOADSTRUCT_QUALIFIERS): Likewise.
5130 (LOAD1LANE_QUALIFIERS): Likewise.
5131 (LOADSTRUCTLANE_QUALIFIERS): Likewise.
5132 (STORE1_QUALIFIERS): Likewise.
5133 (STORESTRUCT_QUALIFIERS): Likewise.
5134 (STORE1LANE_QUALIFIERS): Likewise.
5135 (STORESTRUCTLANE_QUALIFIERS): Likewise.
5136 (neon_builtin_datum): Keep track of qualifiers.
5139 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5141 * config/arm/arm-builtins.c (VAR1): Add a comma.
5142 (VAR2): Rewrite in terms of VAR1.
5143 (VAR3-10): Likewise.
5144 (arm_builtins): Remove leading comma before ARM_BUILTIN_MAX.
5145 * config/arm/arm_neon_builtins.def: Remove trailing commas.
5147 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5149 * config.gcc (extra_objs): Add arm-builtins.o for arm*-*-*.
5150 (target_gtfiles): Add config/arm/arm-builtins.c for arm*-*-*.
5151 * config/arm/arm-builtins.c: New.
5152 * config/arm/t-arm (arm_builtins.o): New.
5153 * config/arm/arm-protos.h (arm_expand_builtin): New.
5154 (arm_builtin_decl): Likewise.
5155 (arm_init_builtins): Likewise.
5156 (arm_atomic_assign_expand_fenv): Likewise.
5157 * config/arm/arm.c (arm_atomic_assign_expand_fenv): Remove prototype.
5158 (arm_init_builtins): Likewise.
5159 (arm_init_iwmmxt_builtins): Likewise
5160 (safe_vector_operand): Likewise
5161 (arm_expand_binop_builtin): Likewise
5162 (arm_expand_unop_builtin): Likewise
5163 (arm_expand_builtin): Likewise
5164 (arm_builtin_decl): Likewise
5165 (insn_flags): Remove static.
5166 (tune_flags): Likewise.
5167 (enum arm_builtins): Move to config/arm/arm-builtins.c.
5168 (arm_init_neon_builtins): Likewise.
5169 (struct builtin_description): Likewise.
5170 (arm_init_iwmmxt_builtins): Likewise.
5171 (arm_init_fp16_builtins): Likewise.
5172 (arm_init_crc32_builtins): Likewise.
5173 (arm_init_builtins): Likewise.
5174 (arm_builtin_decl): Likewise.
5175 (safe_vector_operand): Likewise.
5176 (arm_expand_ternop_builtin): Likewise.
5177 (arm_expand_binop_builtin): Likewise.
5178 (arm_expand_unop_builtin): Likewise.
5179 (neon_dereference_pointer): Likewise.
5180 (arm_expand_neon_args): Likewise.
5181 (arm_expand_neon_builtin): Likewise.
5182 (neon_split_vcombine): Likewise.
5183 (arm_expand_builtin): Likewise.
5184 (arm_builtin_vectorized_function): Likewise.
5185 (arm_atomic_assign_expand_fenv): Likewise.
5187 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5189 * config/arm/t-arm (arm.o): Include arm-protos.h in the recipe.
5190 * config/arm/arm.c (FL_CO_PROC): Move to arm-protos.h.
5191 (FL_ARCH3M): Likewise.
5192 (FL_MODE26): Likewise.
5193 (FL_MODE32): Likewise.
5194 (FL_ARCH4): Likewise.
5195 (FL_ARCH5): Likewise.
5196 (FL_THUMB): Likewise.
5197 (FL_LDSCHED): Likewise.
5198 (FL_STRONG): Likewise.
5199 (FL_ARCH5E): Likewise.
5200 (FL_XSCALE): Likewise.
5201 (FL_ARCH6): Likewise.
5202 (FL_VFPV2): Likewise.
5203 (FL_WBUF): Likewise.
5204 (FL_ARCH6K): Likewise.
5205 (FL_THUMB2): Likewise.
5206 (FL_NOTM): Likewise.
5207 (FL_THUMB_DIV): Likewise.
5208 (FL_VFPV3): Likewise.
5209 (FL_NEON): Likewise.
5210 (FL_ARCH7EM): Likewise.
5211 (FL_ARCH7): Likewise.
5212 (FL_ARM_DIV): Likewise.
5213 (FL_ARCH8): Likewise.
5214 (FL_CRC32): Likewise.
5215 (FL_SMALLMUL): Likewise.
5216 (FL_IWMMXT): Likewise.
5217 (FL_IWMMXT2): Likewise.
5218 (FL_TUNE): Likewise.
5219 (FL_FOR_ARCH2): Likewise.
5220 (FL_FOR_ARCH3): Likewise.
5221 (FL_FOR_ARCH3M): Likewise.
5222 (FL_FOR_ARCH4): Likewise.
5223 (FL_FOR_ARCH4T): Likewise.
5224 (FL_FOR_ARCH5): Likewise.
5225 (FL_FOR_ARCH5T): Likewise.
5226 (FL_FOR_ARCH5E): Likewise.
5227 (FL_FOR_ARCH5TE): Likewise.
5228 (FL_FOR_ARCH5TEJ): Likewise.
5229 (FL_FOR_ARCH6): Likewise.
5230 (FL_FOR_ARCH6J): Likewise.
5231 (FL_FOR_ARCH6K): Likewise.
5232 (FL_FOR_ARCH6Z): Likewise.
5233 (FL_FOR_ARCH6ZK): Likewise.
5234 (FL_FOR_ARCH6T2): Likewise.
5235 (FL_FOR_ARCH6M): Likewise.
5236 (FL_FOR_ARCH7): Likewise.
5237 (FL_FOR_ARCH7A): Likewise.
5238 (FL_FOR_ARCH7VE): Likewise.
5239 (FL_FOR_ARCH7R): Likewise.
5240 (FL_FOR_ARCH7M): Likewise.
5241 (FL_FOR_ARCH7EM): Likewise.
5242 (FL_FOR_ARCH8A): Likewise.
5243 * config/arm/arm-protos.h: Take definitions moved from arm.c.
5245 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5247 * config/arm/arm.c (arm_expand_neon_builtin): Remove "Magic Word"
5248 parameter, rearrange switch statement accordingly.
5249 (arm_evpc_neon_vrev): Remove "Magic Word".
5250 * config/arm/unspecs.md (unspec): Split many UNSPECs to
5251 rounding, or signed/unsigned variants.
5252 * config/arm/neon.md (vcond<mode><mode>): Remove "Magic Word" code.
5253 (vcondu<mode><mode>): Likewise.
5254 (neon_vadd): Remove "Magic Word" operand.
5255 (neon_vaddl): Remove "Magic Word" operand, convert to use
5256 signed/unsigned iterator.
5257 (neon_vaddw): Likewise.
5258 (neon_vhadd): Likewise, also iterate over "rounding" forms.
5259 (neon_vqadd): Remove "Magic Word" operand, convert to use
5260 signed/unsigned iterator.
5261 (neon_v<r>addhn): Remove "Magic Word" operand, convert to iterate
5262 over "rounding" forms.
5263 (neon_vmul): Remove "Magic Word" operand, iterate over
5264 polynomial/float instruction forms.
5265 (neon_vmla): Remove "Magic Word" operand.
5266 (neon_vfma): Likewise.
5267 (neon_vfms): Likewise.
5268 (neon_vmls): Likewise.
5269 (neon_vmlal): Remove "Magic Word" operand, iterate over
5270 signed/unsigned forms.
5271 (neon_vmlsl): Likewise.
5272 (neon_vqdmulh): Remove "Magic Word" operand, iterate over "rounding"
5274 (neon_vqdmlal): Remove "Magic Word" operand, iterate over
5275 signed/unsigned forms.
5276 (neon_vqdmlsl): Likewise.
5277 (neon_vmull): Likewise.
5278 (neon_vqdmull): Remove "Magic Word" operand.
5279 (neon_vsub): Remove "Magic Word" operand.
5280 (neon_vsubl): Remove "Magic Word" operand, convert to use
5281 signed/unsigned iterator.
5282 (neon_vsubw): Likewise.
5283 (neon_vhsub): Likewise.
5284 (neon_vqsub): Likewise.
5285 (neon_v<r>subhn): Remove "Magic Word" operand, convert to iterate
5286 over "rounding" forms.
5287 (neon_vceq): Remove "Magic Word" operand.
5288 (neon_vcge): Likewise.
5289 (neon_vcgeu): Likewise.
5290 (neon_vcgt): Likewise.
5291 (neon_vcgtu): Likewise.
5292 (neon_vcle): Likewise.
5293 (neon_vclt): Likewise.
5294 (neon_vcage): Likewise.
5295 (neon_vcagt): Likewise.
5296 (neon_vabd): Remove "Magic Word" operand, iterate over
5297 signed/unsigned forms, and split out...
5298 (neon_vabdf): ...this as new.
5299 (neon_vabdl): Remove "Magic Word" operand, iterate over
5300 signed/unsigned forms.
5301 (neon_vaba): Likewise.
5302 (neon_vmax): Remove "Magic Word" operand, iterate over
5303 signed/unsigned and max/min forms, and split out...
5304 (neon_v<maxmin>f): ...this as new.
5305 (neon_vmin): Delete.
5306 (neon_vpadd): Remove "Magic Word" operand.
5307 (neon_vpaddl): Remove "Magic Word" operand, iterate over
5308 signed/unsigned variants.
5309 (neon_vpadal): Likewise.
5310 (neon_vpmax): Remove "Magic Word" operand, iterate over
5311 signed/unsigned and max/min forms, and split out...
5312 (neon_vp<maxmin>f): ...this as new.
5313 (neon_vpmin): Delete.
5314 (neon_vrecps): Remove "Magic Word" operand.
5315 (neon_vrsqrts): Likewise.
5316 (neon_vabs): Likewise.
5317 (neon_vqabs): Likewise.
5318 (neon_vneg): Likewise.
5319 (neon_vqneg): Likewise.
5320 (neon_vcls): Likewise.
5321 (neon_vcnt): Likewise.
5322 (neon_vrecpe): Likewise.
5323 (neon_vrsqrte): Likewise.
5324 (neon_vmvn): Likewise.
5325 (neon_vget_lane): Likewise.
5326 (neon_vget_laneu): New.
5327 (neon_vget_lanedi): Remove "Magic Word" operand.
5328 (neon_vget_lanev2di): Likewise.
5329 (neon_vcvt): Remove "Magic Word" operand, iterate over
5330 signed/unsigned variants.
5331 (neon_vcvt_n): Likewise.
5332 (neon_vmovn): Remove "Magic Word" operand.
5333 (neon_vqmovn): Remove "Magic Word" operand, iterate over
5334 signed/unsigned variants.
5335 (neon_vmovun): Remove "Magic Word" operand.
5336 (neon_vmovl): Remove "Magic Word" operand, iterate over
5337 signed/unsigned variants.
5338 (neon_vmul_lane): Remove "Magic Word" operand.
5339 (neon_vmull_lane): Remove "Magic Word" operand, iterate over
5340 signed/unsigned variants.
5341 (neon_vqdmull_lane): Remove "Magic Word" operand.
5342 (neon_vqdmulh_lane): Remove "Magic Word" operand, iterate over
5344 (neon_vmla_lane): Remove "Magic Word" operand.
5345 (neon_vmlal_lane): Remove "Magic Word" operand, iterate over
5346 signed/unsigned variants.
5347 (neon_vqdmlal_lane): Remove "Magic Word" operand.
5348 (neon_vmls_lane): Likewise.
5349 (neon_vmlsl_lane): Remove "Magic Word" operand, iterate over
5350 signed/unsigned variants.
5351 (neon_vqdmlsl_lane): Remove "Magic Word" operand.
5352 (neon_vmul_n): Remove "Magic Word" operand.
5353 (neon_vmull_n): Rename to...
5354 (neon_vmulls_n): ...this, remove "Magic Word" operand.
5355 (neon_vmullu_n): New.
5356 (neon_vqdmull_n): Remove "Magic Word" operand.
5357 (neon_vqdmulh_n): Likewise.
5358 (neon_vqrdmulh_n): New.
5359 (neon_vmla_n): Remove "Magic Word" operand.
5360 (neon_vmls_n): Likewise.
5361 (neon_vmlal_n): Rename to...
5362 (neon_vmlals_n): ...this, remove "Magic Word" operand.
5363 (neon_vmlalu_n): New.
5364 (neon_vqdmlal_n): Remove "Magic Word" operand.
5365 (neon_vmlsl_n): Rename to...
5366 (neon_vmlsls_n): ...this, remove "Magic Word" operand.
5367 (neon_vmlslu_n): New.
5368 (neon_vqdmlsl_n): Remove "Magic Word" operand.
5369 (neon_vrev64): Remove "Magic Word" operand.
5370 (neon_vrev32): Likewise.
5371 (neon_vrev16): Likewise.
5372 (neon_vshl): Remove "Magic Word" operand, iterate over
5373 signed/unsigned and "rounding" forms.
5374 (neon_vqshl): Likewise.
5375 (neon_vshr_n): Likewise.
5376 (neon_vshrn_n): Remove "Magic Word" operand, iterate over
5378 (neon_vqshrn_n): Remove "Magic Word" operand, iterate over
5379 signed/unsigned and "rounding" forms.
5380 (neon_vqshrun_n): Remove "Magic Word" operand, iterate over
5382 (neon_vshl_n): Remove "Magic Word" operand.
5383 (neon_vqshl_n): Remove "Magic Word" operand, iterate over
5384 signed/unsigned variants.
5385 (neon_vqshlu_n): Remove "Magic Word" operand.
5386 (neon_vshll_n): Remove "Magic Word" operand, iterate over
5387 signed/unsigned variants.
5388 (neon_vsra_n): Remove "Magic Word" operand, iterate over
5389 signed/unsigned and "rounding" forms.
5390 * config/arm/iterators.md (VPF): New.
5397 (VMLAL_LANE): Likewise.
5399 (VMLSL_LANE): Likewise.
5400 (VQDMULH): Likewise,
5401 (VQDMULH_LANE): Likewise.
5403 (VMULL_LANE): Likewise.
5411 (VMAXMIN): Likewise.
5412 (VMAXMINF): Likewise.
5415 (VPMAXMIN): Likewise.
5416 (VPMAXMINF): Likewise.
5417 (VCVT_US): Likewise.
5418 (VCVT_US_N): Likewise.
5424 (VSHRN_N): Likewise.
5425 (VQSHRN_N): Likewise.
5426 (VQSHRUN_N): Likewise.
5427 (VQSHL_N): Likewise.
5428 (VSHLL_N): Likewise.
5434 (shift_op): Likewise.
5435 * config/arm/arm_neon_builtins.def (vaddl): Split to...
5436 (vaddls): ...this and...
5438 (vaddw): Split to...
5439 (vaddws): ...this and...
5441 (vhadd): Split to...
5442 (vhadds): ...this and...
5443 (vhaddu): ...this and...
5444 (vrhadds): ...this and...
5446 (vqadd): Split to...
5447 (vqadds): ...this and...
5449 (vaddhn): Split to itself and...
5452 (vmulf): ...this and...
5454 (vmlal): Split to...
5455 (vmlals): ...this and...
5457 (vmlsl): Split to...
5458 (vmlsls): ...this and...
5460 (vqdmulh): Split to itself and...
5461 (vqrdmulh): ...this.
5462 (vmull): Split to...
5463 (vmullp): ...this and...
5464 (vmulls): ...this and...
5466 (vmull_n): Split to...
5467 (vmulls_n): ...this and...
5468 (vmullu_n): ...this.
5469 (vmull_lane): Split to...
5470 (vmulls_lane): ...this and...
5471 (vmullu_lane): ...this.
5472 (vqdmulh_n): Split to itself and...
5473 (vqrdmulh_n): ...this.
5474 (vqdmulh_lane): Split to itself and...
5475 (vqrdmulh_lane): ...this.
5477 (vshls): ...this and...
5478 (vshlu): ...this and...
5479 (vrshls): ...this and...
5481 (vqshl): Split to...
5482 (vqshls): ...this and...
5483 (vqrshlu): ...this and...
5484 (vqrshls): ...this and...
5486 (vshr_n): Split to...
5487 (vshrs_n): ...this and...
5488 (vshru_n): ...this and...
5489 (vrshrs_n): ...this and...
5490 (vrshru_n): ...this.
5491 (vshrn_n): Split to itself and...
5492 (vrshrn_n): ...this.
5493 (vqshrn_n): Split to...
5494 (vqshrns_n): ...this and...
5495 (vqshrnu_n): ...this and...
5496 (vqrshrns_n): ...this and...
5497 (vqrshrnu_n): ...this.
5498 (vqshrun_n): Split to itself and...
5499 (vqrshrun_n): ...this.
5500 (vqshl_n): Split to...
5501 (vqshl_s_n): ...this and...
5502 (vqshl_u_n): ...this.
5503 (vshll_n): Split to...
5504 (vshlls_n): ...this and...
5505 (vshllu_n): ...this.
5506 (vsra_n): Split to...
5507 (vsras_n): ...this and...
5508 (vsrau_n): ...this and.
5509 (vrsras_n): ...this and...
5510 (vrsrau_n): ...this and.
5511 (vsubl): Split to...
5512 (vsubls): ...this and...
5514 (vsubw): Split to...
5515 (vsubws): ...this and...
5517 (vqsub): Split to...
5518 (vqsubs): ...this and...
5520 (vhsub): Split to...
5521 (vhsubs): ...this and...
5523 (vsubhn): Split to itself and...
5526 (vabds): ...this and...
5527 (vabdu): ...this and...
5529 (vabdl): Split to...
5530 (vabdls): ...this and...
5533 (vabas): ...this and...
5534 (vabau): ...this and...
5535 (vabal): Split to...
5536 (vabals): ...this and...
5539 (vmaxs): ...this and...
5540 (vmaxu): ...this and...
5543 (vmins): ...this and...
5544 (vminu): ...this and...
5546 (vpmax): Split to...
5547 (vpmaxs): ...this and...
5548 (vpmaxu): ...this and...
5550 (vpmin): Split to...
5551 (vpmins): ...this and...
5552 (vpminu): ...this and...
5554 (vpaddl): Split to...
5555 (vpaddls): ...this and...
5557 (vpadal): Split to...
5558 (vpadals): ...this and...
5561 (vqmovn): Split to...
5562 (vqmovns): ...this and...
5564 (vmovl): Split to...
5565 (vmovls): ...this and...
5567 (vmlal_lane): Split to...
5568 (vmlals_lane): ...this and...
5569 (vmlalu_lane): ...this.
5570 (vmlsl_lane): Split to...
5571 (vmlsls_lane): ...this and...
5572 (vmlslu_lane): ...this.
5573 (vmlal_n): Split to...
5574 (vmlals_n): ...this and...
5575 (vmlalu_n): ...this.
5576 (vmlsl_n): Split to...
5577 (vmlsls_n): ...this and...
5578 (vmlslu_n): ...this.
5579 (vext): Make type "SHIFTINSERT".
5581 (vcvts): ...this and...
5583 (vcvt_n): Split to...
5584 (vcvts_n): ...this and...
5586 * config/arm/arm_neon.h (vaddl_s8): Remove "Magic Word".
5587 (vaddl_s16): Likewise.
5588 (vaddl_s32): Likewise.
5589 (vaddl_u8): Likewise.
5590 (vaddl_u16): Likewise.
5591 (vaddl_u32): Likewise.
5592 (vaddw_s8): Likewise.
5593 (vaddw_s16): Likewise.
5594 (vaddw_s32): Likewise.
5595 (vaddw_u8): Likewise.
5596 (vaddw_u16): Likewise.
5597 (vaddw_u32): Likewise.
5598 (vhadd_s8): Likewise.
5599 (vhadd_s16): Likewise.
5600 (vhadd_s32): Likewise.
5601 (vhadd_u8): Likewise.
5602 (vhadd_u16): Likewise.
5603 (vhadd_u32): Likewise.
5604 (vhaddq_s8): Likewise.
5605 (vhaddq_s16): Likewise.
5606 (vhaddq_s32): Likewise.
5607 (vhaddq_u8): Likewise.
5608 (vhaddq_u16): Likewise.
5609 (vrhadd_s8): Likewise.
5610 (vrhadd_s16): Likewise.
5611 (vrhadd_s32): Likewise.
5612 (vrhadd_u8): Likewise.
5613 (vrhadd_u16): Likewise.
5614 (vrhadd_u32): Likewise.
5615 (vrhaddq_s8): Likewise.
5616 (vrhaddq_s16): Likewise.
5617 (vrhaddq_s32): Likewise.
5618 (vrhaddq_u8): Likewise.
5619 (vrhaddq_u16): Likewise.
5620 (vrhaddq_u32): Likewise.
5621 (vqadd_s8): Likewise.
5622 (vqadd_s16): Likewise.
5623 (vqadd_s32): Likewise.
5624 (vqadd_s64): Likewise.
5625 (vqadd_u8): Likewise.
5626 (vqadd_u16): Likewise.
5627 (vqadd_u32): Likewise.
5628 (vqadd_u64): Likewise.
5629 (vqaddq_s8): Likewise.
5630 (vqaddq_s16): Likewise.
5631 (vqaddq_s32): Likewise.
5632 (vqaddq_s64): Likewise.
5633 (vqaddq_u8): Likewise.
5634 (vqaddq_u16): Likewise.
5635 (vqaddq_u32): Likewise.
5636 (vqaddq_u64): Likewise.
5637 (vaddhn_s16): Likewise.
5638 (vaddhn_s32): Likewise.
5639 (vaddhn_s64): Likewise.
5640 (vaddhn_u16): Likewise.
5641 (vaddhn_u32): Likewise.
5642 (vaddhn_u64): Likewise.
5643 (vraddhn_s16): Likewise.
5644 (vraddhn_s32): Likewise.
5645 (vraddhn_s64): Likewise.
5646 (vraddhn_u16): Likewise.
5647 (vraddhn_u32): Likewise.
5648 (vraddhn_u64): Likewise.
5649 (vmul_p8): Likewise.
5650 (vmulq_p8): Likewise.
5651 (vqdmulh_s16): Likewise.
5652 (vqdmulh_s32): Likewise.
5653 (vqdmulhq_s16): Likewise.
5654 (vqdmulhq_s32): Likewise.
5655 (vqrdmulh_s16): Likewise.
5656 (vqrdmulh_s32): Likewise.
5657 (vqrdmulhq_s16): Likewise.
5658 (vqrdmulhq_s32): Likewise.
5659 (vmull_s8): Likewise.
5660 (vmull_s16): Likewise.
5661 (vmull_s32): Likewise.
5662 (vmull_u8): Likewise.
5663 (vmull_u16): Likewise.
5664 (vmull_u32): Likewise.
5665 (vmull_p8): Likewise.
5666 (vqdmull_s16): Likewise.
5667 (vqdmull_s32): Likewise.
5668 (vmla_s8): Likewise.
5669 (vmla_s16): Likewise.
5670 (vmla_s32): Likewise.
5671 (vmla_f32): Likewise.
5672 (vmla_u8): Likewise.
5673 (vmla_u16): Likewise.
5674 (vmla_u32): Likewise.
5675 (vmlaq_s8): Likewise.
5676 (vmlaq_s16): Likewise.
5677 (vmlaq_s32): Likewise.
5678 (vmlaq_f32): Likewise.
5679 (vmlaq_u8): Likewise.
5680 (vmlaq_u16): Likewise.
5681 (vmlaq_u32): Likewise.
5682 (vmlal_s8): Likewise.
5683 (vmlal_s16): Likewise.
5684 (vmlal_s32): Likewise.
5685 (vmlal_u8): Likewise.
5686 (vmlal_u16): Likewise.
5687 (vmlal_u32): Likewise.
5688 (vqdmlal_s16): Likewise.
5689 (vqdmlal_s32): Likewise.
5690 (vmls_s8): Likewise.
5691 (vmls_s16): Likewise.
5692 (vmls_s32): Likewise.
5693 (vmls_f32): Likewise.
5694 (vmls_u8): Likewise.
5695 (vmls_u16): Likewise.
5696 (vmls_u32): Likewise.
5697 (vmlsq_s8): Likewise.
5698 (vmlsq_s16): Likewise.
5699 (vmlsq_s32): Likewise.
5700 (vmlsq_f32): Likewise.
5701 (vmlsq_u8): Likewise.
5702 (vmlsq_u16): Likewise.
5703 (vmlsq_u32): Likewise.
5704 (vmlsl_s8): Likewise.
5705 (vmlsl_s16): Likewise.
5706 (vmlsl_s32): Likewise.
5707 (vmlsl_u8): Likewise.
5708 (vmlsl_u16): Likewise.
5709 (vmlsl_u32): Likewise.
5710 (vqdmlsl_s16): Likewise.
5711 (vqdmlsl_s32): Likewise.
5712 (vfma_f32): Likewise.
5713 (vfmaq_f32): Likewise.
5714 (vfms_f32): Likewise.
5715 (vfmsq_f32): Likewise.
5716 (vsubl_s8): Likewise.
5717 (vsubl_s16): Likewise.
5718 (vsubl_s32): Likewise.
5719 (vsubl_u8): Likewise.
5720 (vsubl_u16): Likewise.
5721 (vsubl_u32): Likewise.
5722 (vsubw_s8): Likewise.
5723 (vsubw_s16): Likewise.
5724 (vsubw_s32): Likewise.
5725 (vsubw_u8): Likewise.
5726 (vsubw_u16): Likewise.
5727 (vsubw_u32): Likewise.
5728 (vhsub_s8): Likewise.
5729 (vhsub_s16): Likewise.
5730 (vhsub_s32): Likewise.
5731 (vhsub_u8): Likewise.
5732 (vhsub_u16): Likewise.
5733 (vhsub_u32): Likewise.
5734 (vhsubq_s8): Likewise.
5735 (vhsubq_s16): Likewise.
5736 (vhsubq_s32): Likewise.
5737 (vhsubq_u8): Likewise.
5738 (vhsubq_u16): Likewise.
5739 (vhsubq_u32): Likewise.
5740 (vqsub_s8): Likewise.
5741 (vqsub_s16): Likewise.
5742 (vqsub_s32): Likewise.
5743 (vqsub_s64): Likewise.
5744 (vqsub_u8): Likewise.
5745 (vqsub_u16): Likewise.
5746 (vqsub_u32): Likewise.
5747 (vqsub_u64): Likewise.
5748 (vqsubq_s8): Likewise.
5749 (vqsubq_s16): Likewise.
5750 (vqsubq_s32): Likewise.
5751 (vqsubq_s64): Likewise.
5752 (vqsubq_u8): Likewise.
5753 (vqsubq_u16): Likewise.
5754 (vqsubq_u32): Likewise.
5755 (vqsubq_u64): Likewise.
5756 (vsubhn_s16): Likewise.
5757 (vsubhn_s32): Likewise.
5758 (vsubhn_s64): Likewise.
5759 (vsubhn_u16): Likewise.
5760 (vsubhn_u32): Likewise.
5761 (vsubhn_u64): Likewise.
5762 (vrsubhn_s16): Likewise.
5763 (vrsubhn_s32): Likewise.
5764 (vrsubhn_s64): Likewise.
5765 (vrsubhn_u16): Likewise.
5766 (vrsubhn_u32): Likewise.
5767 (vrsubhn_u64): Likewise.
5768 (vceq_s8): Likewise.
5769 (vceq_s16): Likewise.
5770 (vceq_s32): Likewise.
5771 (vceq_f32): Likewise.
5772 (vceq_u8): Likewise.
5773 (vceq_u16): Likewise.
5774 (vceq_u32): Likewise.
5775 (vceq_p8): Likewise.
5776 (vceqq_s8): Likewise.
5777 (vceqq_s16): Likewise.
5778 (vceqq_s32): Likewise.
5779 (vceqq_f32): Likewise.
5780 (vceqq_u8): Likewise.
5781 (vceqq_u16): Likewise.
5782 (vceqq_u32): Likewise.
5783 (vceqq_p8): Likewise.
5784 (vcge_s8): Likewise.
5785 (vcge_s16): Likewise.
5786 (vcge_s32): Likewise.
5787 (vcge_f32): Likewise.
5788 (vcge_u8): Likewise.
5789 (vcge_u16): Likewise.
5790 (vcge_u32): Likewise.
5791 (vcgeq_s8): Likewise.
5792 (vcgeq_s16): Likewise.
5793 (vcgeq_s32): Likewise.
5794 (vcgeq_f32): Likewise.
5795 (vcgeq_u8): Likewise.
5796 (vcgeq_u16): Likewise.
5797 (vcgeq_u32): Likewise.
5798 (vcle_s8): Likewise.
5799 (vcle_s16): Likewise.
5800 (vcle_s32): Likewise.
5801 (vcle_f32): Likewise.
5802 (vcle_u8): Likewise.
5803 (vcle_u16): Likewise.
5804 (vcle_u32): Likewise.
5805 (vcleq_s8): Likewise.
5806 (vcleq_s16): Likewise.
5807 (vcleq_s32): Likewise.
5808 (vcleq_f32): Likewise.
5809 (vcleq_u8): Likewise.
5810 (vcleq_u16): Likewise.
5811 (vcleq_u32): Likewise.
5812 (vcgt_s8): Likewise.
5813 (vcgt_s16): Likewise.
5814 (vcgt_s32): Likewise.
5815 (vcgt_f32): Likewise.
5816 (vcgt_u8): Likewise.
5817 (vcgt_u16): Likewise.
5818 (vcgt_u32): Likewise.
5819 (vcgtq_s8): Likewise.
5820 (vcgtq_s16): Likewise.
5821 (vcgtq_s32): Likewise.
5822 (vcgtq_f32): Likewise.
5823 (vcgtq_u8): Likewise.
5824 (vcgtq_u16): Likewise.
5825 (vcgtq_u32): Likewise.
5826 (vclt_s8): Likewise.
5827 (vclt_s16): Likewise.
5828 (vclt_s32): Likewise.
5829 (vclt_f32): Likewise.
5830 (vclt_u8): Likewise.
5831 (vclt_u16): Likewise.
5832 (vclt_u32): Likewise.
5833 (vcltq_s8): Likewise.
5834 (vcltq_s16): Likewise.
5835 (vcltq_s32): Likewise.
5836 (vcltq_f32): Likewise.
5837 (vcltq_u8): Likewise.
5838 (vcltq_u16): Likewise.
5839 (vcltq_u32): Likewise.
5840 (vcage_f32): Likewise.
5841 (vcageq_f32): Likewise.
5842 (vcale_f32): Likewise.
5843 (vcaleq_f32): Likewise.
5844 (vcagt_f32): Likewise.
5845 (vcagtq_f32): Likewise.
5846 (vcalt_f32): Likewise.
5847 (vcaltq_f32): Likewise.
5848 (vtst_s8): Likewise.
5849 (vtst_s16): Likewise.
5850 (vtst_s32): Likewise.
5851 (vtst_u8): Likewise.
5852 (vtst_u16): Likewise.
5853 (vtst_u32): Likewise.
5854 (vtst_p8): Likewise.
5855 (vtstq_s8): Likewise.
5856 (vtstq_s16): Likewise.
5857 (vtstq_s32): Likewise.
5858 (vtstq_u8): Likewise.
5859 (vtstq_u16): Likewise.
5860 (vtstq_u32): Likewise.
5861 (vtstq_p8): Likewise.
5862 (vabd_s8): Likewise.
5863 (vabd_s16): Likewise.
5864 (vabd_s32): Likewise.
5865 (vabd_f32): Likewise.
5866 (vabd_u8): Likewise.
5867 (vabd_u16): Likewise.
5868 (vabd_u32): Likewise.
5869 (vabdq_s8): Likewise.
5870 (vabdq_s16): Likewise.
5871 (vabdq_s32): Likewise.
5872 (vabdq_f32): Likewise.
5873 (vabdq_u8): Likewise.
5874 (vabdq_u16): Likewise.
5875 (vabdq_u32): Likewise.
5876 (vabdl_s8): Likewise.
5877 (vabdl_s16): Likewise.
5878 (vabdl_s32): Likewise.
5879 (vabdl_u8): Likewise.
5880 (vabdl_u16): Likewise.
5881 (vabdl_u32): Likewise.
5882 (vaba_s8): Likewise.
5883 (vaba_s16): Likewise.
5884 (vaba_s32): Likewise.
5885 (vaba_u8): Likewise.
5886 (vaba_u16): Likewise.
5887 (vaba_u32): Likewise.
5888 (vabaq_s8): Likewise.
5889 (vabaq_s16): Likewise.
5890 (vabaq_s32): Likewise.
5891 (vabaq_u8): Likewise.
5892 (vabaq_u16): Likewise.
5893 (vabaq_u32): Likewise.
5894 (vabal_s8): Likewise.
5895 (vabal_s16): Likewise.
5896 (vabal_s32): Likewise.
5897 (vabal_u8): Likewise.
5898 (vabal_u16): Likewise.
5899 (vabal_u32): Likewise.
5900 (vmax_s8): Likewise.
5901 (vmax_s16): Likewise.
5902 (vmax_s32): Likewise.
5903 (vmax_f32): Likewise.
5904 (vmax_u8): Likewise.
5905 (vmax_u16): Likewise.
5906 (vmax_u32): Likewise.
5907 (vmaxq_s8): Likewise.
5908 (vmaxq_s16): Likewise.
5909 (vmaxq_s32): Likewise.
5910 (vmaxq_f32): Likewise.
5911 (vmaxq_u8): Likewise.
5912 (vmaxq_u16): Likewise.
5913 (vmaxq_u32): Likewise.
5914 (vmin_s8): Likewise.
5915 (vmin_s16): Likewise.
5916 (vmin_s32): Likewise.
5917 (vmin_f32): Likewise.
5918 (vmin_u8): Likewise.
5919 (vmin_u16): Likewise.
5920 (vmin_u32): Likewise.
5921 (vminq_s8): Likewise.
5922 (vminq_s16): Likewise.
5923 (vminq_s32): Likewise.
5924 (vminq_f32): Likewise.
5925 (vminq_u8): Likewise.
5926 (vminq_u16): Likewise.
5927 (vminq_u32): Likewise.
5928 (vpadd_s8): Likewise.
5929 (vpadd_s16): Likewise.
5930 (vpadd_s32): Likewise.
5931 (vpadd_f32): Likewise.
5932 (vpadd_u8): Likewise.
5933 (vpadd_u16): Likewise.
5934 (vpadd_u32): Likewise.
5935 (vpaddl_s8): Likewise.
5936 (vpaddl_s16): Likewise.
5937 (vpaddl_s32): Likewise.
5938 (vpaddl_u8): Likewise.
5939 (vpaddl_u16): Likewise.
5940 (vpaddl_u32): Likewise.
5941 (vpaddlq_s8): Likewise.
5942 (vpaddlq_s16): Likewise.
5943 (vpaddlq_s32): Likewise.
5944 (vpaddlq_u8): Likewise.
5945 (vpaddlq_u16): Likewise.
5946 (vpaddlq_u32): Likewise.
5947 (vpadal_s8): Likewise.
5948 (vpadal_s16): Likewise.
5949 (vpadal_s32): Likewise.
5950 (vpadal_u8): Likewise.
5951 (vpadal_u16): Likewise.
5952 (vpadal_u32): Likewise.
5953 (vpadalq_s8): Likewise.
5954 (vpadalq_s16): Likewise.
5955 (vpadalq_s32): Likewise.
5956 (vpadalq_u8): Likewise.
5957 (vpadalq_u16): Likewise.
5958 (vpadalq_u32): Likewise.
5959 (vpmax_s8): Likewise.
5960 (vpmax_s16): Likewise.
5961 (vpmax_s32): Likewise.
5962 (vpmax_f32): Likewise.
5963 (vpmax_u8): Likewise.
5964 (vpmax_u16): Likewise.
5965 (vpmax_u32): Likewise.
5966 (vpmin_s8): Likewise.
5967 (vpmin_s16): Likewise.
5968 (vpmin_s32): Likewise.
5969 (vpmin_f32): Likewise.
5970 (vpmin_u8): Likewise.
5971 (vpmin_u16): Likewise.
5972 (vpmin_u32): Likewise.
5973 (vrecps_f32): Likewise.
5974 (vrecpsq_f32): Likewise.
5975 (vrsqrts_f32): Likewise.
5976 (vrsqrtsq_f32): Likewise.
5977 (vshl_s8): Likewise.
5978 (vshl_s16): Likewise.
5979 (vshl_s32): Likewise.
5980 (vshl_s64): Likewise.
5981 (vshl_u8): Likewise.
5982 (vshl_u16): Likewise.
5983 (vshl_u32): Likewise.
5984 (vshl_u64): Likewise.
5985 (vshlq_s8): Likewise.
5986 (vshlq_s16): Likewise.
5987 (vshlq_s32): Likewise.
5988 (vshlq_s64): Likewise.
5989 (vshlq_u8): Likewise.
5990 (vshlq_u16): Likewise.
5991 (vshlq_u32): Likewise.
5992 (vshlq_u64): Likewise.
5993 (vrshl_s8): Likewise.
5994 (vrshl_s16): Likewise.
5995 (vrshl_s32): Likewise.
5996 (vrshl_s64): Likewise.
5997 (vrshl_u8): Likewise.
5998 (vrshl_u16): Likewise.
5999 (vrshl_u32): Likewise.
6000 (vrshl_u64): Likewise.
6001 (vrshlq_s8): Likewise.
6002 (vrshlq_s16): Likewise.
6003 (vrshlq_s32): Likewise.
6004 (vrshlq_s64): Likewise.
6005 (vrshlq_u8): Likewise.
6006 (vrshlq_u16): Likewise.
6007 (vrshlq_u32): Likewise.
6008 (vrshlq_u64): Likewise.
6009 (vqshl_s8): Likewise.
6010 (vqshl_s16): Likewise.
6011 (vqshl_s32): Likewise.
6012 (vqshl_s64): Likewise.
6013 (vqshl_u8): Likewise.
6014 (vqshl_u16): Likewise.
6015 (vqshl_u32): Likewise.
6016 (vqshl_u64): Likewise.
6017 (vqshlq_s8): Likewise.
6018 (vqshlq_s16): Likewise.
6019 (vqshlq_s32): Likewise.
6020 (vqshlq_s64): Likewise.
6021 (vqshlq_u8): Likewise.
6022 (vqshlq_u16): Likewise.
6023 (vqshlq_u32): Likewise.
6024 (vqshlq_u64): Likewise.
6025 (vqrshl_s8): Likewise.
6026 (vqrshl_s16): Likewise.
6027 (vqrshl_s32): Likewise.
6028 (vqrshl_s64): Likewise.
6029 (vqrshl_u8): Likewise.
6030 (vqrshl_u16): Likewise.
6031 (vqrshl_u32): Likewise.
6032 (vqrshl_u64): Likewise.
6033 (vqrshlq_s8): Likewise.
6034 (vqrshlq_s16): Likewise.
6035 (vqrshlq_s32): Likewise.
6036 (vqrshlq_s64): Likewise.
6037 (vqrshlq_u8): Likewise.
6038 (vqrshlq_u16): Likewise.
6039 (vqrshlq_u32): Likewise.
6040 (vqrshlq_u64): Likewise.
6041 (vshr_n_s8): Likewise.
6042 (vshr_n_s16): Likewise.
6043 (vshr_n_s32): Likewise.
6044 (vshr_n_s64): Likewise.
6045 (vshr_n_u8): Likewise.
6046 (vshr_n_u16): Likewise.
6047 (vshr_n_u32): Likewise.
6048 (vshr_n_u64): Likewise.
6049 (vshrq_n_s8): Likewise.
6050 (vshrq_n_s16): Likewise.
6051 (vshrq_n_s32): Likewise.
6052 (vshrq_n_s64): Likewise.
6053 (vshrq_n_u8): Likewise.
6054 (vshrq_n_u16): Likewise.
6055 (vshrq_n_u32): Likewise.
6056 (vshrq_n_u64): Likewise.
6057 (vrshr_n_s8): Likewise.
6058 (vrshr_n_s16): Likewise.
6059 (vrshr_n_s32): Likewise.
6060 (vrshr_n_s64): Likewise.
6061 (vrshr_n_u8): Likewise.
6062 (vrshr_n_u16): Likewise.
6063 (vrshr_n_u32): Likewise.
6064 (vrshr_n_u64): Likewise.
6065 (vrshrq_n_s8): Likewise.
6066 (vrshrq_n_s16): Likewise.
6067 (vrshrq_n_s32): Likewise.
6068 (vrshrq_n_s64): Likewise.
6069 (vrshrq_n_u8): Likewise.
6070 (vrshrq_n_u16): Likewise.
6071 (vrshrq_n_u32): Likewise.
6072 (vrshrq_n_u64): Likewise.
6073 (vshrn_n_s16): Likewise.
6074 (vshrn_n_s32): Likewise.
6075 (vshrn_n_s64): Likewise.
6076 (vshrn_n_u16): Likewise.
6077 (vshrn_n_u32): Likewise.
6078 (vshrn_n_u64): Likewise.
6079 (vrshrn_n_s16): Likewise.
6080 (vrshrn_n_s32): Likewise.
6081 (vrshrn_n_s64): Likewise.
6082 (vrshrn_n_u16): Likewise.
6083 (vrshrn_n_u32): Likewise.
6084 (vrshrn_n_u64): Likewise.
6085 (vqshrn_n_s16): Likewise.
6086 (vqshrn_n_s32): Likewise.
6087 (vqshrn_n_s64): Likewise.
6088 (vqshrn_n_u16): Likewise.
6089 (vqshrn_n_u32): Likewise.
6090 (vqshrn_n_u64): Likewise.
6091 (vqrshrn_n_s16): Likewise.
6092 (vqrshrn_n_s32): Likewise.
6093 (vqrshrn_n_s64): Likewise.
6094 (vqrshrn_n_u16): Likewise.
6095 (vqrshrn_n_u32): Likewise.
6096 (vqrshrn_n_u64): Likewise.
6097 (vqshrun_n_s16): Likewise.
6098 (vqshrun_n_s32): Likewise.
6099 (vqshrun_n_s64): Likewise.
6100 (vqrshrun_n_s16): Likewise.
6101 (vqrshrun_n_s32): Likewise.
6102 (vqrshrun_n_s64): Likewise.
6103 (vshl_n_s8): Likewise.
6104 (vshl_n_s16): Likewise.
6105 (vshl_n_s32): Likewise.
6106 (vshl_n_s64): Likewise.
6107 (vshl_n_u8): Likewise.
6108 (vshl_n_u16): Likewise.
6109 (vshl_n_u32): Likewise.
6110 (vshl_n_u64): Likewise.
6111 (vshlq_n_s8): Likewise.
6112 (vshlq_n_s16): Likewise.
6113 (vshlq_n_s32): Likewise.
6114 (vshlq_n_s64): Likewise.
6115 (vshlq_n_u8): Likewise.
6116 (vshlq_n_u16): Likewise.
6117 (vshlq_n_u32): Likewise.
6118 (vshlq_n_u64): Likewise.
6119 (vqshl_n_s8): Likewise.
6120 (vqshl_n_s16): Likewise.
6121 (vqshl_n_s32): Likewise.
6122 (vqshl_n_s64): Likewise.
6123 (vqshl_n_u8): Likewise.
6124 (vqshl_n_u16): Likewise.
6125 (vqshl_n_u32): Likewise.
6126 (vqshl_n_u64): Likewise.
6127 (vqshlq_n_s8): Likewise.
6128 (vqshlq_n_s16): Likewise.
6129 (vqshlq_n_s32): Likewise.
6130 (vqshlq_n_s64): Likewise.
6131 (vqshlq_n_u8): Likewise.
6132 (vqshlq_n_u16): Likewise.
6133 (vqshlq_n_u32): Likewise.
6134 (vqshlq_n_u64): Likewise.
6135 (vqshlu_n_s8): Likewise.
6136 (vqshlu_n_s16): Likewise.
6137 (vqshlu_n_s32): Likewise.
6138 (vqshlu_n_s64): Likewise.
6139 (vqshluq_n_s8): Likewise.
6140 (vqshluq_n_s16): Likewise.
6141 (vqshluq_n_s32): Likewise.
6142 (vqshluq_n_s64): Likewise.
6143 (vshll_n_s8): Likewise.
6144 (vshll_n_s16): Likewise.
6145 (vshll_n_s32): Likewise.
6146 (vshll_n_u8): Likewise.
6147 (vshll_n_u16): Likewise.
6148 (vshll_n_u32): Likewise.
6149 (vsra_n_s8): Likewise.
6150 (vsra_n_s16): Likewise.
6151 (vsra_n_s32): Likewise.
6152 (vsra_n_s64): Likewise.
6153 (vsra_n_u8): Likewise.
6154 (vsra_n_u16): Likewise.
6155 (vsra_n_u32): Likewise.
6156 (vsra_n_u64): Likewise.
6157 (vsraq_n_s8): Likewise.
6158 (vsraq_n_s16): Likewise.
6159 (vsraq_n_s32): Likewise.
6160 (vsraq_n_s64): Likewise.
6161 (vsraq_n_u8): Likewise.
6162 (vsraq_n_u16): Likewise.
6163 (vsraq_n_u32): Likewise.
6164 (vsraq_n_u64): Likewise.
6165 (vrsra_n_s8): Likewise.
6166 (vrsra_n_s16): Likewise.
6167 (vrsra_n_s32): Likewise.
6168 (vrsra_n_s64): Likewise.
6169 (vrsra_n_u8): Likewise.
6170 (vrsra_n_u16): Likewise.
6171 (vrsra_n_u32): Likewise.
6172 (vrsra_n_u64): Likewise.
6173 (vrsraq_n_s8): Likewise.
6174 (vrsraq_n_s16): Likewise.
6175 (vrsraq_n_s32): Likewise.
6176 (vrsraq_n_s64): Likewise.
6177 (vrsraq_n_u8): Likewise.
6178 (vrsraq_n_u16): Likewise.
6179 (vrsraq_n_u32): Likewise.
6180 (vrsraq_n_u64): Likewise.
6181 (vabs_s8): Likewise.
6182 (vabs_s16): Likewise.
6183 (vabs_s32): Likewise.
6184 (vabs_f32): Likewise.
6185 (vabsq_s8): Likewise.
6186 (vabsq_s16): Likewise.
6187 (vabsq_s32): Likewise.
6188 (vabsq_f32): Likewise.
6189 (vqabs_s8): Likewise.
6190 (vqabs_s16): Likewise.
6191 (vqabs_s32): Likewise.
6192 (vqabsq_s8): Likewise.
6193 (vqabsq_s16): Likewise.
6194 (vqabsq_s32): Likewise.
6195 (vneg_s8): Likewise.
6196 (vneg_s16): Likewise.
6197 (vneg_s32): Likewise.
6198 (vneg_f32): Likewise.
6199 (vnegq_s8): Likewise.
6200 (vnegq_s16): Likewise.
6201 (vnegq_s32): Likewise.
6202 (vnegq_f32): Likewise.
6203 (vqneg_s8): Likewise.
6204 (vqneg_s16): Likewise.
6205 (vqneg_s32): Likewise.
6206 (vqnegq_s8): Likewise.
6207 (vqnegq_s16): Likewise.
6208 (vqnegq_s32): Likewise.
6209 (vmvn_s8): Likewise.
6210 (vmvn_s16): Likewise.
6211 (vmvn_s32): Likewise.
6212 (vmvn_u8): Likewise.
6213 (vmvn_u16): Likewise.
6214 (vmvn_u32): Likewise.
6215 (vmvn_p8): Likewise.
6216 (vmvnq_s8): Likewise.
6217 (vmvnq_s16): Likewise.
6218 (vmvnq_s32): Likewise.
6219 (vmvnq_u8): Likewise.
6220 (vmvnq_u16): Likewise.
6221 (vmvnq_u32): Likewise.
6222 (vmvnq_p8): Likewise.
6223 (vcls_s8): Likewise.
6224 (vcls_s16): Likewise.
6225 (vcls_s32): Likewise.
6226 (vclsq_s8): Likewise.
6227 (vclsq_s16): Likewise.
6228 (vclsq_s32): Likewise.
6229 (vclz_s8): Likewise.
6230 (vclz_s16): Likewise.
6231 (vclz_s32): Likewise.
6232 (vclz_u8): Likewise.
6233 (vclz_u16): Likewise.
6234 (vclz_u32): Likewise.
6235 (vclzq_s8): Likewise.
6236 (vclzq_s16): Likewise.
6237 (vclzq_s32): Likewise.
6238 (vclzq_u8): Likewise.
6239 (vclzq_u16): Likewise.
6240 (vclzq_u32): Likewise.
6241 (vcnt_s8): Likewise.
6242 (vcnt_u8): Likewise.
6243 (vcnt_p8): Likewise.
6244 (vcntq_s8): Likewise.
6245 (vcntq_u8): Likewise.
6246 (vcntq_p8): Likewise.
6247 (vrecpe_f32): Likewise.
6248 (vrecpe_u32): Likewise.
6249 (vrecpeq_f32): Likewise.
6250 (vrecpeq_u32): Likewise.
6251 (vrsqrte_f32): Likewise.
6252 (vrsqrte_u32): Likewise.
6253 (vrsqrteq_f32): Likewise.
6254 (vrsqrteq_u32): Likewise.
6255 (vget_lane_s8): Likewise.
6256 (vget_lane_s16): Likewise.
6257 (vget_lane_s32): Likewise.
6258 (vget_lane_f32): Likewise.
6259 (vget_lane_u8): Likewise.
6260 (vget_lane_u16): Likewise.
6261 (vget_lane_u32): Likewise.
6262 (vget_lane_p8): Likewise.
6263 (vget_lane_p16): Likewise.
6264 (vget_lane_s64): Likewise.
6265 (vget_lane_u64): Likewise.
6266 (vgetq_lane_s8): Likewise.
6267 (vgetq_lane_s16): Likewise.
6268 (vgetq_lane_s32): Likewise.
6269 (vgetq_lane_f32): Likewise.
6270 (vgetq_lane_u8): Likewise.
6271 (vgetq_lane_u16): Likewise.
6272 (vgetq_lane_u32): Likewise.
6273 (vgetq_lane_p8): Likewise.
6274 (vgetq_lane_p16): Likewise.
6275 (vgetq_lane_s64): Likewise.
6276 (vgetq_lane_u64): Likewise.
6277 (vcvt_s32_f32): Likewise.
6278 (vcvt_f32_s32): Likewise.
6279 (vcvt_f32_u32): Likewise.
6280 (vcvt_u32_f32): Likewise.
6281 (vcvtq_s32_f32): Likewise.
6282 (vcvtq_f32_s32): Likewise.
6283 (vcvtq_f32_u32): Likewise.
6284 (vcvtq_u32_f32): Likewise.
6285 (vcvt_n_s32_f32): Likewise.
6286 (vcvt_n_f32_s32): Likewise.
6287 (vcvt_n_f32_u32): Likewise.
6288 (vcvt_n_u32_f32): Likewise.
6289 (vcvtq_n_s32_f32): Likewise.
6290 (vcvtq_n_f32_s32): Likewise.
6291 (vcvtq_n_f32_u32): Likewise.
6292 (vcvtq_n_u32_f32): Likewise.
6293 (vmovn_s16): Likewise.
6294 (vmovn_s32): Likewise.
6295 (vmovn_s64): Likewise.
6296 (vmovn_u16): Likewise.
6297 (vmovn_u32): Likewise.
6298 (vmovn_u64): Likewise.
6299 (vqmovn_s16): Likewise.
6300 (vqmovn_s32): Likewise.
6301 (vqmovn_s64): Likewise.
6302 (vqmovn_u16): Likewise.
6303 (vqmovn_u32): Likewise.
6304 (vqmovn_u64): Likewise.
6305 (vqmovun_s16): Likewise.
6306 (vqmovun_s32): Likewise.
6307 (vqmovun_s64): Likewise.
6308 (vmovl_s8): Likewise.
6309 (vmovl_s16): Likewise.
6310 (vmovl_s32): Likewise.
6311 (vmovl_u8): Likewise.
6312 (vmovl_u16): Likewise.
6313 (vmovl_u32): Likewise.
6314 (vmul_lane_s16): Likewise.
6315 (vmul_lane_s32): Likewise.
6316 (vmul_lane_f32): Likewise.
6317 (vmul_lane_u16): Likewise.
6318 (vmul_lane_u32): Likewise.
6319 (vmulq_lane_s16): Likewise.
6320 (vmulq_lane_s32): Likewise.
6321 (vmulq_lane_f32): Likewise.
6322 (vmulq_lane_u16): Likewise.
6323 (vmulq_lane_u32): Likewise.
6324 (vmla_lane_s16): Likewise.
6325 (vmla_lane_s32): Likewise.
6326 (vmla_lane_f32): Likewise.
6327 (vmla_lane_u16): Likewise.
6328 (vmla_lane_u32): Likewise.
6329 (vmlaq_lane_s16): Likewise.
6330 (vmlaq_lane_s32): Likewise.
6331 (vmlaq_lane_f32): Likewise.
6332 (vmlaq_lane_u16): Likewise.
6333 (vmlaq_lane_u32): Likewise.
6334 (vmlal_lane_s16): Likewise.
6335 (vmlal_lane_s32): Likewise.
6336 (vmlal_lane_u16): Likewise.
6337 (vmlal_lane_u32): Likewise.
6338 (vqdmlal_lane_s16): Likewise.
6339 (vqdmlal_lane_s32): Likewise.
6340 (vmls_lane_s16): Likewise.
6341 (vmls_lane_s32): Likewise.
6342 (vmls_lane_f32): Likewise.
6343 (vmls_lane_u16): Likewise.
6344 (vmls_lane_u32): Likewise.
6345 (vmlsq_lane_s16): Likewise.
6346 (vmlsq_lane_s32): Likewise.
6347 (vmlsq_lane_f32): Likewise.
6348 (vmlsq_lane_u16): Likewise.
6349 (vmlsq_lane_u32): Likewise.
6350 (vmlsl_lane_s16): Likewise.
6351 (vmlsl_lane_s32): Likewise.
6352 (vmlsl_lane_u16): Likewise.
6353 (vmlsl_lane_u32): Likewise.
6354 (vqdmlsl_lane_s16): Likewise.
6355 (vqdmlsl_lane_s32): Likewise.
6356 (vmull_lane_s16): Likewise.
6357 (vmull_lane_s32): Likewise.
6358 (vmull_lane_u16): Likewise.
6359 (vmull_lane_u32): Likewise.
6360 (vqdmull_lane_s16): Likewise.
6361 (vqdmull_lane_s32): Likewise.
6362 (vqdmulhq_lane_s16): Likewise.
6363 (vqdmulhq_lane_s32): Likewise.
6364 (vqdmulh_lane_s16): Likewise.
6365 (vqdmulh_lane_s32): Likewise.
6366 (vqrdmulhq_lane_s16): Likewise.
6367 (vqrdmulhq_lane_s32): Likewise.
6368 (vqrdmulh_lane_s16): Likewise.
6369 (vqrdmulh_lane_s32): Likewise.
6370 (vmul_n_s16): Likewise.
6371 (vmul_n_s32): Likewise.
6372 (vmul_n_f32): Likewise.
6373 (vmul_n_u16): Likewise.
6374 (vmul_n_u32): Likewise.
6375 (vmulq_n_s16): Likewise.
6376 (vmulq_n_s32): Likewise.
6377 (vmulq_n_f32): Likewise.
6378 (vmulq_n_u16): Likewise.
6379 (vmulq_n_u32): Likewise.
6380 (vmull_n_s16): Likewise.
6381 (vmull_n_s32): Likewise.
6382 (vmull_n_u16): Likewise.
6383 (vmull_n_u32): Likewise.
6384 (vqdmull_n_s16): Likewise.
6385 (vqdmull_n_s32): Likewise.
6386 (vqdmulhq_n_s16): Likewise.
6387 (vqdmulhq_n_s32): Likewise.
6388 (vqdmulh_n_s16): Likewise.
6389 (vqdmulh_n_s32): Likewise.
6390 (vqrdmulhq_n_s16): Likewise.
6391 (vqrdmulhq_n_s32): Likewise.
6392 (vqrdmulh_n_s16): Likewise.
6393 (vqrdmulh_n_s32): Likewise.
6394 (vmla_n_s16): Likewise.
6395 (vmla_n_s32): Likewise.
6396 (vmla_n_f32): Likewise.
6397 (vmla_n_u16): Likewise.
6398 (vmla_n_u32): Likewise.
6399 (vmlaq_n_s16): Likewise.
6400 (vmlaq_n_s32): Likewise.
6401 (vmlaq_n_f32): Likewise.
6402 (vmlaq_n_u16): Likewise.
6403 (vmlaq_n_u32): Likewise.
6404 (vmlal_n_s16): Likewise.
6405 (vmlal_n_s32): Likewise.
6406 (vmlal_n_u16): Likewise.
6407 (vmlal_n_u32): Likewise.
6408 (vqdmlal_n_s16): Likewise.
6409 (vqdmlal_n_s32): Likewise.
6410 (vmls_n_s16): Likewise.
6411 (vmls_n_s32): Likewise.
6412 (vmls_n_f32): Likewise.
6413 (vmls_n_u16): Likewise.
6414 (vmls_n_u32): Likewise.
6415 (vmlsq_n_s16): Likewise.
6416 (vmlsq_n_s32): Likewise.
6417 (vmlsq_n_f32): Likewise.
6418 (vmlsq_n_u16): Likewise.
6419 (vmlsq_n_u32): Likewise.
6420 (vmlsl_n_s16): Likewise.
6421 (vmlsl_n_s32): Likewise.
6422 (vmlsl_n_u16): Likewise.
6423 (vmlsl_n_u32): Likewise.
6424 (vqdmlsl_n_s16): Likewise.
6425 (vqdmlsl_n_s32): Likewise.
6427 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6429 * config/arm/arm.c (arm_new_rtx_costs, case PLUS, MINUS):
6430 Add cost of alu.arith in simple SImode case.
6432 2014-11-18 Jiong Wang <jiong.wang@arm.com>
6434 * lra-eliminations.c (update_reg_eliminate): Relax gcc_assert for fixed
6437 2014-11-18 Marat Zakirov <m.zakirov@samsung.com>
6439 * opts.c (finish_options): Disable aggressive opts for sanitizer.
6440 (common_handle_option): Move code to finish_options.
6442 2014-11-18 Yury Gribov <y.gribov@samsung.com>
6445 * stor-layout.c (min_align_of_type): Respect user alignment
6448 2014-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
6450 * passes.c (remove_cgraph_node_from_order): New.
6451 (do_per_function_toporder): Register cgraph removal
6454 2014-11-17 Terry Guo <terry.guo@arm.com>
6456 * config/arm/arm.c (arm_issue_rate): Return 2 for cortex-m7.
6457 * config/arm/arm.md (generic_sched): Exclude cortex-m7.
6458 (generic_vfp): Likewise.
6459 * config/arm/cortex-m7.md: Pipeline description for cortex-m7.
6461 2014-11-17 Vladimir Makarov <vmakarov@redhat.com>
6463 PR rtl-optimization/63906
6464 * lra-remat.c (operand_to_remat): Check SP and
6465 frame_pointer_required.
6467 2014-11-17 Mircea Namolaru <mircea.namolaru@inria.fr>
6469 * doc/invoke.texi (floop-unroll-and-jam): Document
6470 (loop-unroll-jam-size): Likewise.
6471 (loop-unroll-jam-depth): Likewise.
6472 * graphite-optimize-isl.c (getPrevectorMap_full): Modify comment.
6473 (getScheduleForBandList): Replaced unsafe union_map reuse.
6475 2014-11-17 Andrew Pinski <apinski@cavium.com>
6477 * config/aarch64/thunderx.md: Remove copyright which should not
6480 2014-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
6481 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6483 * config/rs6000/rs6000.c (RELOAD_REG_AND_M16): Add support for
6484 Altivec style vector loads that ignore the bottom 3 bits of the
6486 (rs6000_debug_addr_mask): New function to print the addr_mask
6487 values if debugging.
6488 (rs6000_debug_print_mode): Call rs6000_debug_addr_mask to print
6490 (rs6000_setup_reg_addr_masks): Add support for Altivec style
6491 vector loads that ignore the bottom 3 bits of the address. Allow
6492 pre-increment and pre-decrement on floating point, even if the
6493 -mupper-regs-{sf,df} options were used.
6494 (rs6000_init_hard_regno_mode_ok): Rework DFmode support if
6495 -mupper-regs-df. Add support for -mupper-regs-sf. Rearrange code
6496 placement for direct move support.
6497 (rs6000_option_override_internal): Add checks for -mupper-regs-df
6498 requiring -mvsx, and -mupper-regs-sf requiring -mpower8-vector.
6499 If -mupper-regs, set both -mupper-regs-sf and -mupper-regs-df,
6500 depending on the underlying cpu.
6501 (rs6000_secondary_reload_fail): Add ATTRIBUTE_NORETURN.
6502 (rs6000_secondary_reload_toc_costs): Helper function to identify
6503 costs of a TOC load for secondary reload support.
6504 (rs6000_secondary_reload_memory): Helper function for secondary
6505 reload, to determine if a particular memory operation is directly
6506 handled by the hardware, or if it needs support from secondary
6507 reload to create a valid address.
6508 (rs6000_secondary_reload): Rework code, to be clearer. If the
6509 appropriate -mupper-regs-{sf,df} is used, use FPR registers to
6510 reload scalar values, since the FPR registers have D-form
6511 addressing. Move most of the code handling memory to the function
6512 rs6000_secondary_reload_memory, and use the reg_addr structure to
6513 determine what type of address modes are supported. Print more
6514 debug information if -mdebug=addr.
6515 (rs6000_secondary_reload_inner): Rework entire function to be more
6516 general. Use the reg_addr bits to determine what type of
6517 addressing is supported.
6518 (rs6000_preferred_reload_class): Rework. Move constant handling
6519 into a single place. Prefer using FLOAT_REGS for scalar floating
6521 (rs6000_secondary_reload_class): Use a FPR register to move a
6522 value from an Altivec register to a GPR, and vice versa. Move VSX
6523 handling above traditional floating point.
6525 * config/rs6000/rs6000.md (mov<mode>_hardfloat, FMOVE32 case):
6526 Delete some spaces in the constraints.
6527 (DF->DF move peephole2): Disable if -mupper-regs-{sf,df} to
6528 allow using FPR registers to load/store an Altivec register for
6529 scalar floating point types.
6530 (SF->SF move peephole2): Likewise.
6531 (DFmode splitter): Add a define_split to move floating point
6532 constants to the constant pool before register allocation.
6533 Normally constants are put into the pool immediately, but
6534 -ffast-math delays putting them into the constant pool for the
6535 reciprocal approximation support.
6536 (SFmode splitter): Likewise.
6538 * config/rs6000/rs6000.opt (-mupper-regs-df): Make option public.
6539 (-mupper-regs-sf): Likewise.
6541 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6542 __UPPER_REGS_DF__ if -mupper-regs-df. Define __UPPER_REGS_SF__ if
6544 (-mupper-regs): New combination option that sets -mupper-regs-sf
6545 and -mupper-regs-df by default if the cpu supports the instructions.
6547 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6548 -mupper-regs, -mupper-regs-sf, and -mupper-regs-df.
6550 * config/rs6000/predicates.md (memory_fp_constant): New predicate
6551 to return true if the operand is a floating point constant that
6552 must be put into the constant pool, before register allocation
6555 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Enable
6556 -mupper-regs-df by default.
6557 (ISA_2_7_MASKS_SERVER): Enable -mupper-regs-sf by default.
6558 (POWERPC_MASKS): Add -mupper-regs-{sf,df} as options set by the
6559 various -mcpu=... options.
6560 (power7 cpu): Enable -mupper-regs-df by default.
6562 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6565 2014-11-17 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6567 * ira-conflicts.c (build_conflict_bit_table): Add the current
6568 object to OBJECTS_LIVE after traversing OBJECTS_LIVE.
6570 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6572 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
6573 (ipa_get_indirect_edge_target): Add SPECULATIVE argument.
6574 (devirtualization_time_bonus): Use it.
6575 (ipcp_discover_new_direct_edges): Likewise.
6576 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Update.
6577 * ipa-prop.h (ipa_get_indirect_edge_target): Update prototype.
6579 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6581 * tree.c (free_lang_data_in_decl): Set
6582 DECL_FUNCTION_SPECIFIC_OPTIMIZATION to optimization_default_node.
6584 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6586 * cgraphunit.c (analyze_functions): Use opt_for_fn.
6587 * cgraph.h (cgraph_node::optimize_for_size_p): Likewise.
6589 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6591 * cgraph.c (symbol_table::create_edge): Use opt_for_fn.
6592 (cgraph_node::cannot_return_p): Likewise.
6593 (cgraph_edge::cannot_lead_to_return_p): Likewise.
6594 (cgraph_edge::maybe_hot_p): Likewise.
6596 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6598 * predict.c (maybe_hot_frequency_p): Use opt_for_fn.
6599 (optimize_function_for_size_p): Likewise.
6600 (probably_never_executed): Likewise; replace cfun by fun.
6602 2014-11-17 Alan Lawrence <alan.lawrence@arm.com>
6604 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Add
6605 variant reading from memory and assembling to ld1.
6607 * config/aarch64/arm_neon.h (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8,
6608 vld1_lane_p16, vld1_lane_s8, vld1_lane_s16, vld1_lane_s32,
6609 vld1_lane_s64, vld1_lane_u8, vld1_lane_u16, vld1_lane_u32,
6610 vld1_lane_u64, vld1q_lane_f32, vld1q_lane_f64, vld1q_lane_p8,
6611 vld1q_lane_p16, vld1q_lane_s8, vld1q_lane_s16, vld1q_lane_s32,
6612 vld1q_lane_s64, vld1q_lane_u8, vld1q_lane_u16, vld1q_lane_u32,
6613 vld1q_lane_u64): Replace asm with vset_lane and pointer dereference.
6615 2014-11-17 Jason Merrill <jason@redhat.com>
6617 * tree-inline.c (copy_fn): New.
6618 * tree-inline.h: Declare it.
6620 2014-11-17 Alan Lawrence <alan.lawrence@arm.com>
6622 * config/aarch64/aarch64-builtins.c (TYPES_CREATE): Remove.
6623 * config/aarch64/aarch64-simd-builtins.def (create): Remove.
6624 * config/aarch64/aarch64-simd.md (aarch64_create<mode>): Remove.
6625 * config/aarch64/arm_neon.h (vcreate_f64, vreinterpret_f64_s64,
6626 vreinterpret_f64_u64): Replace __builtin_aarch64_createv1df with C casts.
6627 * config/aarch64/iterators.md (VD1): Remove.
6629 2014-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6631 * config/aarch64/aarch64-cores.def (cortex-a53): Remove
6632 AARCH64_FL_CRYPTO from feature flags.
6633 (cortex-a57): Likewise.
6634 (cortex-a57.cortex-a53): Likewise.
6636 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6638 * tree.c (free_lang_data_in_decl): Annotate all functio nbodies with
6639 DECL_FUNCTION_SPECIFIC_TARGET.
6640 * i386.c (ix86_set_current_function): Handle explicit default options.
6642 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6644 * builtins.c (expand_builtin_memcpy_with_bounds): Use target hook
6646 (expand_builtin_mempcpy_with_bounds): Likewise.
6647 (expand_builtin_memset_with_bounds): Likewise.
6649 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6651 * tree-ssa-strlen.c: include ipa-chkp.h, cgraph.h,
6652 ipa-ref.h, plugin-api.h.
6653 (get_string_length): Handle calls with bounds.
6654 (adjust_last_stmt): Likewise.
6655 (handle_builtin_strchr): Likewise.
6656 (handle_builtin_strcpy): Likewise.
6657 (handle_builtin_memcpy): Likewise.
6658 (handle_builtin_strcat): Likewise.
6660 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6662 * tree-chkp-opt.c (chkp_get_nobnd_fndecl): New.
6663 (chkp_get_nochk_fndecl): New.
6664 (chkp_optimize_string_function_calls): New.
6665 (chkp_opt_execute): Call chkp_optimize_string_function_calls.
6666 * tree-cfg.h (insert_cond_bb): New.
6667 * tree-cfg.c (insert_cond_bb): New.
6669 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6671 * tree-core.h (built_in_class): Add builtin codes to be used
6672 by Pointer Bounds Checker for instrumented builtin functions.
6673 * tree-streamer-in.c: Include ipa-chkp.h.
6674 (streamer_get_builtin_tree): Created instrumented decl if
6676 * ipa-chkp.h (chkp_maybe_clone_builtin_fndecl): New.
6677 * ipa-chkp.c (chkp_build_instrumented_fndecl): Support builtin
6679 (chkp_maybe_clone_builtin_fndecl): New.
6680 (chkp_maybe_create_clone): Support builtin function decls.
6681 (chkp_versioning): Clone builtin functions.
6682 * tree-chkp.c (chkp_instrument_normal_builtin): New.
6683 (chkp_add_bounds_to_call_stmt): Support builtin functions.
6684 (chkp_replace_function_pointer): Likewise.
6685 * builtins.c (expand_builtin_memcpy_args): New.
6686 (expand_builtin_memcpy): Call expand_builtin_memcpy_args.
6687 (expand_builtin_memcpy_with_bounds): New.
6688 (expand_builtin_mempcpy_with_bounds): New.
6689 (expand_builtin_mempcpy_args): Add orig_exp arg. Support
6690 BUILT_IN_CHKP_MEMCPY_NOBND_NOCHK
6691 (expand_builtin_memset_with_bounds): New.
6692 (expand_builtin_memset_args): Support BUILT_IN_CHKP_MEMSET_NOBND_NOCHK.
6693 (expand_builtin_with_bounds): New.
6694 * builtins.h (expand_builtin_with_bounds): New.
6695 * expr.c (expand_expr_real_1): Support instrumented builtin calls.
6697 2014-11-17 Dodji Seketeli <dodji@redhat.com>
6699 * gimple.h (gimple_set_visited, gimple_visited_p)
6700 (gimple_set_plf, gimple_plf, gimple_set_uid, gimple_uid): Add more
6701 comments to these accessors.
6703 2014-11-17 Georg-Johann Lay <avr@gjlay.de>
6705 * config/avr/avr-log.c (avr_log_set_avr_log) [TARGET_ALL_DEBUG]:
6706 Set avr_log_details to "all".
6708 2014-11-17 Richard Biener <rguenther@suse.de>
6711 * match.pd: Guard X / CST -> X * CST' transform against
6714 2014-11-17 Terry Guo <terry.guo@arm.com>
6716 * config/arm/thumb1.md (*addsi3_cbranch_scratch): Updated to UAL
6719 2014-11-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
6721 * ifcvt.c (HAVE_cbranchcc4): Define.
6722 (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
6723 Use HAVE_cbranchcc4.
6725 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6727 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
6728 aarch64_convert_mode, aarch64_gen_ccmp_first,
6729 aarch64_gen_ccmp_next): New functions.
6730 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
6732 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6734 * config/aarch64/aarch64-protos.h (aarch64_ccmp_mode_to_code): New.
6735 * aarch64.c (aarch64_nzcv_codes): New data.
6736 (aarch64_ccmp_mode_to_code): New.
6737 (aarch64_print_operand): Output nzcv.
6738 config/aarch64/aarch64.md (cbranchcc4, *ccmp_and, *ccmp_ior, cstorecc4):
6740 (cstore<mode>4): Handle ccmp_cc_register.
6741 * config/aarch64/predicates.md (const0_operand): New.
6743 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6745 * config/aarch64/aarch64-modes.def: Define ccmp CC mode.
6746 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): New function
6747 extacted from aarch64_get_condition_code.
6748 (aarch64_get_condition_code): Call aarch64_get_condition_code_1.
6749 config/aarch64/predicates.md (ccmp_cc_register): New predicate.
6751 014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6753 * config/aarch64/constraints.md (Usn, aarch64_ccmp_immediate,
6754 aarch64_ccmp_operand): New constraints.
6756 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6758 * Makefile.in: Add ccmp.o.
6761 * expr.c: include "ccmp.h"
6762 (expand_cond_expr_using_cmove): Handle VOIDmode.
6763 (expand_expr_real_1): Try to expand ccmp.
6765 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6767 * cfgexpand.c (expand_gimple_cond): Check ccmp.
6768 * expmed.c (emit_cstore): Make it global.
6769 * expmed.h: #include "insn-codes.h"
6770 (emit_cstore): New prototype.
6771 * expr.c (expand_operands): Make it global.
6772 * expr.h (expand_operands): New prototype.
6773 * optabs.c (get_rtx_code): Make it global.
6774 * optabs.h (get_rtx_code): New prototype.
6776 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6778 * target.def (gen_ccmp_first, gen_ccmp_first): Add two new hooks.
6779 * doc/tm.texi.in (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
6780 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
6782 2014-11-16 Patrick Palka <ppalka@gcc.gnu.org>
6785 * tree-ssa-forwprop.c (forward_propagate_into_comparison_1):
6786 Always combine comparisons or conversions from booleans.
6788 2014-11-16 Jan Hubicka <hubicka@ucw.cz>
6790 * ipa-polymorphic-call.c
6791 (ipa_polymorphic_call_context::speculation_consistent_p): Constify.
6792 (ipa_polymorphic_call_context::meet_speculation_with): New function.
6793 (ipa_polymorphic_call_context::combine_with): Handle types in
6794 construction better.
6795 (ipa_polymorphic_call_context::equal_to): Do not bother about useless
6797 (ipa_polymorphic_call_context::meet_with): New function.
6798 * cgraph.h (class ipa_polymorphic_call_context): Add
6799 meet_width, meet_speculation_with; constify speculation_consistent_p.
6800 * ipa-cp.c (ipa_context_from_jfunc): Handle speculation; combine
6801 with incomming context.
6802 (propagate_context_accross_jump_function): Likewise; be more cureful.
6803 about set_contains_variable.
6804 (ipa_get_indirect_edge_target_1): Fix handling of dynamic type changes.
6805 (find_more_scalar_values_for_callers_subset): Fix.
6806 (find_more_contexts_for_caller_subset): Perform meet operation.
6808 2014-11-16 Jan Hubicka <hubicka@ucw.cz>
6810 * passes.c (execute_one_pass): Do not apply all transforms prior
6811 every simple IPA pass.
6812 * cgraphunit.c: Do not include fibheap.h
6813 (expand_thunk): Use get_untransformed_body.
6814 (cgraph_node::expand): Likewise.
6815 * tree-ssa-structalias.c (ipa_pta_execute): Skip inline clones.
6816 * cgraph.c (release_function_body): Do not push cfun when CFG
6818 (cgraph_node::get_untransformed_body): Break out from ...
6819 (cgraph_node::get_body): ... here; add code to apply all transforms.
6820 * cgraph.h (cgraph_node): Add get_untransformed_body.
6821 * ipa-icf.c (sem_function::init): Use get_untransformed_body.
6822 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
6823 * tree-inline.c (expand_call_inline): LIkewise.
6824 * i386.c (ix86_reset_to_default_globals): Break out from ...
6825 (ix86_set_current_function): ... here;
6826 (ix86_reset_previous_fndecl): Use it.
6827 (ix86_simd_clone_adjust): Use ix86_reset_previous_fndecl.
6829 2014-11-16 Eric Botcazou <ebotcazou@adacore.com>
6831 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Move around.
6832 * doc/tm.texi: Regenerate.
6834 2014-11-16 Uros Bizjak <ubizjak@gmail.com>
6836 * config/sh/sh.c: Do not include algorithm.
6837 (sh_emit_scc_to_t): Replace open-coded swap with std::swap
6839 (sh_emit_compare_and_branch): Ditto.
6840 (sh_emit_compare_and_set): Ditto.
6841 * config/sh/sh.md (replacement peephole2): Ditto.
6842 (cstore4_media): Ditto.
6845 2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
6847 * lra-remat.c (cand_transf_func): Process regno for
6848 rematerialization too.
6849 * lra.c (lra): Switch on rematerialization pass.
6851 2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
6853 * lra.c (lra): Switch off rematerialization pass.
6855 2014-11-15 Marc Glisse <marc.glisse@inria.fr>
6857 * config/i386/xmmintrin.h (_mm_add_ps, _mm_sub_ps, _mm_mul_ps,
6858 _mm_div_ps, _mm_store_ss, _mm_cvtss_f32): Use vector extensions
6859 instead of builtins.
6860 * config/i386/emmintrin.h (__v2du, __v4su, __v8hu, __v16qu): New
6862 (_mm_sqrt_sd): Fix comment.
6863 (_mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
6864 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
6865 _mm_mullo_epi16, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
6866 _mm_cmplt_epi8, _mm_cmplt_epi16, _mm_cmplt_epi32, _mm_cmpgt_epi8,
6867 _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_and_si128, _mm_or_si128,
6868 _mm_xor_si128, _mm_store_sd, _mm_cvtsd_f64, _mm_storeh_pd,
6869 _mm_cvtsi128_si64, _mm_cvtsi128_si64x, _mm_add_pd, _mm_sub_pd,
6870 _mm_mul_pd, _mm_div_pd, _mm_storel_epi64, _mm_movepi64_pi64):
6871 Use vector extensions instead of builtins.
6872 * config/i386/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
6873 _mm_mullo_epi32): Likewise.
6874 * config/i386/avxintrin.h (__v4du, __v8su, __v16hu, __v32qu):
6876 (_mm256_add_pd, _mm256_add_ps, _mm256_div_pd, _mm256_div_ps,
6877 _mm256_mul_pd, _mm256_mul_ps, _mm256_sub_pd, _mm256_sub_ps):
6878 Use vector extensions instead of builtins.
6879 * config/i386/avx2intrin.h (_mm256_cmpeq_epi8, _mm256_cmpeq_epi16,
6880 _mm256_cmpeq_epi32, _mm256_cmpeq_epi64, _mm256_cmpgt_epi8,
6881 _mm256_cmpgt_epi16, _mm256_cmpgt_epi32, _mm256_cmpgt_epi64,
6882 _mm256_and_si256, _mm256_or_si256, _mm256_xor_si256, _mm256_add_epi8,
6883 _mm256_add_epi16, _mm256_add_epi32, _mm256_add_epi64,
6884 _mm256_mullo_epi16, _mm256_mullo_epi32, _mm256_sub_epi8,
6885 _mm256_sub_epi16, _mm256_sub_epi32, _mm256_sub_epi64): Likewise.
6886 * config/i386/avx512fintrin.h (__v8du, __v16su, __v32hu, __v64qu):
6888 (_mm512_or_si512, _mm512_or_epi32, _mm512_or_epi64, _mm512_xor_si512,
6889 _mm512_xor_epi32, _mm512_xor_epi64, _mm512_and_si512,
6890 _mm512_and_epi32, _mm512_and_epi64, _mm512_mullo_epi32,
6891 _mm512_add_epi64, _mm512_sub_epi64, _mm512_add_epi32,
6892 _mm512_sub_epi32, _mm512_add_pd, _mm512_add_ps, _mm512_sub_pd,
6893 _mm512_sub_ps, _mm512_mul_pd, _mm512_mul_ps, _mm512_div_pd,
6894 _mm512_div_ps): Use vector extensions instead of builtins.
6895 * config/i386/avx512bwintrin.h (_mm512_mullo_epi16, _mm512_add_epi8,
6896 _mm512_sub_epi8, _mm512_sub_epi16, _mm512_add_epi16): Likewise.
6897 * config/i386/avx512dqintrin.h (_mm512_mullo_epi64): Likewise.
6898 * config/i386/avx512vldqintrin.h (_mm256_mullo_epi64, _mm_mullo_epi64):
6901 2014-11-15 Jan Hubicka <hubicka@ucw.cz>
6903 * lto-streamer-out.c (hash_tree): Use cl_optimization_hash.
6904 * lto-streamer.h (cl_optimization_stream_out,
6905 cl_optimization_stream_in): Declare.
6906 * optc-save-gen.awk: Generate cl_optimization LTO streaming
6907 and hashing routines.
6908 * opth-gen.awk: Add prototype of cl_optimization_hash.
6909 * tree-streamer-in.c (unpack_ts_optimization): Remove.
6910 (streamer_unpack_tree_bitfields): Use cl_optimization_stream_in.
6911 * tree-streamer-out.c (pack_ts_optimization): Remove.
6912 (streamer_pack_tree_bitfields): Use cl_optimization_stream_out.
6914 2014-11-15 Mircea Namolaru <mircea.namolaru@inria.fr>
6916 * common.opt (flag_loop_unroll_and_jam): New flag.
6917 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE): Parameter for unroll and
6919 (PARAM_LOOP_UNROLL_JAM_DEPTH): Likewise.
6920 * graphite-poly.h (struct poly_bb:map_sepclass): New field
6921 * graphite-poly.c (new_poly_bb): Initialization for new field.
6922 (apply_poly_transforms): Support for unroll and jam flag.
6923 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass): Compute the
6925 (generate_luj_sepclass_opt): Build the separation class option.
6926 (generate_luj_options): Set unroll and jam options.
6927 (set_options): Support for unroll and jam options.
6928 (scop_to_isl_ast): Likewise
6929 * graphite-optimize-isl.c (getPrevectorMap_full): New function for
6930 computing the separating class map.
6931 (optimize_isl): Support for the separating class map.
6932 (apply_schedule_map_to_scop): Likewise.
6933 (getScheduleMap): Likewise.
6934 (getScheduleForBand): Likewise.
6935 (getScheduleForBandList): Likewise.
6936 * graphite.c (gate_graphite_transforms): Add unroll and jam flag.
6937 * toplev.c (process_options) Likewise.
6939 2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
6941 * tree-cfg.c (replace_loop_annotate_in_block): New function extracted
6943 (replace_loop_annotate): ...here. Call it on the header and on the
6944 latch block, if any. Restore proper behavior of final cleanup.
6946 2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
6948 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add log message
6949 for max-completely-peeled-insns limit.
6951 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
6953 * ipa-prop.h (ipa_known_type_data): Remove.
6954 (ipa_binfo_from_known_type_jfunc): Remove.
6956 2014-11-14 Andrew Pinski <apinski@cavium.com>
6958 * config/aarch64/aarch64-cores.def (thunderx): Change the scheduler
6960 * config/aarch64/aarch64.md: Include thunderx.md.
6961 (generic_sched): Set to no for thunderx.
6962 * config/aarch64/thunderx.md: New file.
6964 2014-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6966 * config/rs6000/predicates.md (easy_fp_constant): Delete redunant
6969 * config/rs6000/vector.md (VEC_R): Move secondary reload support
6970 insns to rs6000.md from vector.md.
6971 (reload_<VEC_R:mode>_<P:mptrsize>_store): Likewise.
6972 (reload_<VEC_R:mode>_<P:mptrsize>_load): Likewise.
6973 (vec_reload_and_plus_<mptrsize>): Likewise.
6975 * config/rs6000/rs6000.md (Fa): New mode attribute to give
6976 constraint for the Altivec registers for a type.
6977 (RELOAD): New mode iterator for all of the types that have
6978 secondary reload address support to load up a base register.
6979 (extendsfdf2_fpr): Use correct constraint.
6980 (copysign<mode>3_fcpsgn): For SFmode, use correct xscpsgndp
6982 (floatsi<mode>2_lfiwax): Add support for -mupper-regs-{sf,df}.
6983 Generate the non-VSX instruction if all registers were FPRs. Do
6984 not use the patterns in vsx.md for scalar operations.
6985 (floatsi<mode>2_lfiwax_mem): Likewise.
6986 (floatunssi<mode>2_lfiwzx): Likewise.
6987 (floatunssi<mode>2_lfiwzx_mem): Likewise.
6988 (fix_trunc<mode>di2_fctidz): Likewise.
6989 (fixuns_trunc<mode>di2_fctiduz): Likewise.
6990 (fctiwz_<mode>): Likewise.
6991 (fctiwuz_<mode>): Likewise.
6993 (floatdidf2_fpr): Likewise.
6994 (floatdidf2_mem): Likewise.
6995 (floatunsdidf2): Likewise.
6996 (floatunsdidf2_fcfidu): Likewise.
6997 (floatunsdidf2_mem): Likewise.
6998 (floatdisf2_fcfids): Likewise.
6999 (floatdisf2_mem): Likewise.
7000 (floatdisf2_internal1): Add explicit test for not FCFIDS to make
7001 it more obvious that the code is for pre-ISA 2.06 machines.
7002 (floatdisf2_internal2): Likewise.
7003 (floatunsdisf2_fcfidus): Add support for -mupper-regs-{sf,df}.
7004 Generate the non-VSX instruction if all registers were FPRs. Do
7005 not use the patterns in vsx.md for scalar operations.
7006 (floatunsdisf2_mem): Likewise.
7007 (reload_<RELOAD:mode>_<P:mptrsize>_store): Move the reload
7008 handlers here from vector.md, and expand the types we generate
7009 reload handlers for.
7010 (reload_<RELOAD:mode>_<P:mptrsize>_load): Likewise.
7011 (vec_reload_and_plus_<mptrsize>): Likewise.
7013 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Only provide the
7014 vector forms of the instructions. Move VSX scalar forms to
7015 rs6000.md, and add support for -mupper-regs-sf.
7016 (vsx_floatuns<VSi><mode>2): Likewise.
7017 (vsx_fix_trunc<mode><VSi>2): Likewise.
7018 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7019 (vsx_float_fix_<mode>2): Delete DF version, rename to
7020 vsx_float_fix_v2df2.
7021 (vsx_float_fix_v2df2): Likewise.
7023 2014-11-14 Martin Jambor <mjambor@suse.cz>
7025 * ipa-prop.h (jump_func_type): Removed value IPA_JF_KNOWN_TYPE.
7026 (ipa_pass_through_data): Removed field type_preserved.
7027 (ipa_ancestor_jf_data): removed fields type and type_preserved.
7028 (ipa_jump_func): Removed field known_type.
7029 (ipa_get_jf_known_type_offset): Removed.
7030 (ipa_get_jf_known_type_base_type): Likewise.
7031 (ipa_get_jf_known_type_component_type): Likewise.
7032 (ipa_get_jf_ancestor_type): Likewise.
7033 * ipa-cp.c (print_ipcp_constant_value): Removed BINFO handling.
7034 (ipa_get_jf_pass_through_result): Likewise.
7035 (ipa_get_jf_ancestor_result): Always build ptr_node_type accesses.
7036 (values_equal_for_ipcp_p): Removed BINFO handling.
7037 (ipa_get_indirect_edge_target_1): Updated comment.
7038 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Removed handling
7039 of IPA_JF_KNOWN_TYPE jump functions. Do not print removed fields.
7040 (ipa_set_jf_known_type): Removed.
7041 (ipa_set_jf_simple_pass_through): Do not set removed fields. Update
7043 (ipa_set_jf_arith_pass_through): Likewise.
7044 (ipa_set_ancestor_jf): Likewise.
7045 (ipa_binfo_from_known_type_jfunc): Removed.
7046 (prop_type_change_info): Removed fields known_current_type and
7047 multiple_types_encountered.
7048 (extr_type_from_vtbl_ptr_store): Removed.
7049 (check_stmt_for_type_change): Do not attempt to identify changed type.
7050 (detect_type_change_from_memory_writes): Do not set the removed fields,
7051 always set jfunc to unknown.
7052 (compute_complex_assign_jump_func): Do not detect dynamic type change.
7053 (compute_complex_ancestor_jump_func): Likewise.
7054 (compute_known_type_jump_func): Removed.
7055 (ipa_compute_jump_functions_for_edge): Do not detect dynamic type
7056 change. Do not comute known type jump functions.
7057 (combine_known_type_and_ancestor_jfs): Removed.
7058 (update_jump_functions_after_inlining): Removed handling of
7059 IPA_JF_KNOWN_TYPE jump functions. Do not set removed fields.
7060 (ipa_write_jump_function): Do not stream removed fields or known type
7062 (ipa_read_jump_function): Likewise.
7064 2014-11-14 Vladimir Makarov <vmakarov@redhat.com>
7066 * lra-int.h (lra_create_live_ranges): Add parameter.
7067 * lra-lives.c (temp_bitmap): Move higher.
7068 (initiate_live_solver): Move temp_bitmap initialization into
7069 lra_live_ranges_init.
7070 (finish_live_solver): Move temp_bitmap clearing into
7072 (process_bb_lives): Add parameter. Use it to control live info
7073 update and dead insn elimination. Pass it to mark_regno_live and
7075 (lra_create_live_ranges): Add parameter. Pass it to
7077 (lra_live_ranges_init, lra_live_ranges_finish): See changes in
7078 initiate_live_solver and finish_live_solver.
7079 * lra-remat.c (do_remat): Process insn non-operand hard regs too.
7080 Use temp_bitmap to update avail_cands.
7081 * lra.c (lra): Pass new parameter to lra_create_live_ranges. Move
7082 check with lra_need_for_spill_p after live range pass. Switch on
7083 rematerialization pass.
7085 2014-11-14 Martin Jambor <mjambor@suse.cz>
7087 * ipa-prop.h (ipa_get_jf_pass_through_type_preserved): use
7088 agg_preserved flag instead.
7089 (ipa_get_jf_ancestor_type_preserved): Likewise.
7090 (ipa_node_params): Rename known_vals to known_csts, update all users.
7091 New field known_contexts.
7092 (ipa_get_indirect_edge_target): Update prototype.
7093 (ipcp_poly_ctx_values_pool): Declare.
7094 (ipa_context_from_jfunc): Likewise.
7095 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Updated prototype.
7096 * cgraph.h (ipa_polymorphic_call_context): New method equal_to. New
7097 parameter newline of method dump.
7098 * ipa-cp.c (ctxlat): New field.
7099 (ipcp_values_pool): Renamed to ipcp_cst_values_pool, updated all users.
7100 (ipcp_poly_ctx_values_pool):New variable.
7101 (ipa_get_poly_ctx_lat): New function.
7102 (print_ipcp_constant_value): New overloaded function for contexts.
7103 (print_all_lattices): Also print contexts.
7104 (ipa_topo_info): New field contexts;
7105 (set_all_contains_variable): Also set the flag in the context lattice.
7106 (initialize_node_lattices): Likewise for flag bottom.
7107 (ipa_get_jf_ancestor_result): Removed BINFO handling.
7108 (ipa_value_from_jfunc): Likewise.
7109 (ipa_context_from_jfunc): New function.
7110 (values_equal_for_ipcp_p): New overloaded function for contexts.
7111 (allocate_and_init_ipcp_value): Construct the value.
7112 (allocate_and_init_ipcp_value): New overloaded function for contexts.
7113 (propagate_scalar_accross_jump_function): Removed handling of
7114 KNOWN_TYPE jump functions.
7115 (propagate_context_accross_jump_function): New function.
7116 (propagate_constants_accross_call): Also propagate contexts.
7117 (ipa_get_indirect_edge_target_1): Work on contexts rather than BINFOs.
7118 (ipa_get_indirect_edge_target): Likewise.
7119 (devirtualization_time_bonus): Likewise.
7120 (gather_context_independent_values): Create and populate known_contexts
7121 vector rather than known_binfos.
7122 (perform_estimation_of_a_value): Work on contexts rather than BINFOs.
7123 (estimate_local_effects): Likewise.
7124 (add_all_node_vals_to_toposort): Also add contexts to teir topological
7126 (ipcp_propagate_stage): Also propagate effects of contexts.
7127 (ipcp_discover_new_direct_edges): Receive and pass known_contexts to
7128 ipa_get_indirect_edge_target_1.
7129 (cgraph_edge_brings_value_p): New overloaded function for contexts.
7130 (create_specialized_node): Work on contexts rather than BINFOs.
7131 (find_more_contexts_for_caller_subset): New function.
7132 (known_contexts_useful_p): New function.
7133 (copy_useful_known_contexts): Likewise.
7134 (modify_known_vectors_with_val): Likewise.
7135 (ipcp_val_in_agg_replacements_p): Renamed to
7136 ipcp_val_agg_replacement_ok_p, return true for all offset indicating
7138 (ipcp_val_agg_replacement_ok_p): New overloaded function for contexts.
7139 (decide_about_value): Work on contexts rather than BINFOs.
7140 (decide_whether_version_node): Likewise.
7141 (ipcp_driver): Initialize the new alloc pool.
7142 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Prettify
7143 printing of edge contexts.
7144 (ipa_set_ancestor_jf): Replace assert with conditional setting of
7145 type_preserved to false.
7146 (update_jump_functions_after_inlining): Use access function instead of
7147 reading agg_preserved directly. Store combined context in the ancestor
7149 (try_make_edge_direct_virtual_call): Work on contexts rather than
7151 (update_indirect_edges_after_inlining): Get context from
7152 ipa_context_from_jfunc.
7153 (ipa_free_node_params_substructures): Free also known_contexts.
7154 (ipa_free_all_structures_after_ipa_cp): Free the new alloc pool.
7155 (ipa_free_all_structures_after_iinln): Likewise.
7156 * ipa-inline-analysis.c (evaluate_properties_for_edge): Work on
7157 contexts rather than BINFOs.
7158 (estimate_edge_devirt_benefit): Likewise.
7159 (estimate_edge_size_and_time): Likewise.
7160 (estimate_calls_size_and_time): Likewise.
7161 (estimate_node_size_and_time): Likewise.
7162 (estimate_ipcp_clone_size_and_time): Likewise.
7163 (do_estimate_edge_time): Likewise.
7164 (do_estimate_edge_size): Likewise.
7165 (do_estimate_edge_hints): Likewise.
7166 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::dump): New
7167 parameter newline, ouput newline only when it is set.
7168 (ipa_polymorphic_call_context::equal_to): New method.
7170 2014-11-14 Martin Jambor <mjambor@suse.cz>
7172 * ipa-cp.c (ipcp_value_source): Converted to a template class. All
7173 users converted to the same specialization as the using class/function
7174 or specialization on tree.
7175 (ipcp_value): Likewise.
7176 (ipcp_lattice): Likewise.
7177 (ipcp_agg_lattice): Now derived from tree specialization of
7179 (values_topo): Moved to new class value_topo_info.
7180 (ipa_lat_is_single_const): Turned into ipcp_lattice::is_single_const.
7181 Updated all callers.
7182 (print_lattice): Turned into ipcp_lattice::print. Updated all
7184 (value_topo_info): New class template.
7185 (ipa_topo_info): New field constants. New constructor.
7186 (build_toporder_info): Do not clear stack_top, only checkign assert
7188 (set_lattice_to_bottom): Turned into ipcp_lattice::set_to_bottom.
7189 Updated all callers.
7190 (set_lattice_contains_variable): Turned into
7191 ipcp_lattice::set_contains_variable. Updated all callers.
7192 (add_value_source): Turned into ipcp_value::add_source. Updated all
7194 (allocate_and_init_ipcp_value): New function.
7195 (add_value_to_lattice): Turned into ipcp_lattice::add_value. Last
7196 parameter got default a value. Updated all callers.
7197 (add_scalar_value_to_lattice): Removed, users converted to using
7198 ipcp_lattice::add_value with default value of the last parameter.
7199 (add_val_to_toposort): Turned to value_topo_info::add_val. Updated
7201 (propagate_effects): Made method of value_topo_info.
7202 (cgraph_edge_brings_value_p): Now a template function.
7203 (get_info_about_necessary_edges): Likewise.
7204 (gather_edges_for_value): Likewise.
7205 (perhaps_add_new_callers): Likewise.
7206 (decide_about_value): Likewise.
7207 * ipa-prop.h (ipcp_lattice): Remove fowrward declaration.
7209 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7211 * doc/install.texi (--with-diagnostics-color=): Document.
7213 * tree-ssa.dce.c (eliminate_unnecessary_stmts): Eliminate
7214 IFN_GOMP_SIMD_LANE without lhs as useless.
7216 * ipa-pure-const.c (struct funct_state_d): Add can_free field.
7217 (varying_state): Add true for can_free.
7218 (check_call): For builtin or internal !nonfreeing_call_p set
7220 (check_stmt): For asm volatile and asm with "memory" set
7222 (analyze_function): Clear local->can_free initially, continue
7223 calling check_stmt until all flags are computed, dump can_free
7225 (pure_const_write_summary): Write can_free flag.
7226 (pure_const_read_summary): Read it back.
7227 (propagate_pure_const): Propagate also can_free flag, set
7228 w->nonfreeing_fn if it is false after propagation.
7229 * cgraph.h (cgraph_node): Add nonfreeing_fn member.
7230 * gimple.c: Include ipa-ref.h, lto-streamer.h and cgraph.h.
7231 (nonfreeing_call_p): Return cgraph nonfreeing_fn flag if set.
7232 Also return true for IFN_ABNORMAL_DISPATCHER.
7233 * cgraph.c (cgraph_node::dump): Dump nonfreeing_fn flag.
7234 * lto-cgraph.c (lto_output_node): Write nonfreeing_fn flag.
7235 (input_overwrite_node): Read it back.
7237 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7238 Marek Polacek <polacek@redhat.com>
7240 * sanopt.c: Include tree-ssa-operands.h.
7241 (struct sanopt_info): Add has_freeing_call_p,
7242 has_freeing_call_computed_p, imm_dom_path_with_freeing_call_p,
7243 imm_dom_path_with_freeing_call_computed_p, freeing_call_events,
7244 being_visited_p fields.
7245 (struct sanopt_ctx): Add asan_check_map field.
7246 (imm_dom_path_with_freeing_call, maybe_optimize_ubsan_null_ifn,
7247 maybe_optimize_asan_check_ifn): New functions.
7248 (sanopt_optimize_walker): Use them, optimize even ASAN_CHECK
7250 (pass_sanopt::execute): Call sanopt_optimize even for
7252 * gimple.c (nonfreeing_call_p): Return true for non-ECF_LEAF
7255 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
7257 * tree-vect-loop.c (vect_create_epilog_for_reduction): Move code for
7258 'if (extract_scalar_result)' to the only place that it is true.
7260 2014-11-14 H.J. Lu <hongjiu.lu@intel.com>
7262 * config.gcc (default_gnu_indirect_function): Set to yes
7263 for i[34567]86-*-linux* and x86_64-*-linux* if not targeting
7266 2014-11-14 Felix Yang <felix.yang@huawei.com>
7267 Jiji Jiang <jiangjiji@huawei.com>
7269 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): Use
7270 VALL mode iterator instead of VALLDI.
7272 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
7274 * optc-save-gen.awk: Output cl_target_option_eq,
7275 cl_target_option_hash, cl_target_option_stream_out,
7276 cl_target_option_stream_in functions.
7277 * opth-gen.awk: Output prototypes for
7278 cl_target_option_eq and cl_target_option_hash.
7279 * lto-streamer.h (cl_target_option_stream_out,
7280 cl_target_option_stream_in): Declare.
7281 * tree.c (cl_option_hash_hash): Use cl_target_option_hash.
7282 (cl_option_hash_eq): Use cl_target_option_eq.
7283 * tree-streamer-in.c (unpack_value_fields): Stream in
7285 * lto-streamer-out.c (DFS::DFS_write_tree_body): Follow
7286 DECL_FUNCTION_SPECIFIC_TARGET.
7287 (hash_tree): Hash TREE_TARGET_OPTION; visit
7288 DECL_FUNCTION_SPECIFIC_TARGET.
7289 * tree-streamer-out.c (streamer_pack_tree_bitfields): Skip
7291 (streamer_write_tree_body): Output TS_TARGET_OPTION.
7293 2014-11-14 Richard Biener <rguenther@suse.de>
7295 * gimple-fold.h (gimple_fold_stmt_to_constant_1): Add 2nd
7296 valueization hook defaulted to no_follow_ssa_edges.
7297 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Pass
7298 2nd valueization hook to gimple_simplify.
7299 * tree-ssa-ccp.c (valueize_op_1): New function to be
7300 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
7302 * tree-vrp.c (vrp_valueize_1): New function to be
7303 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
7304 (vrp_visit_assignment_or_call): Adjust.
7306 2014-11-14 Marek Polacek <polacek@redhat.com>
7308 * fold-const.c (fold_negate_expr): Don't fold INTEGER_CST if
7309 that overflows when SANITIZE_SI_OVERFLOW is on. Guard -(-A)
7310 folding with TYPE_OVERFLOW_SANITIZED.
7312 2014-11-14 Marek Polacek <polacek@redhat.com>
7315 * asan.c (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST,
7316 ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
7317 * builtin-attrs.def (ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST):
7319 * builtins.c (fold_builtin_0): Don't include ubsan.h. Don't
7320 instrument BUILT_IN_UNREACHABLE here.
7321 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Make
7323 * sanopt.c (pass_sanopt::execute): Instrument BUILT_IN_UNREACHABLE.
7324 * tree-ssa-ccp.c (optimize_unreachable): Bail out if
7325 SANITIZE_UNREACHABLE.
7326 * ubsan.c (ubsan_instrument_unreachable): Rewrite for GIMPLE.
7327 * ubsan.h (ubsan_instrument_unreachable): Adjust declaration.
7329 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
7331 * config/rs6000/vector.md (vec_shl_<mode>): Remove.
7332 (vec_shr_<mode>): Reverse shift if BYTES_BIG_ENDIAN.
7334 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
7336 * optabs.c (shift_amt_for_vec_perm_mask): Remove code conditional on
7338 * tree-vect-loop.c (calc_vec_perm_mask_for_shift,
7339 vect_create_epilog_for_reduction): Likewise.
7340 * doc/md.texi (vec_shr_m): Clarify direction of shifting.
7342 2014-11-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7345 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Split out
7346 numerical immediate handling to...
7347 (aarch64_internal_mov_immediate): ...this. New.
7348 (aarch64_rtx_costs): Use aarch64_internal_mov_immediate.
7349 (aarch64_mov_operand_p): Relax predicate.
7350 * config/aarch64/aarch64.md (mov<mode>:GPI): Do not expand CONST_INTs.
7351 (*movsi_aarch64): Turn into define_insn_and_split and new alternative
7353 (*movdi_aarch64): Likewise.
7355 2014-11-14 Richard Biener <rguenther@suse.de>
7357 * match.pd: Implement more binary patterns exercised by
7359 * fold-const.c (sing_bit_p): Export.
7360 (exact_inverse): Likewise.
7361 (fold_binary_loc): Remove patterns here.
7362 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
7363 * fold-const.h (sing_bit_p): Declare.
7364 (exact_inverse): Likewise.
7366 2014-11-14 Marek Polacek <polacek@redhat.com>
7368 * tree.c (build_common_builtin_nodes): Remove doubled ECF_LEAF.
7370 2014-11-14 Richard Biener <rguenther@suse.de>
7372 * genmatch.c (add_operator): Allow CONSTRUCTOR.
7373 (dt_node::gen_kids): Handle CONSTRUCTOR not as GENERIC.
7374 (parser::parse_op): Allow to iterate over predicates.
7376 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7378 * configure.ac (--with-diagnostics-color): New configure
7379 option, default to --with-diagnostics-color=auto.
7380 * toplev.c (process_options): Use DIAGNOSTICS_COLOR_DEFAULT
7381 to determine -fdiagnostics-color= option default.
7382 * doc/invoke.texi (-fdiagnostics-color=): Document new
7384 * configure: Regenerated.
7385 * config.in: Regenerated.
7387 2014-11-13 Teresa Johnson <tejohnson@google.com>
7389 PR tree-optimization/63841
7390 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
7392 2014-11-14 Bin Cheng <bin.cheng@arm.com>
7394 * timevar.def (TV_SCHED_FUSION): New time var.
7395 * passes.def (pass_sched_fusion): New pass.
7396 * config/arm/arm.c (TARGET_SCHED_FUSION_PRIORITY): New.
7397 (extract_base_offset_in_addr, fusion_load_store): New.
7398 (arm_sched_fusion_priority): New.
7399 (arm_option_override): Disable scheduling fusion by default
7400 on non-armv7 processors or ldrd/strd isn't preferred.
7401 * sched-int.h (struct _haifa_insn_data): New field.
7402 (INSN_FUSION_PRIORITY, FUSION_MAX_PRIORITY, sched_fusion): New.
7403 * sched-rgn.c (rest_of_handle_sched_fusion): New.
7404 (pass_data_sched_fusion, pass_sched_fusion): New.
7405 (make_pass_sched_fusion): New.
7406 * haifa-sched.c (sched_fusion): New.
7407 (insn_cost): Handle sched_fusion.
7408 (priority): Handle sched_fusion by calling target hook.
7409 (enum rfs_decision): New enum value.
7410 (rfs_str): New element for RFS_FUSION.
7411 (rank_for_schedule): Support sched_fusion.
7412 (schedule_insn, max_issue, prune_ready_list): Handle sched_fusion.
7413 (schedule_block, fix_tick_ready): Handle sched_fusion.
7414 * common.opt (flag_schedule_fusion): New.
7415 * tree-pass.h (make_pass_sched_fusion): New.
7416 * target.def (fusion_priority): New.
7417 * doc/tm.texi.in (TARGET_SCHED_FUSION_PRIORITY): New.
7418 * doc/tm.texi: Regenerated.
7419 * doc/invoke.texi (-fschedule-fusion): New.
7421 2014-11-13 Rong Xu <xur@google.com>
7424 * cfgrtl.c (emit_barrier_after_bb): Append the barrier to the
7425 footer, instead of unconditionally overwritten.
7427 2014-11-14 Martin Jambor <mjambor@suse.cz>
7429 * cgraph.h (clear_outer_type): Make public. Fix comment.
7430 * ipa-devirt.c (possible_polymorphic_call_targets): Use
7431 clear_outer_type when resetting the context.
7433 2014-11-13 Dominique Dhumieres <dominiq@lps.ens.fr>
7436 * gcc.c (handle_foffload_option): Replace strchrnul with strchr.
7437 * lto-wrapper.c (parse_env_var, append_offload_options): Likewise.
7439 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
7441 * fold-const.c (const_binop): Remove code handling VEC_RSHIFT_EXPR.
7442 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
7443 * tree-inline.c (estimate_operator_cost): Likewise.
7444 * tree-pretty-print.c (dump_generic_node, op_code_prio, op_symbol_code):
7447 * tree-vect-generic.c (expand_vector_operations_1): Remove assertion
7448 against VEC_RSHIFT_EXPR.
7450 * optabs.h (expand_vec_shift_expr): Remove.
7451 * optabs.c (optab_for_tree_code): Remove case VEC_RSHIFT_EXPR.
7452 (expand_vec_shift_expr): Remove.
7453 * tree.def (VEC_RSHIFT_EXPR): Remove
7455 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
7457 * optabs.c (can_vec_perm_p): Update comment, does not consider vec_shr.
7458 (shift_amt_for_vec_perm_mask): New.
7459 (expand_vec_perm_1): Use vec_shr_optab if second vector is const0_rtx
7460 and mask appropriate.
7462 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): New.
7463 (have_whole_vector_shift): New.
7464 (vect_model_reduction_cost): Call have_whole_vector_shift instead of
7465 looking for vec_shr_optab.
7466 (vect_create_epilog_for_reduction): Likewise; also rename local variable
7467 have_whole_vector_shift to reduce_with_shift; output VEC_PERM_EXPRs
7468 instead of VEC_RSHIFT_EXPRs.
7470 * tree-vect-stmts.c (vect_gen_perm_mask_checked): Extend comment.
7472 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
7474 * tree-vectorizer.h (vect_gen_perm_mask): Remove.
7475 (vect_gen_perm_mask_checked, vect_gen_perm_mask_any): New.
7477 * tree_vec_data_refs.c (vect_permute_load_chain,
7478 vec_permute_store_chain, vec_shift_permute_load_chain): Replace
7479 vect_gen_perm_mask & assert with vect_gen_perm_mask_checked.
7481 * tree-vect-stmts.c (vectorizable_mask_load_store, vectorizable_load):
7483 (vect_gen_perm_mask_checked): New.
7484 (vect_gen_perm_mask): Remove can_vec_perm_p check, rename to...
7485 (vect_gen_perm_mask_any): ...this.
7486 (perm_mask_for_reverse): Call can_vec_perm_p and
7487 vect_gen_perm_mask_checked.
7489 2014-11-13 Felix Yang <felix.yang@huawei.com>
7491 * ipa-utils.h: Fix typo in comments.
7492 * ipa-profile.c: Likewise.
7493 * tree-ssa-loop-ivcanon.c: Fix typo in comments and debugging dumps.
7495 2014-11-13 Teresa Johnson <tejohnson@google.com>
7497 PR tree-optimization/63841
7498 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
7500 2014-11-13 Teresa Johnson <tejohnson@google.com>
7502 PR tree-optimization/63841
7503 * tree.c (initializer_zerop): A clobber does not zero initialize.
7505 2014-11-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7507 * optabs.c (prepare_operand): Gracefully fail if the mode of X
7508 does not match the operand mode expected by the insn pattern.
7510 2014-11-13 Richard Biener <rguenther@suse.de>
7512 * match.pd: Add tcc_comparison, inverted_tcc_comparison
7513 and inverted_tcc_comparison_with_nans operator lists.
7514 Use tcc_comparison in the truth_valued_p predicate definition.
7515 Restrict logical_inverted_value with bit_xor to integral types.
7516 Build a boolean true for simplifying x |^ !x because of
7517 vector types. Implement patterns from forward_propagate_comparison
7518 * tree-ssa-forwprop.c (forward_propagate_comparison): Remove.
7519 (get_prop_dest_stmt): Likewise.
7520 (pass_forwprop::execute): Do not call it.
7521 * fold-const.c (fold_unary_loc): Remove the pattern here.
7523 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7524 Andrey Turetskiy <andrey.turetskiy@intel.com>
7526 * config.gcc (*-intelmic-* | *-intelmicemul-*): Add i386/t-intelmic to
7528 (i[34567]86-*-* | x86_64-*-*): Build mkoffload$(exeext) with the
7529 accelerator compiler.
7530 * config/i386/intelmic-mkoffload.c: New file.
7531 * config/i386/t-intelmic: Ditto.
7533 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7534 Andrey Turetskiy <andrey.turetskiy@intel.com>
7535 Ilya Verbin <ilya.verbin@intel.com>
7537 * common.opt (foffload, foffload-abi): New options.
7538 * config/i386/i386.c (ix86_offload_options): New static function.
7539 (TARGET_OFFLOAD_OPTIONS): Define.
7540 * coretypes.h (enum offload_abi): New enum.
7541 * doc/tm.texi: Regenerate.
7542 * doc/tm.texi.in (TARGET_OFFLOAD_OPTIONS): Document.
7543 * gcc.c (offload_targets): New static variable.
7544 (handle_foffload_option): New static function.
7545 (driver_handle_option): Handle OPT_foffload_.
7546 (driver::maybe_putenv_OFFLOAD_TARGETS): Set OFFLOAD_TARGET_NAMES
7547 according to offload_targets.
7548 * hooks.c (hook_charptr_void_null): New hook.
7549 * hooks.h (hook_charptr_void_null): Declare.
7550 * lto-opts.c: Include lto-section-names.h.
7551 (lto_write_options): Append options from target offload_options hook and
7552 store them to offload_lto section. Do not store target-specific,
7553 driver and diagnostic options in offload_lto section.
7554 * lto-wrapper.c (merge_and_complain): Handle OPT_foffload_ and
7556 (append_compiler_options, append_linker_options)
7557 (append_offload_options): New static functions.
7558 (compile_offload_image): Add new arguments with options.
7559 Call append_compiler_options and append_offload_options.
7560 (compile_images_for_offload_targets): Add new arguments with options.
7561 (find_and_merge_options): New static function.
7562 (run_gcc): Outline options handling into the new functions:
7563 find_and_merge_options, append_compiler_options, append_linker_options.
7564 * opts.c (common_handle_option): Don't handle OPT_foffload_.
7565 Forbid OPT_foffload_abi_ for non-offload compiler.
7566 * target.def (offload_options): New target hook.
7568 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7569 Bernd Schmidt <bernds@codesourcery.com>
7570 Andrey Turetskiy <andrey.turetskiy@intel.com>
7571 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7573 * gcc.c (spec_host_machine, accel_dir_suffix): New variables.
7574 (process_command): Tweak path construction for the possibility
7575 of being configured as an offload compiler.
7576 (driver::maybe_putenv_OFFLOAD_TARGETS): New function.
7577 (driver::main): Call maybe_putenv_OFFLOAD_TARGETS.
7578 (driver::set_up_specs): Tweak path construction for the possibility of
7579 being configured as an offload compiler.
7580 * lto-wrapper.c (OFFLOAD_TARGET_NAMES_ENV): Define.
7581 (offload_names, offloadbegin, offloadend): New static variables.
7582 (free_array_of_ptrs, parse_env_var, access_check, compile_offload_image)
7583 (compile_images_for_offload_targets, copy_file, find_offloadbeginend):
7584 New static functions.
7585 (run_gcc): Determine whether offload sections are present. If so, run
7586 compile_images_for_offload_targets and return the names of new generated
7587 objects to linker. If there are offload sections, but no LTO sections,
7588 then return the copies of input objects without link-time recompilation.
7590 2014-11-13 Richard Biener <rguenther@suse.de>
7592 * genmatch.c (dt_node::gen_kids): Fix placement of break statement.
7594 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7595 Bernd Schmidt <bernds@codesourcery.com>
7596 Andrey Turetskiy <andrey.turetskiy@intel.com>
7597 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7599 * Makefile.in (GTFILES): Add omp-low.h to list of GC files.
7600 * cgraphunit.c: Include omp-low.h.
7601 * doc/tm.texi: Regenerate.
7602 * doc/tm.texi.in (TARGET_RECORD_OFFLOAD_SYMBOL): Document.
7603 * gengtype.c (open_base_files): Add omp-low.h to ifiles.
7604 * lto-cgraph.c (output_offload_tables): New function.
7605 (input_offload_tables): Likewise.
7606 * lto-section-in.c (lto_section_name): Add "offload_table".
7607 * lto-section-names.h (OFFLOAD_VAR_TABLE_SECTION_NAME): Define.
7608 (OFFLOAD_FUNC_TABLE_SECTION_NAME): Likewise.
7609 * lto-streamer-out.c (lto_output): Call output_offload_tables.
7610 * lto-streamer.h (lto_section_type): Add LTO_section_offload_table.
7611 (output_offload_tables, input_offload_tables): Declare.
7612 * omp-low.c: Include common/common-target.h and lto-section-names.h.
7613 (offload_funcs, offload_vars): New global <tree, va_gc> vectors.
7614 (expand_omp_target): Add child_fn into offload_funcs vector.
7615 (add_decls_addresses_to_decl_constructor): New function.
7616 (omp_finish_file): Likewise.
7617 * omp-low.h (omp_finish_file, offload_funcs, offload_vars): Declare.
7618 * target.def (record_offload_symbol): New DEFHOOK.
7619 * toplev.c: Include omp-low.h.
7620 (compile_file): Call omp_finish_file.
7621 * varpool.c: Include omp-low.h.
7622 (varpool_node::get_create): Add decl into offload_vars vector.
7624 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7625 Ilya Tocar <ilya.tocar@intel.com>
7626 Andrey Turetskiy <andrey.turetskiy@intel.com>
7627 Bernd Schmidt <bernds@codesourcery.com>
7629 * cgraph.c: Include context.h.
7630 (cgraph_node::create): Set node->offloadable and g->have_offload if
7631 decl have "omp declare target" attribute.
7632 * cgraph.h (symtab_node): Add need_lto_streaming and offloadable flags.
7633 * cgraphunit.c: Include lto-section-names.h.
7634 (ipa_passes): Call ipa_write_summaries if there is something to write to
7635 OFFLOAD_SECTION_NAME_PREFIX sections.
7636 (symbol_table::compile): Set flag_generate_lto if there is something to
7638 Replace flag_lto with flag_generate_lto before lto_streamer_hooks_init.
7639 * context.c (gcc::context::context): Initialize have_offload with false.
7640 * context.h (class context): Add have_offload flag.
7641 * ipa-inline-analysis.c (inline_generate_summary): Do not exit under
7643 (inline_free_summary): Always remove hooks.
7644 * lto-cgraph.c (referenced_from_other_partition_p): Ignore references
7645 from non-offloadable nodes while streaming a node into offload section.
7646 (reachable_from_other_partition_p): Likewise.
7647 (select_what_to_stream): New function.
7648 (compute_ltrans_boundary): Do not call
7649 lto_set_symtab_encoder_in_partition if the node should not be streamed.
7650 * lto-section-names.h (OFFLOAD_SECTION_NAME_PREFIX): Define.
7651 (section_name_prefix): Declare.
7652 * lto-streamer.c (section_name_prefix): New variable.
7653 (lto_get_section_name): Use section_name_prefix instead of
7654 LTO_SECTION_NAME_PREFIX.
7655 * lto-streamer.h (select_what_to_stream): Declare.
7656 * omp-low.c: Include context.h.
7657 (is_targetreg_ctx): New function.
7658 (scan_sharing_clauses): Use offloadable flag, instead of an attribute.
7659 (create_omp_child_function, check_omp_nesting_restrictions): Use new
7660 is_targetreg_ctx function. Replace usage of "omp declare target"
7661 attribute with a cgraph_node flag offloadable.
7662 (expand_omp_target): Set mark_force_output for offloadable functions.
7663 (lower_omp_critical): Set offloadable flag for omp critical symbol.
7664 * passes.c (ipa_write_summaries): New argument offload_lto_mode. Call
7665 select_what_to_stream. Do not call lto_set_symtab_encoder_in_partition
7666 if the node should not be streamed out.
7667 * tree-pass.h (ipa_write_summaries): New bool argument.
7668 * varpool.c: Include context.h.
7669 (varpool_node::get_create): Set node->offloadable and g->have_offload if
7670 decl have "omp declare target" attribute.
7672 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7673 Thomas Schwinge <thomas@codesourcery.com>
7674 Ilya Verbin <ilya.verbin@intel.com>
7675 Andrey Turetskiy <andrey.turetskiy@intel.com>
7677 * Makefile.in (real_target_noncanonical, accel_dir_suffix)
7678 (enable_as_accelerator): New variables substituted by configure.
7679 (libsubdir, libexecsubdir, unlibsubdir): Tweak for the possibility of
7680 being configured as an offload compiler.
7681 (DRIVER_DEFINES): Pass new defines DEFAULT_REAL_TARGET_MACHINE and
7683 (install-cpp, install-common, install_driver, install-gcc-ar): Do not
7684 install for the offload compiler.
7685 * config.in: Regenerate.
7686 * configure: Regenerate.
7687 * configure.ac (real_target_noncanonical, accel_dir_suffix)
7688 (enable_as_accelerator): Compute new variables.
7689 (ACCEL_COMPILER): Define if the compiler is built as the accel compiler.
7690 (OFFLOAD_TARGETS): List of target names suitable for offloading.
7691 (ENABLE_OFFLOADING): Define if list of offload targets is not empty.
7692 * doc/install.texi (Options specification): Document
7693 --enable-as-accelerator-for and --enable-offload-targets.
7695 2014-11-13 H.J. Lu <hongjiu.lu@intel.com>
7697 PR tree-optimization/63828
7698 * ipa-polymorphic-call.c (possible_placement_new): Check
7699 POINTER_SIZE, instead of BITS_PER_WORD, for pointer size.
7701 2014-11-13 Eric Botcazou <ebotcazou@adacore.com>
7703 * doc/tm.texi.in (SELECT_CC_MODE): Update example.
7704 (REVERSIBLE_CC_MODE): Fix example.
7705 (REVERSE_CONDITION): Fix typo.
7706 * doc/tm.texi: Regenerate.
7708 2014-11-13 Tom de Vries <tom@codesourcery.com>
7710 * omp-low.c (pass_data_expand_omp): Set properties_provided to
7712 (pass_expand_omp::gate): Remove function. Move gate expression to ...
7713 (pass_expand_omp::execute): ... here, as new variable gate. Add early
7714 exit if gate is false.
7715 (pass_data pass_data_expand_omp_ssa): New pass_data.
7716 (class pass_expand_omp_ssa): New pass.
7717 (make_pass_expand_omp_ssa): New function.
7718 * passes.def (pass_parallelize_loops): Use PUSH_INSERT_PASSES_WITHIN
7719 instead of NEXT_PASS.
7720 (pass_expand_omp_ssa): Add after pass_parallelize_loops.
7721 * tree-parloops.c (gen_parallel_loop): Remove call to omp_expand_local.
7722 (pass_parallelize_loops::execute): Don't do cleanups TODO_cleanup_cfg
7723 and TODO_rebuild_alias yet. Add TODO_update_ssa. Set
7724 cfun->omp_expand_needed.
7725 * tree-pass.h: Add define PROP_gimple_eomp.
7726 (make_pass_expand_omp_ssa): Declare.
7728 2014-11-13 Marek Polacek <polacek@redhat.com>
7730 * tree.h (TYPE_OVERFLOW_SANITIZED): Define.
7731 * fold-const.c (fold_binary_loc): Use it.
7732 * match.pd: Likewise.
7734 2014-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
7736 * lra-lives.c (struct bb_data): Rename to ...
7737 (struct bb_data_pseudos): ... this.
7738 (initiate_live_solver): Update struct name.
7740 2014-11-13 Richard Biener <rguenther@suse.de>
7742 * match.pd: Implement conditional expression patterns.
7743 * tree-ssa-forwprop.c (forward_propagate_into_cond): Remove
7745 (combine_cond_exprs): Remove.
7746 (pass_forwprop::execute): Do not call combine_cond_exprs.
7747 * fold-const.c (fold_ternary_loc): Remove patterns here.
7748 (pedantic_omit_one_operand_loc): Remove.
7750 2014-12-13 Richard Biener <rguenther@suse.de>
7753 * match.pd: Implement bswap patterns for transforms checked by
7754 gcc.dg/builtin-bswap-8.c.
7756 2014-11-13 Vladimir Makarov <vmakarov@redhat.com>
7758 * lra.c (lra): Switch off rematerialization pass.
7760 2014-11-12 Vladimir Makarov <vmakarov@redhat.com>
7762 * common.opt (flra-remat): New.
7763 * opts.c (default_options_table): Add entry for flra_remat.
7764 * timevar_def (TV_LRA_REMAT): New.
7765 * doc/invoke.texi (-flra-remat): Add description of the new
7767 * doc/passes.texi (-flra-remat): Remove lra-equivs.c and
7768 lra-saves.c. Add lra-remat.c.
7769 * Makefile.in (OBJS): Add lra-remat.o.
7770 * lra-remat.c: New file.
7771 * lra.c: Add info about the rematerialization pass in the top
7773 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info):
7774 Process unallocatable regs too.
7775 (lra_constraint_new_insn_uid_start): Remove.
7776 (lra): Add code for calling rematerialization sub-pass.
7777 * lra-int.h (lra_constraint_new_insn_uid_start): Remove.
7778 (lra_constrain_insn, lra_remat): New prototypes.
7779 (lra_eliminate_regs_1): Add parameter.
7780 * lra-lives.c (make_hard_regno_born, make_hard_regno_dead):
7781 Process unallocatable hard regs too.
7782 (process_bb_lives): Ditto.
7783 * lra-spills.c (remove_pseudos): Add argument to
7784 lra_eliminate_regs_1 call.
7785 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter. Use it
7786 for sp offset calculation.
7787 (lra_eliminate_regs): Add argument for lra_eliminate_regs_1 call.
7788 (eliminate_regs_in_insn): Add parameter. Use it for sp offset
7790 (process_insn_for_elimination): Add argument for
7791 eliminate_regs_in_insn call.
7792 * lra-constraints.c (get_equiv_with_elimination): Add argument
7793 for lra_eliminate_regs_1 call.
7794 (process_addr_reg): Add parameter. Use it.
7795 (process_address_1): Ditto. Add argument for process_addr_reg
7797 (process_address): Ditto.
7798 (curr_insn_transform): Add parameter. Use it. Add argument for
7799 process_address calls.
7800 (lra_constrain_insn): New function.
7801 (lra_constraints): Add argument for curr_insn_transform call.
7803 2014-11-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
7805 * opts-global.c (postpone_unknown_option_warning): Fix spelling.
7806 (print_ignored_options): Fix quoting.
7807 * opts.c (common_handle_option): Likewise.
7808 (set_debug_level): Likewise.
7809 * toplev.c (process_options): Likewise.
7811 2014-11-12 Jakub Jelinek <jakub@redhat.com>
7814 * ipa-pure-const.c (propagate_nothrow): Walk w->indirect_calls
7815 chain instead of node->indirect_calls. Put !can_throw into
7816 conditions of all the loops.
7818 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
7820 * config/i386/i386.c (x86_output_mi_thunk): Use gen_rtx_REG to
7821 set pic_offset_table_rtx.
7823 2014-11-12 Matthew Fortune <matthew.fortune@imgtec.com>
7825 * common/config/mips/mips-common.c (mips_handle_option): Ensure
7826 that -mfp32, -mfp64 disable -mfpxx and -mfpxx disables -mfp64.
7827 * config.gcc (--with-fp-32): New option.
7828 (--with-odd-spreg-32): Likewise.
7829 * config.in (HAVE_AS_DOT_MODULE): New config define.
7830 * config/mips/mips-protos.h
7831 (mips_secondary_memory_needed): New prototype.
7832 (mips_hard_regno_caller_save_mode): Likewise.
7833 * config/mips/mips.c (mips_get_reg_raw_mode): New static prototype.
7834 (mips_get_arg_info): Assert that V2SFmode is only handled specially
7835 with TARGET_PAIRED_SINGLE_FLOAT.
7836 (mips_return_mode_in_fpr_p): Likewise.
7837 (mips16_call_stub_mode_suffix): Likewise.
7838 (mips_get_reg_raw_mode): New static function.
7839 (mips_return_fpr_pair): O32 return values span two registers.
7840 (mips16_build_call_stub): Likewise.
7841 (mips_function_value_regno_p): Support both FP return registers.
7842 (mips_output_64bit_xfer): Use mthc1 whenever TARGET_HAS_MXHC1. Add
7843 specific cases for TARGET_FPXX to move via memory.
7844 (mips_dwarf_register_span): For TARGET_FPXX pretend that modes larger
7845 than UNITS_PER_FPREG 'span' one register.
7846 (mips_dwarf_frame_reg_mode): New static function.
7847 (mips_file_start): Switch to using .module instead of .gnu_attribute.
7848 No longer support FP ABI 4 (-mips32r2 -mfp64), replace with FP ABI 6.
7849 Add FP ABI 5 (-mfpxx) and FP ABI 7 (-mfp64 -mno-odd-spreg).
7850 (mips_save_reg, mips_restore_reg): Always represent DFmode frame
7851 slots with two CFI directives even for O32 FP64.
7852 (mips_for_each_saved_gpr_and_fpr): Account for fixed_regs when
7853 saving/restoring callee-saved registers.
7854 (mips_hard_regno_mode_ok_p): Implement O32 FP64A extension.
7855 (mips_secondary_memory_needed): New function.
7856 (mips_option_override): ABI check for TARGET_FLOATXX. Disable
7857 odd-numbered single-precision registers when using TARGET_FLOATXX.
7858 Implement -modd-spreg and defaults.
7859 (mips_conditional_register_usage): Redefine O32 FP64 to match O32 FP32
7860 callee-saved behaviour.
7861 (mips_hard_regno_caller_save_mode): Implement.
7862 (TARGET_GET_RAW_RESULT_MODE): Define target hook.
7863 (TARGET_GET_RAW_ARG_MODE): Define target hook.
7864 (TARGET_DWARF_FRAME_REG_MODE): Define target hook.
7865 * config/mips/mips.h (TARGET_FLOAT32): New macro.
7866 (TARGET_O32_FP64A_ABI): Likewise.
7867 (TARGET_CPU_CPP_BUILTINS): TARGET_FPXX is __mips_fpr==0. Add
7868 _MIPS_SPFPSET builtin define.
7869 (MIPS_FPXX_OPTION_SPEC): New macro.
7870 (OPTION_DEFAULT_SPECS): Pass through --with-fp-32=* to -mfp and
7871 --with-odd-spreg-32=* to -m[no-]odd-spreg.
7872 (ISA_HAS_ODD_SPREG): New macro.
7873 (ISA_HAS_MXHC1): True for anything other than -mfp32.
7874 (ASM_SPEC): Pass through mfpxx, mfp64, -mno-odd-spreg and -modd-spreg.
7875 (MIN_FPRS_PER_FMT): Redefine in terms of TARGET_ODD_SPREG.
7876 (HARD_REGNO_CALLER_SAVE_MODE): Define. Implement O32 FPXX extension
7877 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
7878 (SECONDARY_MEMORY_NEEDED): Likewise.
7879 (FUNCTION_ARG_REGNO_P): Update for O32 FPXX and FP64 extensions.
7880 * config/mips/mips.md (define_attr enabled): Implement O32 FPXX and
7881 FP64A ABI extensions.
7882 (move_doubleword_fpr<mode>): Use ISA_HAS_MXHC1 instead of
7884 * config/mips/mips.opt (mfpxx): New target option.
7885 (modd-spreg): Likewise.
7886 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Infer FP ABI from arch.
7887 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise and remove
7889 * config/mips/t-mti-elf: Remove fp64 multilib.
7890 * config/mips/t-mti-linux: Likewise.
7891 * configure.ac: Detect .module support.
7892 * configure: Regenerate.
7893 * doc/invoke.texi: Document -mfpxx, -modd-spreg, -mno-odd-spreg option.
7894 * doc/install.texi (--with-fp-32, --with-odd-spreg-32): Document new
7897 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
7900 * config/i386/i386.c (ix86_init_large_pic_reg): New. Extracted
7902 (ix86_init_pic_reg): Here. Use ix86_init_large_pic_reg.
7903 (x86_output_mi_thunk): Set PIC register to %r11. Call
7904 ix86_init_large_pic_reg to initialize PIC register.
7906 2014-11-12 Kai Tietz <ktietz@redhat.com>
7908 * sdbout.c (sdbout_symbol): Eliminate register only
7909 if decl isn't a global variable.
7911 2014-11-12 Alan Lawrence <alan.lawrence@arm.com>
7913 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Display indices.
7915 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add
7916 qualifier_lane_index.
7917 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): Rename to...
7918 (aarch64_types_quadop_lane_qualifiers, TYPES_QUADOP_LANE): ...these.
7919 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): New.
7921 (aarch64_types_getlane_qualifiers): Rename to...
7922 (aarch64_types_binop_imm_qualifiers): ...this.
7923 (TYPES_SHIFTIMM): Follow renaming.
7924 (TYPES_GETLANE): Rename to...
7925 (TYPE_GETREG): ...this.
7927 (aarch64_types_setlane_qualifiers): Rename to...
7928 (aarch64_type_ternop_imm_qualifiers): ...this.
7929 (TYPES_SHIFTINSERT, TYPES_SHIFTACC): Follow renaming.
7930 (TYPES_SETLANE): Follow renaming above, and rename self to...
7931 (TYPE_SETREG): ...this.
7933 (enum builtin_simd_arg): Add SIMD_ARG_LANE_INDEX.
7934 (aarch64_simd_expand_args): Add range check and endianness-flip.
7936 (aarch64_simd_expand_builtin): Add mapping for qualifier_lane_index.
7938 * config/aarch64/aarch64-simd.md
7939 (aarch64_sq<r>dmulh_lane<mode>_internal *2): Rename to...
7940 (aarch64_sq<r>dmulh_lane<mode>): ...this, and remove lane bounds check.
7941 (aarch64_sqdmulh_lane<mode> *2, aarch64_sqrdmulh_lane<mode> *2): Delete.
7943 (aarch64_sq<r>dmulh_laneq<mode>_internal): Rename to...
7944 (aarch64_sq<r>dmulh_lane<mode>): ...this.
7946 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal *2): Rename to...
7947 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): ...this.
7949 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal *2): Rename to...
7950 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): ...this.
7952 (aarch64_sqdmull_lane<mode>_internal *2): Rename to...
7953 (aarch64_sqdmull_lane<mode>): ...this.
7955 (aarch64_sqdmull_laneq<mode>_internal *2): Rename to...
7956 (aarch64_sqdmull_laneq<mode>): ...this.
7958 (aarch64_sqdmulh_laneq<mode>, aarch64_sqrdmulh_laneq<mode>,
7959 (aarch64_sqdmlal_lane<mode>, aarch64_sqdmlal_laneq<mode>,
7960 aarch64_sqdmlsl_lane<mode>, aarch64_sqdmlsl_laneq<mode>,
7961 aarch64_sqdmull_lane<mode>, aarch64_sqdmull_laneq<mode>): Delete.
7963 (aarch64_sqdmlal2_lane<mode>, aarch64_sqdmlal2_laneq<mode>,
7964 aarch64_sqdmlsl2_lane<mode>, aarch64_sqdmlsl2_laneq<mode>,
7965 aarch64_sqdmull2_lane<mode>, aarch64_sqdmull2_laneq<mode>): Remove
7966 bounds check and lane flip.
7968 * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane,
7969 get_dregoi, get_dregci, getdregxi, get_qregoi,get_qregci, get_qregxi,
7970 set_qregoi, set_qregci, set_qregxi): Change qualifiers to GETREG.
7972 (sqdmlal_lane, sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq,
7973 sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq, sqdmlsl2_laneq): Follow
7974 renaming of TERNOP_LANE to QUADOP_LANE.
7976 (sqdmull_lane, sqdmull_laneq, sqdmull2_lane, sqdmull2_laneq,
7977 sqdmulh_lane, sqdmulh_laneq, sqrdmulh_lane, sqrdmulh_laneq): Set
7978 qualifiers to TERNOP_LANE.
7980 2014-11-12 Tobias Burnus <burnus@net-b.de>
7982 * Makefile.in (CLOOGLIBS, CLOOGINC): Remove.
7983 * configure.ac: Ditto.
7984 * graphite-interchange.c: Remove HAVE_CLOOG block.
7985 * config.in: Regenerate.
7986 * configure: Regenerate.
7988 2014-11-12 Jiong Wang <jiong.wang@arm.com>
7990 * config/aarch64/aarch64.h (CALL_USED_REGISTERS): Mark LR as
7992 (EPILOGUE_USES): Guard the check by epilogue_completed.
7993 * config/aarch64/aarch64.c (aarch64_layout_frame): Explictly check for
7995 (aarch64_can_eliminate): Check LR_REGNUM liveness.
7997 2014-11-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7999 * config/arm/arm.c (*<arith_shift_insn>_shiftsi): Fix typo.
8001 2014-11-12 Marek Polacek <polacek@redhat.com>
8003 * fold-const.c (fold_binary_loc): Don't fold if the result
8005 * match.pd (A + (-B) -> A - B, A - (-B) -> A + B,
8006 -(-A) -> A): Likewise.
8008 2014-11-12 Richard Biener <rguenther@suse.de>
8010 Merge from match-and-simplify branch
8011 2014-11-04 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8013 * genmatch.c (user_id): Add new member is_oper_list.
8014 (user_id::user_id): Add new default argument.
8015 (parser::parse_operator_list): New function.
8016 (parser::parse_for): Allow operator-list.
8017 (parser::parse_pattern): Call parser::parse_operator_list.
8018 (parser::parse_operation): Reject operator-list.
8019 * match-builtin.pd: Define operator lists POWs, CBRTs and SQRTs.
8021 2014-10-31 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8023 * genmatch.c (parser::parse_c_expr): Mark user-defined ops as used.
8025 2014-10-30 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8027 * genmatch.c (parser::parse_op): Check if predicate is used in
8030 2014-10-29 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8032 * genmatch.c (parser::parse_for): Make sure to have a valid
8033 token to report errors at.
8035 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8037 * genmatch.c (parser): Add new member parsing_match_operand.
8038 (parser::parse_operation): Check for conditional convert in result
8040 (parser::parse_expr): Check for commutative operator in result operand.
8041 Check for :type in match operand.
8042 (parser::parse_simplify): Set/unset parsing_match_operand.
8043 (parser::parser): Initialize parsing_match_operand.
8045 2014-10-28 Richard Biener <rguenther@suse.de>
8047 * genmatch.c (parser::parse_for): Properly check for already
8050 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8052 * genmatch.c (error_cb): Adjust for printing warnings.
8053 (warning_at): New function.
8054 (user_id): Add new member used.
8055 (get_operator): Mark user_id as used.
8056 (parse_for): Warn for unused operators.
8058 2014-11-12 Richard Biener <rguenther@suse.de>
8060 * match.pd: Implement simple complex operations cancelling.
8061 * fold-const.c (fold_unary_loc): Remove them here.
8063 2014-11-12 Joseph Myers <joseph@codesourcery.com>
8065 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
8066 Define __NO_MATH_ERRNO__ if -fno-math-errno.
8067 * doc/cpp.texi (__NO_MATH_ERRNO__): Document predefined macro.
8069 2014-11-12 Richard Biener <rguenther@suse.de>
8071 * genmatch.c (::gen_transform): Add capture_info and
8072 expand_compares arguments.
8073 (struct expr): Add is_generic flag.
8074 (lower_cond): New functions lowering [VEC_]COND_EXPR
8075 conditions to a GENERIC and a GIMPLE variant.
8076 (lower): Call lower_cond.
8077 (cmp_operand): Also compare the is_generic flag.
8078 (capture_info::cinfo): Add cond_expr_cond_p flag.
8079 (capture_info::capture_info): Pass down whether the
8080 expression argument is a COND_EXPR condition.
8081 (capture_info::walk_match): Likewise, mark captures
8082 capturing COND_EXPR conditions with cond_expr_cond_p.
8083 (expr::gen_transform): Pass down whether we need to
8084 expand compares from COND_EXPR conditions.
8085 (capture::gen_transform): Expand compares substituted
8086 from COND_EXPR conditions into non-COND_EXPR conditions.
8087 (dt_operand::gen_gimple_expr): Handle explicitely marked
8088 GENERIC expressions as generic.
8089 (dt_simplify::gen): Pass whether we need to expand
8090 conditions to gen_transform. Handle capture results
8091 which are from COND_EXPR conditions.
8092 (main): Pass gimple flag down to lower.
8094 2014-11-12 Jakub Jelinek <jakub@redhat.com>
8097 * builtin-attrs.def (ATTR_NOTHROW_TYPEGENERIC_LEAF): New attribute.
8098 * builtins.c (fold_builtin_arith_overflow): New function.
8099 (fold_builtin_3): Use it.
8100 * builtins.def (BUILT_IN_ADD_OVERFLOW, BUILT_IN_SUB_OVERFLOW,
8101 BUILT_IN_MUL_OVERFLOW, BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW,
8102 BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW,
8103 BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW,
8104 BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW,
8105 BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADDL_OVERFLOW,
8106 BUILT_IN_UADDLL_OVERFLOW, BUILT_IN_USUB_OVERFLOW,
8107 BUILT_IN_USUBL_OVERFLOW, BUILT_IN_USUBLL_OVERFLOW,
8108 BUILT_IN_UMUL_OVERFLOW, BUILT_IN_UMULL_OVERFLOW,
8109 BUILT_IN_UMULLL_OVERFLOW): New built-in functions.
8110 * builtin-types.def (BT_PTR_UINT, BT_PTR_ULONG, BT_PTR_LONGLONG,
8111 BT_FN_BOOL_INT_INT_INTPTR, BT_FN_BOOL_LONG_LONG_LONGPTR,
8112 BT_FN_BOOL_LONGLONG_LONGLONG_LONGLONGPTR, BT_FN_BOOL_UINT_UINT_UINTPTR,
8113 BT_FN_BOOL_ULONG_ULONG_ULONGPTR,
8114 BT_FN_BOOL_ULONGLONG_ULONGLONG_ULONGLONGPTR, BT_FN_BOOL_VAR): New.
8115 * expr.c (write_complex_part): Remove prototype, no longer static.
8116 * expr.h (write_complex_part): New prototype.
8117 * function.c (aggregate_value_p): For internal functions return 0.
8118 * gimple-fold.c (arith_overflowed_p): New functions.
8119 (gimple_fold_call): Fold {ADD,SUB,MUL}_OVERFLOW internal calls.
8120 * gimple-fold.h (arith_overflowed_p): New prototype.
8121 * tree-ssa-dce.c: Include tree-ssa-propagate.h and gimple-fold.h.
8122 (find_non_realpart_uses, maybe_optimize_arith_overflow): New
8124 (eliminate_unnecessary_stmts): Transform {ADD,SUB,MUL}_OVERFLOW
8125 into COMPLEX_CST/COMPLEX_EXPR if IMAGPART_EXPR of the result is
8127 * gimplify.c (gimplify_call_expr): Handle gimplification of
8128 internal calls with lhs.
8129 * internal-fn.c (get_range_pos_neg, get_min_precision,
8130 expand_arith_overflow_result_store): New functions.
8131 (ubsan_expand_si_overflow_addsub_check): Renamed to ...
8132 (expand_addsub_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
8133 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
8134 Handle ADD_OVERFLOW and SUB_OVERFLOW expansion.
8135 (ubsan_expand_si_overflow_neg_check): Renamed to ...
8136 (expand_neg_overflow): ... this. Add LOC, LHS, ARG1, IS_UBSAN
8137 arguments, remove STMT argument. Handle SUB_OVERFLOW with
8138 0 as first argument expansion.
8139 (ubsan_expand_si_overflow_mul_check): Renamed to ...
8140 (expand_mul_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
8141 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
8142 Handle MUL_OVERFLOW expansion.
8143 (expand_UBSAN_CHECK_ADD): Use expand_addsub_overflow, prepare
8145 (expand_UBSAN_CHECK_SUB): Use expand_addsub_overflow or
8146 expand_neg_overflow, prepare arguments for it.
8147 (expand_UBSAN_CHECK_MUL): Use expand_mul_overflow, prepare arguments
8149 (expand_arith_overflow, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW,
8150 expand_MUL_OVERFLOW): New functions.
8151 * internal-fn.def (ADD_OVERFLOW, SUB_OVERFLOW, MUL_OVERFLOW): New
8153 * tree-vrp.c (check_for_binary_op_overflow): New function.
8154 (extract_range_basic): Handle {REAL,IMAG}PART_EXPR if the operand
8155 is SSA_NAME set by {ADD,SUB,MUL}_OVERFLOW internal functions.
8156 (simplify_internal_call_using_ranges): Handle {ADD,SUB,MUL}_OVERFLOW
8158 * optabs.def (umulv4_optab): New optab.
8159 * config/i386/i386.md (umulv<mode>4, <u>mulvqi4): New define_expands.
8160 (*umulv<mode>4, *<u>mulvqi4): New define_insns.
8161 * doc/extend.texi (Integer Overflow Builtins): Document
8162 __builtin_*_overflow.
8164 2014-11-12 Richard Biener <rguenther@suse.de>
8166 * genmatch.c (capture_info::capture_info): Add missing
8168 (capture_info::walk_match): Fix COND_EXPR handling.
8169 (capture_info::walk_result): Likewise.
8171 2014-11-12 Richard Biener <rguenther@suse.de>
8174 * match.pd: Add missing conversion to the -(T)-X pattern.
8176 2014-11-12 Richard Biener <rguenther@suse.de>
8179 * hash-table.h: Include ggc.h also for generator programs.
8180 * genmatch.c (ggc_internal_cleared_alloc): Properly define
8181 using MEM_STAT_DECL instead of CXX_MEM_STAT_INFO.
8183 2014-11-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
8185 PR tree-optimization/63761
8186 * tree-ssa-math-opts.c (bswap_replace): Construct gsi from cur_stmt
8187 rather than taking it as a parameter. Add some comments to explain the
8188 gsi_move_before in case of load and why canonicalization of bswap into
8189 a rotation is only done for 16bit values.
8190 (pass_optimize_bswap::execute): Adapt for loop via gsi to make gsi
8191 refer to the statement just before cur_stmt. Ignore 16bit bswap that
8192 are already in canonical form. Adapt bswap_replace to removal of its
8195 2014-11-12 Richard Sandiford <richard.sandiford@arm.com>
8197 * rtl.h (rtx_function, for_each_rtx, for_each_rtx_in_insn): Delete.
8198 * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1, for_each_rtx):
8199 (for_each_rtx_in_insn): Delete.
8200 (init_rtlanal): Remove initialization of non_rtx_starting_operands.
8201 * df-core.c: Remove reference to for_each_rtx in comment.
8203 2014-11-12 Tejas Belagod <tejas.belagod@arm.com>
8205 * Makefile.in (TEXI_GCC_FILES): Remove arm-acle-intrinsics.texi,
8206 arm-neon-intrinsics.texi, aarch64-acle-intrinsics.texi.
8207 * doc/aarch64-acle-intrinsics.texi: Remove.
8208 * doc/arm-acle-intrinsics.texi: Remove.
8209 * doc/arm-neon-intrinsics.texi: Remove.
8210 * doc/extend.texi: Consolidate sections AArch64 intrinsics,
8211 ARM NEON Intrinsics, ARM ACLE Intrinsics into one ARM C Language
8212 Extension section. Add references to public ACLE specification.
8214 2014-11-11 Patrick Palka <ppalka@gcc.gnu.org>
8216 * tree-vrp.c (register_edge_assert_for_2): Change return type to
8217 void and adjust accordingly.
8218 (register_edge_assert_for_1): Likewise.
8219 (register_edge_assert_for): Likewise.
8220 (find_conditional_asserts): Likewise.
8221 (find_switch_asserts): Likewise.
8222 (find_assert_locations_1): Likewise.
8223 (find_assert_locations): Likewise.
8224 (insert_range_insertions): Inspect the need_assert_for bitmap.
8226 2014-11-11 Andrew Pinski <apinski@cavium.com>
8229 * config.gcc (aarch64*-*-*): Set target_gtfiles to include
8231 * config/aarch64/aarch64-builtins.c: Include gt-aarch64-builtins.h
8232 at the end of the file.
8234 2014-11-11 Anthony Brandon <anthony.brandon@gmail.com>
8235 Manuel López-Ibáñez <manu@gcc.gnu.org>
8238 * diagnostic-core.h: Add prototype for fatal_error.
8239 * diagnostic.c (fatal_error): New function fatal_error.
8240 * gcc.c (store_arg): Remove have_o_argbuf_index.
8241 (process_command): Check if input and output files are the same.
8242 * toplev.c (init_asm_output): Check if input and output files are
8245 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
8247 * reorg.c (fill_slots_from_thread): Do not copy frame-related insns.
8249 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
8252 * config/sparc/sparc.c (function_arg_vector_value): Deal with vectors
8253 smaller than 8 bytes.
8254 (sparc_function_arg_1): Tweak.
8255 (sparc_function_value_1): Tweak.
8257 2014-11-11 David Malcolm <dmalcolm@redhat.com>
8259 * ChangeLog.jit: New.
8260 * Makefile.in (doc_build_sys): New variable, set to "sphinx" if
8261 sphinx is installed, falling back to "texinfo" otherwise.
8262 (FULL_DRIVER_NAME): New variable, adapted from the
8263 install-driver target. New target, a symlink within the builddir,
8264 linked to "xgcc", for use when running the JIT library from the
8266 (MOSTLYCLEANFILES): Add FULL_DRIVER_NAME.
8267 (install-driver): Use $(FULL_DRIVER_NAME) rather than spelling it
8269 * configure.ac (doc_build_sys): New variable, set to "sphinx" if
8270 sphinx is installed, falling back to "texinfo" otherwise.
8271 (GCC_DRIVER_NAME): Generate a gcc-driver-name.h file containing
8272 GCC_DRIVER_NAME for the benefit of jit/internal-api.c.
8273 * configure: Regenerate.
8274 * doc/install.texi (--enable-host-shared): Specify that this is
8275 required when building libgccjit.
8276 (Tools/packages necessary for modifying GCC): Add Sphinx.
8277 * timevar.def (TV_JIT_REPLAY): New.
8282 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8285 * configure: Regenerate.
8287 2014-11-11 James Greenhalgh <james.greenhalgh@arm.com>
8289 * config/aarch64/aarch64-simd.md
8290 (aarch64_simd_bsl<mode>_internal): Remove float cases, canonicalize.
8291 (aarch64_simd_bsl<mode>): Add gen_lowpart expressions where we
8292 are punning between float vectors and integer vectors.
8294 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8296 * config/alpha/alpha.c (alpha_emit_conditional_branch): Replace
8297 open-coded swap with std::swap to swap values.
8298 (alpha_emit_setcc): Ditto.
8299 (alpha_emit_conditional_move): Ditto.
8300 (alpha_split_tmode_pair): Ditto.
8302 2014-11-11 Evgeny Stupachenko <evstupac@gmail.com>
8304 * tree-vect-data-refs.c (vect_shift_permute_load_chain): Extend shift
8305 permutations on power of 2 cases.
8307 2014-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8309 * config/aarch64/aarch64.h (MACHMODE): Remove 'enum' keyword.
8310 (CUMULATIVE_ARGS): Guard on !defined(USED_FOR_TARGET).
8312 2014-11-11 Richard Biener <rguenther@suse.de>
8314 * tree-core.h (pedantic_lvalues): Remove.
8315 * fold-const.c (pedantic_lvalues): Likewise.
8316 (pedantic_non_lvalue_loc): Remove conditional non_lvalue_loc call.
8318 2014-11-11 Martin Liska <mliska@suse.cz>
8322 * ipa-icf.c (sem_function::merge): Add new target symbol alias
8324 (sem_variable::merge): Likewise.
8325 * ipa-icf.h (target_supports_symbol_aliases_p): New function.
8327 2014-11-11 Richard Biener <rguenther@suse.de>
8329 * match.pd: Implement patterns from associate_plusminus
8330 and factor in differences from the fold-const.c implementation.
8331 * fold-const.c (fold_binary_loc): Remove patterns here.
8332 * tree-ssa-forwprop.c (associate_plusminus): Remove.
8333 (pass_forwprop::execute): Don't call it.
8334 * tree.c (tree_nop_conversion_p): New function, factored
8335 from tree_nop_conversion.
8336 * tree.h (tree_nop_conversion_p): Declare.
8338 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8340 * system.h: Include algorithm and utility.
8341 * rtl.h: Do not include utility here.
8342 * wide-int.h: Ditto.
8343 * tree-vect-data-refs.c (swap): Remove template.
8344 (vect_prune_runtime_alias_test_list): Use std::swap instead of swap.
8346 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8350 * system.h: Include <string> before "safe-ctype.h"
8351 * wide-int.h (wi::smin, wi::smax, wi::umin, wi::umax): Prefix
8352 calls to min/max with wi namespace.
8353 * ipa-chkp.c: Don't include <string>.
8355 2014-11-11 Terry Guo <terry.guo@arm.com>
8357 * doc/invoke.texi (-masm-syntax-unified): Reword and fix typo.
8358 * config/arm/thumb1.md (*thumb_mulsi3): Use movs to move low
8360 (*thumb1_movhf): Likewise.
8362 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8364 * sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t)
8365 instead of INT64_MAX.
8367 2014-11-11 Tobias Burnus <burnus@net-b.de>
8369 * doc/install.texi (Prerequisites): Remove CLooG.
8371 2014-11-10 Trevor Saunders <tsaunders@mozilla.com>
8373 * ipa-inline.c (edge_badness): Adjust.
8374 (inline_small_functions): Likewise.
8375 * predict.c (propagate_freq): Likewise.
8376 (estimate_bb_frequencies): Likewise.
8377 * sreal.c (sreal::dump): Rename from dump_sreal.
8379 (copy): Remove function.
8380 (sreal::shift_right): Rename from sreal_sift_right.
8381 (sreal::normalize): Rename from normalize.
8382 (sreal_init): Remove function.
8383 (sreal::to_int): Rename from sreal_to_int.
8384 (sreal_compare): Remove function.
8385 (sreal::operator+): Rename from sreal_add.
8386 (sreal::operator-): Rename from sreal_sub.
8387 (sreal::operator*): Rename from sreal_mul.
8388 (sreal::operator/): Rename from sreal_div.
8389 * sreal.h (class sreal): Adjust.
8390 (inline sreal &operator+=): New operator.
8391 (inline sreal &operator-=): Likewise.
8392 (inline sreal &operator/=): Likewise.
8393 (inline sreal &operator*=): Likewise.
8394 (inline bool operator!=): Likewise.
8395 (inline bool operator>): Likewise.
8396 (inline bool operator<=): Likewise.
8397 (inline bool operator>=): Likewise.
8399 2014-11-11 Bin Cheng <bin.cheng@arm.com>
8401 * sched-deps.c (sched_analyze_1): Check pending list if it is not
8402 less than MAX_PENDING_LIST_LENGTH.
8403 (sched_analyze_2, sched_analyze_insn, deps_analyze_insn): Ditto.
8405 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8407 * config/i386/i386.c (ix86_decompose_address): Replace open-coded
8408 swap with std::swap to swap values.
8409 (ix86_fixup_binary_operands): Ditto.
8410 (ix86_binary_operator_ok): Ditto.
8411 (ix86_prepare_fp_compare_args): Ditto.
8412 (ix86_expand_branch): Ditto.
8413 (ix86_expand_carry_flag_compare): Ditto.
8414 (ix86_expand_int_movcc): Ditto.
8415 (ix86_prepare_sse_fp_compare_args): Ditto.
8416 (ix86_expand_sse_fp_minmax): Ditto.
8417 (ix86_expand_int_vcond): Ditto.
8418 (ix86_split_long_move): Ditto.
8419 (ix86_expand_sse_comi): Ditto.
8420 (ix86_expand_sse_compare_and_jump): Ditto.
8421 (ix86_expand_sse_compare_mask): Ditto.
8422 * config/i386/i386.md (*add<mode>_1): Ditto.
8423 (addsi_1_zext): Ditto.
8426 (*add<mode>_2): Ditto.
8427 (*addsi_2_zext): Ditto.
8428 (*add<mode>_3): Ditto.
8429 (*addsi_3_zext): Ditto.
8430 (*add<mode>_5): Ditto.
8431 (absneg splitter): Ditto.
8433 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8436 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
8439 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
8440 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
8441 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
8442 be reloaded through memory.
8446 2014-11-11 Jakub Jelinek <jakub@redhat.com>
8447 Martin Liska <mliska@suse.cz>
8449 * ipa-icf-gimple.c (func_checker::compare_bb): Fix comment typo.
8450 (func_checker::compare_gimple_call): Compare gimple_call_fn,
8451 gimple_call_chain, gimple_call_fntype and call flags.
8453 2014-11-10 Vladimir Makarov <vmakarov@redhat.com>
8455 PR rtl-optimization/63620
8456 PR rtl-optimization/63799
8457 * lra-lives.c (process_bb_lives): Do not delete EH_REGION, trapped
8458 and setting PIC pseudo insns.
8459 (lra_create_live_ranges): Fix the typo.
8461 2014-11-10 Patrick Palka <ppalka@gcc.gnu.org>
8464 * tree-ssa-propagate.c (may_propagate_copy): Allow propagating
8465 SSA copies whose source and destination names both occur in
8468 2014-11-10 Roman Gareev <gareevroman@gmail.com>
8470 * Makefile.in: Remove the compilation of graphite-clast-to-gimple.o.
8471 * common.opt: Remove using of fgraphite-code-generator flag.
8472 * flag-types.h: Likewise.
8473 * graphite.c: Remove using of CLooG.
8474 * graphite-blocking.c: Likewise.
8475 * graphite-dependences.c: Likewise.
8476 * graphite-poly.c: Likewise.
8477 * graphite-poly.h: Likewise.
8478 * graphite-scop-detection.c: Likewise.
8479 * graphite-sese-to-poly.c: Likewise.
8480 * graphite-clast-to-gimple.c: Removed.
8481 * graphite-clast-to-gimple.h: Likewise.
8482 * graphite-htab.h: Likewise.
8484 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
8486 * doc/invoke.texi ([-Wshift-count-negative, -Wshift-count-overflow]):
8489 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8491 * config/frv/frv.c (frv_io_handle_use_1): Delete.
8492 (frv_io_handle_use): Use find_all_hard_regs.
8494 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8496 * config/frv/frv.c (frv_registers_conflict_p_1): Take an rtx rather
8497 than an rtx *. Take the regstate_t directly rather than via a void *.
8498 Return a bool rather than an int. Iterate over all subrtxes here.
8499 (frv_registers_conflict_p): Update accordingly.
8501 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8503 * config/frv/frv.c: Include rtl-iter.h.
8504 (frv_acc_group_1): Delete.
8505 (frv_acc_group): Use FOR_EACH_SUBRTX.
8507 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8509 * config/frv/frv.c: Move include of rtl.h after hard-reg-set.h.
8510 (frv_clear_registers_used): Delete.
8511 (frv_ifcvt_modify_tests): Use find_all_hard_regs.
8513 2014-11-10 Jan Hubicka <hubicka@ucw.cz>
8516 * calls.c (initialize_argument_information): When emitting thunk call
8517 use original memory placement of the argument.
8519 2014-11-10 Renlin Li <renlin.li@arm.com>
8522 * tree-ssa-threadupdate.c (compute_path_counts): Bound path_in_freq.
8524 2014-11-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
8526 * expmed.c (expand_shift_1): Expand 8 bit rotate of 16 bit value to
8527 bswaphi if available.
8529 2014-11-10 Bernd Schmidt <bernds@codesourcery.com>
8531 * config/nvptx/nvptx.c: New file.
8532 * config/nvptx/nvptx.h: New file.
8533 * config/nvptx/nvptx-protos.h: New file.
8534 * config/nvptx/nvptx.md: New file.
8535 * config/nvptx/t-nvptx: New file.
8536 * config/nvptx/nvptx.opt: New file.
8537 * common/config/nvptx/nvptx-common.c: New file.
8538 * config.gcc: Handle nvptx-*-*.
8540 2014-11-10 Richard Biener <rguenther@suse.de>
8542 * tree-ssa-operands.c (finalize_ssa_uses): Properly put
8543 released operands on the free list.
8545 2014-11-10 Richard Biener <rguenther@suse.de>
8547 * match.pd: Implement pattern from simplify_mult.
8548 * tree-ssa-forwprop.c (simplify_mult): Remove.
8549 (pass_forwprop::execute): Do not call simplify_mult.
8551 2014-11-10 Richard Biener <rguenther@suse.de>
8553 PR tree-optimization/63800
8554 * tree-ssa-pre.c (eliminate_push_avail): Push in a way so
8555 we can restore the previous availability in after_dom_children.
8556 (eliminate_dom_walker::after_dom_children): Restore
8557 previous availability.
8559 2014-11-10 Richard Biener <rguenther@suse.de>
8562 * expr.c (expand_expr_real_2): When expanding FMA_EXPRs
8563 properly treat the embedded multiplication as commutative
8564 when looking for feeding negates.
8566 2014-11-10 Joern Rennecke <joern.rennecke@embecosm.com>
8568 * config/avr/avr.h (CPLUSPLUS_CPP_SPEC): Define.
8570 2014-11-10 Martin Liska <mliska@suse.cz>
8572 * gcc.dg/tree-ssa/ldist-19.c: ICF is disabled
8573 for the test because of default char signedness
8574 on powerpc64 target.
8576 2014-11-10 Richard Biener <rguenther@suse.de>
8578 * match.pd: Implement pattern from simplify_conversion_from_bitmask.
8579 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): Remove.
8580 (pass_forwprop::execute): Do not call simplify_conversion_from_bitmask.
8582 2014-11-10 Richard Biener <rguenther@suse.de>
8584 * match.pd: Move rest of the conversion combining patterns
8585 from tree-ssa-forwprop.c.
8586 * tree-ssa-forwprop.c (combine_conversions): Remove.
8587 (pass_forwprop::execute): Do not call it.
8589 2014-11-10 Eric Botcazou <ebotcazou@adacore.com>
8591 * gimple-low.c (lower_function_body): Clear the location of the first
8592 inserted representative return if it also fills in for the fallthru.
8594 2014-11-10 Yuri Rumyantsev <ysrumyan@gmail.com>
8596 * tree-if-conv.c (add_to_predicate_list): Check unconditionally
8597 that bb is always executed to early exit. Use predicate of
8598 cd-equivalent block for join blocks if it exists.
8599 (if_convertible_loop_p_1): Recompute POST_DOMINATOR tree.
8600 (tree_if_conversion): Free post-dominance information.
8602 2014-11-09 Jason Merrill <jason@redhat.com>
8604 * config/i386/avx512vldqintrin.h (_mm256_broadcast_f32x2): __mmask8.
8605 * config/i386/avx512vlintrin.h (_mm256_mask_cvtepi32_storeu_epi16)
8606 (_mm_mask_cvtusepi32_storeu_epi16)
8607 (_mm_mask_cvtsepi64_storeu_epi32): Return void.
8609 2014-11-09 Joern Rennecke <joern.rennecke@embecosm.com>
8611 * config/avr/predicates.md (low_io_address_operand): Fix typo.
8613 2014-11-09 Vladimir Makarov <vmakarov@redhat.com>
8615 PR rtl-optimization/63620
8616 * lra-constraints.c (substitute_pseudo): Add prefix lra_ to the
8617 name. Move to lra.c. Make it external.
8618 (substitute_pseudo_within_insn): Ditto.
8619 (inherit_reload_reg, split_reg, remove_inheritance_pseudos): Use
8621 (undo_optional_reloads): Ditto.
8622 * lra-int.h (lra_dump_bitmap_with_title, lra_substitute_pseudo):
8624 (lra_substitute_pseudo_within_insn): Ditto.
8625 * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): New.
8626 (mark_regno_live): Add parameter. Update bb_gen_pseudos.
8627 (mark_regno_dead): Add parameter. Update bb_gen_pseudos and
8629 (struct bb_data, bb_data_t, bb_data): New.
8630 (get_bb_data, get_bb_data_by_index): Ditto.
8631 (all_hard_regs_bitmap): New.
8632 (live_trans_fun, live_con_fun_0, live_con_fun_n, all_blocks): New.
8633 (initiate_live_solver, finish_live_solver): New.
8634 (process_bb_lives): Change return type. Add code updating local
8635 live data and removing dead insns. Pass new argument to
8636 mark_regno_live and mark_regno_dead. Check changing bb pseudo
8637 life info. Return the result.
8638 (lra_create_live_ranges): Add code to do global pseudo live
8640 (lra_live_ranges_init): Call initiate_live_solver.
8641 (lra_live_ranges_finish): Call finish_live_solver.
8642 * lra.c (lra_dump_bitmap_with_title): New.
8643 (lra_substitute_pseudo, lra_substitute_pseudo_within_insn): Move
8644 from lra-constraints.c.
8646 2014-11-09 Richard Biener <rguenther@suse.de>
8648 * match.pd: Add patterns convering two conversions in a row
8650 * fold-const.c (fold_unary_loc): Remove them here.
8651 * tree-ssa-forwprop.c (combine_conversions): Likewise.
8652 * genmatch.c (dt_node::gen_kids): Check whether we may
8653 follow SSA use-def chains.
8655 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8657 * config/aarch64/aarch64.c: Include rtl-iter.h.
8658 (aarch64_tls_operand_p_1): Delete.
8659 (aarch64_tls_operand_p): Use FOR_EACH_SUBRTX.
8661 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8663 * config/arm/arm.c (arm_note_pic_base): Delete.
8664 (arm_cannot_copy_insn_p): Use FOR_EACH_SUBRTX.
8666 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8668 * config/arm/arm.c: Include rtl-iter.h.
8669 (arm_tls_referenced_p_1): Delete.
8670 (arm_tls_referenced_p): Use FOR_EACH_SUBRTX.
8672 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8674 * config/arm/aarch-common.c: Include rtl-iter.h.
8675 (search_term, arm_find_sub_rtx_with_search_term): Delete.
8676 (arm_find_sub_rtx_with_code): Use FOR_EACH_SUBRTX_VAR.
8677 (arm_get_set_operands): Pass the insn pattern rather than the
8679 (arm_no_early_store_addr_dep): Likewise.
8681 2014-11-08 Eric Botcazou <ebotcazou@adacore.com>
8683 * config/arm/arm.c (arm_set_return_address): Mark the store as frame
8685 (thumb_set_return_address): Likewise.
8687 2014-11-07 Jeff Law <law@redhat.com>
8689 PR tree-optimization/61515
8690 * tree-ssa-threadedge.c (invalidate_equivalences): Walk the unwinding
8691 stack rather than looking at every SSA_NAME's value.
8693 2014-11-07 Richard Biener <rguenther@suse.de>
8695 PR tree-optimization/63605
8696 * fold-const.c (fold_binary_loc): Properly use element_precision
8697 for types that may not be scalar.
8699 2014-11-07 Evgeny Stupachenko <evstupac@gmail.com>
8702 * config/i386/i386.md (builtin_setjmp_receiver): Use
8703 pic_offset_table_rtx for PIC register.
8704 (nonlocal_goto_receiver): Delete.
8706 2014-11-07 Daniel Hellstrom <daniel@gaisler.com>
8708 * config.gcc (sparc-*-rtems*): Clean away unused t-elf.
8709 * config/sparc/t-rtems: Add leon3v7 and muser-mode multilibs.
8711 2014-11-07 Martin Liska <mliska@suse.cz>
8714 * cgraphunit.c (cgraph_node::create_wrapper):
8715 TREE_ADDRESSABLE is set to false for a newly created thunk.
8717 2014-11-07 Martin Liska <mliska@suse.cz>
8720 * ipa-icf-gimple.c (func_checker::compare_gimple_switch):
8721 Missing checking for CASE_LOW and CASE_HIGH added.
8723 2014-11-07 Martin Liska <mliska@suse.cz>
8726 * cgraphunit.c (cgraph_node::expand_thunk): DECL_BY_REFERENCE
8727 is correctly handled for thunks created by IPA ICF.
8729 2014-11-07 Jiong Wang <jiong.wang@arm.com>
8730 2014-11-07 Richard Biener <rguenther@suse.de>
8732 PR tree-optimization/63676
8733 * gimple-fold.c (fold_gimple_assign): Do not fold node when
8734 TREE_CLOBBER_P be true.
8736 2014-11-07 Richard Biener <rguenther@suse.de>
8739 * match.pd: Guard conflicting GENERIC pattern properly.
8741 2014-11-07 Richard Biener <rguenther@suse.de>
8743 * match.pd: Add patterns for POINTER_PLUS_EXPR association
8744 and special patterns from tree-ssa-forwprop.c
8745 * fold-const.c (fold_binary_loc): Remove them here.
8746 * tree-ssa-forwprop.c (to_purge): New global bitmap.
8747 (fwprop_set_lattice_val): New function.
8748 (fwprop_invalidate_lattice): Likewise.
8749 (remove_prop_source_from_use): Instead of purging dead EH
8750 edges record blocks to do that in to_purge.
8751 (tidy_after_forward_propagate_addr): Likewise.
8752 (forward_propagate_addr_expr): Invalidate the lattice for
8753 SSA names we release.
8754 (simplify_conversion_from_bitmask): Likewise.
8755 (simplify_builtin_call): Likewise.
8756 (associate_pointerplus_align): Remove.
8757 (associate_pointerplus_diff): Likewise.
8758 (associate_pointerplus): Likewise.
8759 (fold_all_stmts): Merge with ...
8760 (pass_forwprop::execute): ... the original loop over all
8761 basic-blocks. Delay purging dead EH edges and invalidate
8762 the lattice for SSA names we release.
8764 2014-11-07 Terry Guo <terry.guo@arm.com>
8766 * config/arm/arm.opt (masm-syntax-unified): New option.
8767 * doc/invoke.texi (-masm-syntax-unified): Document new option.
8768 * config/arm/arm.h (TARGET_UNIFIED_ASM): Also include thumb1.
8769 (ASM_APP_ON): Redefined.
8770 * config/arm/arm.c (arm_option_override): Thumb2 inline assembly
8771 code always use UAL syntax.
8772 (arm_output_mi_thunk): Use UAL syntax for Thumb1 target.
8773 * config/arm/thumb1.md: Likewise.
8775 2014-11-06 John David Anglin <danglin@gcc.gnu.org>
8777 * config/pa/pa.md (trap): New insn. Add "trap" to attribute type.
8778 Don't allow trap insn in in_branch_delay, in_nullified_branch_delay
8781 2014-11-06 Steve Ellcey <sellcey@imgtec.com>
8783 * config.gcc (mips*-mti-linux*): Remove gnu_ld and gas assignments.
8784 Set default_mips_arch and default_mips_abi instead of tm_defines.
8785 (mips*-*-linux*): Set default_mips_arch and default_mips_abi instead
8787 (mips*-*-*): Check with_arch and with_abi. Set tm_defines.
8788 * config/mips/mips.h (STANDARD_STARTFILE_PREFIX_1): Set default
8789 based on MIPS_ABI_DEFAULT.
8790 (STANDARD_STARTFILE_PREFIX_2): Ditto.
8792 2014-11-06 Joseph Myers <joseph@codesourcery.com>
8794 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to corner
8795 cases of extended identifiers.
8797 2014-11-06 Eric Botcazou <ebotcazou@adacore.com>
8799 * tree-cfgcleanup.c (fixup_noreturn_call): Do not perform DCE here.
8801 2014-11-06 DJ Delorie <dj@redhat.com>
8803 * config/m32c/cond.md (movqicc_<code>_<mode>): Remove mode of
8805 (movhicc_<code>_<mode>): Likewise.
8806 * config/m32c/m32c.c (encode_pattern_1): Specialise PSImode
8808 (m32c_eh_return_data_regno): Change to using memregs to avoid
8809 tying up all the compute regs.
8810 (m32c_legitimate_address_p) Subregs are not valid addresses.
8812 2014-11-06 Bernd Schmidt <bernds@codesourcery.com>
8814 * function.c (thread_prologue_and_epilogue_insns): No longer static.
8815 * function.h (thread_prologue_and_epilogue_insns): Declare.
8817 * target.def (assemble_undefined_decl): New hooks.
8818 * hooks.c (hook_void_FILEptr_constcharptr_const_tree): New function.
8819 * hooks.h (hook_void_FILEptr_constcharptr_const_tree): Declare.
8820 * doc/tm.texi.in (TARGET_ASM_ASSEMBLE_UNDEFINED_DECL): Add.
8821 * doc/tm.texi: Regenerate.
8822 * output.h (assemble_undefined_decl): Declare.
8823 (get_fnname_from_decl): Declare.
8824 * varasm.c (assemble_undefined_decl): New function.
8825 (get_fnname_from_decl): New function.
8826 * final.c (rest_of_handle_final): Use it.
8827 * varpool.c (varpool_output_variables): Call assemble_undefined_decl
8828 for nodes without a definition.
8830 * target.def (call_args, end_call_args): New hooks.
8831 * hooks.c (hook_void_rtx_tree): New empty function.
8832 * hooks.h (hook_void_rtx_tree): Declare.
8833 * doc/tm.texi.in (TARGET_CALL_ARGS, TARGET_END_CALL_ARGS): Add.
8834 * doc/tm.texi: Regenerate.
8835 * calls.c (expand_call): Slightly rearrange the code. Use the two new
8837 (expand_library_call_value_1): Use the two new hooks.
8839 * expr.c (use_reg_mode): Just return for pseudo registers.
8841 * combine.c (try_combine): Don't allow a call as one of the source
8844 * target.def (decl_end): New hook.
8845 * varasm.c (assemble_variable_contents, assemble_constant_contents):
8847 * doc/tm.texi.in (TARGET_ASM_DECL_END): Add.
8848 * doc/tm.texi: Regenerate.
8850 2014-11-06 Renlin Li <renlin.li@arm.com>
8852 * config/aarch64/aarch64.c (aarch64_architecture_version): New.
8853 (processor): New architecture_version field.
8854 (aarch64_override_options): Initialize aarch64_architecture_version.
8855 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_ARCH,
8856 __ARM_ARCH_PROFILE, aarch64_arch_name macro.
8858 2014-11-06 James Greenhalgh <james.greenhalgh@arm.com>
8860 * params.def (sra-max-scalarization-size-Ospeed): New.
8861 (sra-max-scalarization-size-Osize): Likewise.
8862 * doc/invoke.texi (sra-max-scalarization-size-Ospeed): Document.
8863 (sra-max-scalarization-size-Osize): Likewise.
8864 * toplev.c (process_options): Set default values for new
8866 * tree-sra.c (analyze_all_variable_accesses): Use new parameters.
8867 * targhooks.c (get_move_ratio): Remove static designator.
8868 * target.h (get_move_ratio): Declare.
8870 2014-11-06 Marek Polacek <polacek@redhat.com>
8872 * sanopt.c (sanopt_optimize_walker): Limit removal of the checks.
8873 Remove vector limit.
8875 2014-11-06 Richard Biener <rguenther@suse.de>
8877 * match.pd: Implement bitwise binary and unary simplifications
8878 from tree-ssa-forwprop.c.
8879 * fold-const.c (fold_unary_loc): Remove them here.
8880 (fold_binary_loc): Likewise.
8881 * tree-ssa-forwprop.c (simplify_not_neg_expr): Remove.
8882 (truth_valued_ssa_name): Likewise.
8883 (lookup_logical_inverted_value): Likewise.
8884 (simplify_bitwise_binary_1): Likewise.
8885 (hoist_conversion_for_bitop_p): Likewise.
8886 (simplify_bitwise_binary_boolean): Likewise.
8887 (simplify_bitwise_binary): Likewise.
8888 (pass_forwprop::execute): Remove calls to simplify_not_neg_expr
8889 and simplify_bitwise_binary.
8890 * genmatch.c (dt_node::append_true_op): Use safe_as_a for parent.
8891 (decision_tree::insert): Also insert non-expressions.
8893 2014-11-06 Hale Wang <hale.wang@arm.com>
8895 * config/arm/arm-cores.def: Add support for
8896 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
8897 cortex-m1.small-multiply.
8898 * config/arm/arm-tables.opt: Regenerate.
8899 * config/arm/arm-tune.md: Regenerate.
8900 * config/arm/arm.c: Update the rtx-costs for MUL.
8901 * config/arm/bpabi.h: Handle
8902 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
8903 cortex-m1.small-multiply.
8904 * doc/invoke.texi: Document
8905 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
8906 cortex-m1.small-multiply.
8908 2014-11-06 Hale Wang <hale.wang@arm.com>
8910 * config/arm/arm.c: Add cortex-m7 tune.
8911 * config/arm/arm-cores.def: Use cortex-m7 tune.
8913 2014-11-05 Uros Bizjak <ubizjak@gmail.com>
8916 * config/i386/i386.c (in_large_data_p): Reject automatic variables.
8917 (ix86_encode_section_info): Do not check for non-automatic varibles
8918 when setting SYMBOL_FLAG_FAR_ADDR flag.
8919 (x86_64_elf_select_section): Do not check ix86_cmodel here.
8920 (x86_64_elf_unique_section): Ditto.
8921 (x86_elf_aligned_common): Emit tab before .largecomm.
8923 2014-11-05 Joseph Myers <joseph@codesourcery.com>
8925 PR preprocessor/9449
8926 * doc/cpp.texi (Character sets, Tokenization)
8927 (Implementation-defined behavior): Don't refer to UCNs in
8928 identifiers requiring -fextended-identifiers.
8929 * doc/cppopts.texi (-fextended-identifiers): Document as enabled
8930 by default for C99 and later and C++.
8931 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to extended
8932 identifiers needing -fextended-identifiers.
8934 2014-11-05 Ilya Tocar <ilya.tocar@intel.com>
8936 * config/i386/i386.c (expand_vec_perm_pshufb): Try vpermq/vpermd
8937 for 512-bit wide modes.
8938 (expand_vec_perm_1): Use correct versions of patterns.
8939 * config/i386/sse.md (avx512f_vec_dup<mode>_1): New.
8940 (vashr<mode>3<mask_name>): Split V8HImode and V16QImode.
8942 2014-11-05 Ilya Enkovich <ilya.enkovich@intel.com>
8948 * tree-chkp-opt.c: New.
8951 * Makefile.in (OBJS): Add ipa-chkp.o, rtl-chkp.o, tree-chkp.o
8953 (GTFILES): Add tree-chkp.c.
8954 * mode-classes.def (MODE_POINTER_BOUNDS): New.
8955 * tree.def (POINTER_BOUNDS_TYPE): New.
8956 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
8957 (POINTER_BOUNDS_MODE): New.
8958 (make_pointer_bounds_mode): New.
8959 * machmode.h (POINTER_BOUNDS_MODE_P): New.
8960 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
8961 (layout_type): Support POINTER_BOUNDS_TYPE.
8962 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
8963 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
8964 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
8965 (type_contains_placeholder_1): Likewise.
8966 (build_common_tree_nodes): Initialize
8967 pointer_bounds_type_node.
8968 * tree.h (POINTER_BOUNDS_TYPE_P): New.
8969 (pointer_bounds_type_node): New.
8970 (POINTER_BOUNDS_P): New.
8971 (BOUNDED_TYPE_P): New.
8973 (CALL_WITH_BOUNDS_P): New.
8974 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
8975 (gimple_call_with_bounds_p): New.
8976 (gimple_call_set_with_bounds): New.
8977 (gimple_return_retbnd): New.
8978 (gimple_return_set_retbnd): New
8979 * gimple.c (gimple_build_return): Increase number of ops
8980 for return statement.
8981 (gimple_build_call_from_tree): Propagate CALL_WITH_BOUNDS_P
8983 * gimple-pretty-print.c (dump_gimple_return): Print second op.
8984 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
8985 * gimplify.c (gimplify_init_constructor): Avoid infinite
8986 loop during gimplification of bounds initializer.
8987 * calls.c: Include tree-chkp.h, rtl-chkp.h, bitmap.h.
8988 (special_function_p): Use original decl name when analyzing
8989 instrumentation clone.
8990 (arg_data): Add fields special_slot, pointer_arg and
8992 (store_bounds): New.
8993 (emit_call_1): Propagate instrumentation flag for CALL.
8994 (initialize_argument_information): Compute pointer_arg,
8995 pointer_offset and special_slot for pointer bounds arguments.
8996 (finalize_must_preallocate): Preallocate when storing bounds
8998 (compute_argument_addresses): Skip pointer bounds.
8999 (expand_call): Store bounds into tables separately. Return
9000 result joined with resulting bounds.
9001 * cfgexpand.c: Include tree-chkp.h, rtl-chkp.h.
9002 (expand_call_stmt): Propagate bounds flag for CALL_EXPR.
9003 (expand_return): Add returned bounds arg. Handle returned bounds.
9004 (expand_gimple_stmt_1): Adjust to new expand_return signature.
9005 (gimple_expand_cfg): Reset rtx bounds map.
9006 * expr.c: Include tree-chkp.h, rtl-chkp.h.
9007 (expand_assignment): Handle returned bounds.
9008 (store_expr_with_bounds): New. Replaces store_expr with new bounds
9009 target argument. Handle bounds returned by calls.
9010 (store_expr): Now wraps store_expr_with_bounds.
9011 * expr.h (store_expr_with_bounds): New.
9012 * function.c: Include tree-chkp.h, rtl-chkp.h.
9013 (bounds_parm_data): New.
9014 (use_register_for_decl): Do not registerize decls used for bounds
9016 (assign_parms_augmented_arg_list): Add bounds of the result
9017 structure pointer as the second argument.
9018 (assign_parm_find_entry_rtl): Mark bounds are never passed on
9020 (assign_parm_is_stack_parm): Likewise.
9021 (assign_parm_load_bounds): New.
9022 (assign_bounds): New.
9023 (assign_parms): Load bounds and determine a location for
9025 (diddle_return_value_1): New.
9026 (diddle_return_value): Handle returned bounds.
9027 * function.h (rtl_data): Add field for returned bounds.
9028 * varasm.c: Include tree-chkp.h.
9029 (output_constant): Support POINTER_BOUNDS_TYPE.
9030 (output_constant_pool_2): Support MODE_POINTER_BOUNDS.
9031 (ultimate_transparent_alias_target): Move up.
9032 (make_decl_rtl): For instrumented function use
9033 name of the original decl.
9034 (assemble_start_function): Mark function as global
9035 in case it is instrumentation clone of the global
9037 (do_assemble_alias): Follow transparent alias chain
9038 for identifier. Check if original alias is public.
9039 (maybe_assemble_visibility): Use visibility of the
9040 original function for instrumented version.
9041 (default_unique_section): Likewise.
9042 * emit-rtl.c (immed_double_const): Support MODE_POINTER_BOUNDS.
9043 (init_emit_once): Build pointer bounds zero constants.
9044 * explow.c (trunc_int_for_mode): Support MODE_POINTER_BOUNDS.
9045 * target.def (builtin_chkp_function): New.
9046 (chkp_bound_type): New.
9047 (chkp_bound_mode): New.
9048 (chkp_make_bounds_constant): New.
9049 (chkp_initialize_bounds): New.
9050 (load_bounds_for_arg): New.
9051 (store_bounds_for_arg): New.
9052 (load_returned_bounds): New.
9053 (store_returned_bounds): New.
9054 (chkp_function_value_bounds): New.
9055 (setup_incoming_vararg_bounds): New.
9056 (function_arg): Update hook description with new possible return
9058 * targhooks.h (default_load_bounds_for_arg): New.
9059 (default_store_bounds_for_arg): New.
9060 (default_load_returned_bounds): New.
9061 (default_store_returned_bounds): New.
9062 (default_chkp_bound_type): New.
9063 (default_chkp_bound_mode): New.
9064 (default_builtin_chkp_function): New.
9065 (default_chkp_function_value_bounds): New.
9066 (default_chkp_make_bounds_constant): New.
9067 (default_chkp_initialize_bounds): New.
9068 (default_setup_incoming_vararg_bounds): New.
9069 * targhooks.c (default_load_bounds_for_arg): New.
9070 (default_store_bounds_for_arg): New.
9071 (default_load_returned_bounds): New.
9072 (default_store_returned_bounds): New.
9073 (default_chkp_bound_type): New.
9074 (default_chkp_bound_mode); New.
9075 (default_builtin_chkp_function): New.
9076 (default_chkp_function_value_bounds): New.
9077 (default_chkp_make_bounds_constant): New.
9078 (default_chkp_initialize_bounds): New.
9079 (default_setup_incoming_vararg_bounds): New.
9080 * builtin-types.def (BT_BND): New.
9081 (BT_FN_PTR_CONST_PTR): New.
9082 (BT_FN_CONST_PTR_CONST_PTR): New.
9083 (BT_FN_BND_CONST_PTR): New.
9084 (BT_FN_CONST_PTR_BND): New.
9085 (BT_FN_PTR_CONST_PTR_SIZE): New.
9086 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
9087 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
9088 (BT_FN_VOID_CONST_PTR_SIZE): New.
9089 (BT_FN_VOID_PTR_BND): New.
9090 (BT_FN_CONST_PTR_CONST_PTR_CONST_PTR): New.
9091 (BT_FN_BND_CONST_PTR_SIZE): New.
9092 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
9093 (BT_FN_VOID_CONST_PTR_BND_CONST_PTR): New.
9094 * chkp-builtins.def: New.
9095 * builtins.def: include chkp-builtins.def.
9096 (DEF_CHKP_BUILTIN): New.
9097 * builtins.c: Include tree-chkp.h and rtl-chkp.h.
9098 (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
9099 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
9100 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
9101 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
9102 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
9103 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
9104 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
9105 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
9106 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_NARROW,
9107 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
9108 (std_expand_builtin_va_start): Init bounds for va_list.
9109 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add
9110 __CHKP__ macro when Pointer Bounds Checker is on.
9111 * params.def (PARAM_CHKP_MAX_CTOR_SIZE): New.
9112 * passes.def (pass_ipa_chkp_versioning): New.
9113 (pass_early_local_passes): Renamed to pass_build_ssa_passes.
9114 (pass_fixup_cfg): Moved to pass_chkp_instrumentation_passes.
9115 (pass_chkp_instrumentation_passes): New.
9116 (pass_ipa_chkp_produce_thunks): New.
9117 (pass_local_optimization_passes): New.
9118 (pass_chkp_opt): New.
9119 * tree-pass.h (make_pass_ipa_chkp_versioning): New.
9120 (make_pass_ipa_chkp_produce_thunks): New.
9121 (make_pass_chkp): New.
9122 (make_pass_chkp_opt): New.
9123 (make_pass_early_local_passes): Renamed to ...
9124 (make_pass_build_ssa_passes): This.
9125 (make_pass_chkp_instrumentation_passes): New.
9126 (make_pass_local_optimization_passes): New.
9127 * passes.c (pass_manager::execute_early_local_passes): Execute
9128 early passes in three steps.
9129 (execute_all_early_local_passes): Renamed to ...
9130 (execute_build_ssa_passes): This.
9131 (pass_data_early_local_passes): Renamed to ...
9132 (pass_data_build_ssa_passes): This.
9133 (pass_early_local_passes): Renamed to ...
9134 (pass_build_ssa_passes): This.
9135 (pass_data_chkp_instrumentation_passes): New.
9136 (pass_chkp_instrumentation_passes): New.
9137 (pass_data_local_optimization_passes): New.
9138 (pass_local_optimization_passes): New.
9139 (make_pass_early_local_passes): Renamed to ...
9140 (make_pass_build_ssa_passes): This.
9141 (make_pass_chkp_instrumentation_passes): New.
9142 (make_pass_local_optimization_passes): New.
9143 * c-family/c.opt (fcheck-pointer-bounds): New.
9144 (fchkp-check-incomplete-type): New.
9145 (fchkp-zero-input-bounds-for-main): New.
9146 (fchkp-first-field-has-own-bounds): New.
9147 (fchkp-narrow-bounds): New.
9148 (fchkp-narrow-to-innermost-array): New.
9149 (fchkp-optimize): New.
9150 (fchkp-use-fast-string-functions): New.
9151 (fchkp-use-nochk-string-functions): New.
9152 (fchkp-use-static-bounds): New.
9153 (fchkp-use-static-const-bounds): New.
9154 (fchkp-treat-zero-dynamic-size-as-infinite): New.
9155 (fchkp-check-read): New.
9156 (fchkp-check-write): New.
9157 (fchkp-store-bounds): New.
9158 (fchkp-instrument-calls): New.
9159 (fchkp-instrument-marked-only): New.
9161 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
9162 (handle_bnd_legacy): New.
9163 (handle_bnd_instrument): New.
9164 (c_common_attribute_table): Add bnd_variable_size, bnd_legacy
9165 and bnd_instrument. Fix documentation.
9166 (c_common_format_attribute_table): Likewsie.
9167 * toplev.c: include tree-chkp.h.
9168 (process_options): Check Pointer Bounds Checker is supported.
9169 (compile_file): Add chkp_finish_file call.
9170 * ipa-cp.c (initialize_node_lattices): Use cgraph_local_p
9171 to handle instrumentation clones properly.
9172 (propagate_constants_accross_call): Do not propagate
9173 through instrumentation thunks.
9174 * ipa-pure-const.c (propagate_pure_const): Support
9176 * ipa-inline.c (early_inliner): Check edge has summary allocated.
9177 * ipa-split.c: Include tree-chkp.h.
9179 (split_part_set_ssa_name_p): New.
9180 (consider_split): Do not split retbnd and retval
9182 (insert_bndret_call_after): new.
9183 (split_function): Propagate Pointer Bounds Checker
9184 instrumentation marks and handle returned bounds.
9185 * tree-ssa-sccvn.h (vn_reference_op_struct): Transform opcode
9186 into bit field and add with_bounds field.
9187 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Set
9188 with_bounds field for instrumented calls.
9189 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Restore
9190 CALL_WITH_BOUNDS_P flag for calls.
9191 * tree-ssa-ccp.c: Include tree-chkp.h.
9192 (insert_clobber_before_stack_restore): Handle
9193 BUILT_IN_CHKP_BNDRET calls.
9194 * tree-ssa-dce.c: Include tree-chkp.h.
9195 (propagate_necessity): For free call fed by alloc check
9196 bounds are also provided by the same alloc.
9197 (eliminate_unnecessary_stmts): Handle BUILT_IN_CHKP_BNDRET
9199 * tree-inline.c: Include tree-chkp.h.
9200 (declare_return_variable): Add arg holding
9201 returned bounds slot. Create and initialize returned bounds var.
9202 (remap_gimple_stmt): Handle returned bounds.
9203 Return sequence of statements instead of a single statement.
9204 (insert_init_stmt): Add declaration.
9205 (remap_gimple_seq): Adjust to new remap_gimple_stmt signature.
9206 (copy_bb): Adjust to changed return type of remap_gimple_stmt.
9207 Properly handle bounds in va_arg_pack and va_arg_pack_len.
9208 (expand_call_inline): Handle returned bounds. Add bounds copy
9209 for generated mem to mem assignments.
9210 * tree-inline.h (copy_body_data): Add fields retbnd and
9212 * value-prof.c: Include tree-chkp.h.
9213 (gimple_ic): Support returned bounds.
9214 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
9215 with "chkp ctor" and "bnd_legacy" attributes.
9216 (symtab_remove_unreachable_nodes): Keep initial values for
9217 pointer bounds to be used for checks eliminations.
9218 (process_references): Handle IPA_REF_CHKP.
9219 (walk_polymorphic_call_targets): Likewise.
9220 * ipa-visibility.c (cgraph_externally_visible_p): Mark
9221 instrumented 'main' as externally visible.
9222 (function_and_variable_visibility): Filter instrumentation
9224 * cgraph.h (cgraph_thunk_info): Add add_pointer_bounds_args
9226 (cgraph_node): Add instrumented_version, orig_decl and
9227 instrumentation_clone fields.
9228 (symtab_node::get_alias_target): Allow IPA_REF_CHKP reference.
9229 (varpool_node): Add need_bounds_init field.
9230 (cgraph_local_p): New.
9231 * cgraph.c: Include tree-chkp.h.
9232 (cgraph_node::remove): Fix instrumented_version
9233 of the referenced node if any.
9234 (cgraph_node::dump): Dump instrumentation_clone and
9235 instrumented_version fields.
9236 (cgraph_node::verify_node): Check correctness of IPA_REF_CHKP
9237 references and instrumentation thunks.
9238 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Keep
9239 all not instrumented instrumentation clones alive.
9240 (cgraph_redirect_edge_call_stmt_to_callee): Support
9242 * cgraphbuild.c (rebuild_cgraph_edges): Rebuild IPA_REF_CHKP
9244 (cgraph_rebuild_references): Likewise.
9245 * cgraphunit.c: Include tree-chkp.h.
9246 (assemble_thunks_and_aliases): Skip thunks calling instrumneted
9248 (varpool_finalize_decl): Register statically initialized decls
9249 in Pointer Bounds Checker.
9250 (walk_polymorphic_call_targets): Do not mark generated call to
9251 __builtin_unreachable as with_bounds.
9252 (output_weakrefs): If there are both instrumented and original
9253 versions, output only one of them.
9254 (cgraph_node::expand_thunk): Set with_bounds flag
9255 for created call statement.
9256 * ipa-ref.h (ipa_ref_use): Add IPA_REF_CHKP.
9257 (ipa_ref): increase size of use field.
9258 * symtab.c (ipa_ref_use_name): Add element for IPA_REF_CHKP.
9259 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
9260 (ctor_for_folding): Do not fold constant bounds vars.
9261 * lto-streamer.h (LTO_minor_version): Change minor version from
9263 * lto-cgraph.c (compute_ltrans_boundary): Keep initial values for
9265 (lto_output_node): Output instrumentation_clone,
9266 thunk.add_pointer_bounds_args and orig_decl field.
9267 (lto_output_ref): Adjust to new ipa_ref::use field size.
9268 (input_overwrite_node): Read instrumentation_clone field.
9269 (input_node): Read thunk.add_pointer_bounds_args and orig_decl
9271 (input_ref): Adjust to new ipa_ref::use field size.
9272 (input_cgraph_1): Compute instrumented_version fields and restore
9273 IDENTIFIER_TRANSPARENT_ALIAS chains.
9274 (lto_output_varpool_node): Output
9275 need_bounds_init value.
9276 (input_varpool_node): Read need_bounds_init value.
9277 * lto-partition.c (add_symbol_to_partition_1): Keep original
9278 and instrumented versions together.
9279 (privatize_symbol_name): Restore transparent alias chain if required.
9280 (add_references_to_partition): Add references to pointer bounds vars.
9281 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
9282 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
9283 (gen_type_die_with_usage): Skip pointer bounds.
9284 (dwarf2out_global_decl): Likewise.
9285 (is_base_type): Support POINTER_BOUNDS_TYPE.
9286 (gen_formal_types_die): Skip pointer bounds.
9287 (gen_decl_die): Likewise.
9288 * var-tracking.c (vt_add_function_parameters): Skip
9290 * ipa-icf.c (sem_function::merge): Do not merge when instrumentation
9292 (sem_variable::merge): Reset need_bounds_init flag.
9293 * doc/extend.texi: Document Pointer Bounds Checker built-in functions
9295 * doc/tm.texi.in (TARGET_LOAD_BOUNDS_FOR_ARG): New.
9296 (TARGET_STORE_BOUNDS_FOR_ARG): New.
9297 (TARGET_LOAD_RETURNED_BOUNDS): New.
9298 (TARGET_STORE_RETURNED_BOUNDS): New.
9299 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
9300 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
9301 (TARGET_BUILTIN_CHKP_FUNCTION): New.
9302 (TARGET_CHKP_BOUND_TYPE): New.
9303 (TARGET_CHKP_BOUND_MODE): New.
9304 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
9305 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
9306 * doc/tm.texi: Regenerated.
9307 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
9310 * doc/invoke.texi (-mmpx): New.
9312 (chkp-max-ctor-size): New.
9313 * config/i386/constraints.md (w): New.
9316 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
9317 * config/i386/i386-modes.def (BND32): New.
9319 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
9320 * config/i386/i386.c: Include tree-chkp.h, rtl-chkp.h, tree-iterator.h.
9321 (regclass_map): Add bound registers.
9322 (dbx_register_map): Likewise.
9323 (dbx64_register_map): Likewise.
9324 (svr4_dbx_register_map): Likewise.
9325 (isa_opts): Add -mmpx.
9327 (ix86_option_override_internal): Support MPX ISA.
9328 (ix86_conditional_register_usage): Support bound registers.
9329 (ix86_code_end): Add MPX bnd prefix.
9330 (output_set_got): Likewise.
9331 (print_reg): Avoid prefixes for bound registers.
9332 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
9333 (ix86_print_operand_punct_valid_p): Likewise.
9334 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
9336 (ix86_output_call_insn): Add MPX bnd prefix to branch instructions.
9337 (ix86_class_likely_spilled_p): Add bound regs support.
9338 (ix86_hard_regno_mode_ok): Likewise.
9339 (x86_order_regs_for_local_alloc): Likewise.
9340 (ix86_bnd_prefixed_insn_p): New.
9341 (ix86_builtins): Add
9342 IX86_BUILTIN_BNDMK, IX86_BUILTIN_BNDSTX,
9343 IX86_BUILTIN_BNDLDX, IX86_BUILTIN_BNDCL,
9344 IX86_BUILTIN_BNDCU, IX86_BUILTIN_BNDRET,
9345 IX86_BUILTIN_BNDNARROW, IX86_BUILTIN_BNDINT,
9346 IX86_BUILTIN_SIZEOF, IX86_BUILTIN_BNDLOWER,
9347 IX86_BUILTIN_BNDUPPER.
9348 (builtin_isa): Add leaf_p and nothrow_p fields.
9349 (def_builtin): Initialize leaf_p and nothrow_p.
9350 (ix86_add_new_builtins): Handle leaf_p and nothrow_p
9353 (bdesc_mpx_const): New.
9354 (ix86_init_mpx_builtins): New.
9355 (ix86_init_builtins): Call ix86_init_mpx_builtins.
9356 (ix86_emit_cmove): New.
9357 (ix86_emit_move_max): New.
9358 (ix86_expand_builtin): Expand IX86_BUILTIN_BNDMK,
9359 IX86_BUILTIN_BNDSTX, IX86_BUILTIN_BNDLDX,
9360 IX86_BUILTIN_BNDCL, IX86_BUILTIN_BNDCU,
9361 IX86_BUILTIN_BNDRET, IX86_BUILTIN_BNDNARROW,
9362 IX86_BUILTIN_BNDINT, IX86_BUILTIN_SIZEOF,
9363 IX86_BUILTIN_BNDLOWER, IX86_BUILTIN_BNDUPPER.
9364 (ix86_function_value_bounds): New.
9365 (ix86_builtin_mpx_function): New.
9366 (ix86_get_arg_address_for_bt): New.
9367 (ix86_load_bounds): New.
9368 (ix86_store_bounds): New.
9369 (ix86_load_returned_bounds): New.
9370 (ix86_store_returned_bounds): New.
9371 (ix86_mpx_bound_mode): New.
9372 (ix86_make_bounds_constant): New.
9373 (ix86_initialize_bounds):
9374 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
9375 (TARGET_STORE_BOUNDS_FOR_ARG): New.
9376 (TARGET_LOAD_RETURNED_BOUNDS): New.
9377 (TARGET_STORE_RETURNED_BOUNDS): New.
9378 (TARGET_CHKP_BOUND_MODE): New.
9379 (TARGET_BUILTIN_CHKP_FUNCTION): New.
9380 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
9381 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
9382 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
9383 (ix86_option_override_internal): Do not
9384 support x32 with MPX.
9385 (init_cumulative_args): Init stdarg, bnd_regno, bnds_in_bt
9387 (function_arg_advance_32): Return number of used integer
9389 (function_arg_advance_64): Likewise.
9390 (function_arg_advance_ms_64): Likewise.
9391 (ix86_function_arg_advance): Handle pointer bounds.
9392 (ix86_function_arg): Likewise.
9393 (ix86_function_value_regno_p): Mark fisrt bounds registers as
9394 possible function value.
9395 (ix86_function_value_1): Handle pointer bounds type/mode
9396 (ix86_return_in_memory): Likewise.
9397 (ix86_print_operand): Analyse insn to decide abounf "bnd" prefix.
9398 (ix86_expand_call): Generate returned bounds.
9399 (ix86_setup_incoming_vararg_bounds): New.
9400 (ix86_va_start): Initialize bounds for pointers in va_list.
9401 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
9402 * config/i386/i386.h (TARGET_MPX): New.
9403 (TARGET_MPX_P): New.
9404 (FIRST_PSEUDO_REGISTER): Fix to new value.
9405 (FIXED_REGISTERS): Add bound registers.
9406 (CALL_USED_REGISTERS): Likewise.
9407 (REG_ALLOC_ORDER): Likewise.
9408 (HARD_REGNO_NREGS): Likewise.
9409 (VALID_BND_REG_MODE): New.
9410 (FIRST_BND_REG): New.
9411 (LAST_BND_REG): New.
9412 (reg_class): Add BND_REGS.
9413 (REG_CLASS_NAMES): Likewise.
9414 (REG_CLASS_CONTENTS): Likewise.
9416 (ANY_BND_REG_P): New.
9418 (HI_REGISTER_NAMES): Add bound registers.
9419 (ix86_args): Add bnd_regno, bnds_in_bt, force_bnd_pass and
9421 * config/i386/i386.md (UNSPEC_BNDMK): New.
9422 (UNSPEC_BNDMK_ADDR): New.
9423 (UNSPEC_BNDSTX): New.
9424 (UNSPEC_BNDLDX): New.
9425 (UNSPEC_BNDLDX_ADDR): New.
9426 (UNSPEC_BNDCL): New.
9427 (UNSPEC_BNDCU): New.
9428 (UNSPEC_BNDCN): New.
9429 (UNSPEC_MPX_FENCE): New.
9430 (UNSPEC_SIZEOF): New.
9433 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9434 (length_immediate): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9435 (prefix_rep): Check for bnd prefix.
9436 (prefix_0f): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9437 (length_nobnd): New.
9438 (length): Use length_nobnd when specified.
9439 (memory): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9444 (*jcc_1): Add MPX bnd prefix.
9447 (*indirect_jump): Likewise.
9448 (*tablejump_1): Likewise.
9449 (simple_return_internal): Likewise.
9450 (simple_return_internal_long): Likewise.
9451 (simple_return_pop_internal): Likewise.
9452 (simple_return_indirect_internal): Likewise.
9456 (*mov<mode>_internal_mpx): New.
9457 (<mode>_<bndcheck>): New.
9458 (*<mode>_<bndcheck>): New.
9463 move_size_reloc_<mode>): New.
9464 * config/i386/predicates.md (address_mpx_no_base_operand): New.
9465 (address_mpx_no_index_operand): New.
9466 (bnd_mem_operator): New.
9467 (symbol_operand): New.
9468 (x86_64_immediate_size_operand): New.
9469 * config/i386/i386.opt (mmpx): New.
9470 * config/i386/i386-builtin-types.def (BND): New.
9472 (BND_FTYPE_PCVOID_ULONG): New.
9473 (VOID_FTYPE_BND_PCVOID): New.
9474 (VOID_FTYPE_PCVOID_PCVOID_BND): New.
9475 (BND_FTYPE_PCVOID_PCVOID): New.
9476 (BND_FTYPE_PCVOID): New.
9477 (BND_FTYPE_BND_BND): New.
9478 (PVOID_FTYPE_PVOID_PVOID_ULONG): New.
9479 (PVOID_FTYPE_PCVOID_BND_ULONG): New.
9480 (ULONG_FTYPE_VOID): New.
9481 (PVOID_FTYPE_BND): New.
9483 2014-11-05 Bernd Schmidt <bernds@codesourcery.com>
9485 * passes.def (pass_compute_alignments, pass_duplicate_computed_gotos,
9486 pass_variable_tracking, pass_free_cfg, pass_machine_reorg,
9487 pass_cleanup_barriers, pass_delay_slots,
9488 pass_split_for_shorten_branches, pass_convert_to_eh_region_ranges,
9489 pass_shorten_branches, pass_est_nothrow_function_flags,
9490 pass_dwarf2_frame, pass_final): Move outside of pass_postreload and
9491 into pass_late_compilation.
9492 (pass_late_compilation): Add.
9493 * passes.c (pass_data_late_compilation, pass_late_compilation,
9494 make_pass_late_compilation): New.
9495 * timevar.def (TV_LATE_COMPILATION): New.
9497 * target.def (omit_struct_return_reg): New data hook.
9498 * doc/tm.texi.in: Add @hook TARGET_OMIT_STRUCT_RETURN_REG.
9499 * doc/tm.texi: Regenerate.
9500 * function.c (expand_function_end): Use it.
9502 * target.def (no_register_allocation): New data hook.
9503 * doc/tm.texi.in: Add @hook TARGET_NO_REGISTER_ALLOCATION.
9504 * doc/tm.texi: Regenerate.
9505 * ira.c (gate_ira): New function.
9506 (pass_data_ira): Set has_gate.
9507 (pass_ira): Add a gate function.
9508 (pass_data_reload): Likewise.
9509 (pass_reload): Add a gate function.
9511 * reload1.c (eliminate_regs): If reg_eliminate_is NULL, assert that
9512 no register allocation happens on the target and return.
9513 * final.c (alter_subreg): Ensure register is not a pseudo before
9514 calling simplify_subreg.
9515 (output_operand): Assert that x isn't a pseudo only if doing
9516 register allocation.
9518 * dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for
9521 * optabs.c (emit_indirect_jump): Test HAVE_indirect_jump and emit a
9524 2014-11-05 Alex Velenko <Alex.Velenko@arm.com>
9526 * simplify-rtx.c (simplify_binary_operation_1): Div check added.
9527 * rtl.h (SUBREG_P): New macro added.
9529 2014-11-05 Tejas Belagod <tejas.belagod@arm.com>
9531 * config/aarch64/aarch64-builtins.c
9532 (aarch64_build_scalar_type): Remove.
9533 (aarch64_scalar_builtin_types, aarch64_simd_type,
9534 aarch64_simd_type, aarch64_mangle_builtin_scalar_type,
9535 aarch64_mangle_builtin_vector_type,
9536 aarch64_mangle_builtin_type, aarch64_simd_builtin_std_type,
9537 aarch64_lookup_simd_builtin_type, aarch64_simd_builtin_type,
9538 aarch64_init_simd_builtin_types,
9539 aarch64_init_simd_builtin_scalar_types): New.
9540 (aarch64_init_simd_builtins): Refactor.
9541 (aarch64_init_crc32_builtins): Fixup with qualifier.
9542 * config/aarch64/aarch64-protos.h
9543 (aarch64_mangle_builtin_type): Export.
9544 * config/aarch64/aarch64-simd-builtin-types.def: New.
9545 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Remove.
9546 (aarch64_mangle_type): Refactor.
9547 * config/aarch64/arm_neon.h: Declare vector types based on
9549 * config/aarch64/t-aarch64: Update dependency.
9551 2014-11-04 Pat Haugen <pthaugen@us.ibm.com>
9553 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl,
9554 atomic_update_decl): Guard declaration with #ifdef.
9556 2014-11-04 Marek Polacek <polacek@redhat.com>
9558 * sanopt.c (sanopt_optimize_walker): Remove unused variables.
9560 2014-11-04 Marek Polacek <polacek@redhat.com>
9562 * Makefile.in (OBJS): Add sanopt.o.
9563 (GTFILES): Add sanopt.c.
9564 * asan.h (asan_expand_check_ifn): Declare.
9565 * asan.c (asan_expand_check_ifn): No longer static.
9566 (class pass_sanopt, pass_sanopt::execute, make_pass_sanopt): Move...
9567 * sanopt.c: ...here. New file.
9569 2014-11-04 Jiong Wang <jiong.wang@arm.com>
9570 Wilco Dijkstra <wilco.dijkstra@arm.com>
9573 * config/aarch64/aarch64.c (aarch64_expand_epiloue): Add barriers before
9576 2014-11-04 Bernd Schmidt <bernds@codesourcery.com>
9578 * combine.c (combine_simplify_rtx): In STORE_FLAG_VALUE == -1 case,
9579 also verify that mode is equal to the mode of op0.
9581 * bb-reorder.c (get_uncond_jump_length): Avoid using delete_insn,
9582 emit into a sequence instead.
9584 2014-11-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9586 * config/sh/sh.c (emit_fpu_switch): Drop unused automatic variable.
9588 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
9590 config/arm/neon.md (reduc_smin_<mode> *2): Rename to...
9591 (reduc_smin_scal_<mode> *2): ...this; extract scalar result.
9592 (reduc_smax_<mode> *2): Rename to...
9593 (reduc_smax_scal_<mode> *2): ...this; extract scalar result.
9594 (reduc_umin_<mode> *2): Rename to...
9595 (reduc_umin_scal_<mode> *2): ...this; extract scalar result.
9596 (reduc_umax_<mode> *2): Rename to...
9597 (reduc_umax_scal_<mode> *2): ...this; extract scalar result.
9599 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
9601 config/arm/neon.md (reduc_plus_*): Rename to...
9602 (reduc_plus_scal_*): ...this; reduce to temp and extract scalar result.
9604 2014-11-04 Michael Collison <michael.collison@linaro.org>
9606 * config/aarch64/iterators.md (lconst_atomic): New mode attribute
9607 to support constraints for CONST_INT in atomic operations.
9608 * config/aarch64/atomics.md
9609 (atomic_<atomic_optab><mode>): Use lconst_atomic constraint.
9610 (atomic_nand<mode>): Likewise.
9611 (atomic_fetch_<atomic_optab><mode>): Likewise.
9612 (atomic_fetch_nand<mode>): Likewise.
9613 (atomic_<atomic_optab>_fetch<mode>): Likewise.
9614 (atomic_nand_fetch<mode>): Likewise.
9616 2014-11-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9618 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in definition
9619 of __ARM_FEATURE_IDIV.
9621 2014-11-04 Marek Polacek <polacek@redhat.com>
9623 * ubsan.c (instrument_object_size): Optimize [x & CST] array accesses.
9625 2014-11-03 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9627 * config/rx/rx.c (rx_handle_func_attribute): Mark unused argument.
9629 2014-11-04 Zhenqiang Chen <zhenqiang.chen@arm.com>
9632 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
9633 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
9634 Allow CC mode if HAVE_cbranchcc4.
9636 2014-11-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
9638 * godump.c (go_format_type): Rewrite RECORD_TYPE nad UNION_TYPE support
9639 with -fdump-go-spec. Anonymous substructures are now flattened and
9640 replaced by their fields (record) or the first named, non-bitfield
9643 2014-11-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
9645 * input.c (expand_location_to_spelling_point): Fix typo.
9646 (expansion_point_location_if_in_system_header): Fix comment.
9648 2014-11-03 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9650 * config/avr/gen-avr-mmcu-specs.c: Remove unnecessary format specifier.
9652 2014-11-03 Richard Biener <rguenther@suse.de>
9654 * tree-eh.c (operation_could_trap_helper_p): Handle conversions
9655 like ordinary operations.
9656 * gimplify.c (gimplify_conversion): Gimplify CONVERT_EXPR
9659 2014-11-03 Joseph Myers <joseph@codesourcery.com>
9661 * configure.ac (TARGET_GLIBC_MAJOR, TARGET_GLIBC_MINOR): Define
9663 * configure, config.h.in: Regenerate.
9664 * config/rs6000/linux.h [TARGET_GLIBC_MAJOR > 2 ||
9665 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
9666 (RS6000_GLIBC_ATOMIC_FENV): New macro.
9667 * config/rs6000/linux64.h [TARGET_GLIBC_MAJOR > 2 ||
9668 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
9669 (RS6000_GLIBC_ATOMIC_FENV): New macro.
9670 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl)
9671 (atomic_update_decl): New static variables.
9672 (rs6000_atomic_assign_expand_fenv) [RS6000_GLIBC_ATOMIC_FENV]:
9673 Generate calls to __atomic_feholdexcept, __atomic_feclearexcept
9674 and __atomic_feupdateenv for soft-float and no-FPRs.
9676 2014-11-03 Richard Biener <rguenther@suse.de>
9678 * match.pd: Add two abs patterns. Announce tree_expr_nonnegative_p.
9679 Also drop bogus FLOAT_EXPR and FIX_TRUNC_EXPR.
9680 * fold-const.c (fold_unary_loc): Remove them here.
9681 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
9682 * gimple-fold.c (fold_gimple_assign): Remove now obsolete
9683 GIMPLE_UNARY_RHS case.
9684 (gimple_fold_stmt_to_constant_1): Likewise.
9685 (replace_stmt_with_simplification): Fix inverted comparison.
9687 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
9689 PR tree-optimization/60770
9690 * tree-into-ssa.c (rewrite_update_stmt): Return whether the
9691 statement should be removed.
9692 (maybe_register_def): Likewise. Replace clobbers with default
9694 (rewrite_dom_walker::before_dom_children): Remove statement if
9695 rewrite_update_stmt says so.
9696 * tree-ssa-live.c: Include tree-ssa.h.
9697 (set_var_live_on_entry): Do not mark undefined variables as live.
9698 (verify_live_on_entry): Do not check undefined variables.
9699 * tree-ssa.h (ssa_undefined_value_p): New parameter for the case
9700 of partially undefined variables.
9701 * tree-ssa.c (ssa_undefined_value_p): Likewise.
9702 (execute_update_addresses_taken): Do not drop clobbers.
9704 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
9706 PR tree-optimization/63666
9707 * fold-const.c: Include "optabs.h".
9708 (fold_ternary_loc) <VEC_PERM_EXPR>: Avoid canonicalizing a
9709 can_vec_perm_p permutation to one that is not.
9711 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
9713 * ifcvt.c (noce_try_store_flag_mask): Check rtx cost.
9715 2014-11-03 Andrew Pinski <apinski@cavium.com>
9717 * config/mips/mips-cpus.def (octeon3): New cpu.
9718 * config/mips/mips.c (mips_rtx_cost_data): Add octeon3.
9719 (mips_print_operand <case 'T', case 't'>): Fix a bug as the mode
9720 of the comparison no longer matches mode of the operands.
9721 (mips_issue_rate): Handle PROCESSOR_OCTEON3.
9722 * config/mips/mips.h (TARGET_OCTEON): Add Octeon3.
9723 (TARGET_OCTEON2): Likewise.
9724 (TUNE_OCTEON): Add Octeon3.
9725 * config/mips/mips.md (processor): Add octeon3.
9726 * config/mips/octeon.md (octeon_fpu): New automaton and cpu_unit.
9727 (octeon_arith): Add octeon3.
9728 (octeon_condmove): Remove.
9729 (octeon_condmove_o1): New reservation.
9730 (octeon_condmove_o2): New reservation.
9731 (octeon_condmove_o3_int_on_cc): New reservation.
9732 (octeon_load_o2): Add octeon3.
9733 (octeon_cop_o2): Likewise.
9734 (octeon_store): Likewise.
9735 (octeon_brj_o2): Likewise.
9736 (octeon_imul3_o2): Likewise.
9737 (octeon_imul_o2): Likewise.
9738 (octeon_mfhilo_o2): Likewise.
9739 (octeon_imadd_o2): Likewise.
9740 (octeon_idiv_o2_si): Likewise.
9741 (octeon_idiv_o2_di): Likewise.
9742 (octeon_fpu): Add to the automaton.
9743 (octeon_fpu): New cpu unit.
9744 (octeon_condmove_o2): Check for non floating point modes.
9745 (octeon_load_o2): Add prefetchx.
9746 (octeon_cop_o2): Don't check for octeon3.
9747 (octeon3_faddsubcvt): New reservation.
9748 (octeon3_fmul): Likewise.
9749 (octeon3_fmadd): Likewise.
9750 (octeon3_div_sf): Likewise.
9751 (octeon3_div_df): Likewise.
9752 (octeon3_sqrt_sf): Likewise.
9753 (octeon3_sqrt_df): Likewise.
9754 (octeon3_rsqrt_sf): Likewise.
9755 (octeon3_rsqrt_df): Likewise.
9756 (octeon3_fabsnegmov): Likewise.
9757 (octeon_fcond): Likewise.
9758 (octeon_fcondmov): Likewise.
9759 (octeon_fpmtc1): Likewise.
9760 (octeon_fpmfc1): Likewise.
9761 (octeon_fpload): Likewise.
9762 (octeon_fpstore): Likewise.
9763 * config/mips/mips-tables.opt: Regenerate.
9764 * doc/invoke.texi (-march=@var{arch}): Add octeon3.
9766 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
9768 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
9769 Allow CC mode if HAVE_cbranchcc4.
9771 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9773 * config/arc/arc.c (write_ext_corereg_1): Delete.
9774 (arc_write_ext_corereg): Use FOR_EACH_SUBRTX.
9776 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9778 * config/arc/arc.c (arc600_corereg_hazard_1): Delete.
9779 (arc600_corereg_hazard): Use FOR_EACH_SUBRTX.
9781 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9783 * config/arc/arc.c (arc_rewrite_small_data_p): Constify argument.
9784 (small_data_pattern_1): Delete.
9785 (small_data_pattern): Use FOR_EACH_SUBRTX.
9787 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9789 * config/arc/arc.c: Include rtl-iter.h.
9790 (arc_rewrite_small_data_1): Delete.
9791 (arc_rewrite_small_data): Use FOR_EACH_SUBRTX_PTR.
9793 2014-11-02 Michael Collison <michael.collison@linaro.org>
9795 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update
9796 to support vector modes.
9797 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
9799 2014-11-01 Andrew MacLeod <amacleod@redhat,com>
9801 * optabs.h: Flatten insn-codes.h to source files. Move some prototypes
9802 and structs to genopinit.c. Adjust protyoptypes to match optabs.c.
9803 * genopinit.c (main): Emit prototypes and structs into insn-opinit.h.
9804 * optabs.c: (gen_move_insn): Move to expr.c.
9805 * expr.h: Move protypes and enums to optabs.h.
9806 * expr.c: (gen_move_insn): Relocate from optabs.c.
9807 * genemit.c (main): Include insn-codes.h.
9808 * gengtype.c (open_base_files): Include insn-codes.h.
9809 * asan.c: Include insn-codes.h.
9810 * bb-reorder.c: Ditto.
9811 * builtins.c: Ditto.
9813 * cfgexpand.c: Ditto.
9814 * cilk-common.c: Ditto.
9821 * function.c: Ditto.
9823 * internal-fn.c: Ditto.
9824 * loop-unroll.c: Ditto.
9826 * modulo-sched.c: Ditto.
9828 * postreload.c: Ditto.
9832 * shrink-wrap.c: Ditto.
9833 * simplify-rtx.c: Ditto.
9835 * target-globals.c: Ditto.
9836 * targhooks.c: Ditto.
9838 * tree-if-conv.c: Ditto.
9839 * tree-ssa-forwprop.c: Ditto.
9840 * tree-ssa-loop-prefetch.c: Ditto.
9841 * tree-ssa-math-opts.c: Ditto.
9842 * tree-ssa-phiopt.c: Ditto.
9843 * tree-ssa-reassoc.c: Ditto.
9844 * tree-switch-conversion.c: Ditto.
9845 * tree-vect-data-refs.c: Ditto.
9846 * tree-vect-generic.c: Ditto.
9847 * tree-vect-loop.c: Ditto.
9848 * tree-vect-patterns.c: Ditto.
9849 * tree-vect-slp.c: Ditto.
9850 * tree-vect-stmts.c: Ditto.
9851 * tree-vrp.c: Ditto.
9852 * value-prof.c: Ditto.
9853 * config/aarch64/aarch64-builtins.c: Ditto.
9854 * config/alpha/alpha.c: Ditto.
9855 * config/arm/arm.c: Ditto.
9856 * config/cris/cris.c: Ditto.
9857 * config/epiphany/epiphany.c: Ditto.
9858 * config/frv/frv.c: Ditto.
9859 * config/h8300/h8300.c: Ditto.
9860 * config/ia64/ia64.c: Ditto.
9861 * config/iq2000/iq2000.c: Ditto.
9862 * config/m32c/m32c.c: Ditto.
9863 * config/mep/mep.c: Ditto.
9864 * config/microblaze/microblaze.c: Ditto.
9865 * config/mips/mips.c: Ditto.
9866 * config/mn10300/mn10300.c: Ditto.
9867 * config/moxie/moxie.c: Ditto.
9868 * config/msp430/msp430.c: Ditto.
9869 * config/nios2/nios2.c: Ditto.
9870 * config/pa/pa.c: Ditto.
9871 * config/rl78/rl78.c: Ditto.
9872 * config/rs6000/rs6000.c: Ditto.
9873 * config/rx/rx.c: Ditto.
9874 * config/s390/s390.c: Ditto.
9875 * config/sh/sh.c: Ditto.
9876 * config/sh/sh_treg_combine.cc: Ditto.
9877 * config/spu/spu.c: Ditto.
9878 * config/stormy16/stormy16.c: Ditto.
9879 * config/tilegx/mul-tables.c: Ditto.
9880 * config/tilegx/tilegx.c: Ditto.
9881 * config/tilepro/mul-tables.c: Ditto.
9882 * config/tilepro/tilepro.c: Ditto.
9883 * config/vax/vax.c: Ditto.
9885 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
9887 * doc/tm.texi.in (MOVE_BY_PIECES_P): Remove.
9888 (CLEAR_BY_PIECES_P): Likewise.
9889 (SET_BY_PIECES_P): Likewise.
9890 (STORE_BY_PIECES_P): Likewise.
9891 * doc/tm.texi: Regenerate.
9892 * system.h: Poison MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P,
9893 SET_BY_PIECES_P, STORE_BY_PIECES_P.
9894 * expr.c (MOVE_BY_PIECES_P): Remove.
9895 (CLEAR_BY_PIECES_P): Likewise.
9896 (SET_BY_PIECES_P): Likewise.
9897 (STORE_BY_PIECES_P): Likewise.
9898 (can_move_by_pieces): Rewrite in terms of
9899 targetm.use_by_pieces_infrastructure_p.
9900 (emit_block_move_hints): Likewise.
9901 (can_store_by_pieces): Likewise.
9902 (store_by_pieces): Likewise.
9903 (clear_storage_hints): Likewise.
9904 (emit_push_insn): Likewise.
9905 (expand_constructor): Likewise.
9907 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
9909 * config/aarch64/aarch64.c
9910 (aarch64_use_by_pieces_infrastructre_p): New.
9911 (TARGET_USE_BY_PIECES_INFRASTRUCTURE): Likewise.
9912 * config/aarch64/aarch64.h (STORE_BY_PIECES_P): Delete.
9914 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
9916 * config/mips/mips.h (MOVE_BY_PIECES_P): Remove.
9917 (STORE_BY_PIECES_P): Likewise.
9918 * config/mips/mips.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
9919 (mips_move_by_pieces_p): Rename to...
9920 (mips_use_by_pieces_infrastructure_p): ...this, use new hook
9921 parameters, use the default hook implementation as a
9924 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
9926 * config/sh/sh.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
9927 (sh_use_by_pieces_infrastructure_p): Likewise.
9928 * config/sh/sh.h (MOVE_BY_PIECES_P): Remove.
9929 (STORE_BY_PIECES_P): Likewise.
9930 (SET_BY_PIECES_P): Likewise.
9932 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
9934 * config/arc/arc.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
9935 (arc_use_by_pieces_infrastructure_p): Likewise.
9936 * confir/arc/arc.h (MOVE_BY_PIECES_P): Delete.
9937 (CAN_MOVE_BY_PIECES): Likewise.
9939 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
9941 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p): New.
9942 (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Likewise.
9943 * config/s390/s390.h (MOVE_BY_PIECES_P): Remove.
9944 (CLEAR_BY_PIECES): Likewise.
9945 (SET_BY_PIECES): Likewise.
9946 (STORE_BY_PIECES): Likewise.
9948 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
9950 * target.def (use_by_pieces_infrastructure_p): New.
9951 * doc/tm.texi.in (MOVE_BY_PIECES_P): Describe that this macro
9953 (STORE_BY_PIECES_P): Likewise.
9954 (CLEAR_BY_PIECES_P): Likewise.
9955 (SET_BY_PIECES_P): Likewise.
9956 (TARGET_MOVE_BY_PIECES_PROFITABLE_P): Add hook.
9957 * doc/tm.texi: Regenerate.
9958 * expr.c (MOVE_BY_PIECES_P): Rewrite in terms of
9959 TARGET_USE_BY_PIECES_INFRASTRUCTURE_P.
9960 (STORE_BY_PIECES_P): Likewise.
9961 (CLEAR_BY_PIECES_P): Likewise.
9962 (SET_BY_PIECES_P): Likewise.
9963 (STORE_MAX_PIECES): Move to...
9964 * defaults.h (STORE_MAX_PIECES): ...here.
9965 * targhooks.c (get_move_ratio): New.
9966 (default_use_by_pieces_infrastructure_p): Likewise.
9967 * targhooks.h (default_use_by_pieces_infrastructure_p): New.
9968 * target.h (by_pieces_operation): New.
9970 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
9973 * config/i386/i386.c (ix86_expand_args_builtin): Remove extra
9974 assignment to 'nargs' variable.
9976 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
9979 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
9980 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
9981 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
9982 be reloaded through memory.
9986 2014-10-31 Jakub Jelinek <jakub@redhat.com>
9988 PR rtl-optimization/63659
9989 * ree.c (update_reg_equal_equiv_notes): New function.
9990 (combine_set_extension, transform_ifelse): Use it.
9992 2014-10-31 Jeff Law <law@redhat.com>
9994 * doc/contrib.texi: Add contribution notes for Balaji Iyer (Cilk+)
9995 and Jonny Grant (collect2).
9997 2014-10-31 Richard Biener <rguenther@suse.de>
9999 * builtins.c (fold_builtin_atomic_always_lock_free): Use
10000 CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where
10002 (fold_builtin_expect): Likewise.
10003 (integer_valued_real_p): Likewise.
10004 * cfgexpand.c (expand_debug_expr): Likewise.
10005 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Likewise.
10006 (find_foldable_builtin_expect): Likewise.
10007 * trans-mem.c (thread_private_new_memory): Likewise.
10008 * tree-affine.c (aff_combination_expand): Likewise.
10009 * tree-data-ref.c (initialize_matrix_A): Likewise.
10010 * tree-inline.c (copy_bb): Likewise.
10011 * tree-pretty-print.c (dump_function_name): Likewise.
10012 (print_call_name): Likewise.
10013 * tree-ssa-forwprop.c (constant_pointer_difference): Likewise.
10014 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise.
10015 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
10016 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Likewise.
10017 (vect_recog_widen_mult_pattern): Likewise.
10018 (vect_operation_fits_smaller_type): Likewise.
10019 * tree-vrp.c (find_assert_locations_1): Likewise.
10020 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
10021 converts to NOP_EXPR.
10023 2014-10-31 Richard Biener <rguenther@suse.de>
10025 * genmatch.c (expr::gen_transform): Use NOP_EXPRs instead of
10026 CONVERT_EXPRs in generated code.
10027 (dt_simplify::gen): Likewise.
10029 2014-10-31 Evgeny Stupachenko <evstupac@gmail.com>
10032 * config/i386/i386.c (ix86_init_pic_reg): Emit SET_GOT to
10033 REAL_PIC_OFFSET_TABLE_REGNUM for mcount profiling.
10034 (ix86_save_reg): Save REAL_PIC_OFFSET_TABLE_REGNUM when profiling
10035 using mcount in 32bit PIC mode.
10036 (ix86_elim_entry_set_got): New.
10037 (ix86_expand_prologue): For the mcount profiling emit new SET_GOT
10038 in PROLOGUE, delete initial if possible.
10040 2014-10-31 Eric Botcazou <ebotcazou@adacore.com>
10042 * ipa-inline.c (want_inline_small_function_p): Fix typo and formatting.
10043 (want_inline_function_to_all_callers_p): Fix formatting and simplify.
10045 2014-10-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
10047 PR tree-optimization/63259
10048 * tree-ssa-math-opts.c (bswap_replace): Replace expression by a
10049 rotation left if it is a 16 bit byte swap.
10050 (pass_optimize_bswap::execute): Also consider bswap in LROTATE_EXPR
10051 and RROTATE_EXPR statements if it is a byte rotation.
10053 2014-10-31 Jakub Jelinek <jakub@redhat.com>
10056 * tree-vrp.c (simplify_internal_call_using_ranges): For subcode ==
10057 MINUS_EXPR, check overflow on vr0.min - vr1.max and vr0.max - vr1.min
10058 instead of vr0.min - vr1.min and vr0.max - vr1.max.
10060 2014-10-31 Max Ostapenko <m.ostapenko@partner.samsung.com>
10063 * ipa-icf.c (sem_function::~sem_function): Change free to delete
10064 to avoid alloc-dealloc mismatch with new, called in
10065 ipa_icf::sem_function::init.
10067 2014-10-30 Felix Yang <felix.yang@huawei.com>
10069 * config/xtensa/xtensa.h (TARGET_LOOPS): New Macro.
10070 * config/xtensa/xtensa.c: Include dumpfile.h and hw-doloop.h.
10071 (xtensa_reorg, xtensa_reorg_loops): New.
10072 (xtensa_can_use_doloop_p, xtensa_invalid_within_doloop): New.
10073 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg): New.
10074 (xtensa_emit_loop_end): Emit the zero-overhead loop end label.
10075 (xtensa_doloop_hooks): Define.
10076 * config/xtensa/xtensa.md (doloop_end, loop_end): New
10077 (zero_cost_loop_start): Rewritten.
10078 (zero_cost_loop_end): Likewise.
10080 2014-10-30 Steve Ellcey <sellcey@imgtec.com>
10082 * config.gcc (mips*-*-linux*): Combine 32 and 64 bit cases.
10084 2014-10-30 Richard Biener <rguenther@suse.de>
10086 * genmatch.c: Remove <map>, <utility> and <string> includes.
10087 Include ggc.h and hash-map.h.
10088 (ggc_internal_cleared_alloc): Provide stub definition.
10089 (ggc_free): Likewise.
10090 (struct capture_id_map_hasher): New traits for hash_map.
10091 (cid_map_t): New typedef.
10092 (everywhere else): Replace std::map use with cid_map_t.
10093 * hash-map.h (hash_map::elements): New member function.
10094 * Makefile.in (build/genmatch.o): Add $(HASH_TABLE_H),
10095 hash-map.h and $(GGC_H) as dependency.
10097 2014-10-30 Richard Biener <rguenther@suse.de>
10099 * genmatch.c (capture_info::walk_c_expr): Ignore capture
10100 uses inside TREE_TYPE ().
10101 * gimple-ssa-strength-reduction.c (stmt_cost): Use CASE_CONVERT.
10102 (find_candidates_dom_walker::before_dom_children): Likewise.
10103 (replace_mult_candidate): Use CONVERT_EXPR_CODE_P.
10104 (replace_profitable_candidates): Likewise.
10105 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
10106 CONVERT_EXPR_CODE_P to CONVERT_EXPR.
10107 * convert.c (convert_to_integer): Use CASE_CONVERT.
10109 2014-10-30 Richard Biener <rguenther@suse.de>
10111 * match.pd: Implement more patterns that simplify to a single value.
10112 * fold-const.c (fold_binary_loc): Remove them here.
10113 * tree-ssa-forwprop.c (simplify_bitwise_binary): Likewise.
10114 (fwprop_ssa_val): Remove restriction on single uses.
10116 2014-10-30 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10118 * config/avr/driver-avr.c (avr_set_current_device): Remove.
10120 2014-10-30 Martin Liska <mliska@suse.cz>
10124 * ipa-icf-gimple.c (func_checker::parse_labels): Missing comment added.
10125 (func_checker::compare_gimple_label): Simlified comparison introduced.
10126 * ipa-icf-gimple.h: Missing comment added.
10128 2014-10-30 Jeff Law <law@redhat.com>
10130 * config/pa/pa-protos.h (pa_output_arg_descriptor): Strengthen
10131 argument from rtx to rtx_insn *.
10132 (compute_movmem_length, compute_clrmem_length): Likewise.
10133 (copy_fp_args, length_fp_args): Likewise.
10134 * config/pa/pa.c (legitimize_pic_address): Promote local variable
10135 "insn" from rtx to rtx_insn *.
10136 (legitimize_tls_address, pa_emit_move_sequence): Likewise.
10137 (pa_output_block_move, store_reg, store_reg_modify): Likewise.
10138 (set_reg_plus_d, pa_expand_prologue, hppa_profile_hook): Likewise.
10139 (branch_to_delay_slot_p, branch_needs_nop_p, use_skip_p): Likewise.
10140 (pa_output_arg_descriptor): Strengthen argument to an rtx_insn *.
10141 (compute_movmem_length, compute_clrmem_length): Likewise.
10142 (copy_fp-args, length_fp_args): Likewise.
10144 2014-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10146 * config/arm/arm.h (MACHMODE): Treat machine_mode as a
10148 (CUMULATIVE_ARGS): Guard against target includes.
10149 (machine_function): Likewise.
10151 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10153 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Restore
10154 recog state after aarch64_prev_real_insn call.
10156 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10158 * config/aarch64/aarch64.h (MACHMODE): Add 'enum' to machine_mode.
10160 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10162 * config/arm/arm.h (MACHMODE): Add 'enum' to machine_mode.
10163 (struct machine_function): Gate definition on
10164 !defined(USED_FOR_TARGET).
10166 2014-10-29 DJ Delorie <dj@redhat.com>
10168 * expmed.c (strict_volatile_bitfield_p): Fix off-by-one error.
10170 2014-10-29 Martin Liska <mliska@suse.cz>
10173 * cgraphunit.c (cgraph_node::expand_thunk): Only VAR_DECLs are put
10174 to local declarations.
10175 * function.c (add_local_decl): Implementation moved from header
10176 file, assert introduced for tree type.
10177 * function.h: Likewise.
10179 2014-10-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
10181 * godump.c (go_format_type): Represent "float _Complex" and
10182 "double _Complex" as complex64 or complex128 in Go, as appropriate.
10184 2014-10-29 Richard Biener <rguenther@suse.de>
10186 * match.pd: Implement a first set of conversion patterns.
10187 * fold-const.c (fold_unary_loc): Remove them here.
10188 * tree-ssa-forwprop.c (simplify_vce): Remove.
10189 (pass_forwprop::execute): Do not call simplify_vce.
10191 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10193 * addresses.h, alias.c, asan.c, auto-inc-dec.c, bt-load.c, builtins.c,
10194 builtins.h, caller-save.c, calls.c, calls.h, cfgexpand.c, cfgloop.h,
10195 cfgrtl.c, combine.c, compare-elim.c, config/aarch64/aarch64-builtins.c,
10196 config/aarch64/aarch64-protos.h, config/aarch64/aarch64-simd.md,
10197 config/aarch64/aarch64.c, config/aarch64/aarch64.h,
10198 config/aarch64/aarch64.md, config/alpha/alpha-protos.h,
10199 config/alpha/alpha.c, config/arc/arc-protos.h, config/arc/arc.c,
10200 config/arc/arc.h, config/arc/predicates.md,
10201 config/arm/aarch-common-protos.h, config/arm/aarch-common.c,
10202 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
10203 config/arm/arm.md, config/arm/neon.md, config/arm/thumb2.md,
10204 config/avr/avr-log.c, config/avr/avr-protos.h, config/avr/avr.c,
10205 config/avr/avr.md, config/bfin/bfin-protos.h, config/bfin/bfin.c,
10206 config/c6x/c6x-protos.h, config/c6x/c6x.c, config/c6x/c6x.md,
10207 config/cr16/cr16-protos.h, config/cr16/cr16.c,
10208 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.md,
10209 config/darwin-protos.h, config/darwin.c,
10210 config/epiphany/epiphany-protos.h, config/epiphany/epiphany.c,
10211 config/epiphany/epiphany.md, config/fr30/fr30.c,
10212 config/frv/frv-protos.h, config/frv/frv.c, config/frv/predicates.md,
10213 config/h8300/h8300-protos.h, config/h8300/h8300.c,
10214 config/i386/i386-builtin-types.awk, config/i386/i386-protos.h,
10215 config/i386/i386.c, config/i386/i386.md, config/i386/predicates.md,
10216 config/i386/sse.md, config/i386/sync.md, config/ia64/ia64-protos.h,
10217 config/ia64/ia64.c, config/iq2000/iq2000-protos.h,
10218 config/iq2000/iq2000.c, config/iq2000/iq2000.md,
10219 config/lm32/lm32-protos.h, config/lm32/lm32.c,
10220 config/m32c/m32c-protos.h, config/m32c/m32c.c,
10221 config/m32r/m32r-protos.h, config/m32r/m32r.c,
10222 config/m68k/m68k-protos.h, config/m68k/m68k.c,
10223 config/mcore/mcore-protos.h, config/mcore/mcore.c,
10224 config/mcore/mcore.md, config/mep/mep-protos.h, config/mep/mep.c,
10225 config/microblaze/microblaze-protos.h, config/microblaze/microblaze.c,
10226 config/mips/mips-protos.h, config/mips/mips.c,
10227 config/mmix/mmix-protos.h, config/mmix/mmix.c,
10228 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
10229 config/moxie/moxie.c, config/msp430/msp430-protos.h,
10230 config/msp430/msp430.c, config/nds32/nds32-cost.c,
10231 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
10232 config/nds32/nds32-protos.h, config/nds32/nds32.c,
10233 config/nios2/nios2-protos.h, config/nios2/nios2.c,
10234 config/pa/pa-protos.h, config/pa/pa.c, config/pdp11/pdp11-protos.h,
10235 config/pdp11/pdp11.c, config/rl78/rl78-protos.h, config/rl78/rl78.c,
10236 config/rs6000/altivec.md, config/rs6000/rs6000-c.c,
10237 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10238 config/rs6000/rs6000.h, config/rx/rx-protos.h, config/rx/rx.c,
10239 config/s390/predicates.md, config/s390/s390-protos.h,
10240 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
10241 config/sh/predicates.md, config/sh/sh-protos.h, config/sh/sh.c,
10242 config/sh/sh.md, config/sparc/predicates.md,
10243 config/sparc/sparc-protos.h, config/sparc/sparc.c,
10244 config/sparc/sparc.md, config/spu/spu-protos.h, config/spu/spu.c,
10245 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10246 config/tilegx/tilegx-protos.h, config/tilegx/tilegx.c,
10247 config/tilegx/tilegx.md, config/tilepro/tilepro-protos.h,
10248 config/tilepro/tilepro.c, config/v850/v850-protos.h,
10249 config/v850/v850.c, config/v850/v850.md, config/vax/vax-protos.h,
10250 config/vax/vax.c, config/vms/vms-c.c, config/xtensa/xtensa-protos.h,
10251 config/xtensa/xtensa.c, coverage.c, cprop.c, cse.c, cselib.c, cselib.h,
10252 dbxout.c, ddg.c, df-problems.c, dfp.c, dfp.h, doc/md.texi,
10253 doc/rtl.texi, doc/tm.texi, doc/tm.texi.in, dojump.c, dse.c,
10254 dwarf2cfi.c, dwarf2out.c, dwarf2out.h, emit-rtl.c, emit-rtl.h,
10255 except.c, explow.c, expmed.c, expmed.h, expr.c, expr.h, final.c,
10256 fixed-value.c, fixed-value.h, fold-const.c, function.c, function.h,
10257 fwprop.c, gcse.c, gengenrtl.c, genmodes.c, genopinit.c, genoutput.c,
10258 genpreds.c, genrecog.c, gensupport.c, gimple-ssa-strength-reduction.c,
10259 graphite-clast-to-gimple.c, haifa-sched.c, hooks.c, hooks.h, ifcvt.c,
10260 internal-fn.c, ira-build.c, ira-color.c, ira-conflicts.c, ira-costs.c,
10261 ira-emit.c, ira-int.h, ira-lives.c, ira.c, ira.h, jump.c, langhooks.h,
10262 libfuncs.h, lists.c, loop-doloop.c, loop-invariant.c, loop-iv.c,
10263 loop-unroll.c, lower-subreg.c, lower-subreg.h, lra-assigns.c,
10264 lra-constraints.c, lra-eliminations.c, lra-int.h, lra-lives.c,
10265 lra-spills.c, lra.c, lra.h, machmode.h, omp-low.c, optabs.c, optabs.h,
10266 output.h, postreload.c, print-tree.c, read-rtl.c, real.c, real.h,
10267 recog.c, recog.h, ree.c, reg-stack.c, regcprop.c, reginfo.c,
10268 regrename.c, regs.h, reload.c, reload.h, reload1.c, rtl.c, rtl.h,
10269 rtlanal.c, rtlhash.c, rtlhooks-def.h, rtlhooks.c, sched-deps.c,
10270 sel-sched-dump.c, sel-sched-ir.c, sel-sched-ir.h, sel-sched.c,
10271 simplify-rtx.c, stmt.c, stor-layout.c, stor-layout.h, target.def,
10272 targhooks.c, targhooks.h, tree-affine.c, tree-call-cdce.c,
10273 tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-if-conv.c,
10274 tree-inline.c, tree-outof-ssa.c, tree-scalar-evolution.c,
10275 tree-ssa-address.c, tree-ssa-ccp.c, tree-ssa-loop-ivopts.c,
10276 tree-ssa-loop-ivopts.h, tree-ssa-loop-manip.c,
10277 tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c, tree-ssa-reassoc.c,
10278 tree-ssa-sccvn.c, tree-streamer-in.c, tree-switch-conversion.c,
10279 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop.c,
10280 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
10281 tree-vrp.c, tree.c, tree.h, tsan.c, ubsan.c, valtrack.c,
10282 var-tracking.c, varasm.c: Remove redundant enum from
10284 * gengtype.c (main): Treat machine_mode as a scalar typedef.
10285 * genmodes.c (emit_insn_modes_h): Hide inline functions if
10288 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10290 PR rtl-optimization/63340 (part 2)
10291 * rtl.h (invalid_mode_change_p): Delete.
10292 (valid_mode_changes_for_regno): New function.
10293 * reginfo.c (invalid_mode_change_p): Delete.
10294 (valid_mode_changes_for_regno): New function.
10295 * ira-costs.c (setup_regno_cost_classes_by_aclass): Restrict the
10296 classes to registers that are allowed by valid_mode_changes_for_regno.
10297 (setup_regno_cost_classes_by_mode): Likewise.
10298 (print_allocno_costs): Remove invalid_mode_change_p test.
10299 (print_pseudo_costs, find_costs_and_classes): Likewise.
10301 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10303 PR rtl-optimization/63340 (part 1)
10304 * ira-costs.c (all_cost_classes): New variable.
10305 (complete_cost_classes): New function, split out from...
10306 (setup_cost_classes): ...here.
10307 (initiate_regno_cost_classes): Set up all_cost_classes.
10308 (restrict_cost_classes): New function.
10309 (setup_regno_cost_classes_by_aclass): Restrict the cost classes to
10310 registers that are valid for the register's mode.
10311 (setup_regno_cost_classes_by_mode): Model the mode cache as a
10312 restriction of all_cost_classes to a particular mode.
10313 (print_allocno_costs): Remove contains_reg_of_mode check.
10314 (print_pseudo_costs, find_costs_and_classes): Likewise.
10316 2014-10-29 Richard Biener <rguenther@suse.de>
10318 PR tree-optimization/63666
10319 * tree-vect-slp.c (vect_get_mask_element): Properly handle
10320 accessing out-of-bound elements.
10322 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
10323 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10324 Anna Tikhonova <anna.tikhonova@intel.com>
10325 Ilya Tocar <ilya.tocar@intel.com>
10326 Andrey Turetskiy <andrey.turetskiy@intel.com>
10327 Ilya Verbin <ilya.verbin@intel.com>
10328 Kirill Yukhin <kirill.yukhin@intel.com>
10329 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10331 * config/i386/i386.md
10332 (movhi_internal): Always detect maskmov.
10333 (movqi_internal): Fix target check.
10335 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
10336 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10337 Anna Tikhonova <anna.tikhonova@intel.com>
10338 Ilya Tocar <ilya.tocar@intel.com>
10339 Andrey Turetskiy <andrey.turetskiy@intel.com>
10340 Ilya Verbin <ilya.verbin@intel.com>
10341 Kirill Yukhin <kirill.yukhin@intel.com>
10342 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10344 * config/i386/avx512bwintrin.h: Add new intrinsics.
10345 * config/i386/avx512vlbwintrin.h: Ditto.
10346 * config/i386/avx512vlintrin.h: Ditto.
10348 2014-10-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
10350 * godump.c (precision_to_units): New helper function.
10351 (go_append_artificial_name): Ditto.
10352 (go_append_decl_name): Ditto.
10353 (go_append_bitfield): Ditto.
10354 (go_get_uinttype_for_precision): Ditto.
10355 (go_append_padding): Ditto.
10356 (go_force_record_alignment): Ditto.
10357 (go_format_type): Represent unions with an array of uints of the size
10358 of the alignment in go. This fixes the 'random' size of the union's
10359 representation using just the first field.
10360 (go_format_type): Add argument that indicates whether a record is
10361 nested (used for generation of artificial go names).
10362 (go_output_fndecl): Adapt to new go_format_type signature.
10363 (go_output_typedef): Ditto.
10364 (go_output_var): Ditto.
10365 (go_output_var): Prefer to output type as alias (typedef).
10366 (go_format_type): Bitfields in records are simulated as arrays of bytes
10369 * godump.c (go_format_type): Fix handling of arrays with zero elements.
10371 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
10373 * cgraph.h: Flatten. Remove all include files.
10374 (symbol_table::initialize): Move to cgraph.c.
10375 * cgraph.c: Adjust include files.
10376 (symbol_table::initialize): Relocate from cgraph.h.
10377 * gengtype.c (open_base_files): Adjust include files.
10378 * gccplugin.h: Add hash-map.h, is-a.h, plugin-api.h, and ipa-ref.h to
10380 * ipa-inline.h: Remove all include files.
10381 * ipa-prop.h: Ditto.
10382 * ipa-reference.h: Ditto.
10383 * ipa-utils.h: Ditto:
10384 * lto-streamer.h: Remove cgraph.h from include list.
10385 * asan.c: Adjust include files.
10386 * auto-profile.c: Ditto.
10387 * bb-reorder.c: Ditto.
10389 * cfgexpand.c: Ditto.
10390 * cgraphbuild.c: Ditto.
10391 * cgraphclones.c: Ditto.
10392 * cgraphunit.c: Ditto.
10393 * combine.c: Ditto.
10394 * coverage.c: Ditto.
10395 * data-streamer.c: Ditto.
10396 * data-streamer-in.c: Ditto.
10397 * data-streamer-out.c: Ditto.
10399 * dwarf2out.c: Ditto.
10403 * fold-const.c: Ditto.
10404 * ggc-page.c: Ditto.
10405 * gimple-fold.c: Ditto.
10406 * gimple-iterator.c: Ditto.
10407 * gimple-pretty-print.c: Ditto.
10408 * gimple-streamer-in.c: Ditto.
10409 * gimple-streamer-out.c: Ditto.
10410 * gimplify.c: Ditto.
10412 * ipa-comdats.c: Ditto.
10414 * ipa-devirt.c: Ditto.
10415 * ipa-icf.c: Ditto.
10416 * ipa-icf-gimple.c: Ditto.
10417 * ipa-inline-analysis.c: Ditto.
10418 * ipa-inline.c: Ditto.
10419 * ipa-inline-transform.c: Ditto.
10420 * ipa-polymorphic-call.c: Ditto.
10421 * ipa-profile.c: Ditto.
10422 * ipa-prop.c: Ditto.
10423 * ipa-pure-const.c: Ditto.
10424 * ipa-ref.c: Ditto.
10425 * ipa-reference.c: Ditto.
10426 * ipa-split.c: Ditto.
10427 * ipa-utils.c: Ditto.
10428 * ipa-visibility.c: Ditto.
10429 * langhooks.c: Ditto.
10430 * lto-cgraph.c: Ditto.
10431 * lto-compress.c: Ditto.
10432 * lto-opts.c: Ditto.
10433 * lto-section-in.c: Ditto.
10434 * lto-section-out.c: Ditto.
10435 * lto-streamer.c: Ditto.
10436 * lto-streamer-in.c: Ditto.
10437 * lto-streamer-out.c: Ditto.
10438 * omp-low.c: Ditto.
10439 * opts-global.c: Ditto.
10441 * predict.c: Ditto.
10442 * print-tree.c: Ditto.
10443 * profile.c: Ditto.
10445 * stor-layout.c: Ditto.
10448 * trans-mem.c: Ditto.
10450 * tree-cfg.c: Ditto.
10451 * tree-eh.c: Ditto.
10452 * tree-emutls.c: Ditto.
10453 * tree-inline.c: Ditto.
10454 * tree-nested.c: Ditto.
10455 * tree-pretty-print.c: Ditto.
10456 * tree-profile.c: Ditto.
10457 * tree-sra.c: Ditto.
10458 * tree-ssa-alias.c: Ditto.
10459 * tree-ssa-loop-ivcanon.c: Ditto.
10460 * tree-ssa-loop-ivopts.c: Ditto.
10461 * tree-ssa-pre.c: Ditto.
10462 * tree-ssa-structalias.c: Ditto.
10463 * tree-streamer.c: Ditto.
10464 * tree-streamer-in.c: Ditto.
10465 * tree-streamer-out.c: Ditto.
10466 * tree-switch-conversion.c: Ditto.
10467 * tree-tailcall.c: Ditto.
10468 * tree-vect-data-refs.c: Ditto.
10469 * tree-vectorizer.c: Ditto.
10470 * tree-vect-stmts.c: Ditto.
10473 * value-prof.c: Ditto.
10475 * varpool.c: Ditto.
10476 * config/arm/arm.c: Ditto.
10477 * config/bfin/bfin.c: Ditto.
10478 * config/c6x/c6x.c: Ditto.
10479 * config/cris/cris.c: Ditto.
10480 * config/darwin.c: Ditto.
10481 * config/darwin-c.c: Ditto.
10482 * config/i386/i386.c: Ditto.
10483 * config/i386/winnt.c: Ditto.
10484 * config/microblaze/microblaze.c: Ditto.
10485 * config/mips/mips.c: Ditto.
10486 * config/rs6000/rs6000.c: Ditto.
10487 * config/rx/rx.c: Ditto.
10489 2014-10-28 Richard Biener <rguenther@suse.de>
10491 * gimple-fold.h (follow_single_use_edges): Declare.
10492 * gimple-fold.c (follow_single_use_edges): New function.
10493 (gimple_fold_stmt_to_constant_1): Dispatch to gimple_simplify.
10494 * tree-ssa-propagate.c
10495 (substitute_and_fold_dom_walker::before_dom_children): Allow
10496 following single-use edges when folding stmts we propagated into.
10498 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10499 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10500 Anna Tikhonova <anna.tikhonova@intel.com>
10501 Ilya Tocar <ilya.tocar@intel.com>
10502 Andrey Turetskiy <andrey.turetskiy@intel.com>
10503 Ilya Verbin <ilya.verbin@intel.com>
10504 Kirill Yukhin <kirill.yukhin@intel.com>
10505 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10507 * config/i386/avx512bwintrin.h: New.
10508 * config/i386/avx512dqintrin.h: Ditto.
10509 * config/i386/avx512vlbwintrin.h: Ditto.
10510 * config/i386/avx512vldqintrin.h: Ditto.
10511 * config/i386/avx512vlintrin.h: Ditto.
10512 * config/i386/immintrin.h: Include avx512vlintrin.h, avx512bwintrin.h,
10513 avx512dqintrin.h, avx512vlbwintrin.h, avx512vldqintrin.h.
10515 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10516 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10517 Anna Tikhonova <anna.tikhonova@intel.com>
10518 Ilya Tocar <ilya.tocar@intel.com>
10519 Andrey Turetskiy <andrey.turetskiy@intel.com>
10520 Ilya Verbin <ilya.verbin@intel.com>
10521 Kirill Yukhin <kirill.yukhin@intel.com>
10522 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10524 * config/i386/i386.c
10525 (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask,
10526 avx_shufpd256_mask, avx_vpermilv2df_mask.
10528 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10529 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10530 Anna Tikhonova <anna.tikhonova@intel.com>
10531 Ilya Tocar <ilya.tocar@intel.com>
10532 Andrey Turetskiy <andrey.turetskiy@intel.com>
10533 Ilya Verbin <ilya.verbin@intel.com>
10534 Kirill Yukhin <kirill.yukhin@intel.com>
10535 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10537 * config/i386/i386.c
10538 (ix86_init_mmx_sse_builtins):
10539 Define __builtin_ia32_gather3siv2df, __builtin_ia32_gather3siv4df,
10540 __builtin_ia32_gather3div2df, __builtin_ia32_gather3div4df,
10541 __builtin_ia32_gather3siv4sf, __builtin_ia32_gather3siv8sf,
10542 __builtin_ia32_gather3div4sf, __builtin_ia32_gather3div8sf,
10543 __builtin_ia32_gather3siv2di, __builtin_ia32_gather3siv4di,
10544 __builtin_ia32_gather3div2di, __builtin_ia32_gather3div4di,
10545 __builtin_ia32_gather3siv4si, __builtin_ia32_gather3siv8si,
10546 __builtin_ia32_gather3div4si, __builtin_ia32_gather3div8si,
10547 __builtin_ia32_gather3altsiv4df, __builtin_ia32_gather3altdiv8sf,
10548 __builtin_ia32_gather3altsiv4di, __builtin_ia32_gather3altdiv8si,
10549 __builtin_ia32_scattersiv8sf, __builtin_ia32_scattersiv4sf,
10550 __builtin_ia32_scattersiv4df, __builtin_ia32_scattersiv2df,
10551 __builtin_ia32_scatterdiv8sf, __builtin_ia32_scatterdiv4sf,
10552 __builtin_ia32_scatterdiv4df, __builtin_ia32_scatterdiv2df,
10553 __builtin_ia32_scattersiv8si, __builtin_ia32_scattersiv4si,
10554 __builtin_ia32_scattersiv4di, __builtin_ia32_scattersiv2di,
10555 __builtin_ia32_scatterdiv8si, __builtin_ia32_scatterdiv4si,
10556 __builtin_ia32_scatterdiv4di, __builtin_ia32_scatterdiv2di.
10558 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10559 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10560 Anna Tikhonova <anna.tikhonova@intel.com>
10561 Ilya Tocar <ilya.tocar@intel.com>
10562 Andrey Turetskiy <andrey.turetskiy@intel.com>
10563 Ilya Verbin <ilya.verbin@intel.com>
10564 Kirill Yukhin <kirill.yukhin@intel.com>
10565 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10567 * config/i386/i386.c
10568 (ix86_builtins): Add IX86_BUILTIN_GATHER3ALTSIV4DF,
10569 IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTSIV4DI,
10570 IX86_BUILTIN_GATHER3ALTDIV8SI.
10571 (ix86_expand_builtin):
10572 Handle IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTDIV8SI,
10573 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV4DI,
10574 IX86_BUILTIN_SCATTERDIV2DF, IX86_BUILTIN_SCATTERDIV4DF,
10575 IX86_BUILTIN_GATHER3ALTSIV4DI, IX86_BUILTIN_GATHER3ALTSIV4DF,
10576 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
10577 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3DIV8SI,
10578 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV4DI,
10579 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3SIV8SF,
10580 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
10581 IX86_BUILTIN_GATHER3DIV2DI, IX86_BUILTIN_GATHER3DIV4DI,
10582 IX86_BUILTIN_SCATTERDIV4SF, IX86_BUILTIN_SCATTERSIV2DI,
10583 IX86_BUILTIN_GATHER3SIV2DI, IX86_BUILTIN_GATHER3SIV4SI,
10584 IX86_BUILTIN_GATHER3SIV4SF, IX86_BUILTIN_GATHER3SIV2DF,
10585 IX86_BUILTIN_SCATTERSIV2DF, IX86_BUILTIN_SCATTERDIV4SI,
10586 IX86_BUILTIN_SCATTERSIV4SF, IX86_BUILTIN_SCATTERSIV4SI,
10587 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
10588 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV8SF,
10589 IX86_BUILTIN_GATHER3DIV4SF, IX86_BUILTIN_SCATTERDIV8SF.
10590 (ix86_vectorize_builtin_gather): Update V2DFmode, V4DFmode, V2DImode,
10591 V4DImode, V4SFmode, V8SFmode, V4SImode, V8SImode.
10593 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10594 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10595 Anna Tikhonova <anna.tikhonova@intel.com>
10596 Ilya Tocar <ilya.tocar@intel.com>
10597 Andrey Turetskiy <andrey.turetskiy@intel.com>
10598 Ilya Verbin <ilya.verbin@intel.com>
10599 Kirill Yukhin <kirill.yukhin@intel.com>
10600 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10602 * config/i386/i386-builtin-types.def
10621 (V4SF_FTYPE_V2DF_V4SF_QI): Ditto.
10622 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
10623 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
10624 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
10625 (V16SF_FTYPE_V16HI): Ditto.
10626 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
10627 (V16SF_FTYPE_V16SI): Ditto.
10628 (V4DI_FTYPE_V4DI): Ditto.
10629 (V16SI_FTYPE_V16SF): Ditto.
10630 (V8DI_FTYPE_PV2DI): Ditto.
10631 (V8DF_FTYPE_PV2DF): Ditto.
10632 (V4DI_FTYPE_PV2DI): Ditto.
10633 (V4DF_FTYPE_PV2DF): Ditto.
10634 (V16SI_FTYPE_PV2SI): Ditto.
10635 (V16SF_FTYPE_PV2SF): Ditto.
10636 (V8SF_FTYPE_FLOAT): Ditto.
10637 (V4SF_FTYPE_FLOAT): Ditto.
10638 (V4DF_FTYPE_DOUBLE): Ditto.
10639 (V8SF_FTYPE_PV4SF): Ditto.
10640 (V8SI_FTYPE_PV4SI): Ditto.
10641 (V4SI_FTYPE_PV2SI): Ditto.
10642 (V8SF_FTYPE_PV2SF): Ditto.
10643 (V8SI_FTYPE_PV2SI): Ditto.
10644 (V16SF_FTYPE_PV8SF): Ditto.
10645 (V16SI_FTYPE_PV8SI): Ditto.
10646 (V8DI_FTYPE_V8SF): Ditto.
10647 (V4DI_FTYPE_V4SF): Ditto.
10648 (V2DI_FTYPE_V4SF): Ditto.
10649 (V64QI_FTYPE_QI): Ditto.
10650 (V32HI_FTYPE_HI): Ditto.
10651 (V16UHI_FTYPE_V16UHI): Ditto.
10652 (V32UHI_FTYPE_V32UHI): Ditto.
10653 (V2UDI_FTYPE_V2UDI): Ditto.
10654 (V4UDI_FTYPE_V4UDI): Ditto.
10655 (V8UDI_FTYPE_V8UDI): Ditto.
10656 (V4USI_FTYPE_V4USI): Ditto.
10657 (V16USI_FTYPE_V16USI): Ditto.
10658 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
10659 (V2DF_FTYPE_V8DF_INT): Ditto.
10660 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
10661 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
10662 (V8DF_FTYPE_V8DF_INT): Ditto.
10663 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
10664 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
10665 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
10666 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
10667 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
10668 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
10669 (V8DI_FTYPE_V8DI_INT): Ditto.
10670 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
10671 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
10672 (V8SF_FTYPE_V16SF_INT): Ditto.
10673 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
10674 (V64QI_FTYPE_V32HI_V32HI): Ditto.
10675 (V32HI_FTYPE_V16SI_V16SI): Ditto.
10676 (V8DF_FTYPE_V8DF_V2DF_INT): Ditto.
10677 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
10678 (V8DF_FTYPE_V8DF_V8DF_INT): Ditto.
10679 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT): Ditto.
10680 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT): Ditto.
10681 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
10682 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
10683 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
10684 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT): Ditto.
10685 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
10686 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
10687 (V32HI_FTYPE_V64QI_V64QI): Ditto.
10688 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
10689 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
10690 (V32HI_FTYPE_V32HI_V32HI): Ditto.
10691 (V32HI_FTYPE_V32HI_INT): Ditto.
10692 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
10693 (V16SI_FTYPE_V32HI_V32HI): Ditto.
10694 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
10695 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
10696 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
10697 (V8SI_FTYPE_V16SI_INT): Ditto.
10698 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
10699 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
10700 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
10701 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
10702 (V8DI_FTYPE_V8DI_V4DI_INT): Ditto.
10703 (V8DI_FTYPE_V8DI_V2DI_INT): Ditto.
10704 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
10705 (V8DI_FTYPE_V16SI_V16SI): Ditto.
10706 (V8DI_FTYPE_V64QI_V64QI): Ditto.
10707 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
10708 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
10709 (V2DI_FTYPE_V8DI_INT): Ditto.
10710 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
10711 (QI_FTYPE_QI): Ditto.
10712 (SI_FTYPE_SI): Ditto.
10713 (DI_FTYPE_DI): Ditto.
10714 (HI_FTYPE_V16QI): Ditto.
10715 (SI_FTYPE_V32QI): Ditto.
10716 (DI_FTYPE_V64QI): Ditto.
10717 (QI_FTYPE_V8HI): Ditto.
10718 (HI_FTYPE_V16HI): Ditto.
10719 (SI_FTYPE_V32HI): Ditto.
10720 (QI_FTYPE_V4SI): Ditto.
10721 (QI_FTYPE_V8SI): Ditto.
10722 (HI_FTYPE_V16SI): Ditto.
10723 (QI_FTYPE_V2DI): Ditto.
10724 (QI_FTYPE_V4DI): Ditto.
10725 (QI_FTYPE_V8DI): Ditto.
10726 (V16QI_FTYPE_HI): Ditto.
10727 (V32QI_FTYPE_SI): Ditto.
10728 (V64QI_FTYPE_DI): Ditto.
10729 (V8HI_FTYPE_QI): Ditto.
10730 (V16HI_FTYPE_HI): Ditto.
10731 (V32HI_FTYPE_SI): Ditto.
10732 (V4SI_FTYPE_QI): Ditto.
10733 (V4SI_FTYPE_HI): Ditto.
10734 (V8SI_FTYPE_QI): Ditto.
10735 (V8SI_FTYPE_HI): Ditto.
10736 (V2DI_FTYPE_QI): Ditto.
10737 (V4DI_FTYPE_QI): Ditto.
10738 (QI_FTYPE_QI_QI): Ditto.
10739 (SI_FTYPE_SI_SI): Ditto.
10740 (DI_FTYPE_DI_DI): Ditto.
10741 (QI_FTYPE_QI_INT): Ditto.
10742 (SI_FTYPE_SI_INT): Ditto.
10743 (DI_FTYPE_DI_INT): Ditto.
10744 (HI_FTYPE_V16QI_V16QI): Ditto.
10745 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
10746 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
10747 (SI_FTYPE_V32QI_V32QI): Ditto.
10748 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
10749 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
10750 (DI_FTYPE_V64QI_V64QI): Ditto.
10751 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
10752 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
10753 (QI_FTYPE_V8HI_V8HI): Ditto.
10754 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
10755 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
10756 (HI_FTYPE_V16HI_V16HI): Ditto.
10757 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
10758 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
10759 (SI_FTYPE_V32HI_V32HI): Ditto.
10760 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
10761 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
10762 (QI_FTYPE_V4SI_V4SI): Ditto.
10763 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
10764 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
10765 (QI_FTYPE_V8SI_V8SI): Ditto.
10766 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
10767 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
10768 (QI_FTYPE_V2DI_V2DI): Ditto.
10769 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
10770 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
10771 (QI_FTYPE_V4DI_V4DI): Ditto.
10772 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
10773 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
10774 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
10775 (V4DF_FTYPE_V4DF_V4DI_INT): Ditto.
10776 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
10777 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
10778 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
10779 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
10780 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
10781 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
10782 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
10783 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
10784 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
10785 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
10786 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
10787 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
10788 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
10789 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
10790 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
10791 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
10792 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
10793 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
10794 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
10795 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
10796 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
10797 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
10798 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
10799 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
10800 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
10801 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
10802 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
10803 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
10804 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
10805 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
10806 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
10807 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
10808 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
10809 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
10810 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
10811 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
10812 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
10813 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
10814 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
10815 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
10816 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
10817 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
10818 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
10819 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
10820 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
10821 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
10822 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
10823 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
10824 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
10825 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
10826 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
10827 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
10828 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
10829 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
10830 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
10831 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
10832 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
10833 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
10834 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
10835 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
10836 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
10837 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
10838 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
10839 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
10840 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
10841 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
10842 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
10843 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
10844 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
10845 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
10846 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
10847 (V32HI_FTYPE_V64QI_V64QI_INT): Ditto.
10848 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
10849 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
10850 (V16HI_FTYPE_V32QI_V32QI_INT): Ditto.
10851 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
10852 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
10853 (V8HI_FTYPE_V16QI_V16QI_INT): Ditto.
10854 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
10855 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
10856 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
10857 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
10858 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
10859 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
10860 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
10861 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
10862 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
10863 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
10864 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
10865 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
10866 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
10867 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
10868 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
10869 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
10870 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
10871 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
10872 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
10873 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
10874 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
10875 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
10876 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
10877 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
10878 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
10879 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
10880 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
10881 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
10882 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
10883 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
10884 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
10885 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
10886 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
10887 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
10888 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
10889 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
10890 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
10891 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
10892 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
10893 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
10894 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
10895 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
10896 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
10897 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
10898 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
10899 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
10900 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
10901 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
10902 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
10903 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
10904 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
10905 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
10906 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
10907 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
10908 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
10909 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
10910 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
10911 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
10912 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
10913 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
10914 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
10915 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
10916 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
10917 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
10918 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
10919 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
10920 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
10921 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
10922 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
10923 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
10924 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
10925 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
10926 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
10927 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
10928 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
10929 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
10930 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
10931 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
10932 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
10933 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
10934 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
10935 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
10936 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
10937 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
10938 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
10939 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
10940 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
10941 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
10942 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
10943 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
10944 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
10945 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
10946 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
10947 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
10948 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
10949 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
10950 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
10951 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
10952 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
10953 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
10954 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
10955 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
10956 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
10957 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
10958 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
10959 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
10960 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
10961 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
10962 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
10963 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
10964 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
10965 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
10966 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
10967 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
10968 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
10969 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
10970 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
10971 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
10972 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
10973 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
10974 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
10975 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
10976 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
10977 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
10978 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
10979 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
10980 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
10981 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
10982 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
10983 (QI_FTYPE_V8DF_INT): Ditto.
10984 (QI_FTYPE_V4DF_INT): Ditto.
10985 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
10986 (QI_FTYPE_V2DF_INT): Ditto.
10987 (HI_FTYPE_V16SF_INT): Ditto.
10988 (QI_FTYPE_V8SF_INT): Ditto.
10989 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
10990 (QI_FTYPE_V4SF_INT): Ditto.
10991 (QI_FTYPE_V8DF_INT_QI): Ditto.
10992 (QI_FTYPE_V4DF_INT_QI): Ditto.
10993 (QI_FTYPE_V2DF_INT_QI): Ditto.
10994 (HI_FTYPE_V16SF_INT_HI): Ditto.
10995 (QI_FTYPE_V8SF_INT_QI): Ditto.
10996 (QI_FTYPE_V4SF_INT_QI): Ditto.
10997 (V8DI_FTYPE_V8DF_V8DI_QI_INT): Ditto.
10998 (V8DI_FTYPE_V8SF_V8DI_QI_INT): Ditto.
10999 (V8DF_FTYPE_V8DI_V8DF_QI_INT): Ditto.
11000 (V8SF_FTYPE_V8DI_V8SF_QI_INT): Ditto.
11001 (V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_QI_INT): Ditto.
11002 (V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_QI_INT): Ditto.
11003 (V4DF_FTYPE_V4DF_PCDOUBLE_V8SI_QI_INT): Ditto.
11004 (V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_QI_INT): Ditto.
11005 (V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_QI_INT): Ditto.
11006 (V4SF_FTYPE_V4SF_PCFLOAT_V4SI_QI_INT): Ditto.
11007 (V8SF_FTYPE_V8SF_PCFLOAT_V8SI_QI_INT): Ditto.
11008 (V4SF_FTYPE_V4SF_PCFLOAT_V2DI_QI_INT): Ditto.
11009 (V4SF_FTYPE_V4SF_PCFLOAT_V4DI_QI_INT): Ditto.
11010 (V8SF_FTYPE_V8SF_PCFLOAT_V4DI_QI_INT): Ditto.
11011 (V2DI_FTYPE_V2DI_PCINT64_V4SI_QI_INT): Ditto.
11012 (V4DI_FTYPE_V4DI_PCINT64_V4SI_QI_INT): Ditto.
11013 (V4DI_FTYPE_V4DI_PCINT64_V8SI_QI_INT): Ditto.
11014 (V2DI_FTYPE_V2DI_PCINT64_V2DI_QI_INT): Ditto.
11015 (V4DI_FTYPE_V4DI_PCINT64_V4DI_QI_INT): Ditto.
11016 (V4SI_FTYPE_V4SI_PCINT_V4SI_QI_INT): Ditto.
11017 (V8SI_FTYPE_V8SI_PCINT_V8SI_QI_INT): Ditto.
11018 (V4SI_FTYPE_V4SI_PCINT_V2DI_QI_INT): Ditto.
11019 (V4SI_FTYPE_V4SI_PCINT_V4DI_QI_INT): Ditto.
11020 (V8SI_FTYPE_V8SI_PCINT_V4DI_QI_INT): Ditto.
11021 (VOID_FTYPE_PFLOAT_QI_V8SI_V8SF_INT): Ditto.
11022 (VOID_FTYPE_PFLOAT_QI_V4SI_V4SF_INT): Ditto.
11023 (VOID_FTYPE_PDOUBLE_QI_V4SI_V4DF_INT): Ditto.
11024 (VOID_FTYPE_PDOUBLE_QI_V4SI_V2DF_INT): Ditto.
11025 (VOID_FTYPE_PFLOAT_QI_V4DI_V4SF_INT): Ditto.
11026 (VOID_FTYPE_PFLOAT_QI_V2DI_V4SF_INT): Ditto.
11027 (VOID_FTYPE_PDOUBLE_QI_V4DI_V4DF_INT): Ditto.
11028 (VOID_FTYPE_PDOUBLE_QI_V2DI_V2DF_INT): Ditto.
11029 (VOID_FTYPE_PINT_QI_V8SI_V8SI_INT): Ditto.
11030 (VOID_FTYPE_PINT_QI_V4SI_V4SI_INT): Ditto.
11031 (VOID_FTYPE_PLONGLONG_QI_V4SI_V4DI_INT): Ditto.
11032 (VOID_FTYPE_PLONGLONG_QI_V4SI_V2DI_INT): Ditto.
11033 (VOID_FTYPE_PINT_QI_V4DI_V4SI_INT): Ditto.
11034 (VOID_FTYPE_PINT_QI_V2DI_V4SI_INT): Ditto.
11035 (VOID_FTYPE_PLONGLONG_QI_V4DI_V4DI_INT): Ditto.
11036 (VOID_FTYPE_PLONGLONG_QI_V2DI_V2DI_INT): Ditto.
11037 (V8DI_FTYPE_V8DI_INT): Ditto.
11038 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
11039 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
11040 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
11041 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
11042 (V2DF_FTYPE_ V2DF_ V2DF_ V2DI_ INT_ QI): Remove.
11043 (V4SF_FTYPE_ V4SF_ V2DF_ V4SF_ QI): Ditto.
11044 (V4SF_FTYPE_ V4SF_ V4SF_ V4SF_ QI): Ditto.
11045 (V2DF_FTYPE_ PCDOUBLE_ V2DF_ QI): Ditto.
11046 (V4SF_FTYPE_ PCFLOAT_ V4SF_ QI): Ditto.
11047 (V16QI_FTYPE_ V16SI_ V16QI_ HI): Ditto.
11048 (V16QI_FTYPE_ V8DI_ V16QI_ QI): Ditto.
11049 (V4SF_FTYPE_ V4SF_ V4SF_ INT_ V4SF_ QI): Ditto.
11050 (V2DF_FTYPE_ V2DF_ V2DF_ INT_ V2DF_ QI): Ditto.
11051 (V8DI_FTYPE_ V16SI_ V16SI_ V8DI_ QI): Ditto.
11052 * config/i386/i386.c (ix86_builtins):
11053 Add IX86_BUILTIN_PMOVUSQD256_MEM, IX86_BUILTIN_PMOVUSQD128_MEM,
11054 IX86_BUILTIN_PMOVSQD256_MEM, IX86_BUILTIN_PMOVSQD128_MEM,
11055 IX86_BUILTIN_PMOVQD256_MEM, IX86_BUILTIN_PMOVQD128_MEM,
11056 IX86_BUILTIN_PMOVUSQW256_MEM, IX86_BUILTIN_PMOVUSQW128_MEM,
11057 IX86_BUILTIN_PMOVSQW256_MEM, IX86_BUILTIN_PMOVSQW128_MEM,
11058 IX86_BUILTIN_PMOVQW256_MEM, IX86_BUILTIN_PMOVQW128_MEM,
11059 IX86_BUILTIN_PMOVUSQB256_MEM, IX86_BUILTIN_PMOVUSQB128_MEM,
11060 IX86_BUILTIN_PMOVSQB256_MEM, IX86_BUILTIN_PMOVSQB128_MEM,
11061 IX86_BUILTIN_PMOVQB256_MEM, IX86_BUILTIN_PMOVQB128_MEM,
11062 IX86_BUILTIN_PMOVUSDW256_MEM, IX86_BUILTIN_PMOVUSDW128_MEM,
11063 IX86_BUILTIN_PMOVSDW256_MEM, IX86_BUILTIN_PMOVSDW128_MEM,
11064 IX86_BUILTIN_PMOVDW256_MEM, IX86_BUILTIN_PMOVDW128_MEM,
11065 IX86_BUILTIN_PMOVUSDB256_MEM, IX86_BUILTIN_PMOVUSDB128_MEM,
11066 IX86_BUILTIN_PMOVSDB256_MEM, IX86_BUILTIN_PMOVSDB128_MEM,
11067 IX86_BUILTIN_PMOVDB256_MEM, IX86_BUILTIN_PMOVDB128_MEM,
11068 IX86_BUILTIN_MOVDQA64LOAD256_MASK, IX86_BUILTIN_MOVDQA64LOAD128_MASK,
11069 IX86_BUILTIN_MOVDQA32LOAD256_MASK, IX86_BUILTIN_MOVDQA32LOAD128_MASK,
11070 IX86_BUILTIN_MOVDQA64STORE256_MASK, IX86_BUILTIN_MOVDQA64STORE128_MASK,
11071 IX86_BUILTIN_MOVDQA32STORE256_MASK, IX86_BUILTIN_MOVDQA32STORE128_MASK,
11072 IX86_BUILTIN_LOADAPD256_MASK, IX86_BUILTIN_LOADAPD128_MASK,
11073 IX86_BUILTIN_LOADAPS256_MASK, IX86_BUILTIN_LOADAPS128_MASK,
11074 IX86_BUILTIN_STOREAPD256_MASK, IX86_BUILTIN_STOREAPD128_MASK,
11075 IX86_BUILTIN_STOREAPS256_MASK, IX86_BUILTIN_STOREAPS128_MASK,
11076 IX86_BUILTIN_LOADUPD256_MASK, IX86_BUILTIN_LOADUPD128_MASK,
11077 IX86_BUILTIN_LOADUPS256_MASK, IX86_BUILTIN_LOADUPS128_MASK,
11078 IX86_BUILTIN_STOREUPD256_MASK, IX86_BUILTIN_STOREUPD128_MASK,
11079 IX86_BUILTIN_STOREUPS256_MASK, IX86_BUILTIN_STOREUPS128_MASK,
11080 IX86_BUILTIN_LOADDQUDI256_MASK, IX86_BUILTIN_LOADDQUDI128_MASK,
11081 IX86_BUILTIN_LOADDQUSI256_MASK, IX86_BUILTIN_LOADDQUSI128_MASK,
11082 IX86_BUILTIN_LOADDQUHI256_MASK, IX86_BUILTIN_LOADDQUHI128_MASK,
11083 IX86_BUILTIN_LOADDQUQI256_MASK, IX86_BUILTIN_LOADDQUQI128_MASK,
11084 IX86_BUILTIN_STOREDQUDI256_MASK, IX86_BUILTIN_STOREDQUDI128_MASK,
11085 IX86_BUILTIN_STOREDQUSI256_MASK, IX86_BUILTIN_STOREDQUSI128_MASK,
11086 IX86_BUILTIN_STOREDQUHI256_MASK, IX86_BUILTIN_STOREDQUHI128_MASK,
11087 IX86_BUILTIN_STOREDQUQI256_MASK, IX86_BUILTIN_STOREDQUQI128_MASK,
11088 IX86_BUILTIN_COMPRESSPDSTORE256, IX86_BUILTIN_COMPRESSPDSTORE128,
11089 IX86_BUILTIN_COMPRESSPSSTORE256, IX86_BUILTIN_COMPRESSPSSTORE128,
11090 IX86_BUILTIN_PCOMPRESSQSTORE256, IX86_BUILTIN_PCOMPRESSQSTORE128,
11091 IX86_BUILTIN_PCOMPRESSDSTORE256, IX86_BUILTIN_PCOMPRESSDSTORE128,
11092 IX86_BUILTIN_EXPANDPDLOAD256, IX86_BUILTIN_EXPANDPDLOAD128,
11093 IX86_BUILTIN_EXPANDPSLOAD256, IX86_BUILTIN_EXPANDPSLOAD128,
11094 IX86_BUILTIN_PEXPANDQLOAD256, IX86_BUILTIN_PEXPANDQLOAD128,
11095 IX86_BUILTIN_PEXPANDDLOAD256, IX86_BUILTIN_PEXPANDDLOAD128,
11096 IX86_BUILTIN_EXPANDPDLOAD256Z, IX86_BUILTIN_EXPANDPDLOAD128Z,
11097 IX86_BUILTIN_EXPANDPSLOAD256Z, IX86_BUILTIN_EXPANDPSLOAD128Z,
11098 IX86_BUILTIN_PEXPANDQLOAD256Z, IX86_BUILTIN_PEXPANDQLOAD128Z,
11099 IX86_BUILTIN_PEXPANDDLOAD256Z, IX86_BUILTIN_PEXPANDDLOAD128Z,
11100 IX86_BUILTIN_PALIGNR256_MASK, IX86_BUILTIN_PALIGNR128_MASK,
11101 IX86_BUILTIN_MOVDQA64_256_MASK, IX86_BUILTIN_MOVDQA64_128_MASK,
11102 IX86_BUILTIN_MOVDQA32_256_MASK, IX86_BUILTIN_MOVDQA32_128_MASK,
11103 IX86_BUILTIN_MOVAPD256_MASK, IX86_BUILTIN_MOVAPD128_MASK,
11104 IX86_BUILTIN_MOVAPS256_MASK, IX86_BUILTIN_MOVAPS128_MASK,
11105 IX86_BUILTIN_MOVDQUHI256_MASK, IX86_BUILTIN_MOVDQUHI128_MASK,
11106 IX86_BUILTIN_MOVDQUQI256_MASK, IX86_BUILTIN_MOVDQUQI128_MASK,
11107 IX86_BUILTIN_MINPS128_MASK, IX86_BUILTIN_MAXPS128_MASK,
11108 IX86_BUILTIN_MINPD128_MASK, IX86_BUILTIN_MAXPD128_MASK,
11109 IX86_BUILTIN_MAXPD256_MASK, IX86_BUILTIN_MAXPS256_MASK,
11110 IX86_BUILTIN_MINPD256_MASK, IX86_BUILTIN_MINPS256_MASK,
11111 IX86_BUILTIN_MULPS128_MASK, IX86_BUILTIN_DIVPS128_MASK,
11112 IX86_BUILTIN_MULPD128_MASK, IX86_BUILTIN_DIVPD128_MASK,
11113 IX86_BUILTIN_DIVPD256_MASK, IX86_BUILTIN_DIVPS256_MASK,
11114 IX86_BUILTIN_MULPD256_MASK, IX86_BUILTIN_MULPS256_MASK,
11115 IX86_BUILTIN_ADDPD128_MASK, IX86_BUILTIN_ADDPD256_MASK,
11116 IX86_BUILTIN_ADDPS128_MASK, IX86_BUILTIN_ADDPS256_MASK,
11117 IX86_BUILTIN_SUBPD128_MASK, IX86_BUILTIN_SUBPD256_MASK,
11118 IX86_BUILTIN_SUBPS128_MASK, IX86_BUILTIN_SUBPS256_MASK,
11119 IX86_BUILTIN_XORPD256_MASK, IX86_BUILTIN_XORPD128_MASK,
11120 IX86_BUILTIN_XORPS256_MASK, IX86_BUILTIN_XORPS128_MASK,
11121 IX86_BUILTIN_ORPD256_MASK, IX86_BUILTIN_ORPD128_MASK,
11122 IX86_BUILTIN_ORPS256_MASK, IX86_BUILTIN_ORPS128_MASK,
11123 IX86_BUILTIN_BROADCASTF32x2_256, IX86_BUILTIN_BROADCASTI32x2_256,
11124 IX86_BUILTIN_BROADCASTI32x2_128, IX86_BUILTIN_BROADCASTF64X2_256,
11125 IX86_BUILTIN_BROADCASTI64X2_256, IX86_BUILTIN_BROADCASTF32X4_256,
11126 IX86_BUILTIN_BROADCASTI32X4_256, IX86_BUILTIN_EXTRACTF32X4_256,
11127 IX86_BUILTIN_EXTRACTI32X4_256, IX86_BUILTIN_DBPSADBW256,
11128 IX86_BUILTIN_DBPSADBW128, IX86_BUILTIN_CVTTPD2QQ256,
11129 IX86_BUILTIN_CVTTPD2QQ128, IX86_BUILTIN_CVTTPD2UQQ256,
11130 IX86_BUILTIN_CVTTPD2UQQ128, IX86_BUILTIN_CVTPD2QQ256,
11131 IX86_BUILTIN_CVTPD2QQ128, IX86_BUILTIN_CVTPD2UQQ256,
11132 IX86_BUILTIN_CVTPD2UQQ128, IX86_BUILTIN_CVTPD2UDQ256_MASK,
11133 IX86_BUILTIN_CVTPD2UDQ128_MASK, IX86_BUILTIN_CVTTPS2QQ256,
11134 IX86_BUILTIN_CVTTPS2QQ128, IX86_BUILTIN_CVTTPS2UQQ256,
11135 IX86_BUILTIN_CVTTPS2UQQ128, IX86_BUILTIN_CVTTPS2DQ256_MASK,
11136 IX86_BUILTIN_CVTTPS2DQ128_MASK, IX86_BUILTIN_CVTTPS2UDQ256,
11137 IX86_BUILTIN_CVTTPS2UDQ128, IX86_BUILTIN_CVTTPD2DQ256_MASK,
11138 IX86_BUILTIN_CVTTPD2DQ128_MASK, IX86_BUILTIN_CVTTPD2UDQ256_MASK,
11139 IX86_BUILTIN_CVTTPD2UDQ128_MASK, IX86_BUILTIN_CVTPD2DQ256_MASK,
11140 IX86_BUILTIN_CVTPD2DQ128_MASK, IX86_BUILTIN_CVTDQ2PD256_MASK,
11141 IX86_BUILTIN_CVTDQ2PD128_MASK, IX86_BUILTIN_CVTUDQ2PD256_MASK,
11142 IX86_BUILTIN_CVTUDQ2PD128_MASK, IX86_BUILTIN_CVTDQ2PS256_MASK,
11143 IX86_BUILTIN_CVTDQ2PS128_MASK, IX86_BUILTIN_CVTUDQ2PS256_MASK,
11144 IX86_BUILTIN_CVTUDQ2PS128_MASK, IX86_BUILTIN_CVTPS2PD256_MASK,
11145 IX86_BUILTIN_CVTPS2PD128_MASK, IX86_BUILTIN_PBROADCASTB256_MASK,
11146 IX86_BUILTIN_PBROADCASTB256_GPR_MASK, IX86_BUILTIN_PBROADCASTB128_MASK,
11147 IX86_BUILTIN_PBROADCASTB128_GPR_MASK, IX86_BUILTIN_PBROADCASTW256_MASK,
11148 IX86_BUILTIN_PBROADCASTW256_GPR_MASK, IX86_BUILTIN_PBROADCASTW128_MASK,
11149 IX86_BUILTIN_PBROADCASTW128_GPR_MASK, IX86_BUILTIN_PBROADCASTD256_MASK,
11150 IX86_BUILTIN_PBROADCASTD256_GPR_MASK, IX86_BUILTIN_PBROADCASTD128_MASK,
11151 IX86_BUILTIN_PBROADCASTD128_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MASK,
11152 IX86_BUILTIN_PBROADCASTQ256_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
11153 IX86_BUILTIN_PBROADCASTQ128_MASK, IX86_BUILTIN_PBROADCASTQ128_GPR_MASK,
11154 IX86_BUILTIN_PBROADCASTQ128_MEM_MASK, IX86_BUILTIN_BROADCASTSS256,
11155 IX86_BUILTIN_BROADCASTSS128, IX86_BUILTIN_BROADCASTSD256,
11156 IX86_BUILTIN_EXTRACTF64X2_256, IX86_BUILTIN_EXTRACTI64X2_256,
11157 IX86_BUILTIN_INSERTF32X4_256, IX86_BUILTIN_INSERTI32X4_256,
11158 IX86_BUILTIN_PMOVSXBW256_MASK, IX86_BUILTIN_PMOVSXBW128_MASK,
11159 IX86_BUILTIN_PMOVSXBD256_MASK, IX86_BUILTIN_PMOVSXBD128_MASK,
11160 IX86_BUILTIN_PMOVSXBQ256_MASK, IX86_BUILTIN_PMOVSXBQ128_MASK,
11161 IX86_BUILTIN_PMOVSXWD256_MASK, IX86_BUILTIN_PMOVSXWD128_MASK,
11162 IX86_BUILTIN_PMOVSXWQ256_MASK, IX86_BUILTIN_PMOVSXWQ128_MASK,
11163 IX86_BUILTIN_PMOVSXDQ256_MASK, IX86_BUILTIN_PMOVSXDQ128_MASK,
11164 IX86_BUILTIN_PMOVZXBW256_MASK, IX86_BUILTIN_PMOVZXBW128_MASK,
11165 IX86_BUILTIN_PMOVZXBD256_MASK, IX86_BUILTIN_PMOVZXBD128_MASK,
11166 IX86_BUILTIN_PMOVZXBQ256_MASK, IX86_BUILTIN_PMOVZXBQ128_MASK,
11167 IX86_BUILTIN_PMOVZXWD256_MASK, IX86_BUILTIN_PMOVZXWD128_MASK,
11168 IX86_BUILTIN_PMOVZXWQ256_MASK, IX86_BUILTIN_PMOVZXWQ128_MASK,
11169 IX86_BUILTIN_PMOVZXDQ256_MASK, IX86_BUILTIN_PMOVZXDQ128_MASK,
11170 IX86_BUILTIN_REDUCEPD256_MASK, IX86_BUILTIN_REDUCEPD128_MASK,
11171 IX86_BUILTIN_REDUCEPS256_MASK, IX86_BUILTIN_REDUCEPS128_MASK,
11172 IX86_BUILTIN_REDUCESD_MASK, IX86_BUILTIN_REDUCESS_MASK,
11173 IX86_BUILTIN_VPERMVARHI256_MASK, IX86_BUILTIN_VPERMVARHI128_MASK,
11174 IX86_BUILTIN_VPERMT2VARHI256, IX86_BUILTIN_VPERMT2VARHI256_MASKZ,
11175 IX86_BUILTIN_VPERMT2VARHI128, IX86_BUILTIN_VPERMT2VARHI128_MASKZ,
11176 IX86_BUILTIN_VPERMI2VARHI256, IX86_BUILTIN_VPERMI2VARHI128,
11177 IX86_BUILTIN_RCP14PD256, IX86_BUILTIN_RCP14PD128,
11178 IX86_BUILTIN_RCP14PS256, IX86_BUILTIN_RCP14PS128,
11179 IX86_BUILTIN_RSQRT14PD256_MASK, IX86_BUILTIN_RSQRT14PD128_MASK,
11180 IX86_BUILTIN_RSQRT14PS256_MASK, IX86_BUILTIN_RSQRT14PS128_MASK,
11181 IX86_BUILTIN_SQRTPD256_MASK, IX86_BUILTIN_SQRTPD128_MASK,
11182 IX86_BUILTIN_SQRTPS256_MASK, IX86_BUILTIN_SQRTPS128_MASK,
11183 IX86_BUILTIN_PADDB128_MASK, IX86_BUILTIN_PADDW128_MASK,
11184 IX86_BUILTIN_PADDD128_MASK, IX86_BUILTIN_PADDQ128_MASK,
11185 IX86_BUILTIN_PSUBB128_MASK, IX86_BUILTIN_PSUBW128_MASK,
11186 IX86_BUILTIN_PSUBD128_MASK, IX86_BUILTIN_PSUBQ128_MASK,
11187 IX86_BUILTIN_PADDSB128_MASK, IX86_BUILTIN_PADDSW128_MASK,
11188 IX86_BUILTIN_PSUBSB128_MASK, IX86_BUILTIN_PSUBSW128_MASK,
11189 IX86_BUILTIN_PADDUSB128_MASK, IX86_BUILTIN_PADDUSW128_MASK,
11190 IX86_BUILTIN_PSUBUSB128_MASK, IX86_BUILTIN_PSUBUSW128_MASK,
11191 IX86_BUILTIN_PADDB256_MASK, IX86_BUILTIN_PADDW256_MASK,
11192 IX86_BUILTIN_PADDD256_MASK, IX86_BUILTIN_PADDQ256_MASK,
11193 IX86_BUILTIN_PADDSB256_MASK, IX86_BUILTIN_PADDSW256_MASK,
11194 IX86_BUILTIN_PADDUSB256_MASK, IX86_BUILTIN_PADDUSW256_MASK,
11195 IX86_BUILTIN_PSUBB256_MASK, IX86_BUILTIN_PSUBW256_MASK,
11196 IX86_BUILTIN_PSUBD256_MASK, IX86_BUILTIN_PSUBQ256_MASK,
11197 IX86_BUILTIN_PSUBSB256_MASK, IX86_BUILTIN_PSUBSW256_MASK,
11198 IX86_BUILTIN_PSUBUSB256_MASK, IX86_BUILTIN_PSUBUSW256_MASK,
11199 IX86_BUILTIN_SHUF_F64x2_256, IX86_BUILTIN_SHUF_I64x2_256,
11200 IX86_BUILTIN_SHUF_I32x4_256, IX86_BUILTIN_SHUF_F32x4_256,
11201 IX86_BUILTIN_PMOVWB128, IX86_BUILTIN_PMOVWB256,
11202 IX86_BUILTIN_PMOVSWB128, IX86_BUILTIN_PMOVSWB256,
11203 IX86_BUILTIN_PMOVUSWB128, IX86_BUILTIN_PMOVUSWB256,
11204 IX86_BUILTIN_PMOVDB128, IX86_BUILTIN_PMOVDB256,
11205 IX86_BUILTIN_PMOVSDB128, IX86_BUILTIN_PMOVSDB256,
11206 IX86_BUILTIN_PMOVUSDB128, IX86_BUILTIN_PMOVUSDB256,
11207 IX86_BUILTIN_PMOVDW128, IX86_BUILTIN_PMOVDW256,
11208 IX86_BUILTIN_PMOVSDW128, IX86_BUILTIN_PMOVSDW256,
11209 IX86_BUILTIN_PMOVUSDW128, IX86_BUILTIN_PMOVUSDW256,
11210 IX86_BUILTIN_PMOVQB128, IX86_BUILTIN_PMOVQB256,
11211 IX86_BUILTIN_PMOVSQB128, IX86_BUILTIN_PMOVSQB256,
11212 IX86_BUILTIN_PMOVUSQB128, IX86_BUILTIN_PMOVUSQB256,
11213 IX86_BUILTIN_PMOVQW128, IX86_BUILTIN_PMOVQW256,
11214 IX86_BUILTIN_PMOVSQW128, IX86_BUILTIN_PMOVSQW256,
11215 IX86_BUILTIN_PMOVUSQW128, IX86_BUILTIN_PMOVUSQW256,
11216 IX86_BUILTIN_PMOVQD128, IX86_BUILTIN_PMOVQD256,
11217 IX86_BUILTIN_PMOVSQD128, IX86_BUILTIN_PMOVSQD256,
11218 IX86_BUILTIN_PMOVUSQD128, IX86_BUILTIN_PMOVUSQD256,
11219 IX86_BUILTIN_RANGEPD256, IX86_BUILTIN_RANGEPD128,
11220 IX86_BUILTIN_RANGEPS256, IX86_BUILTIN_RANGEPS128,
11221 IX86_BUILTIN_GETEXPPS256, IX86_BUILTIN_GETEXPPD256,
11222 IX86_BUILTIN_GETEXPPS128, IX86_BUILTIN_GETEXPPD128,
11223 IX86_BUILTIN_FIXUPIMMPD256_MASK, IX86_BUILTIN_FIXUPIMMPD256_MASKZ,
11224 IX86_BUILTIN_FIXUPIMMPS256_MASK, IX86_BUILTIN_FIXUPIMMPS256_MASKZ,
11225 IX86_BUILTIN_FIXUPIMMPD128_MASK, IX86_BUILTIN_FIXUPIMMPD128_MASKZ,
11226 IX86_BUILTIN_FIXUPIMMPS128_MASK, IX86_BUILTIN_FIXUPIMMPS128_MASKZ,
11227 IX86_BUILTIN_PABSQ256, IX86_BUILTIN_PABSQ128,
11228 IX86_BUILTIN_PABSD256_MASK, IX86_BUILTIN_PABSD128_MASK,
11229 IX86_BUILTIN_PMULHRSW256_MASK, IX86_BUILTIN_PMULHRSW128_MASK,
11230 IX86_BUILTIN_PMULHUW128_MASK, IX86_BUILTIN_PMULHUW256_MASK,
11231 IX86_BUILTIN_PMULHW256_MASK, IX86_BUILTIN_PMULHW128_MASK,
11232 IX86_BUILTIN_PMULLW256_MASK, IX86_BUILTIN_PMULLW128_MASK,
11233 IX86_BUILTIN_PMULLQ256, IX86_BUILTIN_PMULLQ128,
11234 IX86_BUILTIN_ANDPD256_MASK, IX86_BUILTIN_ANDPD128_MASK,
11235 IX86_BUILTIN_ANDPS256_MASK, IX86_BUILTIN_ANDPS128_MASK,
11236 IX86_BUILTIN_ANDNPD256_MASK, IX86_BUILTIN_ANDNPD128_MASK,
11237 IX86_BUILTIN_ANDNPS256_MASK, IX86_BUILTIN_ANDNPS128_MASK,
11238 IX86_BUILTIN_PSLLWI128_MASK, IX86_BUILTIN_PSLLDI128_MASK,
11239 IX86_BUILTIN_PSLLQI128_MASK, IX86_BUILTIN_PSLLW128_MASK,
11240 IX86_BUILTIN_PSLLD128_MASK, IX86_BUILTIN_PSLLQ128_MASK,
11241 IX86_BUILTIN_PSLLWI256_MASK , IX86_BUILTIN_PSLLW256_MASK,
11242 IX86_BUILTIN_PSLLDI256_MASK, IX86_BUILTIN_PSLLD256_MASK,
11243 IX86_BUILTIN_PSLLQI256_MASK, IX86_BUILTIN_PSLLQ256_MASK,
11244 IX86_BUILTIN_PSRADI128_MASK, IX86_BUILTIN_PSRAD128_MASK,
11245 IX86_BUILTIN_PSRADI256_MASK, IX86_BUILTIN_PSRAD256_MASK,
11246 IX86_BUILTIN_PSRAQI128_MASK, IX86_BUILTIN_PSRAQ128_MASK,
11247 IX86_BUILTIN_PSRAQI256_MASK, IX86_BUILTIN_PSRAQ256_MASK,
11248 IX86_BUILTIN_PANDD256, IX86_BUILTIN_PANDD128,
11249 IX86_BUILTIN_PSRLDI128_MASK, IX86_BUILTIN_PSRLD128_MASK,
11250 IX86_BUILTIN_PSRLDI256_MASK, IX86_BUILTIN_PSRLD256_MASK,
11251 IX86_BUILTIN_PSRLQI128_MASK, IX86_BUILTIN_PSRLQ128_MASK,
11252 IX86_BUILTIN_PSRLQI256_MASK, IX86_BUILTIN_PSRLQ256_MASK,
11253 IX86_BUILTIN_PANDQ256, IX86_BUILTIN_PANDQ128,
11254 IX86_BUILTIN_PANDND256, IX86_BUILTIN_PANDND128,
11255 IX86_BUILTIN_PANDNQ256, IX86_BUILTIN_PANDNQ128,
11256 IX86_BUILTIN_PORD256, IX86_BUILTIN_PORD128,
11257 IX86_BUILTIN_PORQ256, IX86_BUILTIN_PORQ128,
11258 IX86_BUILTIN_PXORD256, IX86_BUILTIN_PXORD128,
11259 IX86_BUILTIN_PXORQ256, IX86_BUILTIN_PXORQ128,
11260 IX86_BUILTIN_PACKSSWB256_MASK, IX86_BUILTIN_PACKSSWB128_MASK,
11261 IX86_BUILTIN_PACKUSWB256_MASK, IX86_BUILTIN_PACKUSWB128_MASK,
11262 IX86_BUILTIN_RNDSCALEPS256, IX86_BUILTIN_RNDSCALEPD256,
11263 IX86_BUILTIN_RNDSCALEPS128, IX86_BUILTIN_RNDSCALEPD128,
11264 IX86_BUILTIN_VTERNLOGQ256_MASK, IX86_BUILTIN_VTERNLOGQ256_MASKZ,
11265 IX86_BUILTIN_VTERNLOGD256_MASK, IX86_BUILTIN_VTERNLOGD256_MASKZ,
11266 IX86_BUILTIN_VTERNLOGQ128_MASK, IX86_BUILTIN_VTERNLOGQ128_MASKZ,
11267 IX86_BUILTIN_VTERNLOGD128_MASK, IX86_BUILTIN_VTERNLOGD128_MASKZ,
11268 IX86_BUILTIN_SCALEFPD256, IX86_BUILTIN_SCALEFPS256,
11269 IX86_BUILTIN_SCALEFPD128, IX86_BUILTIN_SCALEFPS128,
11270 IX86_BUILTIN_VFMADDPD256_MASK, IX86_BUILTIN_VFMADDPD256_MASK3,
11271 IX86_BUILTIN_VFMADDPD256_MASKZ, IX86_BUILTIN_VFMADDPD128_MASK,
11272 IX86_BUILTIN_VFMADDPD128_MASK3, IX86_BUILTIN_VFMADDPD128_MASKZ,
11273 IX86_BUILTIN_VFMADDPS256_MASK, IX86_BUILTIN_VFMADDPS256_MASK3,
11274 IX86_BUILTIN_VFMADDPS256_MASKZ, IX86_BUILTIN_VFMADDPS128_MASK,
11275 IX86_BUILTIN_VFMADDPS128_MASK3, IX86_BUILTIN_VFMADDPS128_MASKZ,
11276 IX86_BUILTIN_VFMSUBPD256_MASK3, IX86_BUILTIN_VFMSUBPD128_MASK3,
11277 IX86_BUILTIN_VFMSUBPS256_MASK3, IX86_BUILTIN_VFMSUBPS128_MASK3,
11278 IX86_BUILTIN_VFNMADDPD256_MASK, IX86_BUILTIN_VFNMADDPD128_MASK,
11279 IX86_BUILTIN_VFNMADDPS256_MASK, IX86_BUILTIN_VFNMADDPS128_MASK,
11280 IX86_BUILTIN_VFNMSUBPD256_MASK, IX86_BUILTIN_VFNMSUBPD256_MASK3,
11281 IX86_BUILTIN_VFNMSUBPD128_MASK, IX86_BUILTIN_VFNMSUBPD128_MASK3,
11282 IX86_BUILTIN_VFNMSUBPS256_MASK, IX86_BUILTIN_VFNMSUBPS256_MASK3,
11283 IX86_BUILTIN_VFNMSUBPS128_MASK, IX86_BUILTIN_VFNMSUBPS128_MASK3,
11284 IX86_BUILTIN_VFMADDSUBPD256_MASK, IX86_BUILTIN_VFMADDSUBPD256_MASK3,
11285 IX86_BUILTIN_VFMADDSUBPD256_MASKZ, IX86_BUILTIN_VFMADDSUBPD128_MASK,
11286 IX86_BUILTIN_VFMADDSUBPD128_MASK3, IX86_BUILTIN_VFMADDSUBPD128_MASKZ,
11287 IX86_BUILTIN_VFMADDSUBPS256_MASK, IX86_BUILTIN_VFMADDSUBPS256_MASK3,
11288 IX86_BUILTIN_VFMADDSUBPS256_MASKZ, IX86_BUILTIN_VFMADDSUBPS128_MASK,
11289 IX86_BUILTIN_VFMADDSUBPS128_MASK3, IX86_BUILTIN_VFMADDSUBPS128_MASKZ,
11290 IX86_BUILTIN_VFMSUBADDPD256_MASK3, IX86_BUILTIN_VFMSUBADDPD128_MASK3,
11291 IX86_BUILTIN_VFMSUBADDPS256_MASK3, IX86_BUILTIN_VFMSUBADDPS128_MASK3,
11292 IX86_BUILTIN_INSERTF64X2_256, IX86_BUILTIN_INSERTI64X2_256,
11293 IX86_BUILTIN_PSRAVV16HI, IX86_BUILTIN_PSRAVV8HI,
11294 IX86_BUILTIN_PMADDUBSW256_MASK, IX86_BUILTIN_PMADDUBSW128_MASK,
11295 IX86_BUILTIN_PMADDWD256_MASK, IX86_BUILTIN_PMADDWD128_MASK,
11296 IX86_BUILTIN_PSRLVV16HI, IX86_BUILTIN_PSRLVV8HI,
11297 IX86_BUILTIN_CVTPS2DQ256_MASK, IX86_BUILTIN_CVTPS2DQ128_MASK,
11298 IX86_BUILTIN_CVTPS2UDQ256, IX86_BUILTIN_CVTPS2UDQ128,
11299 IX86_BUILTIN_CVTPS2QQ256, IX86_BUILTIN_CVTPS2QQ128,
11300 IX86_BUILTIN_CVTPS2UQQ256, IX86_BUILTIN_CVTPS2UQQ128,
11301 IX86_BUILTIN_GETMANTPS256, IX86_BUILTIN_GETMANTPS128,
11302 IX86_BUILTIN_GETMANTPD256, IX86_BUILTIN_GETMANTPD128,
11303 IX86_BUILTIN_MOVDDUP256_MASK, IX86_BUILTIN_MOVDDUP128_MASK,
11304 IX86_BUILTIN_MOVSHDUP256_MASK, IX86_BUILTIN_MOVSHDUP128_MASK,
11305 IX86_BUILTIN_MOVSLDUP256_MASK, IX86_BUILTIN_MOVSLDUP128_MASK,
11306 IX86_BUILTIN_CVTQQ2PS256, IX86_BUILTIN_CVTQQ2PS128,
11307 IX86_BUILTIN_CVTUQQ2PS256, IX86_BUILTIN_CVTUQQ2PS128,
11308 IX86_BUILTIN_CVTQQ2PD256, IX86_BUILTIN_CVTQQ2PD128,
11309 IX86_BUILTIN_CVTUQQ2PD256, IX86_BUILTIN_CVTUQQ2PD128,
11310 IX86_BUILTIN_VPERMT2VARQ256, IX86_BUILTIN_VPERMT2VARQ256_MASKZ,
11311 IX86_BUILTIN_VPERMT2VARD256, IX86_BUILTIN_VPERMT2VARD256_MASKZ,
11312 IX86_BUILTIN_VPERMI2VARQ256, IX86_BUILTIN_VPERMI2VARD256,
11313 IX86_BUILTIN_VPERMT2VARPD256, IX86_BUILTIN_VPERMT2VARPD256_MASKZ,
11314 IX86_BUILTIN_VPERMT2VARPS256, IX86_BUILTIN_VPERMT2VARPS256_MASKZ,
11315 IX86_BUILTIN_VPERMI2VARPD256, IX86_BUILTIN_VPERMI2VARPS256,
11316 IX86_BUILTIN_VPERMT2VARQ128, IX86_BUILTIN_VPERMT2VARQ128_MASKZ,
11317 IX86_BUILTIN_VPERMT2VARD128, IX86_BUILTIN_VPERMT2VARD128_MASKZ,
11318 IX86_BUILTIN_VPERMI2VARQ128, IX86_BUILTIN_VPERMI2VARD128,
11319 IX86_BUILTIN_VPERMT2VARPD128, IX86_BUILTIN_VPERMT2VARPD128_MASKZ,
11320 IX86_BUILTIN_VPERMT2VARPS128, IX86_BUILTIN_VPERMT2VARPS128_MASKZ,
11321 IX86_BUILTIN_VPERMI2VARPD128, IX86_BUILTIN_VPERMI2VARPS128,
11322 IX86_BUILTIN_PSHUFB256_MASK, IX86_BUILTIN_PSHUFB128_MASK,
11323 IX86_BUILTIN_PSHUFHW256_MASK, IX86_BUILTIN_PSHUFHW128_MASK,
11324 IX86_BUILTIN_PSHUFLW256_MASK, IX86_BUILTIN_PSHUFLW128_MASK,
11325 IX86_BUILTIN_PSHUFD256_MASK, IX86_BUILTIN_PSHUFD128_MASK,
11326 IX86_BUILTIN_SHUFPD256_MASK, IX86_BUILTIN_SHUFPD128_MASK,
11327 IX86_BUILTIN_SHUFPS256_MASK, IX86_BUILTIN_SHUFPS128_MASK,
11328 IX86_BUILTIN_PROLVQ256, IX86_BUILTIN_PROLVQ128,
11329 IX86_BUILTIN_PROLQ256, IX86_BUILTIN_PROLQ128,
11330 IX86_BUILTIN_PRORVQ256, IX86_BUILTIN_PRORVQ128,
11331 IX86_BUILTIN_PRORQ256, IX86_BUILTIN_PRORQ128,
11332 IX86_BUILTIN_PSRAVQ128, IX86_BUILTIN_PSRAVQ256,
11333 IX86_BUILTIN_PSLLVV4DI_MASK, IX86_BUILTIN_PSLLVV2DI_MASK,
11334 IX86_BUILTIN_PSLLVV8SI_MASK, IX86_BUILTIN_PSLLVV4SI_MASK,
11335 IX86_BUILTIN_PSRAVV8SI_MASK, IX86_BUILTIN_PSRAVV4SI_MASK,
11336 IX86_BUILTIN_PSRLVV4DI_MASK, IX86_BUILTIN_PSRLVV2DI_MASK,
11337 IX86_BUILTIN_PSRLVV8SI_MASK, IX86_BUILTIN_PSRLVV4SI_MASK,
11338 IX86_BUILTIN_PSRAWI256_MASK, IX86_BUILTIN_PSRAW256_MASK,
11339 IX86_BUILTIN_PSRAWI128_MASK, IX86_BUILTIN_PSRAW128_MASK,
11340 IX86_BUILTIN_PSRLWI256_MASK, IX86_BUILTIN_PSRLW256_MASK,
11341 IX86_BUILTIN_PSRLWI128_MASK, IX86_BUILTIN_PSRLW128_MASK,
11342 IX86_BUILTIN_PRORVD256, IX86_BUILTIN_PROLVD256,
11343 IX86_BUILTIN_PRORD256, IX86_BUILTIN_PROLD256,
11344 IX86_BUILTIN_PRORVD128, IX86_BUILTIN_PROLVD128,
11345 IX86_BUILTIN_PRORD128, IX86_BUILTIN_PROLD128,
11346 IX86_BUILTIN_FPCLASSPD256, IX86_BUILTIN_FPCLASSPD128,
11347 IX86_BUILTIN_FPCLASSSD, IX86_BUILTIN_FPCLASSPS256,
11348 IX86_BUILTIN_FPCLASSPS128, IX86_BUILTIN_FPCLASSSS,
11349 IX86_BUILTIN_CVTB2MASK128, IX86_BUILTIN_CVTB2MASK256,
11350 IX86_BUILTIN_CVTW2MASK128, IX86_BUILTIN_CVTW2MASK256,
11351 IX86_BUILTIN_CVTD2MASK128, IX86_BUILTIN_CVTD2MASK256,
11352 IX86_BUILTIN_CVTQ2MASK128, IX86_BUILTIN_CVTQ2MASK256,
11353 IX86_BUILTIN_CVTMASK2B128, IX86_BUILTIN_CVTMASK2B256,
11354 IX86_BUILTIN_CVTMASK2W128, IX86_BUILTIN_CVTMASK2W256,
11355 IX86_BUILTIN_CVTMASK2D128, IX86_BUILTIN_CVTMASK2D256,
11356 IX86_BUILTIN_CVTMASK2Q128, IX86_BUILTIN_CVTMASK2Q256,
11357 IX86_BUILTIN_PCMPEQB128_MASK, IX86_BUILTIN_PCMPEQB256_MASK,
11358 IX86_BUILTIN_PCMPEQW128_MASK, IX86_BUILTIN_PCMPEQW256_MASK,
11359 IX86_BUILTIN_PCMPEQD128_MASK, IX86_BUILTIN_PCMPEQD256_MASK,
11360 IX86_BUILTIN_PCMPEQQ128_MASK, IX86_BUILTIN_PCMPEQQ256_MASK,
11361 IX86_BUILTIN_PCMPGTB128_MASK, IX86_BUILTIN_PCMPGTB256_MASK,
11362 IX86_BUILTIN_PCMPGTW128_MASK, IX86_BUILTIN_PCMPGTW256_MASK,
11363 IX86_BUILTIN_PCMPGTD128_MASK, IX86_BUILTIN_PCMPGTD256_MASK,
11364 IX86_BUILTIN_PCMPGTQ128_MASK, IX86_BUILTIN_PCMPGTQ256_MASK,
11365 IX86_BUILTIN_PTESTMB128, IX86_BUILTIN_PTESTMB256,
11366 IX86_BUILTIN_PTESTMW128, IX86_BUILTIN_PTESTMW256,
11367 IX86_BUILTIN_PTESTMD128, IX86_BUILTIN_PTESTMD256,
11368 IX86_BUILTIN_PTESTMQ128, IX86_BUILTIN_PTESTMQ256,
11369 IX86_BUILTIN_PTESTNMB128, IX86_BUILTIN_PTESTNMB256,
11370 IX86_BUILTIN_PTESTNMW128, IX86_BUILTIN_PTESTNMW256,
11371 IX86_BUILTIN_PTESTNMD128, IX86_BUILTIN_PTESTNMD256,
11372 IX86_BUILTIN_PTESTNMQ128, IX86_BUILTIN_PTESTNMQ256,
11373 IX86_BUILTIN_PBROADCASTMB128, IX86_BUILTIN_PBROADCASTMB256,
11374 IX86_BUILTIN_PBROADCASTMW128, IX86_BUILTIN_PBROADCASTMW256,
11375 IX86_BUILTIN_COMPRESSPD256, IX86_BUILTIN_COMPRESSPD128,
11376 IX86_BUILTIN_COMPRESSPS256, IX86_BUILTIN_COMPRESSPS128,
11377 IX86_BUILTIN_PCOMPRESSQ256, IX86_BUILTIN_PCOMPRESSQ128,
11378 IX86_BUILTIN_PCOMPRESSD256, IX86_BUILTIN_PCOMPRESSD128,
11379 IX86_BUILTIN_EXPANDPD256, IX86_BUILTIN_EXPANDPD128,
11380 IX86_BUILTIN_EXPANDPS256, IX86_BUILTIN_EXPANDPS128,
11381 IX86_BUILTIN_PEXPANDQ256, IX86_BUILTIN_PEXPANDQ128,
11382 IX86_BUILTIN_PEXPANDD256, IX86_BUILTIN_PEXPANDD128,
11383 IX86_BUILTIN_EXPANDPD256Z, IX86_BUILTIN_EXPANDPD128Z,
11384 IX86_BUILTIN_EXPANDPS256Z, IX86_BUILTIN_EXPANDPS128Z,
11385 IX86_BUILTIN_PEXPANDQ256Z, IX86_BUILTIN_PEXPANDQ128Z,
11386 IX86_BUILTIN_PEXPANDD256Z, IX86_BUILTIN_PEXPANDD128Z,
11387 IX86_BUILTIN_PMAXSD256_MASK, IX86_BUILTIN_PMINSD256_MASK,
11388 IX86_BUILTIN_PMAXUD256_MASK, IX86_BUILTIN_PMINUD256_MASK,
11389 IX86_BUILTIN_PMAXSD128_MASK, IX86_BUILTIN_PMINSD128_MASK,
11390 IX86_BUILTIN_PMAXUD128_MASK, IX86_BUILTIN_PMINUD128_MASK,
11391 IX86_BUILTIN_PMAXSQ256_MASK, IX86_BUILTIN_PMINSQ256_MASK,
11392 IX86_BUILTIN_PMAXUQ256_MASK, IX86_BUILTIN_PMINUQ256_MASK,
11393 IX86_BUILTIN_PMAXSQ128_MASK, IX86_BUILTIN_PMINSQ128_MASK,
11394 IX86_BUILTIN_PMAXUQ128_MASK, IX86_BUILTIN_PMINUQ128_MASK,
11395 IX86_BUILTIN_PMINSB256_MASK, IX86_BUILTIN_PMINUB256_MASK,
11396 IX86_BUILTIN_PMAXSB256_MASK, IX86_BUILTIN_PMAXUB256_MASK,
11397 IX86_BUILTIN_PMINSB128_MASK, IX86_BUILTIN_PMINUB128_MASK,
11398 IX86_BUILTIN_PMAXSB128_MASK, IX86_BUILTIN_PMAXUB128_MASK,
11399 IX86_BUILTIN_PMINSW256_MASK, IX86_BUILTIN_PMINUW256_MASK,
11400 IX86_BUILTIN_PMAXSW256_MASK, IX86_BUILTIN_PMAXUW256_MASK,
11401 IX86_BUILTIN_PMINSW128_MASK, IX86_BUILTIN_PMINUW128_MASK,
11402 IX86_BUILTIN_PMAXSW128_MASK, IX86_BUILTIN_PMAXUW128_MASK,
11403 IX86_BUILTIN_VPCONFLICTQ256, IX86_BUILTIN_VPCONFLICTD256,
11404 IX86_BUILTIN_VPCLZCNTQ256, IX86_BUILTIN_VPCLZCNTD256,
11405 IX86_BUILTIN_UNPCKHPD256_MASK, IX86_BUILTIN_UNPCKHPD128_MASK,
11406 IX86_BUILTIN_UNPCKHPS256_MASK, IX86_BUILTIN_UNPCKHPS128_MASK,
11407 IX86_BUILTIN_UNPCKLPD256_MASK, IX86_BUILTIN_UNPCKLPD128_MASK,
11408 IX86_BUILTIN_UNPCKLPS256_MASK, IX86_BUILTIN_VPCONFLICTQ128,
11409 IX86_BUILTIN_VPCONFLICTD128, IX86_BUILTIN_VPCLZCNTQ128,
11410 IX86_BUILTIN_VPCLZCNTD128, IX86_BUILTIN_UNPCKLPS128_MASK,
11411 IX86_BUILTIN_ALIGND256, IX86_BUILTIN_ALIGNQ256,
11412 IX86_BUILTIN_ALIGND128, IX86_BUILTIN_ALIGNQ128,
11413 IX86_BUILTIN_CVTPS2PH256_MASK, IX86_BUILTIN_CVTPS2PH_MASK,
11414 IX86_BUILTIN_CVTPH2PS_MASK, IX86_BUILTIN_CVTPH2PS256_MASK,
11415 IX86_BUILTIN_PUNPCKHDQ128_MASK, IX86_BUILTIN_PUNPCKHDQ256_MASK,
11416 IX86_BUILTIN_PUNPCKHQDQ128_MASK, IX86_BUILTIN_PUNPCKHQDQ256_MASK,
11417 IX86_BUILTIN_PUNPCKLDQ128_MASK, IX86_BUILTIN_PUNPCKLDQ256_MASK,
11418 IX86_BUILTIN_PUNPCKLQDQ128_MASK, IX86_BUILTIN_PUNPCKLQDQ256_MASK,
11419 IX86_BUILTIN_PUNPCKHBW128_MASK, IX86_BUILTIN_PUNPCKHBW256_MASK,
11420 IX86_BUILTIN_PUNPCKHWD128_MASK, IX86_BUILTIN_PUNPCKHWD256_MASK,
11421 IX86_BUILTIN_PUNPCKLBW128_MASK, IX86_BUILTIN_PUNPCKLBW256_MASK,
11422 IX86_BUILTIN_PUNPCKLWD128_MASK, IX86_BUILTIN_PUNPCKLWD256_MASK,
11423 IX86_BUILTIN_PSLLVV16HI, IX86_BUILTIN_PSLLVV8HI,
11424 IX86_BUILTIN_PACKSSDW256_MASK, IX86_BUILTIN_PACKSSDW128_MASK,
11425 IX86_BUILTIN_PACKUSDW256_MASK, IX86_BUILTIN_PACKUSDW128_MASK,
11426 IX86_BUILTIN_PAVGB256_MASK, IX86_BUILTIN_PAVGW256_MASK,
11427 IX86_BUILTIN_PAVGB128_MASK, IX86_BUILTIN_PAVGW128_MASK,
11428 IX86_BUILTIN_VPERMVARSF256_MASK, IX86_BUILTIN_VPERMVARDF256_MASK,
11429 IX86_BUILTIN_VPERMDF256_MASK, IX86_BUILTIN_PABSB256_MASK,
11430 IX86_BUILTIN_PABSB128_MASK, IX86_BUILTIN_PABSW256_MASK,
11431 IX86_BUILTIN_PABSW128_MASK, IX86_BUILTIN_VPERMILVARPD_MASK,
11432 IX86_BUILTIN_VPERMILVARPS_MASK, IX86_BUILTIN_VPERMILVARPD256_MASK,
11433 IX86_BUILTIN_VPERMILVARPS256_MASK, IX86_BUILTIN_VPERMILPD_MASK,
11434 IX86_BUILTIN_VPERMILPS_MASK, IX86_BUILTIN_VPERMILPD256_MASK,
11435 IX86_BUILTIN_VPERMILPS256_MASK, IX86_BUILTIN_BLENDMQ256,
11436 IX86_BUILTIN_BLENDMD256, IX86_BUILTIN_BLENDMPD256,
11437 IX86_BUILTIN_BLENDMPS256, IX86_BUILTIN_BLENDMQ128,
11438 IX86_BUILTIN_BLENDMD128, IX86_BUILTIN_BLENDMPD128,
11439 IX86_BUILTIN_BLENDMPS128, IX86_BUILTIN_BLENDMW256,
11440 IX86_BUILTIN_BLENDMB256, IX86_BUILTIN_BLENDMW128,
11441 IX86_BUILTIN_BLENDMB128, IX86_BUILTIN_PMULLD256_MASK,
11442 IX86_BUILTIN_PMULLD128_MASK, IX86_BUILTIN_PMULUDQ256_MASK,
11443 IX86_BUILTIN_PMULDQ256_MASK, IX86_BUILTIN_PMULDQ128_MASK,
11444 IX86_BUILTIN_PMULUDQ128_MASK, IX86_BUILTIN_CVTPD2PS256_MASK,
11445 IX86_BUILTIN_CVTPD2PS_MASK, IX86_BUILTIN_VPERMVARSI256_MASK,
11446 IX86_BUILTIN_VPERMVARDI256_MASK, IX86_BUILTIN_VPERMDI256_MASK,
11447 IX86_BUILTIN_CMPQ256, IX86_BUILTIN_CMPD256,
11448 IX86_BUILTIN_UCMPQ256, IX86_BUILTIN_UCMPD256,
11449 IX86_BUILTIN_CMPB256, IX86_BUILTIN_CMPW256,
11450 IX86_BUILTIN_UCMPB256, IX86_BUILTIN_UCMPW256,
11451 IX86_BUILTIN_CMPPD256_MASK, IX86_BUILTIN_CMPPS256_MASK,
11452 IX86_BUILTIN_CMPQ128, IX86_BUILTIN_CMPD128,
11453 IX86_BUILTIN_UCMPQ128, IX86_BUILTIN_UCMPD128,
11454 IX86_BUILTIN_CMPB128, IX86_BUILTIN_CMPW128,
11455 IX86_BUILTIN_UCMPB128, IX86_BUILTIN_UCMPW128,
11456 IX86_BUILTIN_CMPPD128_MASK, IX86_BUILTIN_CMPPS128_MASK,
11457 IX86_BUILTIN_GATHER3SIV8SF, IX86_BUILTIN_GATHER3SIV4SF,
11458 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV2DF,
11459 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3DIV4SF,
11460 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
11461 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3SIV4SI,
11462 IX86_BUILTIN_GATHER3SIV4DI, IX86_BUILTIN_GATHER3SIV2DI,
11463 IX86_BUILTIN_GATHER3DIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
11464 IX86_BUILTIN_GATHER3DIV4DI, IX86_BUILTIN_GATHER3DIV2DI,
11465 IX86_BUILTIN_SCATTERSIV8SF, IX86_BUILTIN_SCATTERSIV4SF,
11466 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV2DF,
11467 IX86_BUILTIN_SCATTERDIV8SF, IX86_BUILTIN_SCATTERDIV4SF,
11468 IX86_BUILTIN_SCATTERDIV4DF, IX86_BUILTIN_SCATTERDIV2DF,
11469 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV4SI,
11470 IX86_BUILTIN_SCATTERSIV4DI, IX86_BUILTIN_SCATTERSIV2DI,
11471 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_SCATTERDIV4SI,
11472 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
11473 IX86_BUILTIN_RANGESD128, IX86_BUILTIN_RANGESS128,
11474 IX86_BUILTIN_KUNPCKWD, IX86_BUILTIN_KUNPCKDQ,
11475 IX86_BUILTIN_BROADCASTF32x2_512, IX86_BUILTIN_BROADCASTI32x2_512,
11476 IX86_BUILTIN_BROADCASTF64X2_512, IX86_BUILTIN_BROADCASTI64X2_512,
11477 IX86_BUILTIN_BROADCASTF32X8_512, IX86_BUILTIN_BROADCASTI32X8_512,
11478 IX86_BUILTIN_EXTRACTF64X2_512, IX86_BUILTIN_EXTRACTF32X8,
11479 IX86_BUILTIN_EXTRACTI64X2_512, IX86_BUILTIN_EXTRACTI32X8,
11480 IX86_BUILTIN_REDUCEPD512_MASK, IX86_BUILTIN_REDUCEPS512_MASK,
11481 IX86_BUILTIN_PMULLQ512, IX86_BUILTIN_XORPD512,
11482 IX86_BUILTIN_XORPS512, IX86_BUILTIN_ORPD512,
11483 IX86_BUILTIN_ORPS512, IX86_BUILTIN_ANDPD512,
11484 IX86_BUILTIN_ANDPS512, IX86_BUILTIN_ANDNPD512,
11485 IX86_BUILTIN_ANDNPS512, IX86_BUILTIN_INSERTF32X8,
11486 IX86_BUILTIN_INSERTI32X8, IX86_BUILTIN_INSERTF64X2_512,
11487 IX86_BUILTIN_INSERTI64X2_512, IX86_BUILTIN_FPCLASSPD512,
11488 IX86_BUILTIN_FPCLASSPS512, IX86_BUILTIN_CVTD2MASK512,
11489 IX86_BUILTIN_CVTQ2MASK512, IX86_BUILTIN_CVTMASK2D512,
11490 IX86_BUILTIN_CVTMASK2Q512, IX86_BUILTIN_CVTPD2QQ512,
11491 IX86_BUILTIN_CVTPS2QQ512, IX86_BUILTIN_CVTPD2UQQ512,
11492 IX86_BUILTIN_CVTPS2UQQ512, IX86_BUILTIN_CVTQQ2PS512,
11493 IX86_BUILTIN_CVTUQQ2PS512, IX86_BUILTIN_CVTQQ2PD512,
11494 IX86_BUILTIN_CVTUQQ2PD512, IX86_BUILTIN_CVTTPS2QQ512,
11495 IX86_BUILTIN_CVTTPS2UQQ512, IX86_BUILTIN_CVTTPD2QQ512,
11496 IX86_BUILTIN_CVTTPD2UQQ512, IX86_BUILTIN_RANGEPS512,
11497 IX86_BUILTIN_RANGEPD512, IX86_BUILTIN_PACKUSDW512,
11498 IX86_BUILTIN_PACKSSDW512, IX86_BUILTIN_LOADDQUHI512_MASK,
11499 IX86_BUILTIN_LOADDQUQI512_MASK, IX86_BUILTIN_PSLLDQ512,
11500 IX86_BUILTIN_PSRLDQ512, IX86_BUILTIN_STOREDQUHI512_MASK,
11501 IX86_BUILTIN_STOREDQUQI512_MASK, IX86_BUILTIN_PALIGNR512,
11502 IX86_BUILTIN_PALIGNR512_MASK, IX86_BUILTIN_MOVDQUHI512_MASK,
11503 IX86_BUILTIN_MOVDQUQI512_MASK, IX86_BUILTIN_PSADBW512,
11504 IX86_BUILTIN_DBPSADBW512, IX86_BUILTIN_PBROADCASTB512,
11505 IX86_BUILTIN_PBROADCASTB512_GPR, IX86_BUILTIN_PBROADCASTW512,
11506 IX86_BUILTIN_PBROADCASTW512_GPR, IX86_BUILTIN_PMOVSXBW512_MASK,
11507 IX86_BUILTIN_PMOVZXBW512_MASK, IX86_BUILTIN_VPERMVARHI512_MASK,
11508 IX86_BUILTIN_VPERMT2VARHI512, IX86_BUILTIN_VPERMT2VARHI512_MASKZ,
11509 IX86_BUILTIN_VPERMI2VARHI512, IX86_BUILTIN_PAVGB512,
11510 IX86_BUILTIN_PAVGW512, IX86_BUILTIN_PADDB512,
11511 IX86_BUILTIN_PSUBB512, IX86_BUILTIN_PSUBSB512,
11512 IX86_BUILTIN_PADDSB512, IX86_BUILTIN_PSUBUSB512,
11513 IX86_BUILTIN_PADDUSB512, IX86_BUILTIN_PSUBW512,
11514 IX86_BUILTIN_PADDW512, IX86_BUILTIN_PSUBSW512,
11515 IX86_BUILTIN_PADDSW512, IX86_BUILTIN_PSUBUSW512,
11516 IX86_BUILTIN_PADDUSW512, IX86_BUILTIN_PMAXUW512,
11517 IX86_BUILTIN_PMAXSW512, IX86_BUILTIN_PMINUW512,
11518 IX86_BUILTIN_PMINSW512, IX86_BUILTIN_PMAXUB512,
11519 IX86_BUILTIN_PMAXSB512, IX86_BUILTIN_PMINUB512,
11520 IX86_BUILTIN_PMINSB512, IX86_BUILTIN_PMOVWB512,
11521 IX86_BUILTIN_PMOVSWB512, IX86_BUILTIN_PMOVUSWB512,
11522 IX86_BUILTIN_PMULHRSW512_MASK, IX86_BUILTIN_PMULHUW512_MASK,
11523 IX86_BUILTIN_PMULHW512_MASK, IX86_BUILTIN_PMULLW512_MASK,
11524 IX86_BUILTIN_PSLLWI512_MASK, IX86_BUILTIN_PSLLW512_MASK,
11525 IX86_BUILTIN_PACKSSWB512, IX86_BUILTIN_PACKUSWB512,
11526 IX86_BUILTIN_PSRAVV32HI, IX86_BUILTIN_PMADDUBSW512_MASK,
11527 IX86_BUILTIN_PMADDWD512_MASK, IX86_BUILTIN_PSRLVV32HI,
11528 IX86_BUILTIN_PUNPCKHBW512, IX86_BUILTIN_PUNPCKHWD512,
11529 IX86_BUILTIN_PUNPCKLBW512, IX86_BUILTIN_PUNPCKLWD512,
11530 IX86_BUILTIN_PSHUFB512, IX86_BUILTIN_PSHUFHW512,
11531 IX86_BUILTIN_PSHUFLW512, IX86_BUILTIN_PSRAWI512,
11532 IX86_BUILTIN_PSRAW512, IX86_BUILTIN_PSRLWI512,
11533 IX86_BUILTIN_PSRLW512, IX86_BUILTIN_CVTB2MASK512,
11534 IX86_BUILTIN_CVTW2MASK512, IX86_BUILTIN_CVTMASK2B512,
11535 IX86_BUILTIN_CVTMASK2W512, IX86_BUILTIN_PCMPEQB512_MASK,
11536 IX86_BUILTIN_PCMPEQW512_MASK, IX86_BUILTIN_PCMPGTB512_MASK,
11537 IX86_BUILTIN_PCMPGTW512_MASK, IX86_BUILTIN_PTESTMB512,
11538 IX86_BUILTIN_PTESTMW512, IX86_BUILTIN_PTESTNMB512,
11539 IX86_BUILTIN_PTESTNMW512, IX86_BUILTIN_PSLLVV32HI,
11540 IX86_BUILTIN_PABSB512, IX86_BUILTIN_PABSW512,
11541 IX86_BUILTIN_BLENDMW512, IX86_BUILTIN_BLENDMB512,
11542 IX86_BUILTIN_CMPB512, IX86_BUILTIN_CMPW512,
11543 IX86_BUILTIN_UCMPB512, IX86_BUILTIN_UCMPW512.
11544 (bdesc_special_args):
11545 Add __builtin_ia32_loaddquhi512_mask, __builtin_ia32_loaddquqi512_mask,
11546 __builtin_ia32_storedquhi512_mask, __builtin_ia32_storedquqi512_mask,
11547 __builtin_ia32_loaddquhi256_mask, __builtin_ia32_loaddquhi128_mask,
11548 __builtin_ia32_loaddquqi256_mask, __builtin_ia32_loaddquqi128_mask,
11549 __builtin_ia32_movdqa64load256_mask, __builtin_ia32_movdqa64load128_mask,
11550 __builtin_ia32_movdqa32load256_mask, __builtin_ia32_movdqa32load128_mask,
11551 __builtin_ia32_movdqa64store256_mask, __builtin_ia32_movdqa64store128_mask,
11552 __builtin_ia32_movdqa32store256_mask, __builtin_ia32_movdqa32store128_mask,
11553 __builtin_ia32_loadapd256_mask, __builtin_ia32_loadapd128_mask,
11554 __builtin_ia32_loadaps256_mask, __builtin_ia32_loadaps128_mask,
11555 __builtin_ia32_storeapd256_mask, __builtin_ia32_storeapd128_mask,
11556 __builtin_ia32_storeaps256_mask, __builtin_ia32_storeaps128_mask,
11557 __builtin_ia32_loadupd256_mask, __builtin_ia32_loadupd128_mask,
11558 __builtin_ia32_loadups256_mask, __builtin_ia32_loadups128_mask,
11559 __builtin_ia32_storeupd256_mask, __builtin_ia32_storeupd128_mask,
11560 __builtin_ia32_storeups256_mask, __builtin_ia32_storeups128_mask,
11561 __builtin_ia32_loaddqudi256_mask, __builtin_ia32_loaddqudi128_mask,
11562 __builtin_ia32_loaddqusi256_mask, __builtin_ia32_loaddqusi128_mask,
11563 __builtin_ia32_storedqudi256_mask, __builtin_ia32_storedqudi128_mask,
11564 __builtin_ia32_storedqusi256_mask, __builtin_ia32_storedqusi128_mask,
11565 __builtin_ia32_storedquhi256_mask, __builtin_ia32_storedquhi128_mask,
11566 __builtin_ia32_storedquqi256_mask, __builtin_ia32_storedquqi128_mask,
11567 __builtin_ia32_compressstoredf256_mask, __builtin_ia32_compressstoredf128_mask,
11568 __builtin_ia32_compressstoresf256_mask, __builtin_ia32_compressstoresf128_mask,
11569 __builtin_ia32_compressstoredi256_mask, __builtin_ia32_compressstoredi128_mask,
11570 __builtin_ia32_compressstoresi256_mask, __builtin_ia32_compressstoresi128_mask,
11571 __builtin_ia32_expandloaddf256_mask, __builtin_ia32_expandloaddf128_mask,
11572 __builtin_ia32_expandloadsf256_mask, __builtin_ia32_expandloadsf128_mask,
11573 __builtin_ia32_expandloaddi256_mask, __builtin_ia32_expandloaddi128_mask,
11574 __builtin_ia32_expandloadsi256_mask, __builtin_ia32_expandloadsi128_mask,
11575 __builtin_ia32_expandloaddf256_maskz, __builtin_ia32_expandloaddf128_maskz,
11576 __builtin_ia32_expandloadsf256_maskz, __builtin_ia32_expandloadsf128_maskz,
11577 __builtin_ia32_expandloaddi256_maskz, __builtin_ia32_expandloaddi128_maskz,
11578 __builtin_ia32_expandloadsi256_maskz, __builtin_ia32_expandloadsi128_maskz,
11579 __builtin_ia32_pmovqd256mem_mask, __builtin_ia32_pmovqd128mem_mask,
11580 __builtin_ia32_pmovsqd256mem_mask, __builtin_ia32_pmovsqd128mem_mask,
11581 __builtin_ia32_pmovusqd256mem_mask, __builtin_ia32_pmovusqd128mem_mask,
11582 __builtin_ia32_pmovqw256mem_mask, __builtin_ia32_pmovqw128mem_mask,
11583 __builtin_ia32_pmovsqw256mem_mask, __builtin_ia32_pmovsqw128mem_mask,
11584 __builtin_ia32_pmovusqw256mem_mask, __builtin_ia32_pmovusqw128mem_mask,
11585 __builtin_ia32_pmovqb256mem_mask, __builtin_ia32_pmovqb128mem_mask,
11586 __builtin_ia32_pmovsqb256mem_mask, __builtin_ia32_pmovsqb128mem_mask,
11587 __builtin_ia32_pmovusqb256mem_mask, __builtin_ia32_pmovusqb128mem_mask,
11588 __builtin_ia32_pmovdb256mem_mask, __builtin_ia32_pmovdb128mem_mask,
11589 __builtin_ia32_pmovsdb256mem_mask, __builtin_ia32_pmovsdb128mem_mask,
11590 __builtin_ia32_pmovusdb256mem_mask, __builtin_ia32_pmovusdb128mem_mask,
11591 __builtin_ia32_pmovdw256mem_mask, __builtin_ia32_pmovdw128mem_mask,
11592 __builtin_ia32_pmovsdw256mem_mask, __builtin_ia32_pmovsdw128mem_mask,
11593 __builtin_ia32_pmovusdw256mem_mask, __builtin_ia32_pmovusdw128mem_mask,
11594 __builtin_ia32_palignr256_mask, __builtin_ia32_palignr128_mask,
11595 __builtin_ia32_movdqa64_256_mask, __builtin_ia32_movdqa64_128_mask,
11596 __builtin_ia32_movdqa32_256_mask, __builtin_ia32_movdqa32_128_mask,
11597 __builtin_ia32_movapd256_mask, __builtin_ia32_movapd128_mask,
11598 __builtin_ia32_movaps256_mask, __builtin_ia32_movaps128_mask,
11599 __builtin_ia32_movdquhi256_mask, __builtin_ia32_movdquhi128_mask,
11600 __builtin_ia32_movdquqi256_mask, __builtin_ia32_movdquqi128_mask,
11601 __builtin_ia32_minps_mask, __builtin_ia32_maxps_mask,
11602 __builtin_ia32_minpd_mask, __builtin_ia32_maxpd_mask,
11603 __builtin_ia32_maxpd256_mask, __builtin_ia32_maxps256_mask,
11604 __builtin_ia32_minpd256_mask, __builtin_ia32_minps256_mask,
11605 __builtin_ia32_mulps_mask, __builtin_ia32_divps_mask,
11606 __builtin_ia32_mulpd_mask, __builtin_ia32_divpd_mask,
11607 __builtin_ia32_divpd256_mask, __builtin_ia32_divps256_mask,
11608 __builtin_ia32_mulpd256_mask, __builtin_ia32_mulps256_mask,
11609 __builtin_ia32_addpd128_mask, __builtin_ia32_addpd256_mask,
11610 __builtin_ia32_addps128_mask, __builtin_ia32_addps256_mask,
11611 __builtin_ia32_subpd128_mask, __builtin_ia32_subpd256_mask,
11612 __builtin_ia32_subps128_mask, __builtin_ia32_subps256_mask,
11613 __builtin_ia32_xorpd256_mask, __builtin_ia32_xorpd128_mask,
11614 __builtin_ia32_xorps256_mask, __builtin_ia32_xorps128_mask,
11615 __builtin_ia32_orpd256_mask, __builtin_ia32_orpd128_mask,
11616 __builtin_ia32_orps256_mask, __builtin_ia32_orps128_mask,
11617 __builtin_ia32_broadcastf32x2_256_mask, __builtin_ia32_broadcasti32x2_256_mask,
11618 __builtin_ia32_broadcasti32x2_128_mask, __builtin_ia32_broadcastf64x2_256_mask,
11619 __builtin_ia32_broadcasti64x2_256_mask, __builtin_ia32_broadcastf32x4_256_mask,
11620 __builtin_ia32_broadcasti32x4_256_mask, __builtin_ia32_extractf32x4_256_mask,
11621 __builtin_ia32_extracti32x4_256_mask, __builtin_ia32_dbpsadbw256_mask,
11622 __builtin_ia32_dbpsadbw128_mask, __builtin_ia32_cvttpd2qq256_mask,
11623 __builtin_ia32_cvttpd2qq128_mask, __builtin_ia32_cvttpd2uqq256_mask,
11624 __builtin_ia32_cvttpd2uqq128_mask, __builtin_ia32_cvtpd2qq256_mask,
11625 __builtin_ia32_cvtpd2qq128_mask, __builtin_ia32_cvtpd2uqq256_mask,
11626 __builtin_ia32_cvtpd2uqq128_mask, __builtin_ia32_cvtpd2udq256_mask,
11627 __builtin_ia32_cvtpd2udq128_mask, __builtin_ia32_cvttps2qq256_mask,
11628 __builtin_ia32_cvttps2qq128_mask, __builtin_ia32_cvttps2uqq256_mask,
11629 __builtin_ia32_cvttps2uqq128_mask, __builtin_ia32_cvttps2dq256_mask,
11630 __builtin_ia32_cvttps2dq128_mask, __builtin_ia32_cvttps2udq256_mask,
11631 __builtin_ia32_cvttps2udq128_mask, __builtin_ia32_cvttpd2dq256_mask,
11632 __builtin_ia32_cvttpd2dq128_mask, __builtin_ia32_cvttpd2udq256_mask,
11633 __builtin_ia32_cvttpd2udq128_mask, __builtin_ia32_cvtpd2dq256_mask,
11634 __builtin_ia32_cvtpd2dq128_mask, __builtin_ia32_cvtdq2pd256_mask,
11635 __builtin_ia32_cvtdq2pd128_mask, __builtin_ia32_cvtudq2pd256_mask,
11636 __builtin_ia32_cvtudq2pd128_mask, __builtin_ia32_cvtdq2ps256_mask,
11637 __builtin_ia32_cvtdq2ps128_mask, __builtin_ia32_cvtudq2ps256_mask,
11638 __builtin_ia32_cvtudq2ps128_mask, __builtin_ia32_cvtps2pd256_mask,
11639 __builtin_ia32_cvtps2pd128_mask, __builtin_ia32_pbroadcastb256_mask,
11640 __builtin_ia32_pbroadcastb256_gpr_mask, __builtin_ia32_pbroadcastb128_mask,
11641 __builtin_ia32_pbroadcastb128_gpr_mask, __builtin_ia32_pbroadcastw256_mask,
11642 __builtin_ia32_pbroadcastw256_gpr_mask, __builtin_ia32_pbroadcastw128_mask,
11643 __builtin_ia32_pbroadcastw128_gpr_mask, __builtin_ia32_pbroadcastd256_mask,
11644 __builtin_ia32_pbroadcastd256_gpr_mask, __builtin_ia32_pbroadcastd128_mask,
11645 __builtin_ia32_pbroadcastd128_gpr_mask, __builtin_ia32_pbroadcastq256_mask,
11646 __builtin_ia32_pbroadcastq256_gpr_mask, __builtin_ia32_pbroadcastq256_mem_mask,
11647 __builtin_ia32_pbroadcastq128_mask, __builtin_ia32_pbroadcastq128_gpr_mask,
11648 __builtin_ia32_pbroadcastq128_mem_mask, __builtin_ia32_broadcastss256_mask,
11649 __builtin_ia32_broadcastss128_mask, __builtin_ia32_broadcastsd256_mask,
11650 __builtin_ia32_extractf64x2_256_mask, __builtin_ia32_extracti64x2_256_mask,
11651 __builtin_ia32_insertf32x4_256_mask, __builtin_ia32_inserti32x4_256_mask,
11652 __builtin_ia32_pmovsxbw256_mask, __builtin_ia32_pmovsxbw128_mask,
11653 __builtin_ia32_pmovsxbd256_mask, __builtin_ia32_pmovsxbd128_mask,
11654 __builtin_ia32_pmovsxbq256_mask, __builtin_ia32_pmovsxbq128_mask,
11655 __builtin_ia32_pmovsxwd256_mask, __builtin_ia32_pmovsxwd128_mask,
11656 __builtin_ia32_pmovsxwq256_mask, __builtin_ia32_pmovsxwq128_mask,
11657 __builtin_ia32_pmovsxdq256_mask, __builtin_ia32_pmovsxdq128_mask,
11658 __builtin_ia32_pmovzxbw256_mask, __builtin_ia32_pmovzxbw128_mask,
11659 __builtin_ia32_pmovzxbd256_mask, __builtin_ia32_pmovzxbd128_mask,
11660 __builtin_ia32_pmovzxbq256_mask, __builtin_ia32_pmovzxbq128_mask,
11661 __builtin_ia32_pmovzxwd256_mask, __builtin_ia32_pmovzxwd128_mask,
11662 __builtin_ia32_pmovzxwq256_mask, __builtin_ia32_pmovzxwq128_mask,
11663 __builtin_ia32_pmovzxdq256_mask, __builtin_ia32_pmovzxdq128_mask,
11664 __builtin_ia32_reducepd256_mask, __builtin_ia32_reducepd128_mask,
11665 __builtin_ia32_reduceps256_mask, __builtin_ia32_reduceps128_mask,
11666 __builtin_ia32_reducesd, __builtin_ia32_reducess,
11667 __builtin_ia32_permvarhi256_mask, __builtin_ia32_permvarhi128_mask,
11668 __builtin_ia32_vpermt2varhi256_mask, __builtin_ia32_vpermt2varhi256_maskz,
11669 __builtin_ia32_vpermt2varhi128_mask, __builtin_ia32_vpermt2varhi128_maskz,
11670 __builtin_ia32_vpermi2varhi256_mask, __builtin_ia32_vpermi2varhi128_mask,
11671 __builtin_ia32_rcp14pd256_mask, __builtin_ia32_rcp14pd128_mask,
11672 __builtin_ia32_rcp14ps256_mask, __builtin_ia32_rcp14ps128_mask,
11673 __builtin_ia32_rsqrt14pd256_mask, __builtin_ia32_rsqrt14pd128_mask,
11674 __builtin_ia32_rsqrt14ps256_mask, __builtin_ia32_rsqrt14ps128_mask,
11675 __builtin_ia32_sqrtpd256_mask, __builtin_ia32_sqrtpd128_mask,
11676 __builtin_ia32_sqrtps256_mask, __builtin_ia32_sqrtps128_mask,
11677 __builtin_ia32_paddb128_mask, __builtin_ia32_paddw128_mask,
11678 __builtin_ia32_paddd128_mask, __builtin_ia32_paddq128_mask,
11679 __builtin_ia32_psubb128_mask, __builtin_ia32_psubw128_mask,
11680 __builtin_ia32_psubd128_mask, __builtin_ia32_psubq128_mask,
11681 __builtin_ia32_paddsb128_mask, __builtin_ia32_paddsw128_mask,
11682 __builtin_ia32_psubsb128_mask, __builtin_ia32_psubsw128_mask,
11683 __builtin_ia32_paddusb128_mask, __builtin_ia32_paddusw128_mask,
11684 __builtin_ia32_psubusb128_mask, __builtin_ia32_psubusw128_mask,
11685 __builtin_ia32_paddb256_mask, __builtin_ia32_paddw256_mask,
11686 __builtin_ia32_paddd256_mask, __builtin_ia32_paddq256_mask,
11687 __builtin_ia32_paddsb256_mask, __builtin_ia32_paddsw256_mask,
11688 __builtin_ia32_paddusb256_mask, __builtin_ia32_paddusw256_mask,
11689 __builtin_ia32_psubb256_mask, __builtin_ia32_psubw256_mask,
11690 __builtin_ia32_psubd256_mask, __builtin_ia32_psubq256_mask,
11691 __builtin_ia32_psubsb256_mask, __builtin_ia32_psubsw256_mask,
11692 __builtin_ia32_psubusb256_mask, __builtin_ia32_psubusw256_mask,
11693 __builtin_ia32_shuf_f64x2_256_mask, __builtin_ia32_shuf_i64x2_256_mask,
11694 __builtin_ia32_shuf_i32x4_256_mask, __builtin_ia32_shuf_f32x4_256_mask,
11695 __builtin_ia32_pmovwb128_mask, __builtin_ia32_pmovwb256_mask,
11696 __builtin_ia32_pmovswb128_mask, __builtin_ia32_pmovswb256_mask,
11697 __builtin_ia32_pmovuswb128_mask, __builtin_ia32_pmovuswb256_mask,
11698 __builtin_ia32_pmovdb128_mask, __builtin_ia32_pmovdb256_mask,
11699 __builtin_ia32_pmovsdb128_mask, __builtin_ia32_pmovsdb256_mask,
11700 __builtin_ia32_pmovusdb128_mask, __builtin_ia32_pmovusdb256_mask,
11701 __builtin_ia32_pmovdw128_mask, __builtin_ia32_pmovdw256_mask,
11702 __builtin_ia32_pmovsdw128_mask, __builtin_ia32_pmovsdw256_mask,
11703 __builtin_ia32_pmovusdw128_mask, __builtin_ia32_pmovusdw256_mask,
11704 __builtin_ia32_pmovqb128_mask, __builtin_ia32_pmovqb256_mask,
11705 __builtin_ia32_pmovsqb128_mask, __builtin_ia32_pmovsqb256_mask,
11706 __builtin_ia32_pmovusqb128_mask, __builtin_ia32_pmovusqb256_mask,
11707 __builtin_ia32_pmovqw128_mask, __builtin_ia32_pmovqw256_mask,
11708 __builtin_ia32_pmovsqw128_mask, __builtin_ia32_pmovsqw256_mask,
11709 __builtin_ia32_pmovusqw128_mask, __builtin_ia32_pmovusqw256_mask,
11710 __builtin_ia32_pmovqd128_mask, __builtin_ia32_pmovqd256_mask,
11711 __builtin_ia32_pmovsqd128_mask, __builtin_ia32_pmovsqd256_mask,
11712 __builtin_ia32_pmovusqd128_mask, __builtin_ia32_pmovusqd256_mask,
11713 __builtin_ia32_rangepd256_mask, __builtin_ia32_rangepd128_mask,
11714 __builtin_ia32_rangeps256_mask, __builtin_ia32_rangeps128_mask,
11715 __builtin_ia32_getexpps256_mask, __builtin_ia32_getexppd256_mask,
11716 __builtin_ia32_getexpps128_mask, __builtin_ia32_getexppd128_mask,
11717 __builtin_ia32_fixupimmpd256, __builtin_ia32_fixupimmpd256_mask,
11718 __builtin_ia32_fixupimmpd256_maskz, __builtin_ia32_fixupimmps256,
11719 __builtin_ia32_fixupimmps256_mask, __builtin_ia32_fixupimmps256_maskz,
11720 __builtin_ia32_fixupimmpd128, __builtin_ia32_fixupimmpd128_mask,
11721 __builtin_ia32_fixupimmpd128_maskz, __builtin_ia32_fixupimmps128,
11722 __builtin_ia32_fixupimmps128_mask, __builtin_ia32_fixupimmps128_maskz,
11723 __builtin_ia32_pabsq256_mask, __builtin_ia32_pabsq128_mask,
11724 __builtin_ia32_pabsd256_mask, __builtin_ia32_pabsd128_mask,
11725 __builtin_ia32_pmulhrsw256_mask, __builtin_ia32_pmulhrsw128_mask,
11726 __builtin_ia32_pmulhuw128_mask, __builtin_ia32_pmulhuw256_mask,
11727 __builtin_ia32_pmulhw256_mask, __builtin_ia32_pmulhw128_mask,
11728 __builtin_ia32_pmullw256_mask, __builtin_ia32_pmullw128_mask,
11729 __builtin_ia32_pmullq256_mask, __builtin_ia32_pmullq128_mask,
11730 __builtin_ia32_andpd256_mask, __builtin_ia32_andpd128_mask,
11731 __builtin_ia32_andps256_mask, __builtin_ia32_andps128_mask,
11732 __builtin_ia32_andnpd256_mask, __builtin_ia32_andnpd128_mask,
11733 __builtin_ia32_andnps256_mask, __builtin_ia32_andnps128_mask,
11734 __builtin_ia32_psllwi128_mask, __builtin_ia32_pslldi128_mask,
11735 __builtin_ia32_psllqi128_mask, __builtin_ia32_psllw128_mask,
11736 __builtin_ia32_pslld128_mask, __builtin_ia32_psllq128_mask,
11737 __builtin_ia32_psllwi256_mask, __builtin_ia32_psllw256_mask,
11738 __builtin_ia32_pslldi256_mask, __builtin_ia32_pslld256_mask,
11739 __builtin_ia32_psllqi256_mask, __builtin_ia32_psllq256_mask,
11740 __builtin_ia32_psradi128_mask, __builtin_ia32_psrad128_mask,
11741 __builtin_ia32_psradi256_mask, __builtin_ia32_psrad256_mask,
11742 __builtin_ia32_psraqi128_mask, __builtin_ia32_psraq128_mask,
11743 __builtin_ia32_psraqi256_mask, __builtin_ia32_psraq256_mask,
11744 __builtin_ia32_pandd256_mask, __builtin_ia32_pandd128_mask,
11745 __builtin_ia32_psrldi128_mask, __builtin_ia32_psrld128_mask,
11746 __builtin_ia32_psrldi256_mask, __builtin_ia32_psrld256_mask,
11747 __builtin_ia32_psrlqi128_mask, __builtin_ia32_psrlq128_mask,
11748 __builtin_ia32_psrlqi256_mask, __builtin_ia32_psrlq256_mask,
11749 __builtin_ia32_pandq256_mask, __builtin_ia32_pandq128_mask,
11750 __builtin_ia32_pandnd256_mask, __builtin_ia32_pandnd128_mask,
11751 __builtin_ia32_pandnq256_mask, __builtin_ia32_pandnq128_mask,
11752 __builtin_ia32_pord256_mask, __builtin_ia32_pord128_mask,
11753 __builtin_ia32_porq256_mask, __builtin_ia32_porq128_mask,
11754 __builtin_ia32_pxord256_mask, __builtin_ia32_pxord128_mask,
11755 __builtin_ia32_pxorq256_mask, __builtin_ia32_pxorq128_mask,
11756 __builtin_ia32_packsswb256_mask, __builtin_ia32_packsswb128_mask,
11757 __builtin_ia32_packuswb256_mask, __builtin_ia32_packuswb128_mask,
11758 __builtin_ia32_rndscaleps_256_mask, __builtin_ia32_rndscalepd_256_mask,
11759 __builtin_ia32_rndscaleps_128_mask, __builtin_ia32_rndscalepd_128_mask,
11760 __builtin_ia32_pternlogq256_mask, __builtin_ia32_pternlogq256_maskz,
11761 __builtin_ia32_pternlogd256_mask, __builtin_ia32_pternlogd256_maskz,
11762 __builtin_ia32_pternlogq128_mask, __builtin_ia32_pternlogq128_maskz,
11763 __builtin_ia32_pternlogd128_mask, __builtin_ia32_pternlogd128_maskz,
11764 __builtin_ia32_scalefpd256_mask, __builtin_ia32_scalefps256_mask,
11765 __builtin_ia32_scalefpd128_mask, __builtin_ia32_scalefps128_mask,
11766 __builtin_ia32_vfmaddpd256_mask, __builtin_ia32_vfmaddpd256_mask3,
11767 __builtin_ia32_vfmaddpd256_maskz, __builtin_ia32_vfmaddpd128_mask,
11768 __builtin_ia32_vfmaddpd128_mask3, __builtin_ia32_vfmaddpd128_maskz,
11769 __builtin_ia32_vfmaddps256_mask, __builtin_ia32_vfmaddps256_mask3,
11770 __builtin_ia32_vfmaddps256_maskz, __builtin_ia32_vfmaddps128_mask,
11771 __builtin_ia32_vfmaddps128_mask3, __builtin_ia32_vfmaddps128_maskz,
11772 __builtin_ia32_vfmsubpd256_mask3, __builtin_ia32_vfmsubpd128_mask3,
11773 __builtin_ia32_vfmsubps256_mask3, __builtin_ia32_vfmsubps128_mask3,
11774 __builtin_ia32_vfnmaddpd256_mask, __builtin_ia32_vfnmaddpd128_mask,
11775 __builtin_ia32_vfnmaddps256_mask, __builtin_ia32_vfnmaddps128_mask,
11776 __builtin_ia32_vfnmsubpd256_mask, __builtin_ia32_vfnmsubpd256_mask3,
11777 __builtin_ia32_vfnmsubpd128_mask, __builtin_ia32_vfnmsubpd128_mask3,
11778 __builtin_ia32_vfnmsubps256_mask, __builtin_ia32_vfnmsubps256_mask3,
11779 __builtin_ia32_vfnmsubps128_mask, __builtin_ia32_vfnmsubps128_mask3,
11780 __builtin_ia32_vfmaddsubpd256_mask, __builtin_ia32_vfmaddsubpd256_mask3,
11781 __builtin_ia32_vfmaddsubpd256_maskz, __builtin_ia32_vfmaddsubpd128_mask,
11782 __builtin_ia32_vfmaddsubpd128_mask3, __builtin_ia32_vfmaddsubpd128_maskz,
11783 __builtin_ia32_vfmaddsubps256_mask, __builtin_ia32_vfmaddsubps256_mask3,
11784 __builtin_ia32_vfmaddsubps256_maskz, __builtin_ia32_vfmaddsubps128_mask,
11785 __builtin_ia32_vfmaddsubps128_mask3, __builtin_ia32_vfmaddsubps128_maskz,
11786 __builtin_ia32_vfmsubaddpd256_mask3, __builtin_ia32_vfmsubaddpd128_mask3,
11787 __builtin_ia32_vfmsubaddps256_mask3, __builtin_ia32_vfmsubaddps128_mask3,
11788 __builtin_ia32_insertf64x2_256_mask, __builtin_ia32_inserti64x2_256_mask,
11789 __builtin_ia32_psrav16hi_mask, __builtin_ia32_psrav8hi_mask,
11790 __builtin_ia32_pmaddubsw256_mask, __builtin_ia32_pmaddubsw128_mask,
11791 __builtin_ia32_pmaddwd256_mask, __builtin_ia32_pmaddwd128_mask,
11792 __builtin_ia32_psrlv16hi_mask, __builtin_ia32_psrlv8hi_mask,
11793 __builtin_ia32_cvtps2dq256_mask, __builtin_ia32_cvtps2dq128_mask,
11794 __builtin_ia32_cvtps2udq256_mask, __builtin_ia32_cvtps2udq128_mask,
11795 __builtin_ia32_cvtps2qq256_mask, __builtin_ia32_cvtps2qq128_mask,
11796 __builtin_ia32_cvtps2uqq256_mask, __builtin_ia32_cvtps2uqq128_mask,
11797 __builtin_ia32_getmantps256_mask, __builtin_ia32_getmantps128_mask,
11798 __builtin_ia32_getmantpd256_mask, __builtin_ia32_getmantpd128_mask,
11799 __builtin_ia32_movddup256_mask, __builtin_ia32_movddup128_mask,
11800 __builtin_ia32_movshdup256_mask, __builtin_ia32_movshdup128_mask,
11801 __builtin_ia32_movsldup256_mask, __builtin_ia32_movsldup128_mask,
11802 __builtin_ia32_cvtqq2ps256_mask, __builtin_ia32_cvtqq2ps128_mask,
11803 __builtin_ia32_cvtuqq2ps256_mask, __builtin_ia32_cvtuqq2ps128_mask,
11804 __builtin_ia32_cvtqq2pd256_mask, __builtin_ia32_cvtqq2pd128_mask,
11805 __builtin_ia32_cvtuqq2pd256_mask, __builtin_ia32_cvtuqq2pd128_mask,
11806 __builtin_ia32_vpermt2varq256_mask, __builtin_ia32_vpermt2varq256_maskz,
11807 __builtin_ia32_vpermt2vard256_mask, __builtin_ia32_vpermt2vard256_maskz,
11808 __builtin_ia32_vpermi2varq256_mask, __builtin_ia32_vpermi2vard256_mask,
11809 __builtin_ia32_vpermt2varpd256_mask, __builtin_ia32_vpermt2varpd256_maskz,
11810 __builtin_ia32_vpermt2varps256_mask, __builtin_ia32_vpermt2varps256_maskz,
11811 __builtin_ia32_vpermi2varpd256_mask, __builtin_ia32_vpermi2varps256_mask,
11812 __builtin_ia32_vpermt2varq128_mask, __builtin_ia32_vpermt2varq128_maskz,
11813 __builtin_ia32_vpermt2vard128_mask, __builtin_ia32_vpermt2vard128_maskz,
11814 __builtin_ia32_vpermi2varq128_mask, __builtin_ia32_vpermi2vard128_mask,
11815 __builtin_ia32_vpermt2varpd128_mask, __builtin_ia32_vpermt2varpd128_maskz,
11816 __builtin_ia32_vpermt2varps128_mask, __builtin_ia32_vpermt2varps128_maskz,
11817 __builtin_ia32_vpermi2varpd128_mask, __builtin_ia32_vpermi2varps128_mask,
11818 __builtin_ia32_pshufb256_mask, __builtin_ia32_pshufb128_mask,
11819 __builtin_ia32_pshufhw256_mask, __builtin_ia32_pshufhw128_mask,
11820 __builtin_ia32_pshuflw256_mask, __builtin_ia32_pshuflw128_mask,
11821 __builtin_ia32_pshufd256_mask, __builtin_ia32_pshufd128_mask,
11822 __builtin_ia32_shufpd256_mask, __builtin_ia32_shufpd128_mask,
11823 __builtin_ia32_shufps256_mask, __builtin_ia32_shufps128_mask,
11824 __builtin_ia32_prolvq256_mask, __builtin_ia32_prolvq128_mask,
11825 __builtin_ia32_prolq256_mask, __builtin_ia32_prolq128_mask,
11826 __builtin_ia32_prorvq256_mask, __builtin_ia32_prorvq128_mask,
11827 __builtin_ia32_prorq256_mask, __builtin_ia32_prorq128_mask,
11828 __builtin_ia32_psravq128_mask, __builtin_ia32_psravq256_mask,
11829 __builtin_ia32_psllv4di_mask, __builtin_ia32_psllv2di_mask,
11830 __builtin_ia32_psllv8si_mask, __builtin_ia32_psllv4si_mask,
11831 __builtin_ia32_psrav8si_mask, __builtin_ia32_psrav4si_mask,
11832 __builtin_ia32_psrlv4di_mask, __builtin_ia32_psrlv2di_mask,
11833 __builtin_ia32_psrlv8si_mask, __builtin_ia32_psrlv4si_mask,
11834 __builtin_ia32_psrawi256_mask, __builtin_ia32_psraw256_mask,
11835 __builtin_ia32_psrawi128_mask, __builtin_ia32_psraw128_mask,
11836 __builtin_ia32_psrlwi256_mask, __builtin_ia32_psrlw256_mask,
11837 __builtin_ia32_psrlwi128_mask, __builtin_ia32_psrlw128_mask,
11838 __builtin_ia32_prorvd256_mask, __builtin_ia32_prolvd256_mask,
11839 __builtin_ia32_prord256_mask, __builtin_ia32_prold256_mask,
11840 __builtin_ia32_prorvd128_mask, __builtin_ia32_prolvd128_mask,
11841 __builtin_ia32_prord128_mask, __builtin_ia32_prold128_mask,
11842 __builtin_ia32_fpclasspd256_mask, __builtin_ia32_fpclasspd128_mask,
11843 __builtin_ia32_fpclasssd, __builtin_ia32_fpclassps256_mask,
11844 __builtin_ia32_fpclassps128_mask, __builtin_ia32_fpclassss,
11845 __builtin_ia32_cvtb2mask128, __builtin_ia32_cvtb2mask256,
11846 __builtin_ia32_cvtw2mask128, __builtin_ia32_cvtw2mask256,
11847 __builtin_ia32_cvtd2mask128, __builtin_ia32_cvtd2mask256,
11848 __builtin_ia32_cvtq2mask128, __builtin_ia32_cvtq2mask256,
11849 __builtin_ia32_cvtmask2b128, __builtin_ia32_cvtmask2b256,
11850 __builtin_ia32_cvtmask2w128, __builtin_ia32_cvtmask2w256,
11851 __builtin_ia32_cvtmask2d128, __builtin_ia32_cvtmask2d256,
11852 __builtin_ia32_cvtmask2q128, __builtin_ia32_cvtmask2q256,
11853 __builtin_ia32_pcmpeqb128_mask, __builtin_ia32_pcmpeqb256_mask,
11854 __builtin_ia32_pcmpeqw128_mask, __builtin_ia32_pcmpeqw256_mask,
11855 __builtin_ia32_pcmpeqd128_mask, __builtin_ia32_pcmpeqd256_mask,
11856 __builtin_ia32_pcmpeqq128_mask, __builtin_ia32_pcmpeqq256_mask,
11857 __builtin_ia32_pcmpgtb128_mask, __builtin_ia32_pcmpgtb256_mask,
11858 __builtin_ia32_pcmpgtw128_mask, __builtin_ia32_pcmpgtw256_mask,
11859 __builtin_ia32_pcmpgtd128_mask, __builtin_ia32_pcmpgtd256_mask,
11860 __builtin_ia32_pcmpgtq128_mask, __builtin_ia32_pcmpgtq256_mask,
11861 __builtin_ia32_ptestmb128, __builtin_ia32_ptestmb256,
11862 __builtin_ia32_ptestmw128, __builtin_ia32_ptestmw256,
11863 __builtin_ia32_ptestmd128, __builtin_ia32_ptestmd256,
11864 __builtin_ia32_ptestmq128, __builtin_ia32_ptestmq256,
11865 __builtin_ia32_ptestnmb128, __builtin_ia32_ptestnmb256,
11866 __builtin_ia32_ptestnmw128, __builtin_ia32_ptestnmw256,
11867 __builtin_ia32_ptestnmd128, __builtin_ia32_ptestnmd256,
11868 __builtin_ia32_ptestnmq128, __builtin_ia32_ptestnmq256,
11869 __builtin_ia32_broadcastmb128, __builtin_ia32_broadcastmb256,
11870 __builtin_ia32_broadcastmw128, __builtin_ia32_broadcastmw256,
11871 __builtin_ia32_compressdf256_mask, __builtin_ia32_compressdf128_mask,
11872 __builtin_ia32_compresssf256_mask, __builtin_ia32_compresssf128_mask,
11873 __builtin_ia32_compressdi256_mask, __builtin_ia32_compressdi128_mask,
11874 __builtin_ia32_compresssi256_mask, __builtin_ia32_compresssi128_mask,
11875 __builtin_ia32_expanddf256_mask, __builtin_ia32_expanddf128_mask,
11876 __builtin_ia32_expandsf256_mask, __builtin_ia32_expandsf128_mask,
11877 __builtin_ia32_expanddi256_mask, __builtin_ia32_expanddi128_mask,
11878 __builtin_ia32_expandsi256_mask, __builtin_ia32_expandsi128_mask,
11879 __builtin_ia32_expanddf256_maskz, __builtin_ia32_expanddf128_maskz,
11880 __builtin_ia32_expandsf256_maskz, __builtin_ia32_expandsf128_maskz,
11881 __builtin_ia32_expanddi256_maskz, __builtin_ia32_expanddi128_maskz,
11882 __builtin_ia32_expandsi256_maskz, __builtin_ia32_expandsi128_maskz,
11883 __builtin_ia32_pmaxsd256_mask, __builtin_ia32_pminsd256_mask,
11884 __builtin_ia32_pmaxud256_mask, __builtin_ia32_pminud256_mask,
11885 __builtin_ia32_pmaxsd128_mask, __builtin_ia32_pminsd128_mask,
11886 __builtin_ia32_pmaxud128_mask, __builtin_ia32_pminud128_mask,
11887 __builtin_ia32_pmaxsq256_mask, __builtin_ia32_pminsq256_mask,
11888 __builtin_ia32_pmaxuq256_mask, __builtin_ia32_pminuq256_mask,
11889 __builtin_ia32_pmaxsq128_mask, __builtin_ia32_pminsq128_mask,
11890 __builtin_ia32_pmaxuq128_mask, __builtin_ia32_pminuq128_mask,
11891 __builtin_ia32_pminsb256_mask, __builtin_ia32_pminub256_mask,
11892 __builtin_ia32_pmaxsb256_mask, __builtin_ia32_pmaxub256_mask,
11893 __builtin_ia32_pminsb128_mask, __builtin_ia32_pminub128_mask,
11894 __builtin_ia32_pmaxsb128_mask, __builtin_ia32_pmaxub128_mask,
11895 __builtin_ia32_pminsw256_mask, __builtin_ia32_pminuw256_mask,
11896 __builtin_ia32_pmaxsw256_mask, __builtin_ia32_pmaxuw256_mask,
11897 __builtin_ia32_pminsw128_mask, __builtin_ia32_pminuw128_mask,
11898 __builtin_ia32_pmaxsw128_mask, __builtin_ia32_pmaxuw128_mask,
11899 __builtin_ia32_vpconflictdi_256_mask, __builtin_ia32_vpconflictsi_256_mask,
11900 __builtin_ia32_vplzcntq_256_mask, __builtin_ia32_vplzcntd_256_mask,
11901 __builtin_ia32_unpckhpd256_mask, __builtin_ia32_unpckhpd128_mask,
11902 __builtin_ia32_unpckhps256_mask, __builtin_ia32_unpckhps128_mask,
11903 __builtin_ia32_unpcklpd256_mask, __builtin_ia32_unpcklpd128_mask,
11904 __builtin_ia32_unpcklps256_mask, __builtin_ia32_vpconflictdi_128_mask,
11905 __builtin_ia32_vpconflictsi_128_mask, __builtin_ia32_vplzcntq_128_mask,
11906 __builtin_ia32_vplzcntd_128_mask, __builtin_ia32_unpcklps128_mask,
11907 __builtin_ia32_alignd256_mask, __builtin_ia32_alignq256_mask,
11908 __builtin_ia32_alignd128_mask, __builtin_ia32_alignq128_mask,
11909 __builtin_ia32_vcvtps2ph256_mask, __builtin_ia32_vcvtps2ph_mask,
11910 __builtin_ia32_vcvtph2ps_mask, __builtin_ia32_vcvtph2ps256_mask,
11911 __builtin_ia32_punpckhdq128_mask, __builtin_ia32_punpckhdq256_mask,
11912 __builtin_ia32_punpckhqdq128_mask, __builtin_ia32_punpckhqdq256_mask,
11913 __builtin_ia32_punpckldq128_mask, __builtin_ia32_punpckldq256_mask,
11914 __builtin_ia32_punpcklqdq128_mask, __builtin_ia32_punpcklqdq256_mask,
11915 __builtin_ia32_punpckhbw128_mask, __builtin_ia32_punpckhbw256_mask,
11916 __builtin_ia32_punpckhwd128_mask, __builtin_ia32_punpckhwd256_mask,
11917 __builtin_ia32_punpcklbw128_mask, __builtin_ia32_punpcklbw256_mask,
11918 __builtin_ia32_punpcklwd128_mask, __builtin_ia32_punpcklwd256_mask,
11919 __builtin_ia32_psllv16hi_mask, __builtin_ia32_psllv8hi_mask,
11920 __builtin_ia32_packssdw256_mask, __builtin_ia32_packssdw128_mask,
11921 __builtin_ia32_packusdw256_mask, __builtin_ia32_packusdw128_mask,
11922 __builtin_ia32_pavgb256_mask, __builtin_ia32_pavgw256_mask,
11923 __builtin_ia32_pavgb128_mask, __builtin_ia32_pavgw128_mask,
11924 __builtin_ia32_permvarsf256_mask, __builtin_ia32_permvardf256_mask,
11925 __builtin_ia32_permdf256_mask, __builtin_ia32_pabsb256_mask,
11926 __builtin_ia32_pabsb128_mask, __builtin_ia32_pabsw256_mask,
11927 __builtin_ia32_pabsw128_mask, __builtin_ia32_vpermilvarpd_mask,
11928 __builtin_ia32_vpermilvarps_mask, __builtin_ia32_vpermilvarpd256_mask,
11929 __builtin_ia32_vpermilvarps256_mask, __builtin_ia32_vpermilpd_mask,
11930 __builtin_ia32_vpermilps_mask, __builtin_ia32_vpermilpd256_mask,
11931 __builtin_ia32_vpermilps256_mask, __builtin_ia32_blendmq_256_mask,
11932 __builtin_ia32_blendmd_256_mask, __builtin_ia32_blendmpd_256_mask,
11933 __builtin_ia32_blendmps_256_mask, __builtin_ia32_blendmq_128_mask,
11934 __builtin_ia32_blendmd_128_mask, __builtin_ia32_blendmpd_128_mask,
11935 __builtin_ia32_blendmps_128_mask, __builtin_ia32_blendmw_256_mask,
11936 __builtin_ia32_blendmb_256_mask, __builtin_ia32_blendmw_128_mask,
11937 __builtin_ia32_blendmb_128_mask, __builtin_ia32_pmulld256_mask,
11938 __builtin_ia32_pmulld128_mask, __builtin_ia32_pmuludq256_mask,
11939 __builtin_ia32_pmuldq256_mask, __builtin_ia32_pmuldq128_mask,
11940 __builtin_ia32_pmuludq128_mask, __builtin_ia32_cvtpd2ps256_mask,
11941 __builtin_ia32_cvtpd2ps_mask, __builtin_ia32_permvarsi256_mask,
11942 __builtin_ia32_permvardi256_mask, __builtin_ia32_permdi256_mask,
11943 __builtin_ia32_cmpq256_mask, __builtin_ia32_cmpd256_mask,
11944 __builtin_ia32_ucmpq256_mask, __builtin_ia32_ucmpd256_mask,
11945 __builtin_ia32_cmpb256_mask, __builtin_ia32_cmpw256_mask,
11946 __builtin_ia32_ucmpb256_mask, __builtin_ia32_ucmpw256_mask,
11947 __builtin_ia32_cmppd256_mask, __builtin_ia32_cmpps256_mask,
11948 __builtin_ia32_cmpq128_mask, __builtin_ia32_cmpd128_mask,
11949 __builtin_ia32_ucmpq128_mask, __builtin_ia32_ucmpd128_mask,
11950 __builtin_ia32_cmpb128_mask, __builtin_ia32_cmpw128_mask,
11951 __builtin_ia32_ucmpb128_mask, __builtin_ia32_ucmpw128_mask,
11952 __builtin_ia32_cmppd128_mask, __builtin_ia32_cmpps128_mask,
11953 __builtin_ia32_broadcastf32x2_512_mask, __builtin_ia32_broadcasti32x2_512_mask,
11954 __builtin_ia32_broadcastf64x2_512_mask, __builtin_ia32_broadcasti64x2_512_mask,
11955 __builtin_ia32_broadcastf32x8_512_mask, __builtin_ia32_broadcasti32x8_512_mask,
11956 __builtin_ia32_extractf64x2_512_mask, __builtin_ia32_extractf32x8_mask,
11957 __builtin_ia32_extracti64x2_512_mask, __builtin_ia32_extracti32x8_mask,
11958 __builtin_ia32_reducepd512_mask, __builtin_ia32_reduceps512_mask,
11959 __builtin_ia32_pmullq512_mask, __builtin_ia32_xorpd512_mask,
11960 __builtin_ia32_xorps512_mask, __builtin_ia32_orpd512_mask,
11961 __builtin_ia32_orps512_mask, __builtin_ia32_andpd512_mask,
11962 __builtin_ia32_andps512_mask, __builtin_ia32_andnpd512_mask,
11963 __builtin_ia32_andnps512_mask, __builtin_ia32_insertf32x8_mask,
11964 __builtin_ia32_inserti32x8_mask, __builtin_ia32_insertf64x2_512_mask,
11965 __builtin_ia32_inserti64x2_512_mask, __builtin_ia32_fpclasspd512_mask,
11966 __builtin_ia32_fpclassps512_mask, __builtin_ia32_cvtd2mask512,
11967 __builtin_ia32_cvtq2mask512, __builtin_ia32_cvtmask2d512,
11968 __builtin_ia32_cvtmask2q512, __builtin_ia32_kunpcksi,
11969 __builtin_ia32_kunpckdi, __builtin_ia32_packusdw512_mask,
11970 __builtin_ia32_pslldq512, __builtin_ia32_psrldq512,
11971 __builtin_ia32_packssdw512_mask, __builtin_ia32_palignr512,
11972 __builtin_ia32_palignr512_mask, __builtin_ia32_movdquhi512_mask,
11973 __builtin_ia32_movdquqi512_mask, __builtin_ia32_psadbw512,
11974 __builtin_ia32_dbpsadbw512_mask, __builtin_ia32_pbroadcastb512_mask,
11975 __builtin_ia32_pbroadcastb512_gpr_mask, __builtin_ia32_pbroadcastw512_mask,
11976 __builtin_ia32_pbroadcastw512_gpr_mask, __builtin_ia32_pmovsxbw512_mask,
11977 __builtin_ia32_pmovzxbw512_mask, __builtin_ia32_permvarhi512_mask,
11978 __builtin_ia32_vpermt2varhi512_mask, __builtin_ia32_vpermt2varhi512_maskz,
11979 __builtin_ia32_vpermi2varhi512_mask, __builtin_ia32_pavgb512_mask,
11980 __builtin_ia32_pavgw512_mask, __builtin_ia32_paddb512_mask,
11981 __builtin_ia32_psubb512_mask, __builtin_ia32_psubsb512_mask,
11982 __builtin_ia32_paddsb512_mask, __builtin_ia32_psubusb512_mask,
11983 __builtin_ia32_paddusb512_mask, __builtin_ia32_psubw512_mask,
11984 __builtin_ia32_paddw512_mask, __builtin_ia32_psubsw512_mask,
11985 __builtin_ia32_paddsw512_mask, __builtin_ia32_psubusw512_mask,
11986 __builtin_ia32_paddusw512_mask, __builtin_ia32_pmaxuw512_mask,
11987 __builtin_ia32_pmaxsw512_mask, __builtin_ia32_pminuw512_mask,
11988 __builtin_ia32_pminsw512_mask, __builtin_ia32_pmaxub512_mask,
11989 __builtin_ia32_pmaxsb512_mask, __builtin_ia32_pminub512_mask,
11990 __builtin_ia32_pminsb512_mask, __builtin_ia32_pmovwb512_mask,
11991 __builtin_ia32_pmovswb512_mask, __builtin_ia32_pmovuswb512_mask,
11992 __builtin_ia32_pmulhrsw512_mask, __builtin_ia32_pmulhuw512_mask,
11993 __builtin_ia32_pmulhw512_mask, __builtin_ia32_pmullw512_mask,
11994 __builtin_ia32_psllwi512_mask, __builtin_ia32_psllw512_mask,
11995 __builtin_ia32_packsswb512_mask, __builtin_ia32_packuswb512_mask,
11996 __builtin_ia32_psrav32hi_mask, __builtin_ia32_pmaddubsw512_mask,
11997 __builtin_ia32_pmaddwd512_mask, __builtin_ia32_psrlv32hi_mask,
11998 __builtin_ia32_punpckhbw512_mask, __builtin_ia32_punpckhwd512_mask,
11999 __builtin_ia32_punpcklbw512_mask, __builtin_ia32_punpcklwd512_mask,
12000 __builtin_ia32_pshufb512_mask, __builtin_ia32_pshufhw512_mask,
12001 __builtin_ia32_pshuflw512_mask, __builtin_ia32_psrawi512_mask,
12002 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
12003 __builtin_ia32_psrlw512_mask, __builtin_ia32_cvtb2mask512,
12004 __builtin_ia32_cvtw2mask512, __builtin_ia32_cvtmask2b512,
12005 __builtin_ia32_cvtmask2w512, __builtin_ia32_pcmpeqb512_mask,
12006 __builtin_ia32_pcmpeqw512_mask, __builtin_ia32_pcmpgtb512_mask,
12007 __builtin_ia32_pcmpgtw512_mask, __builtin_ia32_ptestmb512,
12008 __builtin_ia32_ptestmw512, __builtin_ia32_ptestnmb512,
12009 __builtin_ia32_ptestnmw512, __builtin_ia32_psllv32hi_mask,
12010 __builtin_ia32_pabsb512_mask, __builtin_ia32_pabsw512_mask,
12011 __builtin_ia32_blendmw_512_mask, __builtin_ia32_blendmb_512_mask,
12012 __builtin_ia32_cmpb512_mask, __builtin_ia32_cmpw512_mask,
12013 __builtin_ia32_ucmpb512_mask, __builtin_ia32_ucmpw512_mask,
12014 __builtin_ia32_rangesd128_round, __builtin_ia32_rangess128_round,
12015 __builtin_ia32_cvtpd2qq512_mask, __builtin_ia32_cvtps2qq512_mask,
12016 __builtin_ia32_cvtpd2uqq512_mask, __builtin_ia32_cvtps2uqq512_mask,
12017 __builtin_ia32_cvtqq2ps512_mask, __builtin_ia32_cvtuqq2ps512_mask,
12018 __builtin_ia32_cvtqq2pd512_mask, __builtin_ia32_cvtuqq2pd512_mask,
12019 __builtin_ia32_cvttps2qq512_mask, __builtin_ia32_cvttps2uqq512_mask,
12020 __builtin_ia32_cvttpd2qq512_mask, __builtin_ia32_cvttpd2uqq512_mask,
12021 __builtin_ia32_rangeps512_mask, __builtin_ia32_rangepd512_mask.
12022 (ix86_expand_args_builtin): Handle HI_FTYPE_V16QI, SI_FTYPE_V32QI,
12023 DI_FTYPE_V64QI, V16QI_FTYPE_HI, V32QI_FTYPE_SI, V64QI_FTYPE_DI,
12024 V8HI_FTYPE_QI, V16HI_FTYPE_HI, V32HI_FTYPE_SI, V4SI_FTYPE_QI,
12025 V8SI_FTYPE_QI, V4SI_FTYPE_HI, V8SI_FTYPE_HI, QI_FTYPE_V8HI,
12026 HI_FTYPE_V16HI, SI_FTYPE_V32HI, QI_FTYPE_V4SI, QI_FTYPE_V8SI,
12027 HI_FTYPE_V16SI, QI_FTYPE_V2DI, QI_FTYPE_V4DI, QI_FTYPE_V8DI,
12028 V2DI_FTYPE_QI, V4DI_FTYPE_QI, V8DI_FTYPE_V64QI_V64QI,
12029 SI_FTYPE_SI_SI,DI_FTYPE_DI_DI, V8DI_FTYPE_V8DI_INT_CONVERT,
12030 QI_FTYPE_V4SF_INT, QI_FTYPE_V2DF_INT,
12031 V8SF_FTYPE_V4SF_V8SF_QI, V4DF_FTYPE_V2DF_V4DF_QI,
12032 V8SI_FTYPE_V4SI_V8SI_QI, V8SI_FTYPE_SI_V8SI_QI,
12033 V4SI_FTYPE_V4SI_V4SI_QI, V4SI_FTYPE_SI_V4SI_QI,
12034 V4DI_FTYPE_V2DI_V4DI_QI, V4DI_FTYPE_DI_V4DI_QI,
12035 V2DI_FTYPE_V2DI_V2DI_QI, V2DI_FTYPE_DI_V2DI_QI,
12036 V64QI_FTYPE_V64QI_V64QI_DI, V64QI_FTYPE_V16QI_V64QI_DI,
12037 V64QI_FTYPE_QI_V64QI_DI, V32QI_FTYPE_V32QI_V32QI_SI,
12038 V32QI_FTYPE_V16QI_V32QI_SI, V32QI_FTYPE_QI_V32QI_SI,
12039 V16QI_FTYPE_V16QI_V16QI_HI, V16QI_FTYPE_QI_V16QI_HI,
12040 V32HI_FTYPE_V8HI_V32HI_SI, V32HI_FTYPE_HI_V32HI_SI,
12041 V16HI_FTYPE_V8HI_V16HI_HI, V16HI_FTYPE_HI_V16HI_HI,
12042 V8HI_FTYPE_V8HI_V8HI_QI, V8HI_FTYPE_HI_V8HI_QI,
12043 V8SF_FTYPE_V8HI_V8SF_QI, V4SF_FTYPE_V8HI_V4SF_QI,
12044 V8SI_FTYPE_V8SF_V8SI_QI, V4SI_FTYPE_V4SF_V4SI_QI,
12045 V8DI_FTYPE_V8SF_V8DI_QI, V4DI_FTYPE_V4SF_V4DI_QI,
12046 V2DI_FTYPE_V4SF_V2DI_QI, V8SF_FTYPE_V8DI_V8SF_QI,
12047 V4SF_FTYPE_V4DI_V4SF_QI, V4SF_FTYPE_V2DI_V4SF_QI,
12048 V8DF_FTYPE_V8DI_V8DF_QI, V4DF_FTYPE_V4DI_V4DF_QI,
12049 V2DF_FTYPE_V2DI_V2DF_QI, V16QI_FTYPE_V8HI_V16QI_QI,
12050 V16QI_FTYPE_V16HI_V16QI_HI, V16QI_FTYPE_V4SI_V16QI_QI,
12051 V16QI_FTYPE_V8SI_V16QI_QI, V8HI_FTYPE_V4SI_V8HI_QI,
12052 V8HI_FTYPE_V8SI_V8HI_QI, V16QI_FTYPE_V2DI_V16QI_QI,
12053 V16QI_FTYPE_V4DI_V16QI_QI, V8HI_FTYPE_V2DI_V8HI_QI,
12054 V8HI_FTYPE_V4DI_V8HI_QI, V4SI_FTYPE_V2DI_V4SI_QI,
12055 V4SI_FTYPE_V4DI_V4SI_QI, V32QI_FTYPE_V32HI_V32QI_SI,
12056 HI_FTYPE_V16QI_V16QI_HI, SI_FTYPE_V32QI_V32QI_SI,
12057 DI_FTYPE_V64QI_V64QI_DI, QI_FTYPE_V8HI_V8HI_QI,
12058 HI_FTYPE_V16HI_V16HI_HI, SI_FTYPE_V32HI_V32HI_SI,
12059 QI_FTYPE_V4SI_V4SI_QI, QI_FTYPE_V8SI_V8SI_QI,
12060 QI_FTYPE_V2DI_V2DI_QI, QI_FTYPE_V4DI_V4DI_QI,
12061 V4SF_FTYPE_V2DF_V4SF_QI, V4SF_FTYPE_V4DF_V4SF_QI,
12062 V2DI_FTYPE_V4SI_V2DI_QI, V2DI_FTYPE_V8HI_V2DI_QI,
12063 V2DI_FTYPE_V16QI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_QI,
12064 V4DI_FTYPE_V4SI_V4DI_QI, V4DI_FTYPE_V8HI_V4DI_QI,
12065 V4DI_FTYPE_V16QI_V4DI_QI, V8DI_FTYPE_V8DF_V8DI_QI,
12066 V4DI_FTYPE_V4DF_V4DI_QI, V2DI_FTYPE_V2DF_V2DI_QI,
12067 V4SI_FTYPE_V4DF_V4SI_QI, V4SI_FTYPE_V2DF_V4SI_QI,
12068 V4SI_FTYPE_V8HI_V4SI_QI, V4SI_FTYPE_V16QI_V4SI_QI,
12069 V8SI_FTYPE_V8SI_V8SI_V8SI, V8SF_FTYPE_V8SF_V8SF_QI,
12070 V8SF_FTYPE_V8SI_V8SF_QI, V4DF_FTYPE_V4DF_V4DF_QI,
12071 V4SF_FTYPE_V4SF_V4SF_QI, V2DF_FTYPE_V2DF_V2DF_QI,
12072 V2DF_FTYPE_V4SF_V2DF_QI, V2DF_FTYPE_V4SI_V2DF_QI,
12073 V4SF_FTYPE_V4SI_V4SF_QI, V4DF_FTYPE_V4SF_V4DF_QI,
12074 V4DF_FTYPE_V4SI_V4DF_QI, V8SI_FTYPE_V8SI_V8SI_QI,
12075 V8SI_FTYPE_V8HI_V8SI_QI, V8SI_FTYPE_V16QI_V8SI_QI,
12076 V16SF_FTYPE_V8SF_V16SF_HI, V16SI_FTYPE_V8SI_V16SI_HI,
12077 V16HI_FTYPE_V16HI_V16HI_HI, V8HI_FTYPE_V16QI_V8HI_QI,
12078 V16HI_FTYPE_V16QI_V16HI_HI, V32HI_FTYPE_V32HI_V32HI_SI,
12079 V32HI_FTYPE_V32QI_V32HI_SI, V8DI_FTYPE_V8DI_V8DI_INT_CONVERT,
12080 V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI_CONVERT, QI_FTYPE_V8DF_INT_QI,
12081 QI_FTYPE_V4DF_INT_QI, QI_FTYPE_V2DF_INT_QI,
12082 HI_FTYPE_V16SF_INT_HI, QI_FTYPE_V8SF_INT_QI,
12083 QI_FTYPE_V4SF_INT_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI_CONVERT,
12084 V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI_CONVERT, V32QI_FTYPE_V32QI_V32QI_V32QI_SI,
12085 V32HI_FTYPE_V32HI_V32HI_V32HI_SI, V32HI_FTYPE_V64QI_V64QI_V32HI_SI,
12086 V16SI_FTYPE_V32HI_V32HI_V16SI_HI, V64QI_FTYPE_V64QI_V64QI_V64QI_DI,
12087 V32HI_FTYPE_V32HI_V8HI_V32HI_SI, V16HI_FTYPE_V16HI_V8HI_V16HI_HI,
12088 V8SI_FTYPE_V8SI_V4SI_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_V4DI_QI,
12089 V64QI_FTYPE_V32HI_V32HI_V64QI_DI, V32QI_FTYPE_V16HI_V16HI_V32QI_SI,
12090 V16QI_FTYPE_V8HI_V8HI_V16QI_HI, V32HI_FTYPE_V16SI_V16SI_V32HI_SI,
12091 V16HI_FTYPE_V8SI_V8SI_V16HI_HI, V8HI_FTYPE_V4SI_V4SI_V8HI_QI,
12092 V4DF_FTYPE_V4DF_V4DI_V4DF_QI, V8SF_FTYPE_V8SF_V8SI_V8SF_QI,
12093 V4SF_FTYPE_V4SF_V4SI_V4SF_QI, V2DF_FTYPE_V2DF_V2DI_V2DF_QI,
12094 V2DI_FTYPE_V4SI_V4SI_V2DI_QI, V4DI_FTYPE_V8SI_V8SI_V4DI_QI,
12095 V4DF_FTYPE_V4DI_V4DF_V4DF_QI, V8SF_FTYPE_V8SI_V8SF_V8SF_QI,
12096 V2DF_FTYPE_V2DI_V2DF_V2DF_QI, V4SF_FTYPE_V4SI_V4SF_V4SF_QI,
12097 V8HI_FTYPE_V8HI_V8HI_V8HI_QI, V8SI_FTYPE_V8SI_V8SI_V8SI_QI,
12098 V4SI_FTYPE_V4SI_V4SI_V4SI_QI, V8SF_FTYPE_V8SF_V8SF_V8SF_QI,
12099 V16QI_FTYPE_V16QI_V16QI_V16QI_HI, V16HI_FTYPE_V16HI_V16HI_V16HI_HI,
12100 V2DI_FTYPE_V2DI_V2DI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_V4DI_QI,
12101 V4DF_FTYPE_V4DF_V4DF_V4DF_QI, V8HI_FTYPE_V16QI_V16QI_V8HI_QI,
12102 V16HI_FTYPE_V32QI_V32QI_V16HI_HI, V8SI_FTYPE_V16HI_V16HI_V8SI_QI,
12103 V4SI_FTYPE_V8HI_V8HI_V4SI_QI, QI_FTYPE_V4DI_V4DI_INT_QI,
12104 QI_FTYPE_V8SI_V8SI_INT_QI, QI_FTYPE_V4DF_V4DF_INT_QI,
12105 QI_FTYPE_V8SF_V8SF_INT_QI, QI_FTYPE_V2DI_V2DI_INT_QI,
12106 QI_FTYPE_V4SI_V4SI_INT_QI, DI_FTYPE_V64QI_V64QI_INT_DI,
12107 SI_FTYPE_V32QI_V32QI_INT_SI, HI_FTYPE_V16QI_V16QI_INT_HI,
12108 SI_FTYPE_V32HI_V32HI_INT_SI, HI_FTYPE_V16HI_V16HI_INT_HI,
12109 QI_FTYPE_V8HI_V8HI_INT_QI, V8SF_FTYPE_V8SF_INT_V8SF_QI,
12110 V4SF_FTYPE_V4SF_INT_V4SF_QI, V2DF_FTYPE_V4DF_INT_V2DF_QI,
12111 V2DI_FTYPE_V4DI_INT_V2DI_QI, V8SF_FTYPE_V16SF_INT_V8SF_QI,
12112 V8SI_FTYPE_V16SI_INT_V8SI_QI, V2DF_FTYPE_V8DF_INT_V2DF_QI,
12113 V2DI_FTYPE_V8DI_INT_V2DI_QI, V4SF_FTYPE_V8SF_INT_V4SF_QI,
12114 V4SI_FTYPE_V8SI_INT_V4SI_QI, V8HI_FTYPE_V8SF_INT_V8HI_QI,
12115 V8HI_FTYPE_V4SF_INT_V8HI_QI, V32HI_FTYPE_V32HI_INT_V32HI_SI,
12116 V16HI_FTYPE_V16HI_INT_V16HI_HI, V8HI_FTYPE_V8HI_INT_V8HI_QI,
12117 V4DI_FTYPE_V4DI_INT_V4DI_QI, V2DI_FTYPE_V2DI_INT_V2DI_QI,
12118 V8SI_FTYPE_V8SI_INT_V8SI_QI, V4SI_FTYPE_V4SI_INT_V4SI_QI,
12119 V4DF_FTYPE_V4DF_INT_V4DF_QI, V2DF_FTYPE_V2DF_INT_V2DF_QI,
12120 V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI,
12121 V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI, V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI,
12122 V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI,
12123 V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI, V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI,
12124 V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI, V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI,
12125 V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI, V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI,
12126 V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI, V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI,
12127 V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI,
12128 V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI,
12129 V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI, V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI,
12130 V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI, V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI,
12131 V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI, V8DI_FTYPE_V8DF_V8DI_QI_INT,
12132 V8SF_FTYPE_V8DI_V8SF_QI_INT, V8DF_FTYPE_V8DI_V8DF_QI_INT,
12133 V8DI_FTYPE_V8SF_V8DI_QI_INT, V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT,
12134 V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT, VOID_FTYPE_PV4DI_V4DI_QI,
12135 VOID_FTYPE_PV2DI_V2DI_QI, VOID_FTYPE_PV8SI_V8SI_QI,
12136 VOID_FTYPE_PV4SI_V4SI_QI, VOID_FTYPE_PV4SI_V4DI_QI,
12137 VOID_FTYPE_PV4SI_V2DI_QI, VOID_FTYPE_PV8HI_V4DI_QI,
12138 VOID_FTYPE_PV8HI_V2DI_QI, VOID_FTYPE_PV8HI_V8SI_QI,
12139 VOID_FTYPE_PV8HI_V4SI_QI, VOID_FTYPE_PV16QI_V4DI_QI,
12140 VOID_FTYPE_PV16QI_V2DI_QI, VOID_FTYPE_PV16QI_V8SI_QI,
12141 VOID_FTYPE_PV16QI_V4SI_QI, VOID_FTYPE_PV8HI_V8HI_QI,
12142 VOID_FTYPE_PV16HI_V16HI_HI, VOID_FTYPE_PV32HI_V32HI_SI,
12143 VOID_FTYPE_PV16QI_V16QI_HI, VOID_FTYPE_PV32QI_V32QI_SI,
12144 VOID_FTYPE_PV64QI_V64QI_DI, VOID_FTYPE_PV4DF_V4DF_QI,
12145 VOID_FTYPE_PV2DF_V2DF_QI, VOID_FTYPE_PV8SF_V8SF_QI,
12146 VOID_FTYPE_PV4SF_V4SF_QI, V4SF_FTYPE_PCV4SF_V4SF_QI,
12147 V8SF_FTYPE_PCV8SF_V8SF_QI, V4SI_FTYPE_PCV4SI_V4SI_QI,
12148 V8SI_FTYPE_PCV8SI_V8SI_QI, V2DF_FTYPE_PCV2DF_V2DF_QI,
12149 V4DF_FTYPE_PCV4DF_V4DF_QI, V2DI_FTYPE_PCV2DI_V2DI_QI,
12150 V4DI_FTYPE_PCV4DI_V4DI_QI, V8HI_FTYPE_PCV8HI_V8HI_QI,
12151 V16HI_FTYPE_PCV16HI_V16HI_HI, V32HI_FTYPE_PCV32HI_V32HI_SI,
12152 V16QI_FTYPE_PCV16QI_V16QI_HI, V32QI_FTYPE_PCV32QI_V32QI_SI,
12153 V64QI_FTYPE_PCV64QI_V64QI_DI, do not handle V8USI_FTYPE_V8USI.
12155 2014-10-28 Jakub Jelinek <jakub@redhat.com>
12157 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t
12158 type for the left shift in CASE_CONVERT case.
12160 2014-10-28 Max Ostapenko <m.ostapenko@partner.samsung.com>
12162 * asan.h (asan_intercepted_p): New function.
12163 * asan.c (asan_mem_ref_hasher::hash): Remove MEM_REF access size from
12164 hash value construction. Call iterative_hash_expr instead of explicit
12166 (asan_mem_ref_hasher::equal): Change condition.
12167 (has_mem_ref_been_instrumented): Likewise.
12168 (update_mem_ref_hash_table): Likewise.
12169 (maybe_update_mem_ref_hash_table): New function.
12170 (instrument_strlen_call): Removed.
12171 (get_mem_refs_of_builtin_call): Handle new parameter.
12172 (instrument_builtin_call): Call maybe_update_mem_ref_hash_table instead
12173 of instrument_mem_region_access if intercepted_p is true.
12174 (instrument_mem_region_access): Instrument only base with len instead of
12175 base and end with 1.
12176 (build_check_stmt): Remove start_instrumented and end_instrumented
12178 (enum asan_check_flags): Remove ASAN_CHECK_START_INSTRUMENTED and
12179 ASAN_CHECK_END_INSTRUMENTED. Change ASAN_CHECK_LAST.
12180 (asan_expand_check_ifn): Remove start_instrumented and end_instrumented.
12181 * builtins.c (expand_builtin): Include asan.h. Don't expand
12182 string/memory builtin functions that have interceptors if ASan is
12185 2014-10-28 Richard Biener <rguenther@suse.de>
12187 PR middle-end/63665
12188 * fold-const.c (fold_comparison): Properly guard simplifying
12189 against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS.
12191 2014-10-28 Alan Lawrence <alan.lawrence@arm.com>
12193 * expr.c (expand_expr_real_2): Remove code handling VEC_LSHIFT_EXPR.
12194 * fold-const.c (const_binop): Likewise.
12195 * cfgexpand.c (expand_debug_expr): Likewise.
12196 * tree-inline.c (estimate_operator_cost): Likewise.
12197 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
12198 * optabs.c (optab_for_tree_code): Likewise.
12199 (expand_vec_shift_expr): Likewise, update comment.
12200 * tree.def: Delete VEC_LSHIFT_EXPR, remove comment.
12201 * optabs.h (expand_vec_shift_expr): Remove comment re. VEC_LSHIFT_EXPR.
12202 * optabs.def: Remove vec_shl_optab.
12203 * doc/md.texi: Remove references to vec_shr_m.
12205 2014-10-28 Yury Gribov <y.gribov@samsung.com>
12207 * asan.c (report_error_func): Add noabort path.
12208 (check_func): Ditto. Formatting.
12209 (asan_expand_check_ifn): Handle noabort path.
12210 * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
12212 * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
12213 * opts.c (finish_options): Reword comment.
12214 * sanitizer.def: Add noabort ASan builtins.
12216 2014-10-28 Yury Gribov <y.gribov@samsung.com>
12218 * asan.c (set_asan_shadow_offset): New function.
12219 (asan_shadow_offset): Likewise.
12220 (asan_emit_stack_protection): Call asan_shadow_offset.
12221 (build_shadow_mem_access): Likewise.
12222 * asan.h (set_asan_shadow_offset): Declare.
12223 * common.opt (fasan-shadow-offset): New option.
12224 (frandom-seed): Fixed parameter name.
12225 * doc/invoke.texi (fasan-shadow-offset): Describe new option.
12226 (frandom-seed): Fixed parameter name.
12227 * opts-global.c (handle_common_deferred_options): Handle
12228 -fasan-shadow-offset.
12229 * opts.c (common_handle_option): Likewise.
12231 2014-10-27 Jiong Wang <jiong.wang@arm.com>
12234 * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
12236 2014-10-27 DJ Delorie <dj@redhat.com>
12238 * tree.c (build_common_tree_nodes): Don't even store the
12239 __int128 types if they're not supported.
12241 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12243 * config/i386/i386.c (ix86_loop_memcount): Delete.
12244 (ix86_loop_unroll_adjust): Use FOR_EACH_SUBRTX.
12246 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12248 * config/i386/i386.c (find_constant_1): Delete.
12249 (find_constant): Use FOR_EACH_SUBRTX.
12251 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12253 * config/i386/i386.c (extended_reg_mentioned_1): Delete.
12254 (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
12256 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12258 * config/i386/i386.c: Include rtl-iter.h
12259 (ix86_check_avx256_register): Take a const_rtx and return a bool.
12260 (ix86_check_avx256_stores): Update call accordingly.
12261 (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
12262 (ix86_avx_u128_mode_needed): Likewise. Use FOR_EACH_SUBRTX.
12264 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12266 * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
12267 Take an rtx and return a bool.
12268 * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
12269 Use FOR_EACH_SUBRTX_VAR.
12270 * config/alpha/predicates.md (some_small_symbolic_operand): Update
12273 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12275 * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
12277 * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
12278 (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX. Return a bool.
12280 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12282 * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
12283 (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
12285 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12287 * config/alpha/alpha.c: Include rtl-iter.h.
12288 (split_small_symbolic_operand_1): Delete.
12289 (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
12291 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12293 * config/s390/s390.c: Include rtl-iter.h.
12294 (check_dpu): Delete.
12295 (s390_loop_unroll_adjust): Only iterate over patterns.
12296 Use FOR_EACH_SUBRTX.
12298 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12300 * config/spu/spu.c: Include rtl-iter.h
12301 (ea_symbol_ref): Replace with...
12302 (ea_symbol_ref_p): ...this new function.
12303 (spu_legitimate_address_p): Update call accordingly.
12304 (spu_legitimate_constant_p): Likewise. Use FOR_EACH_SUBRTX.
12306 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
12307 Tom Tromey <tromey@redhat.com>
12309 * aclocal.m4, configure: Rebuild.
12310 * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
12311 * configure.ac: Use GCC_ENABLE_PLUGINS.
12312 * stor-layout.c (finish_bitfield_layout): Now public. Change
12313 argument type to 'tree'.
12314 (finish_record_layout): Update.
12315 * stor-layout.h (finish_bitfield_layout): Declare.
12317 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12319 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
12320 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
12321 Restore, enable for bigendian, update to use __builtin..._scal...
12323 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12325 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
12326 reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
12327 (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
12328 reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
12330 * config/aarch64/aarch64-simd.md
12331 (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
12332 (reduc_<maxmin_uns>_internal<mode>): ...this.
12333 (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
12334 (reduc_<maxmin_uns>_scal_<mode>): New (*2).
12336 (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
12337 (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
12338 (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
12340 * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
12341 vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
12342 vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
12343 vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
12344 vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
12345 vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
12346 vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
12347 __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
12349 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12351 * config/aarch64/aarch64-simd-builtins.def
12352 (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
12354 (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
12356 * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
12357 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
12359 (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
12360 (aarch64_reduc_plus_internal<mode>): ...this.
12362 (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
12363 (aarch64_reduc_plus_internalv2si): ...this.
12365 (reduc_splus_<mode>/V2F): Rename to...
12366 (aarch64_reduc_plus_internal<mode>): ...this.
12368 * config/aarch64/iterators.md
12369 (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
12370 (UNSPEC_ADDV): New.
12371 (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
12373 * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
12374 vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
12375 vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
12376 vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
12377 __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
12379 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12381 PR tree-optimization/61114
12382 * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
12383 optabs, and note in reduc_[us](plus|min|max) to prefer the former.
12385 * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
12386 back to old reduc_... + BIT_FIELD_REF only if not.
12388 * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
12389 return the reduce-to-scalar (reduc_..._scal) optab.
12390 (scalar_reduc_to_vector): New.
12392 * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
12393 reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
12396 * optabs.h (scalar_reduc_to_vector): Declare.
12398 * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
12399 to either scalar or vector.
12401 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12403 PR tree-optimization/61114
12404 * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
12405 extract_bit_field around optab result.
12407 * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
12410 * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
12411 for REDUC_{MIN,MAX,PLUS}_EXPR.
12413 * tree-vect-loop.c (vect_analyze_loop): Update comment.
12414 (vect_create_epilog_for_reduction): For direct vector reduction, use
12415 result of tree code directly without extract_bit_field.
12417 * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
12420 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
12422 * basic-block.h: Remove all includes.
12423 (enum profile_status_d, struct control_flow_graph): Move to cfg.h
12424 * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
12425 * Makefile.in (GTFILES): Add cfg.h to list.
12426 * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
12427 * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
12428 * genconditions.c (write_header): Add predict.h and basic-block.h to
12430 * genemit.c (main): Ditto.
12431 * genpreds.c (write_insn_preds_c): Ditto.
12432 * genrecog.c (write_header): Ditto.
12433 * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
12434 to list of includes.
12435 * alias.c: Adjust include files.
12437 * auto-inc-dec.c: Ditto.
12438 * auto-profile.c: Ditto.
12439 * bb-reorder.c: Ditto.
12440 * bt-load.c: Ditto.
12441 * builtins.c: Ditto.
12442 * caller-save.c: Ditto.
12445 * cfganal.c: Ditto.
12446 * cfgbuild.c: Ditto.
12447 * cfgcleanup.c: Ditto.
12448 * cfgexpand.c: Ditto.
12449 * cfghooks.c: Ditto.
12450 * cfgloop.c: Ditto.
12451 * cfgloopanal.c: Ditto.
12452 * cfgloopmanip.c: Ditto.
12454 * cgraphbuild.c: Ditto.
12455 * cgraphclones.c: Ditto.
12456 * cgraphunit.c: Ditto.
12457 * combine-stack-adj.c: Ditto.
12458 * combine.c: Ditto.
12459 * compare-elim.c: Ditto.
12460 * coverage.c: Ditto.
12464 * data-streamer-in.c: Ditto.
12465 * data-streamer-out.c: Ditto.
12466 * data-streamer.c: Ditto.
12470 * df-core.c: Ditto.
12471 * df-problems.c: Ditto.
12472 * df-scan.c: Ditto.
12475 * dominance.c: Ditto.
12476 * domwalk.c: Ditto.
12478 * dwarf2cfi.c: Ditto.
12479 * emit-rtl.c: Ditto.
12480 * et-forest.c: Ditto.
12485 * fold-const.c: Ditto.
12486 * function.c: Ditto.
12488 * gcc-plugin.h: Ditto.
12490 * generic-match-head.c: Ditto.
12491 * ggc-page.c: Ditto.
12492 * gimple-builder.c: Ditto.
12493 * gimple-expr.c: Ditto.
12494 * gimple-fold.c: Ditto.
12495 * gimple-iterator.c: Ditto.
12496 * gimple-low.c: Ditto.
12497 * gimple-match-head.c: Ditto.
12498 * gimple-pretty-print.c: Ditto.
12499 * gimple-ssa-isolate-paths.c: Ditto.
12500 * gimple-ssa-strength-reduction.c: Ditto.
12501 * gimple-streamer-in.c: Ditto.
12502 * gimple-streamer-out.c: Ditto.
12503 * gimple-streamer.h: Ditto.
12504 * gimple-walk.c: Ditto.
12506 * gimplify-me.c: Ditto.
12507 * gimplify.c: Ditto.
12509 * graphite-blocking.c: Ditto.
12510 * graphite-clast-to-gimple.c: Ditto.
12511 * graphite-dependences.c: Ditto.
12512 * graphite-interchange.c: Ditto.
12513 * graphite-isl-ast-to-gimple.c: Ditto.
12514 * graphite-optimize-isl.c: Ditto.
12515 * graphite-poly.c: Ditto.
12516 * graphite-scop-detection.c: Ditto.
12517 * graphite-sese-to-poly.c: Ditto.
12518 * graphite.c: Ditto.
12519 * haifa-sched.c: Ditto.
12520 * hw-doloop.c: Ditto.
12522 * init-regs.c: Ditto.
12523 * internal-fn.c: Ditto.
12525 * ipa-devirt.c: Ditto.
12526 * ipa-icf-gimple.c: Ditto.
12527 * ipa-icf.c: Ditto.
12528 * ipa-inline-analysis.c: Ditto.
12529 * ipa-inline.c: Ditto.
12530 * ipa-polymorphic-call.c: Ditto.
12531 * ipa-profile.c: Ditto.
12532 * ipa-prop.c: Ditto.
12533 * ipa-pure-const.c: Ditto.
12534 * ipa-reference.c: Ditto.
12535 * ipa-split.c: Ditto.
12536 * ipa-utils.c: Ditto.
12538 * ira-build.c: Ditto.
12539 * ira-color.c: Ditto.
12540 * ira-conflicts.c: Ditto.
12541 * ira-costs.c: Ditto.
12542 * ira-emit.c: Ditto.
12543 * ira-lives.c: Ditto.
12547 * loop-doloop.c: Ditto.
12548 * loop-init.c: Ditto.
12549 * loop-invariant.c: Ditto.
12550 * loop-iv.c: Ditto.
12551 * loop-unroll.c: Ditto.
12552 * lower-subreg.c: Ditto.
12553 * lra-assigns.c: Ditto.
12554 * lra-coalesce.c: Ditto.
12555 * lra-constraints.c: Ditto.
12556 * lra-eliminations.c: Ditto.
12557 * lra-lives.c: Ditto.
12558 * lra-spills.c: Ditto.
12560 * lto-cgraph.c: Ditto.
12561 * lto-compress.c: Ditto.
12562 * lto-opts.c: Ditto.
12563 * lto-section-in.c: Ditto.
12564 * lto-section-out.c: Ditto.
12565 * lto-streamer-in.c: Ditto.
12566 * lto-streamer-out.c: Ditto.
12567 * lto-streamer.c: Ditto.
12569 * mode-switching.c: Ditto.
12570 * modulo-sched.c: Ditto.
12571 * omp-low.c: Ditto.
12573 * opts-global.c: Ditto.
12575 * postreload-gcse.c: Ditto.
12576 * postreload.c: Ditto.
12577 * predict.c: Ditto.
12578 * print-rtl.c: Ditto.
12579 * profile.c: Ditto.
12582 * reg-stack.c: Ditto.
12583 * regcprop.c: Ditto.
12584 * regcprop.h: Ditto.
12585 * reginfo.c: Ditto.
12586 * regrename.c: Ditto.
12587 * regstat.c: Ditto.
12589 * reload1.c: Ditto.
12591 * resource.c: Ditto.
12592 * rtlanal.c: Ditto.
12593 * sched-deps.c: Ditto.
12594 * sched-ebb.c: Ditto.
12595 * sched-int.h: Ditto.
12596 * sched-rgn.c: Ditto.
12597 * sched-vis.c: Ditto.
12598 * sel-sched-dump.c: Ditto.
12599 * sel-sched-ir.c: Ditto.
12600 * sel-sched-ir.h: Ditto.
12601 * sel-sched.c: Ditto.
12603 * shrink-wrap.c: Ditto.
12604 * stack-ptr-mod.c: Ditto.
12606 * store-motion.c: Ditto.
12610 * trans-mem.c: Ditto.
12611 * tree-affine.c: Ditto.
12612 * tree-call-cdce.c: Ditto.
12613 * tree-cfg.c: Ditto.
12614 * tree-cfgcleanup.c: Ditto.
12615 * tree-chrec.c: Ditto.
12616 * tree-complex.c: Ditto.
12617 * tree-data-ref.c: Ditto.
12618 * tree-dfa.c: Ditto.
12619 * tree-eh.c: Ditto.
12620 * tree-emutls.c: Ditto.
12621 * tree-if-conv.c: Ditto.
12622 * tree-inline.c: Ditto.
12623 * tree-into-ssa.c: Ditto.
12624 * tree-loop-distribution.c: Ditto.
12625 * tree-nested.c: Ditto.
12626 * tree-nrv.c: Ditto.
12627 * tree-object-size.c: Ditto.
12628 * tree-outof-ssa.c: Ditto.
12629 * tree-parloops.c: Ditto.
12630 * tree-phinodes.c: Ditto.
12631 * tree-predcom.c: Ditto.
12632 * tree-pretty-print.c: Ditto.
12633 * tree-profile.c: Ditto.
12634 * tree-scalar-evolution.c: Ditto.
12635 * tree-sra.c: Ditto.
12636 * tree-ssa-address.c: Ditto.
12637 * tree-ssa-alias.c: Ditto.
12638 * tree-ssa-ccp.c: Ditto.
12639 * tree-ssa-coalesce.c: Ditto.
12640 * tree-ssa-copy.c: Ditto.
12641 * tree-ssa-copyrename.c: Ditto.
12642 * tree-ssa-dce.c: Ditto.
12643 * tree-ssa-dom.c: Ditto.
12644 * tree-ssa-dse.c: Ditto.
12645 * tree-ssa-forwprop.c: Ditto.
12646 * tree-ssa-ifcombine.c: Ditto.
12647 * tree-ssa-live.c: Ditto.
12648 * tree-ssa-loop-ch.c: Ditto.
12649 * tree-ssa-loop-im.c: Ditto.
12650 * tree-ssa-loop-ivcanon.c: Ditto.
12651 * tree-ssa-loop-ivopts.c: Ditto.
12652 * tree-ssa-loop-manip.c: Ditto.
12653 * tree-ssa-loop-niter.c: Ditto.
12654 * tree-ssa-loop-prefetch.c: Ditto.
12655 * tree-ssa-loop-unswitch.c: Ditto.
12656 * tree-ssa-loop.c: Ditto.
12657 * tree-ssa-math-opts.c: Ditto.
12658 * tree-ssa-operands.c: Ditto.
12659 * tree-ssa-phiopt.c: Ditto.
12660 * tree-ssa-phiprop.c: Ditto.
12661 * tree-ssa-pre.c: Ditto.
12662 * tree-ssa-propagate.c: Ditto.
12663 * tree-ssa-reassoc.c: Ditto.
12664 * tree-ssa-sccvn.c: Ditto.
12665 * tree-ssa-sink.c: Ditto.
12666 * tree-ssa-strlen.c: Ditto.
12667 * tree-ssa-structalias.c: Ditto.
12668 * tree-ssa-tail-merge.c: Ditto.
12669 * tree-ssa-ter.c: Ditto.
12670 * tree-ssa-threadedge.c: Ditto.
12671 * tree-ssa-threadupdate.c: Ditto.
12672 * tree-ssa-uncprop.c: Ditto.
12673 * tree-ssa-uninit.c: Ditto.
12674 * tree-ssa.c: Ditto.
12675 * tree-ssanames.c: Ditto.
12676 * tree-stdarg.c: Ditto.
12677 * tree-streamer-in.c: Ditto.
12678 * tree-streamer-out.c: Ditto.
12679 * tree-streamer.c: Ditto.
12680 * tree-switch-conversion.c: Ditto.
12681 * tree-tailcall.c: Ditto.
12682 * tree-vect-data-refs.c: Ditto.
12683 * tree-vect-generic.c: Ditto.
12684 * tree-vect-loop-manip.c: Ditto.
12685 * tree-vect-loop.c: Ditto.
12686 * tree-vect-patterns.c: Ditto.
12687 * tree-vect-slp.c: Ditto.
12688 * tree-vect-stmts.c: Ditto.
12689 * tree-vectorizer.c: Ditto.
12690 * tree-vrp.c: Ditto.
12694 * valtrack.c: Ditto.
12695 * valtrack.h: Ditto.
12696 * value-prof.c: Ditto.
12697 * var-tracking.c: Ditto.
12699 * varpool.c: Ditto.
12700 * vtable-verify.c: Ditto.
12702 * config/aarch64/aarch64-builtins.c: Ditto.
12703 * config/aarch64/aarch64.c: Ditto.
12704 * config/alpha/alpha.c: Ditto.
12705 * config/arc/arc.c: Ditto.
12706 * config/arm/arm.c: Ditto.
12707 * config/avr/avr.c: Ditto.
12708 * config/bfin/bfin.c: Ditto.
12709 * config/c6x/c6x.c: Ditto.
12710 * config/cr16/cr16.c: Ditto.
12711 * config/cris/cris.c: Ditto.
12712 * config/darwin-c.c: Ditto.
12713 * config/darwin.c: Ditto.
12714 * config/epiphany/epiphany.c: Ditto.
12715 * config/epiphany/mode-switch-use.c: Ditto.
12716 * config/epiphany/resolve-sw-modes.c: Ditto.
12717 * config/fr30/fr30.c: Ditto.
12718 * config/frv/frv.c: Ditto.
12719 * config/h8300/h8300.c: Ditto.
12720 * config/i386/i386.c: Ditto.
12721 * config/i386/winnt.c: Ditto.
12722 * config/ia64/ia64.c: Ditto.
12723 * config/iq2000/iq2000.c: Ditto.
12724 * config/lm32/lm32.c: Ditto.
12725 * config/m32c/m32c.c: Ditto.
12726 * config/m32r/m32r.c: Ditto.
12727 * config/m68k/m68k.c: Ditto.
12728 * config/mcore/mcore.c: Ditto.
12729 * config/mep/mep.c: Ditto.
12730 * config/microblaze/microblaze.c: Ditto.
12731 * config/mips/mips.c: Ditto.
12732 * config/mmix/mmix.c: Ditto.
12733 * config/mn10300/mn10300.c: Ditto.
12734 * config/moxie/moxie.c: Ditto.
12735 * config/msp430/msp430.c: Ditto.
12736 * config/nds32/nds32-cost.c: Ditto.
12737 * config/nds32/nds32-fp-as-gp.c: Ditto.
12738 * config/nds32/nds32-intrinsic.c: Ditto.
12739 * config/nds32/nds32-isr.c: Ditto.
12740 * config/nds32/nds32-md-auxiliary.c: Ditto.
12741 * config/nds32/nds32-memory-manipulation.c: Ditto.
12742 * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
12743 * config/nds32/nds32-predicates.c: Ditto.
12744 * config/nds32/nds32.c: Ditto.
12745 * config/nios2/nios2.c: Ditto.
12746 * config/pa/pa.c: Ditto.
12747 * config/pdp11/pdp11.c: Ditto.
12748 * config/rl78/rl78.c: Ditto.
12749 * config/rs6000/rs6000.c: Ditto.
12750 * config/rx/rx.c: Ditto.
12751 * config/s390/s390.c: Ditto.
12752 * config/sh/sh-mem.cc: Ditto.
12753 * config/sh/sh.c: Ditto.
12754 * config/sh/sh_optimize_sett_clrt.cc: Ditto.
12755 * config/sh/sh_treg_combine.cc: Ditto.
12756 * config/sparc/sparc.c: Ditto.
12757 * config/spu/spu.c: Ditto.
12758 * config/stormy16/stormy16.c: Ditto.
12759 * config/tilegx/tilegx.c: Ditto.
12760 * config/tilepro/tilepro.c: Ditto.
12761 * config/v850/v850.c: Ditto.
12762 * config/vax/vax.c: Ditto.
12763 * config/xtensa/xtensa.c: Ditto.
12765 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12767 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
12768 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
12769 Remove using preprocessor directives.
12771 2014-10-27 Richard Biener <rguenther@suse.de>
12773 * match.pd (0 % X): Properly use the iterator iterating over
12774 all modulo operators.
12777 2014-10-27 Richard Biener <rguenther@suse.de>
12779 * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
12780 (lattice): New global.
12781 (fwprop_ssa_val): New function.
12782 (fold_all_stmts): Likewise.
12783 (pass_forwprop::execute): Finally fold all stmts.
12785 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
12788 * doc/invoke.texi (fmessage-length): Update text to match reality.
12790 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12792 * config/microblaze/microblaze.c: Include rtl-iter.h.
12793 (microblaze_tls_referenced_p_1): Delete.
12794 (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
12796 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12798 * config/mips/mips.c (mips_at_reg_p): Delete.
12799 (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
12801 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12803 * config/mips/mips.c (mips_record_lo_sum): Replace with...
12804 (mips_record_lo_sums): ...this new function.
12805 (mips_reorg_process_insns): Update accordingly.
12807 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12809 * config/mips/mips.c (mips_sim_insn): Update comment.
12810 (mips_sim_wait_regs_2): Delete.
12811 (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
12813 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12815 * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
12816 and return a bool. Iterate over all subrtxes here.
12817 (r10k_needs_protection_p): Update accordingly.
12819 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12821 * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
12822 rather than an rtx pointer. Change type of insn from "void *"
12823 to its real type. Return bool rather than int. Iterate over
12825 (r10k_needs_protection_p_store): Update accordingly.
12826 (r10k_needs_protection_p): Likewise.
12828 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12830 * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
12831 (mips16_rewrite_pool_refs): Take the insn and constant pool as
12832 parameters. Iterate over the instruction's pattern and return void.
12833 (mips16_lay_out_constants): Update accordingly.
12835 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12837 * config/mips/mips.c (mips_kernel_reg_p): Replace with...
12838 (mips_refers_to_kernel_reg_p): ...this new function.
12839 (mips_expand_prologue): Update accordingly.
12841 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12843 * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
12844 as a parameter instead of the containing MEM. Iterate over all
12845 subrtxes. Don't return a value.
12846 (mips_rewrite_small_data): Update call accordingly.
12848 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12850 * config/mips/mips.c: Include rtl-iter.h.
12851 (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
12852 Take the context as a parameter instead of the containing MEM.
12853 Iterate over all subrtxes.
12854 (mips_small_data_pattern_p): Update call accordingly.
12856 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12858 * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
12859 (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
12861 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12863 * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
12864 return a bool. Replace "void *" with specific type. Iterate
12866 (mep_store_data_bypass_1): Update calls accordingly.
12868 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12870 * config/mep/mep.c: Include rtl-iter.h.
12871 (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
12872 (xtensa_tls_referenced_p): Return a bool. Use FOR_EACH_SUBRTX.
12874 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12876 * config/xtensa/xtensa.c: Include rtl-iter.h.
12877 (xtensa_tls_referenced_p_1): Delete.
12878 (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
12880 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12882 * config/sh/sh.c (sh_contains_memref_p_1): Delete.
12883 (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
12885 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12887 * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
12888 rtx as argument and return the number of changes.
12889 * config/sh/sh.c: Include rtl-iter.h.
12890 (shmedia_cleanup_truncate): Take an rtx as argument and iterate
12891 over all subrtxes. Return the number of changes made.
12892 * config/sh/sh.md: Update caller accordingly.
12894 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12896 * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
12897 (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
12899 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12901 * config/m68k/m68k.c: Include rtl-iter.h.
12902 (m68k_final_prescan_insn_1): Delete.
12903 (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
12905 2014-10-25 Jakub Jelinek <jakub@redhat.com>
12907 PR tree-optimization/63641
12908 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
12909 to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
12911 2014-10-25 Alan Modra <amodra@gmail.com>
12913 PR rtl-optimization/63615
12914 * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
12915 decomposing PLUS or MINUS if operands are not placed adjacent
12916 in the "ops" array.
12918 2014-10-25 Joseph Myers <joseph@codesourcery.com>
12920 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
12921 not allow e500 double in registers not satisyfing
12924 2014-10-24 Aldy Hernandez <aldyh@redhat.com>
12926 * dwarf2out.c (declare_in_namespace): Only emit external
12927 declarations in the local scope once.
12929 2014-10-24 Jonathan Wakely <jwakely@redhat.com>
12931 * ginclude/stdbool.h: Do not define bool, true or false in C++11.
12933 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
12935 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
12936 update uses to use new macro arguments.
12937 (__LD3_LANE_FUNC): Likewise.
12938 (__LD4_LANE_FUNC): Likewise.
12940 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
12942 * config/aarch64/aarch64-builtins.c
12943 (aarch64_types_loadstruct_lane_qualifiers): Define.
12944 * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
12945 ld4_lane): New builtins.
12946 * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
12948 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
12949 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
12950 (aarch64_ld2_lane<mode>): New expand.
12951 (aarch64_ld3_lane<mode>): Likewise.
12952 (aarch64_ld4_lane<mode>): Likewise.
12953 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
12954 UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
12956 2014-10-24 Georg-Johann Lay <avr@gjlay.de>
12958 * avr-protos.h (avr_out_sign_extend): New.
12959 * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
12960 (avr_out_sign_extend): New function.
12961 * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
12962 (extendhisi2, extendpsisi2): Use it.
12963 (adjust_len) [sext]: New.
12965 2014-10-24 Martin Liska <mliska@suse.cz>
12967 * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
12970 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12972 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
12973 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
12974 * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
12975 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
12977 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12979 * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
12981 * config/aarch64/aarch64.c (is_mem_p): Delete.
12982 (is_memory_op): Rename to...
12983 (has_memory_op): ... This. Use FOR_EACH_SUBRTX.
12984 (dep_between_memop_and_curr): Assert that the input is a SET.
12985 (aarch64_madd_needs_nop): Add comment. Do not call
12986 dep_between_memop_and_curr on NULL body.
12987 (aarch64_final_prescan_insn): Add comment.
12988 Include rtl-iter.h.
12990 2014-10-24 Richard Biener <rguenther@suse.de>
12992 * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
12993 to genmatch BUILD_LIBS instead.
12995 2014-10-24 Richard Biener <rguenther@suse.de>
12997 * genmatch.c (expr::gen_transform): Use fold_buildN_loc
12998 and build_call_expr_loc.
12999 (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
13000 non_lvalue_loc to build it for GENERIC.
13001 (decision_tree::gen_generic): Add location argument to
13002 generic_simplify prototype.
13003 (capture_info): New class.
13004 (capture_info::capture_info): New constructor.
13005 (capture_info::walk_match): New method.
13006 (capture_info::walk_result): New method.
13007 (capture_info::walk_c_expr): New method.
13008 (dt_simplify::gen): Handle preserving side-effects for
13009 GENERIC code generation.
13010 (decision_tree::gen_generic): Do not reject operands
13011 with TREE_SIDE_EFFECTS.
13012 * generic-match.h: New file.
13013 * generic-match-head.c: Include generic-match.h, not gimple-match.h.
13014 * match.pd: Add some constant folding patterns from fold-const.c.
13015 * fold-const.c: Include generic-match.h.
13016 (fold_unary_loc): Dispatch to generic_simplify.
13017 (fold_ternary_loc): Likewise.
13018 (fold_binary_loc): Likewise. Remove patterns now implemented
13019 by generic_simplify.
13020 * gimple-fold.c (replace_stmt_with_simplification): New function.
13021 (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
13022 (no_follow_ssa_edges): New function.
13023 (fold_stmt): New overload with valueization hook. Use
13024 no_follow_ssa_edges for the overload without hook.
13025 (fold_stmt_inplace): Likewise.
13026 * gimple-fold.h (no_follow_ssa_edges): Declare.
13028 2014-10-24 Felix Yang <felix.yang@huawei.com>
13029 Jiji Jiang <jiangjiji@huawei.com>
13032 * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
13033 (__LD3R_FUNC): Ditto.
13034 (__LD4R_FUNC): Ditto.
13035 (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
13036 vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
13037 vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
13038 vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
13039 vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
13040 vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
13041 (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
13042 vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
13043 vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
13044 vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
13045 vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
13046 vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
13047 (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
13048 vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
13049 vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
13050 vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
13051 vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
13052 vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
13053 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
13054 UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
13055 * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
13057 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
13058 (aarch64_simd_ld3r<mode>): Likewise.
13059 (aarch64_simd_ld4r<mode>): Likewise.
13060 (aarch64_ld2r<mode>): New expand.
13061 (aarch64_ld3r<mode>): Likewise.
13062 (aarch64_ld4r<mode>): Likewise.
13064 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13066 * rtlanal.c (get_base_term): Handle SCRATCH.
13068 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13070 * haifa-sched.c (sched_init): Disable max_issue when scheduling for
13073 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13075 * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
13076 (cached_issue_rate): Remove. Use dfa_lookahead and issue_rate instead.
13077 (max_issue, choose_ready, sched_init): Update.
13079 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13081 * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
13082 * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
13083 (rfs_result): Set INSN_LAST_RFS_WIN. Update signature.
13084 (rank_for_schedule): Update calls to rfs_result to pass new parameters.
13085 (print_rank_for_schedule_stats): Print out elements of ready list that
13086 ended up on their respective places due to each of the sorting
13088 (ready_sort): Update.
13089 (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
13090 (schedule_block): Update.
13092 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13094 * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
13095 arrays. Use sched_class_regs_num instead of ira_class_hard_regs_num.
13096 (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
13097 (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
13098 (model_start_schedule): Update.
13099 (sched_pressure_start_bb): New static function. Calculate
13100 sched_class_regs_num.
13101 (schedule_block): Use it.
13102 (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
13104 2014-10-24 Richard Biener <rguenther@suse.de>
13106 * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
13107 host library and make sure to pull in the required libintl
13108 and libiconv dependencies.
13110 2014-10-24 Richard Biener <rguenther@suse.de>
13112 * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
13114 2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
13117 * collect2.c (main): Filter out -fno-lto.
13119 2014-10-24 Martin Liska <mliska@suse.cz>
13121 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
13122 division by zero in dumps.
13123 (sem_item_optimizer::merge_classes): Ditto.
13125 2014-10-23 John David Anglin <danglin@gcc.gnu.org>
13127 * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
13129 2014-10-23 Ian Lance Taylor <iant@google.com>
13131 * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
13133 2014-10-23 Ian Lance Taylor <iant@google.com>
13135 * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
13137 2014-10-23 Jakub Jelinek <jakub@redhat.com>
13140 * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
13141 (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
13142 instead of only handling autoinc in dest if it is a MEM.
13143 (vt_stack_adjustments): Fix up formatting.
13145 2014-10-23 DJ Delorie <dj@redhat.com>
13147 * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
13148 independend of -mlarge.
13149 * config/msp430/constraints.md (Ys): Update comment.
13151 2014-10-23 Evgeny Stupachenko <evstupac@gmail.com>
13155 * cse.c (delete_trivially_dead_insns): Consider PIC register is used
13156 while it is pseudo.
13157 * dse.c (deletable_insn_p): Likewise.
13159 2014-10-23 Georg-Johann Lay <avr@gjlay.de>
13161 * config/avr/avr.c: Fix GNU coding rules and typos.
13162 * config/avr/avr.h: Dito.
13163 * config/avr/avr-c.c: Dito.
13164 * config/avr/avr.md: Dito.
13166 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
13168 * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
13170 (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
13172 (define_expand "abs<mode>2"): Ditto.
13174 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
13176 * tree-core.h (tree_var_decl): Extend `function_code' field
13177 by one bit, move `regdecl_flag' field to ...
13178 (tree_decl_with_vis): Here.
13179 * tree.h (DECL_STATIC_CHAIN): Update struct name.
13181 2014-10-23 Richard Biener <rguenther@suse.de>
13183 * Makefile.in (BUILD_CPPLIB): Add.
13184 (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
13187 2014-10-23 Richard Biener <rguenther@suse.de>
13189 * fold-const.c (fold_binary_loc): Preserve side-effects of
13190 X - X when simplifying to 0.
13191 * stor-layout.c (finish_bitfield_representative): Strip
13192 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
13194 2014-10-22 Richard Biener <rguenther@suse.de>
13195 Tobias Burnus <burnus@net-b.de>
13198 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
13200 2014-10-22 Dehao Chen <dehao@google.com>
13202 * auto-profile.c: Change order of header files.
13204 2014-10-22 Guozhi Wei <carrot@google.com>
13206 PR tree-optimization/63530
13207 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
13208 pointer alignment according to DR_MISALIGNMENT.
13210 2014-10-22 David Malcolm <dmalcolm@redhat.com>
13212 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
13214 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
13216 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
13217 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
13218 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
13219 * dominance.h: New. Add prototypes for dominance.c.
13220 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
13221 * cfghooks.h: (struct profile_record) Relocate here.
13222 Relocate 2 prototypes from basic-block.h.
13223 * basic-block.h: Move prototypes and struct to new header files.
13224 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
13225 * rtl.h: Move a few prototypes to new header files.
13226 * cfgcleanup.c (merge_memattrs): Make static.
13227 * genopinit.c (main): Add predict.h to list of includes.
13228 * predict.h: Update prototype list to match predict.c.
13229 * predict.c (maybe_hot_count_p): Export.
13230 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
13231 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
13232 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
13233 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
13234 * profile.h: Adjust prototypes.
13235 * ifcvt.h: New. Relocate struct ce_if_block here.
13236 * ifcvt.c: Include ifcvt.h.
13237 * config/frv/frv.c: Include ifcvt.h.
13238 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
13240 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13242 * lra.c (lra): Remove call to recog_init.
13243 * config/i386/i386.md (preferred_for_speed): New attribute
13244 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
13245 "enabled". Remove check for sched1.
13247 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13249 * recog.h (recog_data_d): Remove enabled_alternatives.
13250 * recog.c (extract_insn): Don't set it.
13251 * reload.c (find_reloads): Call get_enabled_alternatives.
13253 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13255 * recog.h (constrain_operands): Add an alternative_mask parameter.
13256 (constrain_operands_cached): Likewise.
13257 (get_preferred_alternatives): Declare new form.
13258 * recog.c (get_preferred_alternatives): New bb-taking instance.
13259 (constrain_operands): Take the set of available alternatives as
13261 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
13262 (extract_constrain_insn_cached): Update calls to constrain_operands.
13263 * caller-save.c (reg_save_code): Likewise.
13264 * ira.c (setup_prohibited_mode_move_regs): Likewise.
13265 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
13266 * ree.c (combine_reaching_defs): Likewise.
13267 * reload.c (can_reload_into): Likewise.
13268 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
13269 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
13270 (emit_insn_if_valid_for_reload): Likewise.
13271 * reorg.c (fill_slots_from_thread): Likewise.
13272 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
13273 * config/pa/pa.c (pa_can_combine_p): Likewise.
13274 * config/rl78/rl78.c (insn_ok_now): Likewise.
13275 * config/sh/sh.md (define_peephole2): Likewise.
13276 * final.c (final_scan_insn): Update call to constrain_operands_cached.
13278 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13280 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
13282 * genattr.c (main): Handle "preferred_for_size" and
13283 "preferred_for_speed" in the same way as "enabled".
13284 * recog.h (bool_attr): New enum.
13285 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
13286 (get_preferred_alternatives, check_bool_attrs): Declare.
13287 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
13288 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
13290 (get_enabled_alternatives): Use get_bool_attr_mask.
13291 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
13292 instead of recog_data.enabled_alternatives.
13293 * ira.c (ira_setup_alts): Likewise.
13294 * postreload.c (reload_cse_simplify_operands): Likewise.
13295 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13296 * ira-lives.c (preferred_alternatives): New variable.
13297 (process_bb_node_lives): Set it.
13298 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
13299 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
13300 of recog_data.enabled_alternatives.
13301 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
13302 to preferred_alternatives.
13303 * lra-constraints.c (process_alt_operands): Update accordingly.
13304 * lra.c (lra_set_insn_recog_data): Likewise.
13305 (lra_update_insn_recog_data): Assert check_bool_attrs.
13307 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13309 * recog.h (extract_constrain_insn): Declare.
13310 * recog.c (extract_constrain_insn): New function.
13311 * lra.c (check_rtl): Use it.
13312 * postreload.c (reload_cse_simplify_operands): Likewise.
13313 * reg-stack.c (check_asm_stack_operands): Likewise.
13314 (subst_asm_stack_regs): Likewise.
13315 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13316 * regrename.c (build_def_use): Likewise.
13317 * sel-sched.c (get_reg_class): Likewise.
13318 * config/arm/arm.c (note_invalid_constants): Likewise.
13319 * config/s390/predicates.md (execute_operation): Likewise.
13321 2014-10-22 Jakub Jelinek <jakub@redhat.com>
13322 Yury Gribov <y.gribov@samsung.com>
13324 * common.opt (flag_sanitize_recover): New variable.
13325 (fsanitize-recover): Remove Var/Init, deprecate.
13326 (fsanitize-recover=): New option.
13327 * doc/invoke.texi (fsanitize-recover): Update docs.
13328 * opts.c (finish_options): Use opts->x_flag_sanitize
13329 instead of flag_sanitize. Prohibit -fsanitize-recover
13330 for anything besides UBSan. Formatting.
13331 (common_handle_option): Handle OPT_fsanitize_recover_
13332 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
13333 instead of flag_sanitize.
13334 * asan.c (pass_sanopt::execute): Fix up formatting.
13335 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
13336 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
13337 instrument_bool_enum_load, ubsan_instrument_float_cast,
13338 instrument_nonnull_arg, instrument_nonnull_return): Check
13339 bits in flag_sanitize_recover bitmask instead of
13340 flag_sanitize_recover as bool flag.
13342 2014-10-22 Jiong Wang <jiong.wang@arm.com>
13344 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
13346 2014-10-22 Renlin Li <renlin.li@arm.com>
13348 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
13349 __ARM_FEATURE_IDIV__.
13351 2014-10-22 Richard Biener <rguenther@suse.de>
13353 * Makefile.in (s-match): Adjust dependencies to only catch
13356 2014-10-22 Richard Biener <rguenther@suse.de>
13357 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
13359 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
13360 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
13361 (gimple-match.c): Generate by triggering s-match.
13362 (generic-match.c): Likewise.
13363 (s-match): Rule to build gimple-match.c and generic-match.c
13364 by running the genmatch generator program.
13365 (build/hash-table.o): Dependencies to build hash-table.c for the host.
13366 (build/genmatch.o): Dependencies to build genmatch.
13367 (genprog): Add match.
13368 (build/genmatch): Likewise.
13369 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
13370 * generic-match-head.c: New file.
13371 * gimple-match-head.c: Likewise.
13372 * gimple-match.h: Likewise.
13373 * genmatch.c: Likewise.
13374 * match.pd: Likewise.
13375 * builtins.h (fold_builtin_n): Export.
13376 * builtins.c (fold_builtin_n): Likewise.
13377 * gimple-fold.h (gimple_build): Declare various overloads.
13378 (gimple_simplify): Likewise.
13379 (gimple_convert): Re-implement in terms of gimple_build.
13380 * gimple-fold.c (gimple_convert): Remove.
13381 (gimple_build): New functions.
13382 * doc/match-and-simplify.texi: New file.
13383 * doc/gccint.texi: Add menu item Match and Simplify and include
13384 match-and-simplify.texi.
13386 2014-10-22 Jakub Jelinek <jakub@redhat.com>
13389 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
13390 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
13391 even for just TARGET_AVX2, not only for
13392 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
13393 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
13394 otherwise build it using concatenation of 256-bit
13396 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
13397 avx512 broadcast patterns.
13398 (vec_dup<mode>): Likewise. For avx2 use
13399 v<sseintprefix>broadcast<bcstscalarsuff> instead of
13400 vbroadcast<ssescalarmodesuffix>.
13401 (AVX2_VEC_DUP_MODE): New mode iterator.
13402 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
13403 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
13406 * config/i386/i386.c (ix86_pic_register_p): Also return
13407 true if x is a hard register with ORIGINAL_REGNO equal to
13408 pic_offset_table_rtx pseudo REGNO.
13409 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
13410 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
13412 2014-10-22 Alan Modra <amodra@gmail.com>
13414 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
13415 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
13416 (gcc_obstack_init): Use obstack_specify_allocation in place of
13418 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
13419 (regexp_representation): Likewise.
13420 * godump.c (go_output_type): Likewise.
13422 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
13424 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
13425 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
13426 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
13428 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13430 * doc/invoke.texi (pedantic-errors): Explain better.
13432 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
13433 Vidya Praveen <vidya.praveen@atmel.com>
13434 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
13435 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
13436 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
13438 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
13439 __MEMX for avrtiny.
13440 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
13441 (avr_nonconst_pointer_addrspace): Likewise.
13442 * config/avr/avr.h (AVR_HAVE_LPM): Define.
13444 Added AVRTINY architecture to avr target.
13445 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
13446 (base_arch_s): member added for AVRTINY architecture.
13447 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
13448 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
13449 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
13450 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
13451 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
13452 in callee saved register list.
13453 (avr_option_override): CCP address updated for AVRTINY.
13454 (avr_init_expanders): tmp and zero rtx initialized as per arch.
13455 Reset avr_have_dimode if AVRTINY.
13456 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
13457 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
13458 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
13459 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
13460 (expand_epilogue): Likewise.
13461 (avr_print_operand): Print CCP address in case of AVRTINY also.
13463 (function_arg_regno_p): Check different register list for arguments
13465 (init_cumulative_args): Check for AVRTINY to update number of argument
13467 (tiny_valid_direct_memory_access_range): New function. Return false if
13468 direct memory access range is not in accepted range for AVRTINY.
13469 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
13470 indirect load (with displacement) for AVRTINY.
13471 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
13472 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
13473 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
13474 indirect load (no displacement) for AVRTINY.
13475 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
13476 indirect load (with displacement) for AVRTINY.
13477 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
13478 indirect load for pre-decrement address.
13479 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
13480 functions. Update instruction length for AVRTINY.
13481 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
13483 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
13484 (out_movsi_r_mr): Likewise, for SImode.
13485 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
13486 indirect store (no displacement) for AVRTINY.
13487 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
13488 indirect store (with displacement) for AVRTINY.
13489 (out_movsi_mr_r): Emit out insn for IO address store. Update store
13490 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
13492 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
13493 indirect load (no displacement) for PSImode in AVRTINY.
13494 (avr_out_load_psi_reg_disp_tiny): New function to handle register
13495 indirect load (with displacement) for PSImode in AVRTINY.
13496 (avr_out_load_psi): Call PSImode register indirect load functions for
13497 AVRTINY. Update instruction length for AVRTINY.
13498 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
13499 indirect store (no displacement) for PSImode in AVRTINY.
13500 (avr_out_store_psi_reg_disp_tiny): New function to handle register
13501 indirect store (with displacement) for PSImode in AVRTINY.
13502 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
13503 register indirect store functions for AVRTINY.
13504 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
13505 register indirect store (with displacement) for AVRTINY.
13506 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
13507 register indirect store function for QImode in AVRTINY.
13508 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
13509 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
13510 indirect store (no displacement) for HImode in AVRTINY.
13511 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
13512 indirect store (with displacement) for HImode in AVRTINY.
13513 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
13514 indirect store for post-increment address in HImode.
13515 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
13516 register indirect store function for HImode in AVRTINY.
13517 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
13518 in case of AVRTINY.
13519 (order_regs_for_local_alloc): Updated register allocation order for
13521 (avr_conditional_register_usage): New function. It is a target hook
13522 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
13523 used registers list and register allocation order for AVRTINY.
13524 (avr_return_in_memory): Update return value size for AVRTINY.
13525 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
13526 for AVRTINY arch and tiny program memory base address.
13527 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
13528 (avr_texinfo): Added description for AVRTINY arch.
13529 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
13530 STATIC_CHAIN_REGNUM for AVRTINY.
13531 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
13532 * config/avr/avr.md: Added constants for tmp/ zero registers in
13533 AVRTINY. Attributes for AVRTINY added.
13534 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
13535 memory access range.
13536 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
13537 in AVRTINY memory access range.
13538 (*mov<mode>): Likewise for HImode and SImode.
13539 (*movsf): Likewise for SFmode.
13540 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
13542 * config/avr/avr-protos.h: Added function prototype for
13543 tiny_valid_direct_memory_access_range.
13544 * config/avr/avr-tables.opt: Regenerate.
13545 * gcc/config/avr/t-multilib: Regenerate.
13546 * doc/avr-mmcu.texi: Regenerate.
13548 2014-10-21 Andrew Pinski <apinski@cavium.com>
13550 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
13551 available option also.
13552 * config/aarch64/aarch64-cost-tables.h: New file.
13553 * config/aarch64/aarch64-cores.def (thunderx): New core.
13554 * config/aarch64/aarch64-tune.md: Regenerate.
13555 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
13556 of config/arm/aarch-cost-tables.h.
13557 (thunderx_regmove_cost): New variable.
13558 (thunderx_tunings): New variable.
13560 2014-10-21 Dehao Chen <dehao@google.com>
13562 * auto-profile.c: New file.
13563 * auto-profile.h: New file.
13564 * basic-block.h (maybe_hot_count_p): New export func.
13565 (add_working_set): New export func.
13566 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
13567 (GCOV_TAG_AFDO_FUNCTION): Likewise.
13568 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
13569 * opts.c (enable_fdo_optimizations): New func.
13570 (common_handle_option): Handle -fauto-profile flag.
13571 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
13572 (class pass_early_inline): Export early_inliner.
13573 (early_inliner): Likewise.
13574 (pass_early_inline::execute): Likewise.
13575 * ipa-inline.h (early_inliner): Likewise.
13576 * predict.c (maybe_hot_count_p): New export func.
13577 (counts_to_freqs): AutoFDO logic.
13578 (rebuild_frequencies): Likewise.
13579 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
13580 * profile.c (add_working_set): New func.
13581 * Makefile.in (auto-profile.o): New object file.
13582 * passes.def (pass_ipa_auto_profile): New pass.
13583 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
13584 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
13585 * toplev.c (compile_file): AutoFDO logic.
13586 * doc/invoke.texi (-fauto-profile): New doc.
13587 * coverage.c (coverage_init): AutoFDO logic.
13588 * common.opt (-fauto-profile): New flag.
13589 * timevar.def (TV_IPA_AUTOFDO): New tag.
13590 * value-prof.c (gimple_alloc_histogram_value): New export func.
13591 (check_ic_target): Likewise.
13592 * value-prof.h (gimple_alloc_histogram_value): Likewise.
13593 (check_ic_target): Likewise.
13595 2014-10-21 David Malcolm <dmalcolm@redhat.com>
13597 * cgraph.c (cgraph_c_finalize): New function.
13598 * cgraph.h (cgraph_c_finalize): New prototype.
13599 (cgraphunit_c_finalize): New prototype.
13600 * cgraphunit.c (first_analyzed): Move from analyze_functions
13602 (first_analyzed_var): Likewise.
13603 (analyze_functions): Move static variables into file-scope.
13604 (cgraphunit_c_finalize): New function.
13605 * diagnostic.c (diagnostic_finish): Free the memory for
13606 context->classify_diagnostic and context->printer, running the
13607 destructor for the latter.
13608 (bt_stop): Use toplev::main.
13609 * dwarf2out.c (dwarf2out_finalize): New function.
13610 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
13611 * gcse.c (gcse_c_finalize): New function.
13612 * gcse.h (gcse_c_finalize): New prototype.
13613 * ggc-page.c (init_ggc): Make idempotent.
13614 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
13615 * ipa-cp.c (ipa_cp_c_finalize): New function.
13616 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
13617 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
13618 a field of class pass_ipa_pure_const.
13619 (node_duplication_hook_holder): Likewise.
13620 (node_removal_hook_holder): Likewise.
13621 (register_hooks): Convert to method...
13622 (pass_ipa_pure_const::register_hooks): ...here, converting
13623 static variable init_p into...
13624 (pass_ipa_pure_const::init_p): ...new field.
13625 (pure_const_generate_summary): Update invocation of
13626 register_hooks to invoke as a method of current_pass.
13627 (pure_const_read_summary): Likewise.
13628 (propagate): Convert to...
13629 (pass_ipa_pure_const::execute): ...method.
13630 * ipa-reference.c (ipa_init): Move static bool init_p from here
13632 (ipa_init_p): New file-scope variable, so that it can be reset
13633 when repeatedly invoking the compiler within one process by...
13634 (ipa_reference_c_finalize): New function.
13635 * ipa-reference.h (ipa_reference_c_finalize): New.
13636 * main.c (main): Replace invocation of toplev_main with
13637 construction of a toplev instance, and call its "main" method.
13638 * params.c (global_init_params): Add an assert that
13639 params_finished is false.
13640 (params_c_finalize): New.
13641 * params.h (params_c_finalize): New.
13642 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
13643 invoking generate_summary, for the benefit of pass_ipa_pure_const.
13644 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
13645 before calling write_summary hook.
13646 (ipa_write_optimization_summaries_1): Likewise when calling
13647 write_optimization_summary hook.
13648 (ipa_read_summaries_1): Likewise for read_summary hook.
13649 (ipa_read_optimization_summaries_1): Likewise for
13650 read_optimization_summary hook.
13651 (execute_ipa_stmt_fixups): Likewise.
13652 * stringpool.c (init_stringpool): Clean up if we're called more
13654 * timevar.c (timevar_init): Ignore repeated calls.
13655 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
13657 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
13658 (initialize_rtl): Move static local "initialized_once"
13659 into file scope, and rename to...
13660 (rtl_initialized): New variable.
13661 (do_compile): Move timevar initialization from here to
13662 toplev::start_timevars.
13663 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
13664 toplev::finalize): New functions.
13665 (toplev_main): Rename to...
13666 (toplev::main): ...this.
13667 * toplev.h (class toplev): New class.
13669 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
13671 * loop-doloop.c: Include loop-unroll.h.
13673 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
13675 * cfg.h: New. Header file for cfg.c.
13676 * cfganal.h: New. Header file for cfganal.c.
13677 * lcm.h: New. Header file for lcm.c.
13678 * loop-unroll.h: New. Header file for loop-unroll.h.
13679 * cfgloop.h: (unroll_loops): Remove prototype.
13680 * basic-block.h: Move prototypes and structs to new header files.
13681 Include cfg.h, cfganal.h, and lcm.h.
13682 * loop-init.c: Include loop-unroll.h.
13683 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
13684 * modulo-sched.c: Include loop-unroll.h.
13686 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
13688 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
13689 MARKER_BYTE_UNKNOWN markers when handling casts.
13691 2014-10-21 Richard Biener <rguenther@suse.de>
13693 * tree-ssa-phiopt.c (value_replacement): Properly verify we
13694 are the non-singleton PHI.
13696 2014-10-21 Jakub Jelinek <jakub@redhat.com>
13698 PR tree-optimization/63563
13699 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
13700 if either dra or drb stmts are not normal loads/stores.
13702 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
13704 * config/i386/i386.c (expand_vec_perm_1): Fix
13705 expand_vec_perm_palignr case.
13706 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
13709 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
13711 * cfgloopanal.c (seq_cost): Delete.
13712 * rtl.h (seq_cost): New prototype.
13713 * rtlanal.c (seq_cost): New function.
13714 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
13716 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
13718 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
13719 * basic-block.h: Remove prototypes for cfgrtl.c.
13720 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
13721 prototypes to cfgrtl.h.
13722 * profile.h (profile_info): Add extern export declaration.
13723 * rtl.h: Remove prototypes for cfgrtl.h.
13724 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
13725 * ipa-inline.c: Include profile.h.
13726 * loop-unroll.c: Ditto.
13727 * modulo-sched.c: Ditto.
13728 * postreload-gcse.c: Ditto.
13729 * predict.c: Ditto.
13730 * sched-ebb.c: Ditto.
13731 * sched-rgn.c: Ditto.
13733 * tree-ssa-loop-ivcanon.c: Ditto.
13735 2014-10-20 Richard Biener <rguenther@suse.de>
13737 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
13738 operands to get a def operand kind match. Signal mismatches
13739 to the parent so we can try swapping its operands.
13740 (vect_build_slp_tree): Try swapping operands if they have
13741 a mismatched operand kind.
13743 2014-10-20 Alan Modra <amodra@gmail.com>
13746 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
13747 Increase "ops" array size. Correct array size tests. Init
13748 n_constants in loop. Break out of innermost loop when finding
13749 a trivial CONST expression.
13751 2014-10-20 Martin Liska <mliska@suse.cz>
13754 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
13755 Gimple tempate string is compared.
13757 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
13759 * varasm.c (const_alias_set): Remove.
13760 (init_varasm_once): Remove initialization of const_alias_set.
13761 (build_constant_desc): Do not set alias set to const_alias_set.
13763 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
13765 * configure: Regenerate.
13766 * configure.ac: Move the test for section attribute specifier "e" in GAS
13767 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
13768 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
13769 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
13770 ifdef HAVE_GAS_SECTION_EXCLUDE.
13772 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
13774 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
13775 match_operand expression.
13777 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
13778 David Edelsohn <dje.gcc@gmail.com>
13780 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
13782 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13784 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
13786 * doc/invoke.texi (Options to Request or Suppress Warnings):
13787 Explain options precedence.
13788 (Wtrampolines): Do not indent paragraph.
13790 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
13792 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
13793 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
13794 (pa_jump_in_call_delay): Likewise.
13795 * config/pa/pa.c (pa_option_override): Remove jump in call delay
13797 (pa_output_millicode_call): Remove support for jump in call delay.
13798 (pa_output_call): Likewise.
13799 (pa_jump_in_call_delay): Delete.
13800 (pa_following_call): Likewise.
13801 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
13802 (uncond_branch): Remove following call check from attribute length.
13804 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
13807 * config/sh/sh-modes.def (PSI): Remove.
13808 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
13809 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
13810 (sh_reorg): Remove commented out FPSCR code.
13811 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
13812 insn instead of move insn.
13813 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
13814 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
13816 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
13817 (sh1_builtin_p): Uncomment.
13818 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
13819 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
13820 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
13821 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
13822 (general_movsrc_operand, general_movdst_operand): Disallow
13824 * config/sh/sh.md (FPSCR_FR): New constant.
13825 (push_fpscr): Emit sts_fpscr insn.
13826 (pop_fpscr): Emit lds_fpscr_insn.
13827 (movsi_ie): Disallow FPSCR operands.
13828 (fpu_switch, unnamed related split, extend_psi_si,
13829 truncate_si_psi): Remove insns.
13830 (lds_fpscr, sts_fpscr): New insns.
13831 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
13833 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
13835 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
13836 (clone_inlined_nodes): Do not overwrite the clone if above predicate
13839 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
13841 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
13842 (expand_vec_perm_d): Ditto.
13843 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
13844 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
13846 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
13847 (ix86_expand_sse_unpack): Handle V64QImode.
13848 (expand_vec_perm_blend): Update conditions for TARGET, handle
13849 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
13850 (expand_vec_perm_pshufb): Handle V64QImode.
13851 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
13852 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
13853 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
13854 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
13855 (ix86_expand_vecop_qihi): Handle V64QImode.
13856 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
13857 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
13858 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
13859 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
13860 (mul<mode>3): Use VI1_AVX512.
13861 (<sse2_avx2>_packsswb): Ditto.
13862 (<sse2_avx2>_packuswb): Ditto.
13863 (<ssse3_avx2>_pshufb<mode>3): Ditto.
13864 (<shift_insn><mode>3): Ditto.
13866 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
13868 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
13869 conditions to fix bootstrap.
13871 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
13873 gcc-plugin.h: Add tm.h and flattened includes from function.h.
13875 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
13876 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13877 Anna Tikhonova <anna.tikhonova@intel.com>
13878 Ilya Tocar <ilya.tocar@intel.com>
13879 Andrey Turetskiy <andrey.turetskiy@intel.com>
13880 Ilya Verbin <ilya.verbin@intel.com>
13881 Kirill Yukhin <kirill.yukhin@intel.com>
13882 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13884 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
13885 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
13886 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
13887 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
13888 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
13889 (define_expand "vec_init<mode>"): Use VF48_I1248.
13891 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
13892 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13893 Anna Tikhonova <anna.tikhonova@intel.com>
13894 Ilya Tocar <ilya.tocar@intel.com>
13895 Andrey Turetskiy <andrey.turetskiy@intel.com>
13896 Ilya Verbin <ilya.verbin@intel.com>
13897 Kirill Yukhin <kirill.yukhin@intel.com>
13898 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13900 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
13901 expand_sse2_mulvxdi3.
13903 2014-10-17 Richard Biener <rguenther@suse.de>
13905 * fold-const.c (fold_comparison): Remove redundant constant
13906 folding and operand swapping.
13907 (fold_binary_loc): Do comparison operand swapping here.
13908 (fold_ternary_loc): Canonicalize operand order for
13909 commutative ternary operations.
13910 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
13913 2014-10-17 Jakub Jelinek <jakub@redhat.com>
13915 PR tree-optimization/63464
13916 * gimple.h (gimple_seq_discard): New prototype.
13917 * gimple.c: Include stringpool.h and tree-ssanames.h.
13918 (gimple_seq_discard): New function.
13919 * optabs.h (lshift_cheap_p): New prototype.
13920 * optabs.c (lshift_cheap_p): New function, moved from...
13921 * tree-switch-conversion.c (lshift_cheap_p): ... here.
13922 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
13923 (reassoc_branch_fixups): New variable.
13924 (update_range_test): Add otherrangep and seq arguments.
13925 Unshare exp. If otherrange is NULL, use for other ranges
13926 array of pointers pointed by otherrangep instead.
13927 Emit seq before gimplified statements for tem.
13928 (optimize_range_tests_diff): Adjust update_range_test
13930 (optimize_range_tests_xor): Likewise. Fix up comment.
13931 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
13933 (optimize_range_tests): Adjust update_range_test caller.
13934 Call optimize_range_tests_to_bit_test.
13935 (branch_fixup): New function.
13936 (execute_reassoc): Call branch_fixup.
13938 PR tree-optimization/63302
13939 * tree-ssa-reassoc.c (optimize_range_tests_xor,
13940 optimize_range_tests_diff): Use !integer_pow2p () instead of
13943 2014-10-17 Martin Liska <mliska@suse.cz>
13945 * ipa-icf.c (sem_function::merge): Local flags are set to false
13946 to enforce equal calling convention to be used.
13947 * opts.c (common_handle_option): Indentation fix.
13949 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
13951 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
13953 2014-10-17 Tom de Vries <tom@codesourcery.com>
13955 PR rtl-optimization/61605
13956 * regcprop.c (copyprop_hardreg_forward_1): Use
13957 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
13959 2014-10-17 Tom de Vries <tom@codesourcery.com>
13961 PR rtl-optimization/61605
13962 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.
13963 Don't notice stores for noops. Don't regard noops as copies.
13965 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
13967 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
13968 register in a special way.
13969 (__cpuid_count): Ditto.
13970 * config/i386/driver-i386.h: Protect with
13971 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
13972 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
13973 is required to compile the function.
13975 2014-10-16 DJ Delorie <dj@redhat.com>
13977 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
13980 * config/rs6000/rs6000-c.c (rid_int128): New.
13981 (rs6000_macro_to_expand): Use instead of RID_INT128.
13983 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
13985 * function.h: Flatten file. Remove includes, adjust prototypes to
13986 reflect only what is in function.h.
13987 (enum direction, struct args_size, struct locate_and_pad_arg_data,
13988 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
13990 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
13991 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
13992 prototypes to predict.h.
13993 (init_varasm_status): Move prototype to varasm.h.
13994 * expr.h: Adjust include files.
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): Move
13998 (locate_and_pad_parm): Move prototype to function.h.
13999 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
14000 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
14001 assign_temp, reposition_prologue_and_epilogue_notes,
14002 prologue_epilogue_contains, sibcall_epilogue_contains,
14003 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
14004 set_return_jump_label): Move prototypes to function.h.
14005 * predict.h (optimize_function_for_size_p,
14006 optimize_function_for_speed_p): Relocate prototypes from function.h.
14007 * shrink-wrap.h (emit_return_into_block, active_insn_between,
14008 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
14010 * varasm.h (init_varasm_status): Relocate prototype from function.h.
14011 * genattrtab.c (write_header): Add predict.h to include list.
14012 * genconditions.c (write_header): Add predict.h to include list.
14013 * genemit.c (main): Adjust header file includes.
14014 * gengtype.c (ifiles): Add flattened function.h header files.
14015 * genoutput.c (output_prologue): Add predict.h to include list.
14016 * genpreds.c (write_insn_preds_c): Adjust header file includes.
14017 * genrecog.c (write_header): Add flattened function.h header files.
14018 * alias.c: Adjust include files.
14019 * auto-inc-dec.c: Likewise.
14020 * basic-block.h: Likewise.
14021 * bb-reorder.c: Likewise.
14022 * bt-load.c: Likewise.
14023 * builtins.c: Likewise.
14024 * caller-save.c: Likewise.
14025 * calls.c: Likewise.
14026 * cfgbuild.c: Likewise.
14027 * cfgcleanup.c: Likewise.
14028 * cfgexpand.c: Likewise.
14029 * cfgloop.c: Likewise.
14030 * cfgloop.h: Likewise.
14031 * cfgrtl.c: Likewise.
14032 * cgraph.h: Likewise.
14033 * cgraphclones.c: Likewise.
14034 * cgraphunit.c: Likewise.
14035 * combine-stack-adj.c: Likewise.
14036 * combine.c: Likewise.
14037 * coverage.c: Likewise.
14038 * cprop.c: Likewise.
14040 * cselib.c: Likewise.
14041 * dbxout.c: Likewise.
14043 * df-core.c: Likewise.
14044 * df-problems.c: Likewise.
14045 * df-scan.c: Likewise.
14046 * dojump.c: Likewise.
14047 * dwarf2cfi.c: Likewise.
14048 * dwarf2out.c: Likewise.
14049 * emit-rtl.c: Likewise.
14050 * except.c: Likewise.
14051 * explow.c: Likewise.
14052 * expr.c: Likewise.
14053 * final.c: Likewise.
14054 * function.c: Likewise.
14055 * gcse.c: Likewise.
14056 * gimple-fold.c: Likewise.
14057 * gimple-low.c: Likewise.
14058 * gimple-streamer.h: Likewise.
14059 * haifa-sched.c: Likewise.
14060 * ifcvt.c: Likewise.
14062 * jump.c: Likewise.
14064 * loop-invariant.c: Likewise.
14065 * lra-assigns.c: Likewise.
14066 * lra-coalesce.c: Likewise.
14067 * lra-constraints.c: Likewise.
14068 * lra-eliminations.c: Likewise.
14069 * lra-lives.c: Likewise.
14070 * lra-spills.c: Likewise.
14072 * lto-cgraph.c: Likewise.
14073 * lto-section-in.c: Likewise.
14074 * lto-section-out.c: Likewise.
14075 * lto-streamer-in.c: Likewise.
14076 * lto-streamer-out.c: Likewise.
14077 * mode-switching.c: Likewise.
14078 * modulo-sched.c: Likewise.
14079 * omp-low.c: Likewise.
14080 * optabs.c: Likewise.
14081 * passes.c: Likewise.
14082 * postreload-gcse.c: Likewise.
14083 * postreload.c: Likewise.
14084 * predict.c: Likewise.
14085 * profile.c: Likewise.
14086 * recog.c: Likewise.
14088 * reg-stack.c: Likewise.
14089 * regcprop.c: Likewise.
14090 * reginfo.c: Likewise.
14091 * regrename.c: Likewise.
14092 * reload.c: Likewise.
14093 * reload1.c: Likewise.
14094 * reorg.c: Likewise.
14095 * resource.c: Likewise.
14096 * rtlanal.c: Likewise.
14097 * sched-deps.c: Likewise.
14098 * sched-ebb.c: Likewise.
14099 * sched-rgn.c: Likewise.
14100 * sel-sched-dump.c: Likewise.
14101 * sel-sched-ir.c: Likewise.
14102 * sel-sched.c: Likewise.
14103 * shrink-wrap.c: Likewise.
14104 * simplify-rtx.c: Likewise.
14105 * statistics.c: Likewise.
14106 * stmt.c: Likewise.
14107 * stor-layout.c: Likewise.
14108 * store-motion.c: Likewise.
14109 * symtab.c: Likewise.
14110 * targhooks.c: Likewise.
14111 * toplev.c: Likewise.
14112 * trans-mem.c: Likewise.
14113 * tree-cfg.c: Likewise.
14114 * tree-cfgcleanup.c: Likewise.
14115 * tree-dfa.c: Likewise.
14116 * tree-eh.c: Likewise.
14117 * tree-inline.c: Likewise.
14118 * tree-into-ssa.c: Likewise.
14119 * tree-nested.c: Likewise.
14120 * tree-nrv.c: Likewise.
14121 * tree-profile.c: Likewise.
14122 * tree-ssa-alias.c: Likewise.
14123 * tree-ssa-ccp.c: Likewise.
14124 * tree-ssa-copy.c: Likewise.
14125 * tree-ssa-copyrename.c: Likewise.
14126 * tree-ssa-dom.c: Likewise.
14127 * tree-ssa-operands.c: Likewise.
14128 * tree-ssa-propagate.c: Likewise.
14129 * tree-ssa-structalias.c: Likewise.
14130 * tree-ssa-tail-merge.c: Likewise.
14131 * tree-ssa-threadedge.c: Likewise.
14132 * tree-ssa-threadupdate.c: Likewise.
14133 * tree-ssa-uncprop.c: Likewise.
14134 * tree-ssa-uninit.c: Likewise.
14135 * tree-ssa.c: Likewise.
14136 * tree-stdarg.c: Likewise.
14137 * tree-tailcall.c: Likewise.
14138 * tree.c: Likewise.
14139 * tsan.c: Likewise.
14140 * valtrack.c: Likewise.
14141 * varasm.c: Likewise.
14142 * vmsdbgout.c: Likewise.
14144 * config/aarch64/aarch64.c: Add flattened includes from function.h.
14145 * config/alpha/alpha.c: Likewise.
14146 * config/arc/arc.c: Likewise.
14147 * config/arm/arm.c: Likewise.
14148 * config/avr/avr-log.c: Likewise.
14149 * config/avr/avr.c: Likewise.
14150 * config/bfin/bfin.c: Likewise.
14151 * config/c6x/c6x.c: Likewise.
14152 * config/cr16/cr16.c: Likewise.
14153 * config/cris/cris.c: Likewise.
14154 * config/darwin.c: Likewise.
14155 * config/epiphany/epiphany.c: Likewise.
14156 * config/epiphany/mode-switch-use.c: Likewise.
14157 * config/epiphany/resolve-sw-modes.c: Likewise.
14158 * config/fr30/fr30.c: Likewise.
14159 * config/frv/frv.c: Likewise.
14160 * config/h8300/h8300.c: Likewise.
14161 * config/i386/i386.c: Likewise.
14162 * config/ia64/ia64.c: Likewise.
14163 * config/iq2000/iq2000.c: Likewise.
14164 * config/lm32/lm32.c: Likewise.
14165 * config/m32c/m32c.c: Likewise.
14166 * config/m32r/m32r.c: Likewise.
14167 * config/m68k/m68k.c: Likewise.
14168 * config/mcore/mcore.c: Likewise.
14169 * config/mep/mep-pragma.c: Likewise.
14170 * config/mep/mep.c: Likewise.
14171 * config/microblaze/microblaze.c: Likewise.
14172 * config/mips/mips.c: Likewise.
14173 * config/mmix/mmix.c: Likewise.
14174 * config/mn10300/mn10300.c: Likewise.
14175 * config/moxie/moxie.c: Likewise.
14176 * config/msp430/msp430.c: Likewise.
14177 * config/nds32/nds32-cost.c: Likewise.
14178 * config/nds32/nds32-fp-as-gp.c: Likewise.
14179 * config/nds32/nds32-intrinsic.c: Likewise.
14180 * config/nds32/nds32-isr.c: Likewise.
14181 * config/nds32/nds32-md-auxiliary.c: Likewise.
14182 * config/nds32/nds32-memory-manipulation.c: Likewise.
14183 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14184 * config/nds32/nds32-predicates.c: Likewise.
14185 * config/nds32/nds32.c: Likewise.
14186 * config/nios2/nios2.c: Likewise.
14187 * config/pa/pa.c: Likewise.
14188 * config/pdp11/pdp11.c: Likewise.
14189 * config/rl78/rl78.c: Likewise.
14190 * config/rs6000/rs6000.c: Likewise.
14191 * config/rx/rx.c: Likewise.
14192 * config/s390/s390.c: Likewise.
14193 * config/score/score.c: Likewise.
14194 * config/sh/sh.c: Likewise.
14195 * config/sparc/sparc.c: Likewise.
14196 * config/spu/spu.c: Likewise.
14197 * config/stormy16/stormy16.c: Likewise.
14198 * config/tilegx/tilegx.c: Likewise.
14199 * config/tilepro/tilepro.c: Likewise.
14200 * config/v850/v850.c: Likewise.
14201 * config/vax/vax.c: Likewise.
14202 * config/xtensa/xtensa.c: Likewise.
14204 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
14206 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
14207 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
14209 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
14211 * config/sh/sh-protos.h (fldi_ok): Remove.
14212 * config/sh/sh.c (fldi_ok): Likewise.
14213 (sh_secondary_reload): Don't use fldi_ok.
14214 * config/sh/constraints.md (G constraint, H constraint): Don't use
14217 2014-10-16 Martin Liska <mliska@suse.cz>
14219 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
14220 Cast to unsigned long.
14221 (sem_item_optimizer::dump_cong_classes): Likewise.
14223 2014-10-16 Tom de Vries <tom@codesourcery.com>
14225 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
14226 with SSA_NAME_IN_FREELIST.
14228 2014-10-16 Richard Biener <rguenther@suse.de>
14230 PR middle-end/63554
14231 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
14232 (fold_builtin_strncat_chk): Move ...
14233 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
14234 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
14236 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
14239 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
14242 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14243 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14244 Anna Tikhonova <anna.tikhonova@intel.com>
14245 Ilya Tocar <ilya.tocar@intel.com>
14246 Andrey Turetskiy <andrey.turetskiy@intel.com>
14247 Ilya Verbin <ilya.verbin@intel.com>
14248 Kirill Yukhin <kirill.yukhin@intel.com>
14249 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14251 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
14254 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14255 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14256 Anna Tikhonova <anna.tikhonova@intel.com>
14257 Ilya Tocar <ilya.tocar@intel.com>
14258 Andrey Turetskiy <andrey.turetskiy@intel.com>
14259 Ilya Verbin <ilya.verbin@intel.com>
14260 Kirill Yukhin <kirill.yukhin@intel.com>
14261 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14263 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
14264 V16SI, V32HI, V64QI modes.
14266 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
14269 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
14270 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
14272 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
14273 to match fp insn patterns.
14274 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
14276 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
14277 expand_df_unop, expand_df_binop): Remove.
14278 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
14279 FPSCR_STAT_REG as not call clobbered.
14280 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
14281 invoking fpscr_set_from_mem.
14283 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
14284 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
14286 (REGISTER_NAMES): Adjust.
14287 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
14288 (FIRST_PSEUDO_REGISTER): Increase to 156.
14289 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
14290 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
14292 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
14293 FPSCR_MODES_REG and FPSCR_STAT_REG.
14294 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
14296 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
14297 FPSCR_SZ): Add new constants.
14298 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
14300 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
14301 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
14302 Use TARGET_FPU_ANY condition.
14303 (fpu_switch peephole2): Remove.
14304 (fpu_switch split): Use simple_mem_operand to capture the mem and
14305 adjust split implementation.
14306 (extend_psi_si, truncate_si_psi): New insns.
14307 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
14308 set of FPSCR_MODES_REG.
14310 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
14311 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
14312 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
14313 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
14314 call_value_compact, call_value_compact_rettramp, call,
14315 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
14316 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
14317 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
14318 sibcall_value_compact, sibcall_value, call_value_pop_compact,
14319 call_value_pop_compact_rettramp, various unnamed splits):
14320 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
14323 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
14324 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
14325 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
14326 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
14327 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
14329 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
14330 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
14331 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
14332 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
14333 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
14334 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
14335 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
14337 2014-10-16 Martin Liska <mliska@suse.cz>
14338 Jan Hubicka <hubicka@ucw.cz>
14340 * Makefile.in: New object files included.
14341 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
14343 (verify_edge_corresponds_to_fndecl): More sensitive verification
14344 of nodes that are merged by IPA ICF.
14345 * cgraph.h (cgraph_node::num_references): New function.
14346 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
14347 * common.opt: New options ipa-icf, ipa-icf-functions and
14348 ipa-icf-variables introduced.
14349 * doc/invoke.texi: Documentation of new options introduced.
14350 * ipa-icf-gimple.c: New file.
14351 * ipa-icf-gimple.h: New file.
14352 * ipa-icf.c: New file.
14353 * ipa-icf.h: New file.
14354 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
14355 (input_overwrite_node): Likewise.
14356 * lto-section-in.c: New icf section added.
14357 * lto-streamer.h (enum lto_section_type): Likewise.
14358 * opts.c (common_handle_option): New option added.
14359 * passes.def: New pass included.
14360 * timevar.def: Time variable for IPA ICF added.
14361 * tree-pass.h: New IPA ICF pass entry point added.
14363 2014-10-16 Richard Biener <rguenther@suse.de>
14365 PR tree-optimization/63168
14366 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
14367 latches if after merging they are no longer simple.
14368 * cfghooks.c (merge_blocks): Handle merging a latch block
14369 into another block.
14371 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14372 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14373 Anna Tikhonova <anna.tikhonova@intel.com>
14374 Ilya Tocar <ilya.tocar@intel.com>
14375 Andrey Turetskiy <andrey.turetskiy@intel.com>
14376 Ilya Verbin <ilya.verbin@intel.com>
14377 Kirill Yukhin <kirill.yukhin@intel.com>
14378 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14380 * config/i386/sse.md
14381 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
14382 support AVX-512VL instructions.
14384 2014-10-16 DJ Delorie <dj@redhat.com>
14386 * tree-core.h: Fix comment to not assume pointers are multiples of
14389 2014-10-15 Tom Tromey <tromey@redhat.com>
14391 * timevar.h (class auto_timevar): New class.
14393 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
14396 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
14397 Remove the second alternative.
14398 (regprefix): Remove mode attribute.
14399 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
14400 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
14403 2013-11-05 Ian Lance Taylor <iant@google.com>
14405 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
14406 If possible, add .cfi directives to record change to bx.
14407 * config/i386/i386.c (ix86_emit_cfi): New function.
14408 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
14410 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
14413 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
14415 * lto-streamer-out.c (lto_output): Handle correctly thunks that was
14418 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
14420 PR rtl-optimization/63448
14421 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
14422 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
14423 (LRA_MAX_INHERITANCE_PASSES): Use it.
14424 (lra_constraint_iter_after_spill): Remove.
14425 (lra_assignment_iter): New.
14426 (lra_assignment_iter_after_spill): New.
14427 * lra-assigns.c (lra_assignment_iter): New.
14428 (lra_assignment_iter_after_spill): New.
14429 (former_reload_pseudo_spill_p): New.
14430 (spill_for): Set up former_reload_pseudo_spill_p.
14431 (setup_live_pseudos_and_spill_after_risky): Ditto.
14432 (assign_by_spills): Ditto.
14433 (lra_assign): Increment lra_assignment_iter. Print the iteration
14434 number. Reset former_reload_pseudo_spill_p. Check
14435 lra_assignment_iter_after_spill.
14436 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
14437 lra_assignment_iter and lra_assignment_iter_after_spill.
14438 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
14439 (lra_constraints): Remove code with
14440 lra_assignment_iter_after_spill.
14442 2014-10-15 Teresa Johnson <tejohnson@google.com>
14445 * tree-ssa-threadupdate.c (recompute_probabilities): Better
14448 2014-10-15 Renlin Li <renlin.li@arm.com>
14450 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14451 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
14452 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
14453 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
14455 2014-10-15 Richard Biener <rguenther@suse.de>
14457 * gimple-fold.c (gimple_fold_call): Properly keep virtual
14458 SSA form up-to-date when devirtualizing a call to
14459 __builtin_unreachable and avoid fixing up EH info here.
14461 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14462 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14463 Anna Tikhonova <anna.tikhonova@intel.com>
14464 Ilya Tocar <ilya.tocar@intel.com>
14465 Andrey Turetskiy <andrey.turetskiy@intel.com>
14466 Ilya Verbin <ilya.verbin@intel.com>
14467 Kirill Yukhin <kirill.yukhin@intel.com>
14468 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14470 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
14471 to support AVX-512BW.
14472 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
14473 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
14474 (define_insn "*<plusminus_insn><mode>3"): Ditto.
14475 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
14476 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
14477 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
14478 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
14479 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
14480 (define_insn "*andnot<mode>3"): Ditto.
14481 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
14482 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
14483 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
14484 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
14485 (define_insn "*abs<mode>2"): Remove masking support.
14486 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
14487 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
14488 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
14490 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14491 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14492 Anna Tikhonova <anna.tikhonova@intel.com>
14493 Ilya Tocar <ilya.tocar@intel.com>
14494 Andrey Turetskiy <andrey.turetskiy@intel.com>
14495 Ilya Verbin <ilya.verbin@intel.com>
14496 Kirill Yukhin <kirill.yukhin@intel.com>
14497 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14499 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
14500 * config/i386/sse.md
14501 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
14502 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
14503 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
14504 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
14505 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
14506 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
14507 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
14509 2014-10-15 Renlin Li <renlin.li@arm.com>
14511 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
14513 2014-10-15 Jakub Jelinek <jakub@redhat.com>
14515 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
14516 MINUS_EXPR in unsigned type to avoid undefined behavior.
14518 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
14520 * stor-layout.c (self_referential_size): Do not promote arguments.
14522 2014-10-15 Marek Polacek <polacek@redhat.com>
14524 * doc/invoke.texi: Update to reflect that GNU11 is the default
14526 * c-common.h (c_language_kind): Update comment.
14528 2014-10-15 Richard Biener <rguenther@suse.de>
14530 * hash-table.c: Include bconfig.h if building for the host.
14531 * hash-table.h: Do not include ggc.h on the host but just declare
14532 a few ggc allocation templates.
14534 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
14535 Jeff Law <law@redhat.com>
14537 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
14538 multiple hard registers, use smaller mode derived from MODE.
14540 2014-10-15 Andreas Schwab <schwab@suse.de>
14542 * explow.c (convert_memory_address_addr_space_1): Mark in_const
14543 as ATTRIBUTE_UNUSED.
14545 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
14547 * loop-unroll.c (decide_unrolling_and_peeling): Rename to
14548 (decide_unrolling): ... this one.
14549 (peel_loops_completely): Remove.
14550 (decide_peel_simple): Remove.
14551 (decide_peel_once_rolling): Remove.
14552 (decide_peel_completely): Remove.
14553 (peel_loop_simple): Remove.
14554 (peel_loop_completely): Remove.
14555 (unroll_and_peel_loops): Rename to ...
14556 (unroll_loops): ... this one; handle only unrolling.
14557 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and LPT_PEEL_SIMPLE.
14558 (UAP_PEEL): Remove.
14559 (unroll_and_peel_loops): Remove.
14560 (unroll_loops): New.
14561 * passes.def: Replace pass_rtl_unroll_and_peel_loops
14562 by pass_rtl_unroll_loops.
14563 * loop-init.c (gate_rtl_unroll_and_peel_loops,
14564 rtl_unroll_and_peel_loops): Rename to ...
14565 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
14566 (pass_rtl_unroll_and_peel_loops): Rename to ...
14567 (pass_rtl_unroll_loops): ... this one.
14568 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
14569 (make_pass_rtl_unroll_loops): New.
14570 * tree-ssa-loop-ivcanon.c (estimated_peeled_sequence_size,
14571 try_peel_loop): New.
14572 (canonicalize_loop_induction_variables): Update.
14574 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
14576 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
14577 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
14578 !TARGET_HARD_FLOAT_POSTINC.
14579 (*lsip, *ssip): new instructions.
14581 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
14583 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
14586 2014-10-14 Andrew Pinski <apinski@cavium.com>
14588 * explow.c (convert_memory_address_addr_space): Rename to ...
14589 (convert_memory_address_addr_space_1): This. Add in_const argument.
14590 Inside a CONST RTL, permute the conversion and addition of constant
14591 for zero and sign extended pointers.
14592 (convert_memory_address_addr_space): New function.
14594 2014-10-14 Andrew Pinski <apinski@cavium.com>
14597 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
14599 PR middle-end/49721
14600 * explow.c (convert_memory_address_addr_space): Also permute the
14601 conversion and addition of constant for zero-extend.
14603 2014-10-14 DJ Delorie <dj@redhat.com>
14605 * config/msp430/msp430-modes.def (PSI): Add.
14607 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding):
14609 (msp430_hard_regno_nregs_with_padding): New.
14610 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
14611 (msp430_hard_regno_nregs_has_padding): New.
14612 (msp430_hard_regno_nregs_with_padding): New.
14613 (msp430_unwind_word_mode): Use PSImode instead of SImode.
14614 (msp430_addr_space_legitimate_address_p): New.
14615 (msp430_asm_integer): New.
14616 (msp430_init_dwarf_reg_sizes_extra): New.
14617 (msp430_print_operand): Use X suffix for PSImode even in small model.
14618 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
14619 (PTR_SIZE): ...but 4 bytes for EH.
14620 (SIZE_TYPE): Use __int20.
14621 (PTRDIFF_TYPE): Likewise.
14622 (INCOMING_FRAME_SP_OFFSET): Adjust.
14623 * config/msp430/msp430.md (movqi_topbyte): New.
14624 (movpsi): Use fixed suffixes.
14625 (movsipsi2): Enable for 430X, not large model.
14626 (extendhipsi2): Likewise.
14627 (zero_extendhisi2): Likewise.
14628 (zero_extendhisipsi2): Likewise.
14629 (extend_and_shift1_hipsi2): Likewise.
14630 (extendpsisi2): Likewise.
14631 (*bitbranch<mode>4_z): Fix suffix logic.
14633 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
14636 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
14637 do not choke on null node.
14638 <VAR_DECL>: Likewise.
14640 2014-10-14 DJ Delorie <dj@redhat.com>
14642 * machmode.h (int_n_data_t): New.
14643 (int_n_enabled_p): New.
14645 * tree.c (int_n_enabled_p): New.
14646 (int_n_trees): New.
14647 (make_or_reuse_type): Check for all __intN types, not just __int128.
14648 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
14650 * tree.h (int128_integer_type_node): Remove.
14651 (int128_unsigned_type_node): Remove.
14652 (int_n_trees_t): New.
14653 (int_n_enabled_p): New.
14654 (int_n_trees): New.
14655 * toplev.c (standard_type_bitsize): New.
14656 (do_compile): Check which __intN types are enabled for the current run.
14657 * builtin-types.def (BT_INT128): Remove.
14658 (BT_UINT128): Remove.
14659 * machmode.def: Add macro to create __int128 for all targets.
14660 * stor-layout.c (mode_for_size): Support __intN types.
14661 (smallest_mode_for_size): Likewise.
14662 (initialize_sizetypes): Support __intN types.
14663 * genmodes.c (struct mode_data): Add int_n field.
14664 (blank_mode): Likewise.
14667 (emit_insn_modes_h): Count __intN entries and define NUM_INT_N_ENTS.
14668 (emit_mode_int_n): New.
14669 (emit_insn_modes_c): Call it.
14670 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
14671 types, not just __int128.
14672 * tree-core.h (integer_type_kind): Remove __int128-specific
14673 entries, reserve spots for __intN entries.
14675 * config/msp430/msp430-modes.def (PSI): Add.
14677 2014-10-14 Kito Cheng <kito@0xlab.org>
14679 * ira.c: Fix typo in comment.
14681 * ira-build.c: Ditto.
14682 * ira-color.c: Ditto.
14683 * ira-emit.c: Ditto.
14684 * ira-int.h: Ditto.
14685 * ira-lives.c: Ditto.
14687 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
14689 PR rtl-optimization/63475
14690 * alias.c (true_dependence_1): Always use get_addr to extract
14691 true address operands from x_addr and mem_addr. Use extracted
14692 address operands to check for references with alignment ANDs.
14693 Use extracted address operands with find_base_term and
14694 base_alias_check. For noncanonicalized operands call canon_rtx with
14695 extracted address operand.
14696 (write_dependence_1): Ditto.
14697 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
14699 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
14702 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
14705 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14706 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14707 Anna Tikhonova <anna.tikhonova@intel.com>
14708 Ilya Tocar <ilya.tocar@intel.com>
14709 Andrey Turetskiy <andrey.turetskiy@intel.com>
14710 Ilya Verbin <ilya.verbin@intel.com>
14711 Kirill Yukhin <kirill.yukhin@intel.com>
14712 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14714 * config/i386/i386.c
14715 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
14716 (ix86_expand_int_vcond): Ditto.
14718 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14719 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14720 Anna Tikhonova <anna.tikhonova@intel.com>
14721 Ilya Tocar <ilya.tocar@intel.com>
14722 Andrey Turetskiy <andrey.turetskiy@intel.com>
14723 Ilya Verbin <ilya.verbin@intel.com>
14724 Kirill Yukhin <kirill.yukhin@intel.com>
14725 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14727 * config/i386/i386.c
14728 (emit_reduc_half): Handle V64QI and V32HI mode.
14729 * config/i386/sse.md
14730 (define_mode_iterator VI_AVX512BW): New.
14731 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
14733 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14734 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14735 Anna Tikhonova <anna.tikhonova@intel.com>
14736 Ilya Tocar <ilya.tocar@intel.com>
14737 Andrey Turetskiy <andrey.turetskiy@intel.com>
14738 Ilya Verbin <ilya.verbin@intel.com>
14739 Kirill Yukhin <kirill.yukhin@intel.com>
14740 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14742 * config/i386/sse.md
14743 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
14745 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14746 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14747 Anna Tikhonova <anna.tikhonova@intel.com>
14748 Ilya Tocar <ilya.tocar@intel.com>
14749 Andrey Turetskiy <andrey.turetskiy@intel.com>
14750 Ilya Verbin <ilya.verbin@intel.com>
14751 Kirill Yukhin <kirill.yukhin@intel.com>
14752 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14754 * config/i386/i386.c
14755 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
14756 * config/i386/sse.md
14757 (define_mode_iterator VI): Add V64QI and V32HI modes.
14759 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14760 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14761 Anna Tikhonova <anna.tikhonova@intel.com>
14762 Ilya Tocar <ilya.tocar@intel.com>
14763 Andrey Turetskiy <andrey.turetskiy@intel.com>
14764 Ilya Verbin <ilya.verbin@intel.com>
14765 Kirill Yukhin <kirill.yukhin@intel.com>
14766 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14768 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
14770 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14771 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14772 Anna Tikhonova <anna.tikhonova@intel.com>
14773 Ilya Tocar <ilya.tocar@intel.com>
14774 Andrey Turetskiy <andrey.turetskiy@intel.com>
14775 Ilya Verbin <ilya.verbin@intel.com>
14776 Kirill Yukhin <kirill.yukhin@intel.com>
14777 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14779 * config/i386/sse.md
14780 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
14781 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
14783 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14784 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14785 Anna Tikhonova <anna.tikhonova@intel.com>
14786 Ilya Tocar <ilya.tocar@intel.com>
14787 Andrey Turetskiy <andrey.turetskiy@intel.com>
14788 Ilya Verbin <ilya.verbin@intel.com>
14789 Kirill Yukhin <kirill.yukhin@intel.com>
14790 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14792 * config/i386/sse.md
14793 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
14794 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
14796 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14797 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14798 Anna Tikhonova <anna.tikhonova@intel.com>
14799 Ilya Tocar <ilya.tocar@intel.com>
14800 Andrey Turetskiy <andrey.turetskiy@intel.com>
14801 Ilya Verbin <ilya.verbin@intel.com>
14802 Kirill Yukhin <kirill.yukhin@intel.com>
14803 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14805 * config/i386/sse.md
14806 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
14807 (define_mode_iterator VI2_AVX2): Add V32HI mode.
14808 (define_expand "mul<mode>3<mask_name>"): Add masking.
14809 (define_insn "*mul<mode>3<mask_name>"): Ditto.
14810 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
14811 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
14812 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
14813 (define_mode_attr SDOT_PMADD_SUF): Ditto.
14814 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
14815 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
14816 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
14817 (define_insn "avx2_packusdw"): Delete.
14818 (define_insn "sse4_1_packusdw"): Ditto.
14819 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
14821 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14822 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14823 Anna Tikhonova <anna.tikhonova@intel.com>
14824 Ilya Tocar <ilya.tocar@intel.com>
14825 Andrey Turetskiy <andrey.turetskiy@intel.com>
14826 Ilya Verbin <ilya.verbin@intel.com>
14827 Kirill Yukhin <kirill.yukhin@intel.com>
14828 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14830 * config/i386/sse.md
14831 (define_insn "vec_dup<mode>"): Update constraints.
14833 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14834 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14835 Anna Tikhonova <anna.tikhonova@intel.com>
14836 Ilya Tocar <ilya.tocar@intel.com>
14837 Andrey Turetskiy <andrey.turetskiy@intel.com>
14838 Ilya Verbin <ilya.verbin@intel.com>
14839 Kirill Yukhin <kirill.yukhin@intel.com>
14840 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14842 * config/i386/sse.md
14843 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
14844 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
14845 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
14847 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14848 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14849 Anna Tikhonova <anna.tikhonova@intel.com>
14850 Ilya Tocar <ilya.tocar@intel.com>
14851 Andrey Turetskiy <andrey.turetskiy@intel.com>
14852 Ilya Verbin <ilya.verbin@intel.com>
14853 Kirill Yukhin <kirill.yukhin@intel.com>
14854 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14856 * config/i386/sse.md
14857 (define_expand "mul<mode>3<mask_name>"): Add masking.
14859 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14860 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14861 Anna Tikhonova <anna.tikhonova@intel.com>
14862 Ilya Tocar <ilya.tocar@intel.com>
14863 Andrey Turetskiy <andrey.turetskiy@intel.com>
14864 Ilya Verbin <ilya.verbin@intel.com>
14865 Kirill Yukhin <kirill.yukhin@intel.com>
14866 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14868 * config/i386/sse.md
14869 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
14870 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
14872 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14873 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14874 Anna Tikhonova <anna.tikhonova@intel.com>
14875 Ilya Tocar <ilya.tocar@intel.com>
14876 Andrey Turetskiy <andrey.turetskiy@intel.com>
14877 Ilya Verbin <ilya.verbin@intel.com>
14878 Kirill Yukhin <kirill.yukhin@intel.com>
14879 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14881 * config/i386/sse.md
14882 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
14883 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
14884 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
14887 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14888 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14889 Anna Tikhonova <anna.tikhonova@intel.com>
14890 Ilya Tocar <ilya.tocar@intel.com>
14891 Andrey Turetskiy <andrey.turetskiy@intel.com>
14892 Ilya Verbin <ilya.verbin@intel.com>
14893 Kirill Yukhin <kirill.yukhin@intel.com>
14894 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14896 * config/i386/sse.md
14897 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
14898 use VF_128_256 mode iterator and update assembler emit code.
14899 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
14900 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
14901 Add masking, use VF_128_256 mode iterator.
14902 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
14903 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
14904 Add masking, use VF_128_256 mode iterator and update assembler emit
14906 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
14907 (define_mode_attr avx512flogicsuff): Delete.
14908 (define_insn "avx512f_<logic><mode>"): Ditto.
14909 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
14911 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
14913 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14914 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14915 Anna Tikhonova <anna.tikhonova@intel.com>
14916 Ilya Tocar <ilya.tocar@intel.com>
14917 Andrey Turetskiy <andrey.turetskiy@intel.com>
14918 Ilya Verbin <ilya.verbin@intel.com>
14919 Kirill Yukhin <kirill.yukhin@intel.com>
14920 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14922 * config/i386/sse.md
14923 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
14924 (define_expand "vashr<mode>3<mask_name>"): Add masking,
14925 use VI12_128 mode iterator.
14926 (define_expand "ashrv2di3<mask_name>"): New.
14928 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14929 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14930 Anna Tikhonova <anna.tikhonova@intel.com>
14931 Ilya Tocar <ilya.tocar@intel.com>
14932 Andrey Turetskiy <andrey.turetskiy@intel.com>
14933 Ilya Verbin <ilya.verbin@intel.com>
14934 Kirill Yukhin <kirill.yukhin@intel.com>
14935 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14937 * config/i386/i386.c
14938 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
14939 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
14940 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
14941 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
14942 CODE_FOR_avx512vl_ucmpv4si3_mask.
14943 * config/i386/sse.md
14944 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
14945 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
14947 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
14948 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
14949 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
14950 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
14951 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
14952 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
14954 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14955 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14956 Anna Tikhonova <anna.tikhonova@intel.com>
14957 Ilya Tocar <ilya.tocar@intel.com>
14958 Andrey Turetskiy <andrey.turetskiy@intel.com>
14959 Ilya Verbin <ilya.verbin@intel.com>
14960 Kirill Yukhin <kirill.yukhin@intel.com>
14961 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14963 * config/i386/sse.md
14964 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
14965 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
14966 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
14967 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
14968 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
14969 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
14970 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
14971 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
14972 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
14974 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14975 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14976 Anna Tikhonova <anna.tikhonova@intel.com>
14977 Ilya Tocar <ilya.tocar@intel.com>
14978 Andrey Turetskiy <andrey.turetskiy@intel.com>
14979 Ilya Verbin <ilya.verbin@intel.com>
14980 Kirill Yukhin <kirill.yukhin@intel.com>
14981 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14983 * config/i386/sse.md
14984 (define_insn "avx512f_blendm<mode>"): Delete.
14985 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
14986 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
14987 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
14988 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
14990 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
14993 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
14996 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
14998 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
14999 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
15000 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
15001 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
15004 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
15007 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
15009 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
15012 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
15015 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
15018 2014-10-14 Richard Biener <rguenther@suse.de>
15020 PR tree-optimization/63512
15021 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
15024 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
15027 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
15028 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
15030 (negsf2_i): Rename to *negsf2_i.
15031 (abssf2_i): Rename to *abssf2_i.
15032 (negdf2_i): Rename to *negdf2_i.
15033 (absdf2_i): Rename to *absdf2_i.
15035 2014-10-14 Felix Yang <felix.yang@huawei.com>
15036 Jeff Law <law@redhat.com>
15038 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
15039 "replace" into boolean bitfields; turn member "loop_depth" into a short
15040 integer; add new member "no_equiv" and "reserved".
15041 (no_equiv): Set no_equiv of struct equivalence if register is marked
15042 as having no known equivalence.
15043 (update_equiv_regs): Check all definitions for a multiple-set
15044 register to make sure that the RHS have the same value.
15046 2014-10-13 Richard Henderson <rth@redhat.com>
15048 * combine-stack-adj.c (no_unhandled_cfa): New.
15049 (maybe_merge_cfa_adjust): New.
15050 (combine_stack_adjustments_for_block): Use them.
15052 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
15054 * Makefile.in (TAGS): Tag ../include files.
15056 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15058 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
15059 to rs6000_dbx_register_number.
15060 (DWARF_FRAME_REGNUM): Redefine as identity map.
15061 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
15062 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
15063 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
15064 argument to handle .debug_frame and .eh_frame directly. Always
15065 translate SPE high register numbers. Add special treatment for CR,
15066 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
15068 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
15069 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
15070 (RS6000_USE_DWARF_NUMBERING): Define.
15071 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
15072 (RS6000_USE_DWARF_NUMBERING): Define.
15073 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
15074 (RS6000_USE_DWARF_NUMBERING): Define.
15075 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
15076 (RS6000_USE_DWARF_NUMBERING): Define.
15077 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
15078 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
15080 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
15082 * config/i386/i386.c (ix86_address_cost): Lower cost for
15083 when address contains GOT register.
15085 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
15086 Vladimir Makarov <vmakarov@redhat.com>
15089 PR middle-end/47602
15090 PR rtl-optimization/55458
15091 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
15092 (ix86_init_pic_reg): New.
15093 (ix86_select_alt_pic_regnum): Add check on pseudo register.
15094 (ix86_save_reg): Likewise.
15095 (ix86_expand_prologue): Remove PIC register initialization
15096 now performed in ix86_init_pic_reg.
15097 (ix86_output_function_epilogue): Add check on pseudo register.
15098 (set_pic_reg_ever_alive): New.
15099 (legitimize_pic_address): Replace df_set_regs_ever_live with new
15100 set_pic_reg_ever_alive.
15101 (legitimize_tls_address): Likewise.
15102 (ix86_pic_register_p): New check.
15103 (ix86_delegitimize_address): Add check on pseudo register.
15104 (ix86_expand_call): Insert move from pseudo PIC register to ABI
15105 defined REAL_PIC_OFFSET_TABLE_REGNUM.
15106 (TARGET_INIT_PIC_REG): New.
15107 (TARGET_USE_PSEUDO_PIC_REG): New.
15108 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
15109 if pic_offset_table_rtx exists.
15110 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
15112 * doc/tm.texi: Regenerate.
15113 * function.c (assign_parms): Generate pseudo register for PIC.
15114 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
15116 * ira-color.c (color_pass): Add check on pseudo register.
15117 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
15119 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
15121 (ira): Add target specific PIC register initialization.
15122 (do_reload): Keep PIC pseudo register.
15123 * lra-assigns.c (spill_for): Add checks on pseudo register.
15124 * lra-constraints.c (contains_symbol_ref_p): New.
15125 (lra_constraints): Enable lra risky transformations when PIC is pseudo
15127 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
15128 * target.def (use_pseudo_pic_reg): New.
15129 (init_pic_reg): New.
15131 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
15133 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
15134 Remove m_SILVERMONT and m_INTEL from the tune.
15136 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15138 PR libfortran/63471
15139 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15140 when _HPUX_SOURCE is defined.
15142 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
15144 PR tree-optimization/62127
15145 * tree.c (remap_type_1): When remapping array, remap
15148 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
15150 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
15151 longer impact parallelization.
15153 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
15156 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
15158 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
15160 * asan.c (instrument_derefs): BIT_FIELD_REF added.
15162 2014-10-13 Richard Biener <rguenther@suse.de>
15164 PR tree-optimization/63419
15165 * gimple-fold.h (gimple_convert): New function.
15166 * gimple-fold.c (gimple_convert): Likewise.
15167 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
15168 to split out required conversions early.
15170 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
15172 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
15173 Add the parts of an insn in reverse order, with the pattern at
15174 the top of the queue. Detect when we're iterating over a SEQUENCE
15175 pattern and in that case just consider patterns of subinstructions.
15177 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
15180 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
15182 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
15184 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
15185 address. Use def chains to handle GBR clobbering call insns.
15187 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
15189 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
15190 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
15191 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
15192 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
15193 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
15194 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
15195 * doc/gty.texi (for_user): Document new option.
15196 * gengtype.c (create_user_defined_type): Don't try to get a struct for
15198 (walk_type): Don't error out on for_user option.
15199 (write_func_for_structure): Emit user marking routines if requested by
15201 (write_local_func_for_structure): Likewise.
15202 (main): Mark types with for_user option as used.
15203 * ggc.h (gt_pch_nx): Add overload for unsigned int.
15204 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
15205 * hash-table.h (ggc_hasher): New struct.
15206 (hash_table::create_ggc): New function.
15207 (gt_pch_nx): New overload for hash_table.
15209 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
15211 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
15212 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
15213 * config/sh/sh.c: Likewise.
15214 * config/sh/sh-mem.cc: Likewise.
15215 * config/sh/sh.md: Likewise.
15216 * config/sh/predicates.md: Likewise.
15217 * config/sh/sync.md: Likewise.
15219 2014-10-11 Martin Liska <mliska@suse.cz>
15221 PR middle-end/63376
15222 * cgraphunit.c (symbol_table::process_new_functions): Missing call
15223 for call_cgraph_insertion_hooks added.
15225 2014-10-10 Jakub Jelinek <jakub@redhat.com>
15228 * stor-layout.c (min_align_of_type): Don't decrease alignment
15229 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
15230 TYPE_USER_ALIGN is set.
15232 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
15234 PR rtl-optimization/63483
15235 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
15236 references when alignment ANDs are involved.
15237 (write_dependence_p): Ditto.
15238 (may_alias_p): Ditto.
15240 2014-10-10 Marek Polacek <polacek@redhat.com>
15242 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
15243 * doc/invoke.texi: Document -fsanitize=object-size.
15244 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
15245 or it into SANITIZE_UNDEFINED.
15246 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
15247 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
15248 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
15249 * opts.c (common_handle_option): Handle -fsanitize=object-size.
15250 * ubsan.c: Include tree-object-size.h.
15251 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
15252 (ubsan_expand_bounds_ifn): Use false instead of 0.
15253 (ubsan_expand_objsize_ifn): New function.
15254 (instrument_object_size): New function.
15255 (pass_ubsan::execute): Add object size instrumentation.
15256 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
15258 2014-10-10 Richard Henderson <rth@redhat.com>
15261 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
15262 Restrict the set of expressions we're willing to move.
15264 2014-10-10 Jeff Law <law@redhat.com>
15266 * ira.c (struct equivalence): Promote INIT_INSNs field to
15267 an rtx_insn_list. Add comments.
15268 (no_equiv): Promote LIST to an rtx_insn_list. Update
15269 testing for and creating the special marker. Use methods
15270 to extract the insn and next pointers. Promote INSN to an
15272 (update_equiv_regs): Update test for special marker in the
15275 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15277 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
15278 * configure: Regenerate.
15279 * config/aarch64/aarch64.c (aarch64_override_options): Handle
15280 TARGET_FIX_ERR_A53_835769_DEFAULT.
15281 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
15283 * doc/install.texi (aarch64*-*-*): Document
15284 new --enable-fix-cortex-a53-835769 option.
15286 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15287 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15289 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
15290 (ADJUST_INSN_LENGTH): Define.
15291 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
15292 * config/aarch64/aarch64.c (is_mem_p): New function.
15293 (is_memory_op): Likewise.
15294 (aarch64_prev_real_insn): Likewise.
15295 (is_madd_op): Likewise.
15296 (dep_between_memop_and_curr): Likewise.
15297 (aarch64_madd_needs_nop): Likewise.
15298 (aarch64_final_prescan_insn): Likewise.
15299 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
15300 and -mno-fix-cortex-a53-835769 options.
15302 2014-10-10 Jakub Jelinek <jakub@redhat.com>
15304 PR tree-optimization/63464
15305 * tree-switch-conversion.c (struct case_bit_test): Remove
15306 hi and lo fields, add wide_int mask field.
15307 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
15308 hi/lo fields into wide_int mask operations, optimize by pretending
15309 minval to be 0 if maxval is small enough.
15310 (process_switch): Adjust caller.
15312 2014-10-10 Richard Biener <rguenther@suse.de>
15314 PR tree-optimization/63379
15315 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
15316 a neutral operand for min/max when it is not a reduction chain.
15318 2014-10-10 Richard Biener <rguenther@suse.de>
15320 PR tree-optimization/63476
15321 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
15322 (BB_LIVE_VOP_ON_EXIT): New define.
15323 (create_expression_by_pieces): Assign VUSEs to stmts.
15324 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
15325 (pass_pre::execute): Assert virtual SSA form is up-to-date
15328 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
15330 * lra-assigns.c (assign_by_spills): Error out on spill failure.
15332 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
15334 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
15337 2014-10-09 Richard Biener <rguenther@suse.de>
15339 PR tree-optimization/63380
15340 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
15343 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
15345 * config/avr/avr.opt (mmcu=): Change to have a string value.
15346 (mn-flash=, mskip-bug, march=, mrmw): New options.
15347 (HeaderInclude): New.
15348 (mmcu=): Remove Var / Init clauses.
15349 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
15351 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
15352 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
15353 (SYMBOL_FLAG_IO_LOW): Define.
15354 (avr_device_to_as, avr_device_to_ld): Don't declare.
15355 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
15356 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
15357 (EXTRA_SPEC_FUNCTIONS): Don't define.
15358 (ASM_SPEC): Translate -arch= option to -mmcu= option.
15359 (LINK_SPEC): Translate -arch= option to -m= option.
15360 Don't use device_to_ld / device_to_data_start.
15361 (STARTFILE_SPEC): Now empty.
15362 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
15363 * config/avr/gen-avr-mmcu-specs.c: New file.
15364 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
15365 (s-device-specs): Likewise.
15366 (GCC_PASSES): Add s-device-specs.
15367 (install-driver): Depend on install-device-specs.
15368 (install-device-specs): New rule.
15369 * config/avr/avr.c (avr_option_override): Look up mcu arch by
15370 avr_arch_index and provide fallback initialization for avr_n_flash.
15371 (varasm.h): #include.
15372 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
15373 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
15374 (avr_attribute_table): Add "io", "address" and "io_low".
15375 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
15376 Add special handling for symbols with "io" and/or "address" attributes.
15377 (avr_asm_asm_output_aligned_bss): New function.
15378 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
15379 as appropriate. Handle io_low attribute.
15380 (avr_out_sbxx_branch): Handle symbolic io addresses.
15381 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
15382 avr_n_flash instead of avr_current_device->n_flash.
15383 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
15384 (avr_emit_movmemhi): Likewise.
15385 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
15386 Use TARGET_RMW instead of avr_current_device->dev_attributes.
15387 Don't define avr_current_device->macro (that's the specfile's job).
15388 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
15389 * config/avr/avr.c (avr_2word_insn_p): Likewise.
15390 * config/avr/avr.md (*cpse.ne): Likewise.
15391 (mov<mode>): Use avr_eval_addr_attrib.
15392 (cbi): Change constraint for low_io_address_operand operand to "i".
15393 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
15394 * config/avr/predicates.md (io_address_operand):
15395 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
15396 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
15397 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
15399 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
15400 * config/avr/genmultilib.awk: Use -march=.
15401 Remove Multilib matches processing.
15402 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
15403 * config/avr/avr-arch.h: Add double include guard.
15404 (avr_mcu_t) <library_name>: Update comment.
15405 * config/avr/driver-avr.c (avr_device_to_as): Delete.
15406 (avr_device_to_ld, avr_device_to_data_start): Likewise.
15407 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
15408 (avr_device_to_sp8): Likewise.
15409 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
15411 * doc/extend.texi (io, address): Document new AVR variable attributes.
15412 (io_low): Likewise.
15414 2014-10-09 Marek Polacek <polacek@redhat.com>
15416 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
15418 2014-10-08 Richard Biener <rguenther@suse.de>
15420 PR tree-optimization/61969
15421 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
15424 2014-10-09 Richard Biener <rguenther@suse.de>
15426 PR tree-optimization/63445
15427 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
15428 overflow for non-equality compares.
15430 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
15432 PR rtl-optimization/57003
15433 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
15434 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
15435 killing regs_invalidated_by_call.
15437 2014-10-08 Teresa Johnson <tejohnson@google.com>
15439 PR bootstrap/63432.
15440 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
15441 (ssa_fix_duplicate_block_edges): Invoke it.
15442 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
15444 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
15447 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
15448 atomic_fetch_<fetchop_name>si_hard,
15449 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
15450 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
15451 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
15452 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
15454 2014-10-08 Rong Xu <xur@google.com>
15456 * gcov-tool.c (profile_overlap): New driver function
15457 to compute profile overlap.
15458 (print_overlap_usage_message): New.
15459 (overlap_usage): New.
15461 (print_usage): Add calls to overlap function.
15463 * doc/gcov-tool.texi: Add documentation.
15465 2014-10-08 Steve Ellcey <sellcey@mips.com>
15467 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
15468 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
15470 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
15472 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
15473 pattern matching of MEM_REF.
15474 (check_stmt_for_type_change): Update.
15476 2014-10-08 Steve Ellcey <sellcey@mips.com>
15478 * config/mips/linux64.h: Remove.
15479 * config/mips/gnu-user64.h: Remove.
15480 * gcc.config (mips*-*-*): Remove references to linux64.h and
15482 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
15483 with modified version from gnu-user64.h.
15484 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
15485 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
15486 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
15488 (GNU_USER_LINK_EMULATION64): Ditto.
15489 (GNU_USER_LINK_EMULATIONN32): Ditto.
15490 (GLIBC_DYNAMIC_LINKER32): Ditto.
15491 (GLIBC_DYNAMIC_LINKER64): Ditto.
15492 (GLIBC_DYNAMIC_LINKERN32): Ditto.
15493 (UCLIBC_DYNAMIC_LINKER32): Ditto.
15494 (UCLIBC_DYNAMIC_LINKER64): Ditto.
15495 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
15496 (BIONIC_DYNAMIC_LINKERN32): Ditto.
15497 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
15498 (GLIBC_DYNAMIC_LINKER): Delete.
15499 (UCLIBC_DYNAMIC_LINKER): Delete.
15501 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
15502 Richard Biener <rguenther@suse.de>
15504 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
15505 Get address space from operand 0 (BASE).
15507 2014-10-07 Iain Sandoe <iain@codesourcery.com>
15510 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
15512 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
15514 * dwarf2out.c: Remove current_function_has_inlines.
15515 (gen_subprogram_die): Same.
15516 (gen_inlined_subroutine_die): Same.
15518 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
15520 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
15522 (_addcarry_u64): Ditto.
15523 (_addcarryx_u64): Ditto.
15525 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
15527 * cgraph.h (cgraph_node::get_fun): Declare.
15528 * cgraph.c (cgraph_node::get_fun): New method.
15529 * ipa-inline.c (can_inline_edge_p): Use it.
15531 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
15533 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
15534 and -ftrapping-math.
15535 * lto-wrapper.c (merge_and_complain): Likewise.
15536 (run_gcc): Likewise.
15538 2014-10-06 Rong Xu <xur@google.com>
15540 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
15541 * tree-profile.c: (params.h): New include.
15542 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
15543 and __gcov_indirect_call_topn_counters for
15544 indirect_call_topn_profile.
15545 (gimple_init_edge_profiler): New decls for
15546 __gcov_indirect_call_topn_profiler.
15547 (gimple_gen_ic_profiler): Generate the correct profiler call.
15548 (gimple_gen_ic_func_profiler): Fix format.
15549 * value-prof.c (params.h): New include.
15550 (dump_histogram_value): Hanlde indirect_call_topn counters.
15551 (stream_in_histogram_value): Ditto.
15552 (gimple_indirect_call_to_profile): Use indirect_call_topn
15553 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
15554 (gimple_find_values_to_profile): Hanlde indirect_call_topn
15556 * value-prof.h (enum hist_type): Histrogram type for
15557 indirect_call_topn counters.
15558 * profile.c (instrument_values): Instrument
15559 indirect_call_topn counters.
15561 2014-10-06 Rong Xu <xur@google.com>
15563 * Makefile.in: Fix dependence.
15564 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
15565 indirect call topn profiler.
15566 * gcov-io.h: Ditto.
15568 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
15570 * calls.c (expand_call): Do not use the target as the return slot if
15571 it is not sufficiently aligned.
15573 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15575 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
15576 discussion of permutes and why we don't handle them.
15578 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
15580 * config/sparc/predicates.md (int_register_operand): Delete.
15582 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
15584 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
15586 2014-10-06 Jakub Jelinek <jakub@redhat.com>
15588 * ubsan.h (ubsan_get_source_location): New prototype.
15589 * ubsan.c (ubsan_source_location_type): New variable.
15590 Function renamed to ...
15591 (ubsan_get_source_location_type): ... this. Cache
15592 return value in ubsan_source_location_type variable.
15593 (ubsan_source_location, ubsan_create_data): Use
15594 ubsan_get_source_location_type instead of
15595 ubsan_source_location_type.
15596 * asan.c (asan_protect_global): Don't protect globals
15597 with ubsan_get_source_location_type () type.
15598 (asan_add_global): Provide global decl location info
15601 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15603 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
15606 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15608 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
15610 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
15612 (ipa_polymorphic_call_context::dump): Fix formating.
15613 (walk_ssa_copies): Add logic avoiding loops; update uses.
15614 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
15616 2014-10-02 Mark Wielaard <mjw@redhat.com>
15619 * dwarf2out.c (gen_subprogram_die): When a member function is
15620 explicitly deleted then add a DW_AT_GNU_deleted attribute.
15621 * langhooks.h (struct lang_hooks_for_decls): Add
15622 function_decl_deleted_p langhook.
15623 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
15624 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
15626 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15628 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
15629 NULL pointer checks.
15630 (ipa_polymorphic_call_context::get_dynamic_type): Return true
15631 if type doesn't change.
15632 * cgraph.h (cgraph_indirect_call_info): New flag.
15633 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
15634 (cgraph_node::dump): Dump it.
15635 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
15636 of context.get_dynamic_type.
15637 (ipa_make_edge_direct_to_target): Do not speculate
15638 edge that is already speuclative.
15639 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
15640 speculate to __builtin_unreachable
15641 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
15643 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
15645 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15647 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
15648 get_dynamic_type; drop TODO.
15649 * ipa-polymorphic-call.c
15650 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
15651 for otr_type to be unknown.
15653 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
15655 * common/config/score/score-common.c: Remove.
15656 * config.gcc: Remove support for score-*.
15657 * config/score/constraints.md: Remove.
15658 * config/score/elf.h: Remove.
15659 * config/score/predicates.md: Remove.
15660 * config/score/score-conv.h: Remove.
15661 * config/score/score-generic.md: Remove.
15662 * config/score/score-modes.def: Remove.
15663 * config/score/score-protos.h: Remove.
15664 * config/score/score.c: Remove.
15665 * config/score/score.h: Remove.
15666 * config/score/score.md: Remove.
15667 * config/score/score.opt: Remove.
15668 * doc/md.texi: Don't document score-*.
15670 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
15673 * genconditions.c: Directly include ggc.h before rtl.h.
15675 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
15677 * ipa-polymorphic-call.c
15678 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
15679 code determining speculative type.
15680 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
15682 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15684 * altivec.md (altivec_lvsl): New define_expand.
15685 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
15686 (altivec_lvsr): New define_expand.
15687 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
15688 * rs6000.c (rs6000_expand_builtin): Change to use
15689 altivec_lvs[lr]_direct; remove commented-out code.
15691 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15693 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15694 Issue a warning message when vec_lvsl or vec_lvsr is used with a
15695 little endian target.
15697 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
15699 * tree-pretty-print.c (dump_location): Make it extern. Dump also
15701 * tree-pretty-print.h (dump_location): Declare.
15702 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
15703 (pp_gimple_stmt_1): Likewise.
15704 (dump_implicit_edges): Likewise.
15705 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
15709 2014-10-03 David Malcolm <dmalcolm@redhat.com>
15711 * gcc.c (driver::global_initializations): Remove "const" so
15712 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
15713 and decoded_options_count.
15715 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
15717 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
15719 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
15720 TARGET_E500_DOUBLE case here.
15722 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
15727 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
15729 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
15731 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
15732 * lto-cgraph.c (lto_output_edge, input_edge): Stream
15733 in_polymorphic_cdtor
15734 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
15735 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
15736 * cgraphclones.c (cgraph_edge::clone): Likewise.
15737 * ipa-prop.c (update_jump_functions_after_inlining,
15738 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
15739 to possible_dynamic_type_change.
15740 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
15741 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
15742 IN_POLY_CDOTR argument.
15744 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
15745 for BASE and OUTER_TYPE being NULL.
15746 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
15747 in_poly_cdtor parameter.
15749 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15751 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
15752 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
15754 (expand_vec_perm_1): Likewise.
15756 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15757 Uros Bizjak <ubizjak@gmail.com>
15759 PR tree-optimization/61403
15760 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
15761 error in comment. Also optimize 256-bit vectors for AVX2
15762 or AVX (floating vectors only), provided the first permutation
15763 can be performed in one insn.
15765 2014-10-03 David Malcolm <dmalcolm@redhat.com>
15767 * gcc.c (class driver): New class.
15768 (main): Reimplement in terms of driver::main, moving most of the
15769 locals to be locals within individual methods of class driver.
15770 The remaining locals "explicit_link_files", "decoded_options" and
15771 "decoded_options_count" are used by multiple driver:: methods, and
15772 so become member data. Doing so isolates the argc/argv reads and
15773 writes. Replace "goto out" with a special exit code from
15774 new method driver::prepare_infiles. Split out the old
15775 implementation of main into the following...
15776 (driver::main): New function, corresponding to the old "main"
15778 (driver::set_progname): New function, taken from the old
15779 "main" implementation.
15780 (driver::expand_at_files): Likewise.
15781 (driver::decode_argv): Likewise.
15782 (driver::global_initializations): Likewise.
15783 (driver::build_multilib_strings): Likewise.
15784 (driver::set_up_specs): Likewise.
15785 (driver::putenv_COLLECT_GCC): Likewise.
15786 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
15787 (driver::handle_unrecognized_options): Likewise.
15788 (driver::maybe_print_and_exit): Likewise.
15789 (driver::prepare_infiles): Likewise.
15790 (driver::do_spec_on_infiles): Likewise.
15791 (driver::maybe_run_linker): Likewise.
15792 (driver::final_actions): Likewise.
15793 (driver::get_exit_code): Likewise.
15795 2014-10-03 Yury Gribov <y.gribov@samsung.com>
15797 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
15798 don't emit empty ctors.
15800 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
15802 * convert.c (convert_to_integer): Do not introduce useless conversions
15803 between integral types.
15805 2014-10-03 David Sherwood <david.sherwood@arm.com>
15807 * ira-int.h (ira_allocno): Mark hard_regno as signed.
15809 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
15811 * lra-constraints.c (inherit_in_ebb): Handle calls with
15812 multiple return values.
15813 * caller-save.c (save_call_clobbered_regs): Likewise.
15815 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15817 * tree-vect-data-refs.c (vect_permute_load_chain,
15818 vect_shift_permute_load_chain): Fix a typo in temporary var names,
15819 suffle3 to shuffle3.
15822 * omp-low.c (taskreg_contexts): New variable.
15823 (scan_omp_parallel): Push newly created context into taskreg_contexts
15824 vector and move record layout code to finish_taskreg_scan.
15825 (scan_omp_task): Likewise.
15826 (finish_taskreg_scan): New function.
15827 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
15828 vector elements and release it.
15831 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
15832 of palignr arguments can't be used due to min 0 or max - min
15833 too high, try also op0, op1 order of palignr arguments.
15835 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
15837 * cgraph.h (ipa_polymorphic_call_context):
15838 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
15839 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
15840 * ipa-polymorphic-call.c
15841 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
15842 past end of dynamic types.
15843 (ipa_polymorphic_call_context::stream_out,
15844 speculative_outer_type): Stream dynamic flag.
15845 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
15846 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
15848 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
15850 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
15851 * ipa-prop.c (update_jump_functions_after_inlining,
15852 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
15854 2014-10-02 Teresa Johnson <tejohnson@google.com>
15856 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
15857 up when synthesizing counts to avoid rounding errors.
15859 2014-10-02 Teresa Johnson <tejohnson@google.com>
15861 PR middle-end/63422
15862 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
15863 asserts to handle incoming insanities.
15865 2014-10-02 Martin Jambor <mjambor@suse.cz>
15867 PR tree-optimization/63375
15868 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
15871 2014-10-02 Olivier Hainque <hainque@adacore.com>
15873 * Makefile.in (CROSS): Define, to @CROSS.
15875 2014-10-02 Jakub Jelinek <jakub@redhat.com>
15878 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
15879 if it expands to a single insn only.
15880 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
15881 fail unless in_order is true. Add forward declaration.
15882 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
15883 is useful for one_operand_p.
15884 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
15886 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
15888 * cgraphclones.c (build_function_type_skip_args): Do not make new
15889 type variant of old.
15891 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
15893 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
15894 when speculation is added.
15895 (ipa_edge_args): Add polymorphic_call_contexts.
15896 (ipa_get_ith_polymorhic_call_context): New accesor.
15897 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
15898 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
15899 (ipa_compute_jump_functions_for_edge): Compute contexts.
15900 (update_jump_functions_after_inlining): Update contexts.
15901 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
15902 update dumping; add speculative edge creation.
15903 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
15905 (update_indirect_edges_after_inlining): Pass down context.
15906 (ipa_edge_duplication_hook): Duplicate contexts.
15907 (ipa_write_node_info): Stream out contexts.
15908 (ipa_read_node_info): Stream in contexts.
15909 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
15911 (try_speculative_devirtualization): New function.
15912 * ipa-utils.h (try_speculative_devirtualization): Declare.
15914 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
15916 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
15917 dumping during WPA.
15919 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
15921 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
15924 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
15926 * ipa-polymorphic-call.c
15927 (ipa_polymorphic_call_context::restrict_to_inner_class):
15928 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
15929 use speculation_consistent_p to do so; Add CONSDER_BASES
15930 and CONSIDER_PLACEMENT_NEW parameters.
15931 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
15932 short circuit obvious cases.
15933 (ipa_polymorphic_call_context::dump): Improve formatting.
15934 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
15935 combine_speculation_with to record speculations; Do not ICE when
15936 object is located in pointer type decl; do not ICE for methods
15937 of UNION_TYPE; do not record nonpolymorphic types.
15938 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
15939 (ipa_polymorphic_call_context::combine_speculation_with): New method.
15940 (ipa_polymorphic_call_context::combine_with): New method.
15941 (ipa_polymorphic_call_context::make_speculative): Move here; use
15942 combine speculation.
15943 * cgraph.h (ipa_polymorphic_call_context): Update
15944 restrict_to_inner_class prototype; add offset_by, make_speculative,
15945 combine_with, useless_p, combine_speculation_with and
15946 speculation_consistent_p methods.
15947 (ipa_polymorphic_call_context::offset_by): New method.
15948 (ipa_polymorphic_call_context::useless_p): New method.
15950 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
15952 PR rtl-optimization/62151
15953 * combine.c (can_combine_p): Allow the destination register of INSN
15954 to be clobbered in I3.
15955 (subst): Do not substitute into clobbers of registers.
15957 2014-10-01 Jakub Jelinek <jakub@redhat.com>
15960 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
15961 offset, TARGET_MEM_REF and SSA_NAME.
15963 * config/i386/i386.c (expand_vec_perm_palignr): Handle
15964 256-bit vectors for TARGET_AVX2.
15966 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
15967 dfirst permutation.
15970 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
15971 argument to avx2_permv2ti.
15973 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15975 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
15977 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
15979 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
15980 (fmod<mode>3): Ditto.
15981 (fpremxf4_i387): Ditto.
15982 (reminderxf3): Ditto.
15983 (reminder<mode>3): Ditto.
15984 (fprem1xf4_i387): Ditto.
15986 2014-09-30 Teresa Johnson <tejohnson@google.com>
15988 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
15989 duplicate_blocks bitmap.
15990 (remove_ctrl_stmt_and_useless_edges): Ditto.
15991 (create_block_for_threading): Ditto.
15992 (compute_path_counts): New function.
15993 (update_profile): Ditto.
15994 (recompute_probabilities): Ditto.
15995 (update_joiner_offpath_counts): Ditto.
15996 (freqs_to_counts_path): Ditto.
15997 (clear_counts_path): Ditto.
15998 (ssa_fix_duplicate_block_edges): Update profile info.
15999 (ssa_create_duplicates): Pass new parameter.
16000 (ssa_redirect_edges): Remove old profile update.
16001 (thread_block_1): New duplicate_blocks bitmap,
16002 remove old profile update.
16003 (thread_single_edge): Pass new parameter.
16005 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
16007 PR middle-end/62120
16008 * varasm.c (decode_reg_name_and_count): Check availability for
16009 registers from ADDITIONAL_REGISTER_NAMES.
16011 2014-09-30 David Malcolm <dmalcolm@redhat.com>
16014 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
16015 (PLUGIN_HEADERS): Add pass-instances.def.
16017 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
16019 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
16021 * config/aarch64/aarch64-simd.md
16022 (aarch64_sqdmull_laneq<mode>): Expand iterator.
16023 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
16024 (vqdmulls_lane_s32): Fix return type.
16025 (vqdmulls_laneq_s32): New.
16027 2014-09-30 Jakub Jelinek <jakub@redhat.com>
16029 PR inline-asm/63282
16030 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
16031 or invert_jump_1 if jump isn't any_condjump_p.
16033 2014-09-30 Terry Guo <terry.guo@arm.com>
16035 * config/arm/arm-cores.def (cortex-m7): New core name.
16036 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
16038 * config/arm/arm-tables.opt: Regenerated.
16039 * config/arm/arm-tune.md: Regenerated.
16040 * config/arm/arm.h (TARGET_VFP5): New macro.
16041 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
16042 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
16043 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
16044 * doc/invoke.texi: Document new cpu and fpu names.
16046 2014-09-30 Jiong Wang <jiong.wang@arm.com>
16048 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
16049 before sinking insn.
16051 2014-09-30 David Sherwood <david.sherwood@arm.com>
16053 * ira-int.h (ira_allocno): Add "wmode" field.
16054 * ira-build.c (create_insn_allocnos): Add new "parent" function
16056 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
16057 that cannot be accessed in wmode.
16059 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
16061 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
16064 2014-09-29 Andi Kleen <ak@linux.intel.com>
16066 * opts.c (print_filtered_help): Print --param min/max/default
16069 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
16071 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
16073 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
16075 * tree-vrp.c (get_single_symbol): New function.
16076 (build_symbolic_expr): Likewise.
16077 (symbolic_range_based_on_p): New predicate.
16078 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
16079 for PLUS and MINUS. Do not drop symbolic ranges at the end.
16080 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
16081 operand is symbolic and based on the other operand.
16083 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
16085 * config/microblaze/microblaze.md (call_internal1): Use VOID
16086 instead of SI to fix "((void (*)(void)) 0)()" issue
16088 2014-09-29 Nick Clifton <nickc@redhat.com>
16090 * config/msp430/msp430.c (msp430_expand_prologue): Return a
16091 CLOBBER rtx for naked functions.
16092 (msp430_expand_epilogue): Likewise.
16093 (msp430_use_f5_series_hwmult): Cache result.
16094 (use_32bit_hwmult): Cache result.
16095 (msp430_no_hwmult): New function.
16096 (msp430_output_labelref): Use it.
16098 2014-09-29 Jakub Jelinek <jakub@redhat.com>
16100 PR middle-end/63247
16101 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
16102 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
16103 use the alignment of avar rather than ovar.
16105 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
16107 * config/pa/pa.c (pa_output_function_epilogue): Only update
16108 last_address when a nonnote insn is found.
16110 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
16113 * ipa-devirt.c (possible_polymorphic_call_targets): Silence
16116 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
16119 * ipa-polymorphic-call.c
16120 (ipa_polymorphic_call_context::restrict_to_inner_class): Fix pasto
16121 in checking array size.
16123 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
16125 PR middle-end/35545
16126 * passes.def (pass_tracer): Move before last dominator pass.
16128 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
16130 * gcc.c (try_generate_repro): Remove argument "prog". Change all
16132 (run_attempt): Handle errors of "pex_run" invocation.
16134 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
16136 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
16137 (CC1_SPEC): Define.
16138 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
16139 (TARGET_ASAN_SHADOW_OFFSET): Define.
16141 2014-09-26 Martin Liska <mliska@suse.cz>
16143 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
16145 * cgraph.h: Likewise.
16146 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new
16147 argument introduced.
16148 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos
16150 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function
16151 transformed to global.
16152 * tree-ssa-alias.h: Likewise.
16154 2014-09-26 Jakub Jelinek <jakub@redhat.com>
16155 Max Ostapenko <m.ostapenko@partner.samsung.com>
16157 * common.opt: New option.
16158 * doc/invoke.texi: Describe new option.
16159 * gcc.c (execute): Don't free first string early, but at the end
16160 of the function. Call retry_ice if compiler exited with
16162 (main): Factor out common code.
16163 (print_configuration): New function.
16164 (files_equal_p): Likewise.
16165 (check_repro): Likewise.
16166 (run_attempt): Likewise.
16167 (do_report_bug): Likewise.
16168 (append_text): Likewise.
16169 (try_generate_repro): Likewise
16171 2014-09-25 Andi Kleen <ak@linux.intel.com>
16173 * config/i386/i386.c (x86_print_call_or_nop): New function.
16174 (x86_function_profiler): Support -mnop-mcount and
16176 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
16177 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
16179 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
16181 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
16182 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
16183 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
16186 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
16188 * ipa-utils.h (subbinfo_with_vtable_at_offset,
16189 type_all_derivations_known_p, type_known_to_have_no_deriavations_p,
16190 types_must_be_same_for_odr, types_odr_comparable): Declare.
16191 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
16192 * ipa-polymorphic-call.c: New file.
16193 (contains_polymorphic_type_p, possible_placement_new,
16194 ipa_polymorphic_call_context::restrict_to_inner_class,
16195 contains_type_p, decl_maybe_in_construction_p,
16196 ipa_polymorphic_call_context::stream_out,
16197 ipa_polymorphic_call_context::debug,
16198 ipa_polymorphic_call_context::stream_in,
16199 ipa_polymorphic_call_context::set_by_decl,
16200 ipa_polymorphic_call_context::set_by_invariant,
16202 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16203 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
16204 extr_type_from_vtbl_ptr_store, record_known_type
16205 check_stmt_for_type_change,
16206 ipa_polymorphic_call_context::get_dynamic_type): Move here from
16208 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
16209 and streamer-hooks.h
16210 (contains_polymorphic_type_p, possible_placement_new,
16211 ipa_polymorphic_call_context::restrict_to_inner_class,
16212 contains_type_p, decl_maybe_in_construction_p,
16213 ipa_polymorphic_call_context::stream_out,
16214 ipa_polymorphic_call_context::debug,
16215 ipa_polymorphic_call_context::stream_in,
16216 ipa_polymorphic_call_context::set_by_decl,
16217 ipa_polymorphic_call_context::set_by_invariant,
16219 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16220 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
16221 extr_type_from_vtbl_ptr_store, record_known_type
16222 check_stmt_for_type_change,
16223 ipa_polymorphic_call_context::get_dynamic_type): Move to
16224 ipa-polymorphic-call.c
16225 (type_all_derivations_known_p, types_odr_comparable,
16226 types_must_be_same_for_odr): Export.
16227 (type_known_to_have_no_deriavations_p): New function.
16228 * Makefile.in: Add ipa-polymorphic-call.c
16230 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
16232 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
16233 for better storage.
16234 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
16235 (possible_polymorphic_call_targets): Instead of computing both
16236 speculative and non-speculative answers, do just one at a time.
16237 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
16238 (dump_targets): Break out from ...
16239 (dump_possible_polymorphic_call_targets): ... here; dump both
16240 speculative and non-speculative lists.
16241 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
16242 * ipa-utils.h (possible_polymorphic_call_targets): Update.
16244 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
16246 PR rtl-optimization/63348
16247 * emit-rtl.c (try_split): Do not emit extra barrier.
16249 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
16251 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
16252 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
16254 (aarch64_<sur>shll2_n<mode>): Likewise.
16255 (aarch64_<sur>shr_n<mode>): Likewise.
16256 (aarch64_<sur>sra_n<mode>: Likewise.
16257 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
16258 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
16259 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
16260 * config/aarch64/iterators.md (ve_mode): New.
16261 (offsetlr): Remap to infix text for use in new predicates.
16262 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
16263 (aarch64_simd_shift_imm_hi): Likewise.
16264 (aarch64_simd_shift_imm_si): Likewise.
16265 (aarch64_simd_shift_imm_di): Likewise.
16266 (aarch64_simd_shift_imm_offset_qi): Likewise.
16267 (aarch64_simd_shift_imm_offset_hi): Likewise.
16268 (aarch64_simd_shift_imm_offset_si): Likewise.
16269 (aarch64_simd_shift_imm_offset_di): Likewise.
16270 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
16271 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
16272 (aarch64_simd_shift_imm_bitsize_si): Likewise.
16273 (aarch64_simd_shift_imm_bitsize_di): Likewise.
16275 2014-09-25 Jiong Wang <jiong.wang@arm.com>
16277 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
16278 new created BB as the intersection of live-in from "old_dest" and
16279 live-out from "bb".
16281 2014-09-25 Felix Yang <felix.yang@huawei.com>
16283 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
16284 * genautomata.c (merge_states): Ditto.
16286 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
16289 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
16290 in instruction sequence.
16292 2014-09-25 Nick Clifton <nickc@redhat.com>
16295 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
16296 in instruction sequence.
16298 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16301 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
16302 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
16304 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16305 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16306 Anna Tikhonova <anna.tikhonova@intel.com>
16307 Ilya Tocar <ilya.tocar@intel.com>
16308 Andrey Turetskiy <andrey.turetskiy@intel.com>
16309 Ilya Verbin <ilya.verbin@intel.com>
16310 Kirill Yukhin <kirill.yukhin@intel.com>
16311 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16313 * config/i386/sse.md
16314 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
16315 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
16316 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
16317 (define_expand "<avx512>_perm<mode>_mask"): ... this.
16318 Use VI8F_256_512 mode iterator.
16319 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
16320 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
16322 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16323 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16324 Anna Tikhonova <anna.tikhonova@intel.com>
16325 Ilya Tocar <ilya.tocar@intel.com>
16326 Andrey Turetskiy <andrey.turetskiy@intel.com>
16327 Ilya Verbin <ilya.verbin@intel.com>
16328 Kirill Yukhin <kirill.yukhin@intel.com>
16329 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16331 * config/i386/sse.md
16332 (define_insn "avx_movshdup256<mask_name>"): Add masking.
16333 (define_insn "sse3_movshdup<mask_name>"): Ditto.
16334 (define_insn "avx_movsldup256<mask_name>"): Ditto.
16335 (define_insn "sse3_movsldup<mask_name>"): Ditto.
16336 (define_insn "vec_dupv2df<mask_name>"): Ditto.
16337 (define_insn "*vec_concatv2df"): Add EVEX version.
16339 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16340 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16341 Anna Tikhonova <anna.tikhonova@intel.com>
16342 Ilya Tocar <ilya.tocar@intel.com>
16343 Andrey Turetskiy <andrey.turetskiy@intel.com>
16344 Ilya Verbin <ilya.verbin@intel.com>
16345 Kirill Yukhin <kirill.yukhin@intel.com>
16346 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16348 * config/i386/sse.md
16349 (define_insn "vec_set<mode>_0"): Add EVEX version.
16351 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16352 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16353 Anna Tikhonova <anna.tikhonova@intel.com>
16354 Ilya Tocar <ilya.tocar@intel.com>
16355 Andrey Turetskiy <andrey.turetskiy@intel.com>
16356 Ilya Verbin <ilya.verbin@intel.com>
16357 Kirill Yukhin <kirill.yukhin@intel.com>
16358 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16360 * config/i386/sse.md
16362 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
16364 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
16365 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
16366 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
16367 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
16368 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
16369 (define_expand "sse2_cvtpd2ps_mask): New.
16370 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
16371 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
16373 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16374 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16375 Anna Tikhonova <anna.tikhonova@intel.com>
16376 Ilya Tocar <ilya.tocar@intel.com>
16377 Andrey Turetskiy <andrey.turetskiy@intel.com>
16378 Ilya Verbin <ilya.verbin@intel.com>
16379 Kirill Yukhin <kirill.yukhin@intel.com>
16380 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16382 * config/i386/i386.c
16383 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
16384 (ufix_notruncv8dfv8si2_mask_round): ... this.
16385 * config/i386/sse.md
16386 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
16387 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
16388 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
16389 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
16390 (define_expand "sse2_cvtpd2dq"): Delete.
16391 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
16392 make 2nd operand const0 vector.
16393 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
16395 (define_mode_attr pd2udqsuff): New.
16397 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
16398 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
16399 (define_insn "*avx_cvttpd2dq256_2"): Delete.
16400 (define_expand "sse2_cvttpd2dq"): Ditto.
16401 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
16402 make 2nd operand const0 vector.
16404 2014-09-25 Jakub Jelinek <jakub@redhat.com>
16406 PR tree-optimization/63341
16407 * tree-vectorizer.h (vect_create_data_ref_ptr,
16408 vect_create_addr_base_for_vector_ref): Add another tree argument
16409 defaulting to NULL_TREE.
16410 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
16411 argument, pass it down to vect_create_addr_base_for_vector_ref.
16412 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
16413 add that to base_offset too if non-NULL.
16414 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
16415 for dr_explicit_realign_optimized set it to vector byte size
16416 - 1 instead of setting offset, pass byte_offset down to
16417 vect_create_data_ref_ptr.
16419 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
16421 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
16422 forgotten debug output; canonicalize querries more wtih LTO.
16424 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
16426 * cgraph.h (class ipa_polymorphic_call_context): Move here from
16427 ipa-utils.h; add stream_int and stream_out methods.
16428 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
16429 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
16430 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
16432 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16433 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16434 ipa_polymorphic_call_context::clear_speculation,
16435 ipa_polymorphic_call_context::clear_outer_type): Move here from
16437 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
16438 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16439 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16440 ipa_polymorphic_call_context::clear_speculation,
16441 ipa_polymorphic_call_context::clear_outer_type): Likewise.
16442 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
16444 (ipa_polymorphic_call_context::stream_out): New method.
16445 (ipa_polymorphic_call_context::stream_in): New method.
16446 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
16447 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
16449 (ipa_analyze_call_uses): Simplify.
16450 (update_indirect_edges_after_inlining): Do not care about outer_type.
16451 (ipa_write_indirect_edge_info): Update.
16452 (ipa_write_indirect_edge_info): Likewise.
16453 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
16454 (dump_edge_flags): Break out from ...
16455 (cgraph_node::dump): ... here; dump indirect edges.
16457 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
16459 * ipa-utils.h (polymorphic_call_context): Add
16460 metdhos dump, debug and clear_outer_type.
16461 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
16462 (ipa_polymorphic_call_context::clear_outer_type): New method.
16463 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
16464 * ipa-devirt.c (types_odr_comparable): New function.
16465 (types_must_be_same_for_odr): New function.
16466 (odr_subtypes_equivalent_p): Simplify.
16467 (possible_placement_new): Break out from ...
16468 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
16469 be more cuatious about returning false in cases the context may be
16470 valid in derived type or via placement new.
16471 (contains_type_p): Clear maybe_derived_type
16472 (ipa_polymorphic_call_context::dump): New method.
16473 (ipa_polymorphic_call_context::debug): New method.
16474 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
16475 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
16476 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
16477 (possible_polymorphic_call_targets): Trust
16478 context.restrict_to_inner_class to suceed on all valid cases;
16479 remove confused sanity check.
16480 (dump_possible_polymorphic_call_targets): Simplify.
16482 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
16484 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
16485 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
16486 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
16487 varpool.c: Rename all instances of DECL_ABSTRACT to
16490 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16492 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
16493 special handling for stores whose SET_SRC is an UNSPEC (such as
16496 2014-09-24 Jiong Wang <jiong.wang@arm.com>
16498 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
16499 !REG_P (src) to release more instruction sink opportunities.
16501 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
16503 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
16504 move costs for 128-bit types.
16506 2014-09-24 Martin Jambor <mjambor@suse.cz>
16508 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
16509 when duplicating a PASS_THROUGH jump function when creating a
16512 2014-09-24 Marek Polacek <polacek@redhat.com>
16516 * asan.c (maybe_instrument_call): Add default case.
16517 * ipa-pure-const.c (special_builtin_state): Likewise.
16518 * predict.c (expr_expected_value_1): Likewise.
16519 * lto-streamer-out.c (write_symbol): Initialize variable.
16521 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16523 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
16525 (vmuld_laneq_f64): Likewise.
16526 (vmuls_lane_f32): Likewise.
16527 (vmuls_laneq_f32): Likewise.
16529 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
16532 * varpool.c (varpool_node::add): Pass decl attributes
16533 to lookup_attribute.
16535 2014-09-24 Jakub Jelinek <jakub@redhat.com>
16538 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
16540 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
16542 PR tree-optimization/63266
16543 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
16544 marker for unknown byte value.
16545 (MARKER_MASK): New macro.
16546 (MARKER_BYTE_UNKNOWN): New macro.
16547 (HEAD_MARKER): New macro.
16548 (do_shift_rotate): Mark bytes with unknown values due to sign
16549 extension when doing an arithmetic right shift. Replace hardcoded
16550 mask for marker by new MARKER_MASK macro.
16551 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
16552 numbers accordingly.
16554 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16555 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16556 Anna Tikhonova <anna.tikhonova@intel.com>
16557 Ilya Tocar <ilya.tocar@intel.com>
16558 Andrey Turetskiy <andrey.turetskiy@intel.com>
16559 Ilya Verbin <ilya.verbin@intel.com>
16560 Kirill Yukhin <kirill.yukhin@intel.com>
16561 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16563 * config/i386/sse.md
16565 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
16567 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
16568 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
16570 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16571 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16572 Anna Tikhonova <anna.tikhonova@intel.com>
16573 Ilya Tocar <ilya.tocar@intel.com>
16574 Andrey Turetskiy <andrey.turetskiy@intel.com>
16575 Ilya Verbin <ilya.verbin@intel.com>
16576 Kirill Yukhin <kirill.yukhin@intel.com>
16577 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16579 * config/i386/sse.md
16580 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
16581 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
16582 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
16583 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
16584 (define_expand "avx512vl_pshuflw_mask"): New.
16585 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
16586 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
16587 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
16588 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
16589 (define_expand "avx512vl_pshufhw_mask"): New.
16590 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
16592 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16593 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16594 Anna Tikhonova <anna.tikhonova@intel.com>
16595 Ilya Tocar <ilya.tocar@intel.com>
16596 Andrey Turetskiy <andrey.turetskiy@intel.com>
16597 Ilya Verbin <ilya.verbin@intel.com>
16598 Kirill Yukhin <kirill.yukhin@intel.com>
16599 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16601 * config/i386/i386.c
16602 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
16603 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
16604 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
16605 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
16606 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
16607 * config/i386/sse.md
16608 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
16610 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
16611 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
16613 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
16614 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
16615 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
16616 (define_expand "avx512vl_pshufd_mask"): New.
16617 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
16619 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16620 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16621 Anna Tikhonova <anna.tikhonova@intel.com>
16622 Ilya Tocar <ilya.tocar@intel.com>
16623 Andrey Turetskiy <andrey.turetskiy@intel.com>
16624 Ilya Verbin <ilya.verbin@intel.com>
16625 Kirill Yukhin <kirill.yukhin@intel.com>
16626 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16628 * config/i386/i386.c
16629 (CODE_FOR_avx2_extracti128): Rename to ...
16630 (CODE_FOR_avx_vextractf128v4di): this.
16631 (CODE_FOR_avx2_inserti128): Rename to ...
16632 (CODE_FOR_avx_vinsertf128v4di): this.
16633 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
16634 CODE_FOR_avx_vextractf128v4di.
16635 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
16636 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
16637 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
16638 CODE_FOR_avx512vl_vinsertv8si.
16639 * config/i386/sse.md
16641 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
16642 AVX512_VEC mode iterator.
16644 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
16647 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
16648 AVX512_VEC_2 mode iterator.
16649 (define_insn "vec_set_lo_<mode><mask_name>"): New.
16650 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16651 (define_expand "avx512vl_vinsert<mode>"): Ditto.
16652 (define_insn "avx2_vec_set_lo_v4di"): Delete.
16653 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
16654 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
16655 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16656 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
16657 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16658 (define_expand "avx2_extracti128"): Delete.
16659 (define_expand "avx2_inserti128"): Ditto.
16661 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16662 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16663 Anna Tikhonova <anna.tikhonova@intel.com>
16664 Ilya Tocar <ilya.tocar@intel.com>
16665 Andrey Turetskiy <andrey.turetskiy@intel.com>
16666 Ilya Verbin <ilya.verbin@intel.com>
16667 Kirill Yukhin <kirill.yukhin@intel.com>
16668 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16670 * config/i386/sse.md
16671 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
16672 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
16673 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
16674 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
16675 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
16676 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
16677 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
16678 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
16679 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
16680 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
16681 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
16682 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
16683 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
16685 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
16687 PR rtl-optimization/63210
16688 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
16689 HARD_REGNO is not available for CONFLICT_A.
16691 2014-09-23 Andi Kleen <ak@linux.intel.com>
16693 * cgraph.h (symtab_node): Add no_reorder attribute.
16694 (symbol_table::output_asm_statements): Remove.
16695 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
16696 (cgraph_node::create_version_clone): Dito.
16697 (symbol_table::output_asm_statements): Remove.
16698 * trans-mem.c (ipa_tm_create_version_alias): Dito.
16699 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
16700 (output_in_order): Add no_reorder flag. Only handle no_reorder
16702 (symbol_table::compile): Add separate pass for no_reorder nodes.
16703 (process_common_attributes): Set no_reorder flag in symtab node.
16705 (process_function_and_variable_attributes): Pass symtab nodes to
16706 process_common_attributes.
16707 * doc/extend.texi (no_reorder): Document no_reorder attribute.
16708 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
16709 (lto_output_varpool_node): Dito.
16710 (input_overwrite_node): Dito.
16711 (input_varpool_node): Dito.
16712 * varpool.c (varpool_node::add): Set no_reorder attribute.
16713 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
16714 (symbol_table::output_variables): Dito.
16715 * symtab.c (symtab_node::dump_base): Print no_reorder.
16717 2014-09-23 Jiong Wang <jiong.wang@arm.com>
16719 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM
16720 not be INVALID_REGNUM.
16722 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
16724 * configure: Regenerate.
16726 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
16728 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
16729 when result_mode == shift_mode.
16731 2014-09-23 Kostya Serebryany <kcc@google.com>
16733 Update to match the changed asan API.
16734 * asan.c (asan_global_struct): Update the __asan_global definition
16735 to match the new API.
16736 (asan_add_global): Ditto.
16737 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
16740 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16742 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
16743 refine the constraints used on 32/64-bit floating point moves.
16744 (f32_av): Likewise.
16745 (f64_vsx): Likewise.
16746 (f64_dm): Likewise.
16747 (f64_av): Likewise.
16748 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
16749 (BOOL_REGS_OP1): Likewise.
16750 (BOOL_REGS_OP2): Likewise.
16751 (BOOL_REGS_UNARY): Likewise.
16752 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
16753 32/64-bit floating point moves. Do not use wa, instead use ww/ws
16754 for moves involving VSX registers. Do not use constraints that
16755 target VSX registers for decimal types.
16756 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
16757 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
16759 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
16761 * tree.h (int_bit_position): Turn into inline function;
16762 implement using wide int.
16763 * tree.c (int_bit_position): Remove.
16765 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
16768 * target-globals.c (target_globals::~target_globals): Fix location
16769 of ira_int destruction.
16771 2014-09-23 Renlin Li <renlin.li@arm.com>
16773 * config/aarch64/aarch64.md (return): New.
16774 (simple_return): Likewise.
16775 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
16776 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
16778 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
16780 * common/config/aarch64/aarch64-common.c:
16781 (default_options aarch_option_optimization_table):
16782 Default to -fsched-pressure.
16784 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
16786 * cfgcleanup.c (try_optimize_cfg): Do not remove label
16787 with LABEL_PRESERVE_P flag set.
16789 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16790 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16791 Anna Tikhonova <anna.tikhonova@intel.com>
16792 Ilya Tocar <ilya.tocar@intel.com>
16793 Andrey Turetskiy <andrey.turetskiy@intel.com>
16794 Ilya Verbin <ilya.verbin@intel.com>
16795 Kirill Yukhin <kirill.yukhin@intel.com>
16796 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16798 * config/i386/sse.md
16799 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
16800 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
16801 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
16802 (define_insn "sse2_shufpd_v2df_mask"): New.
16804 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16805 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16806 Anna Tikhonova <anna.tikhonova@intel.com>
16807 Ilya Tocar <ilya.tocar@intel.com>
16808 Andrey Turetskiy <andrey.turetskiy@intel.com>
16809 Ilya Verbin <ilya.verbin@intel.com>
16810 Kirill Yukhin <kirill.yukhin@intel.com>
16811 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16813 * config/i386/sse.md
16814 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
16815 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
16816 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
16817 (define_insn "sse_shufps_v4sf_mask"): New.
16819 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16820 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16821 Anna Tikhonova <anna.tikhonova@intel.com>
16822 Ilya Tocar <ilya.tocar@intel.com>
16823 Andrey Turetskiy <andrey.turetskiy@intel.com>
16824 Ilya Verbin <ilya.verbin@intel.com>
16825 Kirill Yukhin <kirill.yukhin@intel.com>
16826 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16828 * config/i386/sse.md
16829 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
16830 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
16831 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
16832 (define_insn "unpcklps128_mask"): New.
16834 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16835 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16836 Anna Tikhonova <anna.tikhonova@intel.com>
16837 Ilya Tocar <ilya.tocar@intel.com>
16838 Andrey Turetskiy <andrey.turetskiy@intel.com>
16839 Ilya Verbin <ilya.verbin@intel.com>
16840 Kirill Yukhin <kirill.yukhin@intel.com>
16841 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16843 * config/i386/sse.md
16844 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
16845 (define_insn "avx512vl_unpckhpd128_mask"): New.
16846 (define_expand "avx_movddup256<mask_name>"): Add masking.
16847 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
16848 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
16849 (define_insn "avx512vl_unpcklpd128_mask"): New.
16851 2014-09-22 Joseph Myers <joseph@codesourcery.com>
16853 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16854 * doc/tm.texi: Regenerate.
16855 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
16856 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16857 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
16859 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16860 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16861 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16862 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16863 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
16865 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16866 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16867 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16868 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16869 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16870 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16871 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16872 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16873 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16874 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16875 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
16878 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
16880 * tree-ssa-ccp.c (prop_value_d): Rename to ...
16881 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
16882 * ipa-prop.c (struct type_change_info): Rename to ...
16883 (prop_type_change_info): ... this; update uses.
16884 * ggc-page.c (globals): Rename to ...
16885 (static struct ggc_globals): ... this; update uses.
16886 * tree-ssa-loop-im.c (mem_ref): Rename to ...
16887 (im_mem_ref): ... this; update uses.
16888 * ggc-common.c (loc_descriptor): Rename to ...
16889 (ggc_loc_descriptor): ... this; update uses.
16890 * lra-eliminations.c (elim_table): Rename to ...
16891 (lra_elim_table): ... this; update uses.
16892 * bitmap.c (output_info): Rename to ...
16893 (bitmap_output_info): ... this; update uses.
16894 * gcse.c (expr): Rename to ...
16895 (gcse_expr) ... this; update uses.
16896 (occr): Rename to ...
16897 (gcse_occr): .. this; update uses.
16898 * tree-ssa-copy.c (prop_value_d): Rename to ...
16899 (prop_value_t): ... this.
16900 * predict.c (block_info_def): Rename to ...
16901 (block_info): ... this; update uses.
16902 (edge_info_def): Rename to ...
16903 (edge_info): ... this; update uses.
16904 * profile.c (bb_info): Rename to ...
16905 (bb_profile_info): ... this; update uses.
16906 * alloc-pool.c (output_info): Rename to ...
16907 (pool_output_info): ... this; update uses.
16908 * ipa-cp.c (topo_info): Rename to ..
16909 (ipa_topo_info): ... this; update uses.
16910 * tree-nrv.c (nrv_data): Rename to ...
16911 (nrv_data_t): ... this; update uses.
16912 * ipa-split.c (bb_info): Rename to ...
16913 (split_bb_info): ... this one.
16914 * profile.h (edge_info): Rename to ...
16915 (edge_profile_info): ... this one; update uses.
16916 * dse.c (bb_info): Rename to ...
16917 (dse_bb_info): ... this one; update uses.
16918 * cprop.c (occr): Rename to ...
16919 (cprop_occr): ... this one; update uses.
16920 (expr): Rename to ...
16921 (cprop_expr): ... this one; update uses.
16923 2014-09-22 Jason Merrill <jason@redhat.com>
16925 * Makefile.in (check-parallel-%): Add @.
16927 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
16929 * config/aarch64/geniterators.sh: New.
16930 * config/aarch64/iterators.md (VDQF_DF): New.
16931 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
16932 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
16934 2014-09-22 Peter A. Bigot <pab@pabigot.com>
16936 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
16937 -lnosys when -msim absent.
16939 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
16941 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
16943 2014-09-22 Richard Biener <rguenther@suse.de>
16945 * gimplify.c (gimplify_init_constructor): Do not leave
16946 non-GIMPLE vector constructors around.
16947 * tree-cfg.c (verify_gimple_assign_single): Verify that
16948 CONSTRUCTORs have gimple elements.
16950 2014-09-22 Jakub Jelinek <jakub@redhat.com>
16953 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
16954 insert a debug source bind stmt setting DEBUG_EXPR_DECL
16955 instead of a normal gimple assignment stmt.
16957 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
16959 * config/bfin/bfin.md: Fix use of constraints in define_split.
16961 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
16963 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
16964 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
16966 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
16968 * hard-reg-set.h: Include hash-table.h.
16969 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
16971 * target-globals.c (target_globals::~target_globals): Call
16972 hard_regs->finalize.
16973 * rtl.h (subreg_shape): New structure.
16974 (shape_of_subreg): New function.
16975 (simplifiable_subregs): Declare.
16976 * reginfo.c (simplifiable_subreg): New structure.
16977 (simplifiable_subregs_hasher): Likewise.
16978 (simplifiable_subregs): New function.
16979 (invalid_mode_changes): Delete.
16980 (alid_mode_changes, valid_mode_changes_obstack): New variables.
16981 (record_subregs_of_mode): Remove subregs_of_mode parameter.
16982 Record valid mode changes in valid_mode_changes.
16983 (find_subregs_of_mode): Remove subregs_of_mode parameter.
16984 Update calls to record_subregs_of_mode.
16985 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
16986 handling. Initialize new variables. Update call to
16987 find_subregs_of_mode.
16988 (invalid_mode_change_p): Check new variables instead of
16989 invalid_mode_changes.
16990 (finish_subregs_of_mode): Finalize new variables instead of
16991 invalid_mode_changes.
16992 (target_hard_regs::finalize): New function.
16993 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
16994 even when CLASS_CANNOT_CHANGE_MODE is undefined.
16996 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
16998 * combine.c (subst): Use simplify_subreg_regno rather than
16999 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
17001 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17003 * rtl.h (subreg_info): Expand commentary
17004 * rtlanal.c (subreg_get_info): Likewise.
17006 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17008 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
17009 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
17010 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
17012 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
17014 * config/arm/arm.c: #include "tm-constrs.h"
17015 (thumb1_size_rtx_costs): Adjust rtx costs.
17017 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
17019 * configure.ac (target_header_dir): Move block defining
17020 this to before the block setting inhibit_libc.
17021 (inhibit_libc): When considering $with_headers, just
17022 check it it's explicitly "no". If not, also check if
17023 $target_header_dir/stdio.h is present. If not, set
17025 * configure: Regenerate.
17027 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
17029 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
17031 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17033 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
17034 insn for divides by integer powers of two.
17035 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
17036 (mod<mode>3): Fix formatting.
17037 (three anonymous define_insn and two define_split): Delete.
17039 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17041 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
17042 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
17043 (floatdisf2_internal2): Ditto.
17044 (ashrdi3_no_power): Ditto. Fix formatting.
17046 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17048 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
17049 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
17052 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17054 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
17055 constant, use addsi3 directly.
17056 (three anonymous define_insn, two define_split): Delete.
17057 (sub<mode>3): Move. Do not allow constant second operand.
17058 Generate different insn for constant first operand.
17059 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
17060 (subf<mode>3_imm): New.
17061 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
17062 (*plus_ltu<mode>): Only handle registers.
17063 (*plus_ltu<mode>_1): New. Handle integer third operand.
17064 (*plus_gtu<mode>): Only handle registers.
17065 (*plus_gtu<mode>_1): New. Handle integer third operand.
17067 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17069 * config/rs6000/rs6000.md (iorxor): New code_iterator.
17070 (iorxor): New code_attr.
17071 (IORXOR): New code_attr.
17072 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
17073 (ior<mode>3, xor<mode>3): Delete.
17074 (<iorxor><mode>3): New.
17075 (splitter for "big" integer ior, xor): New.
17076 (*bool<mode>3): Move. Also handle AND.
17077 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
17078 (splitter for "big" integer ior, xor): Delete.
17080 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17082 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
17083 (two anonymous define_insn and two define_split): Delete.
17084 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
17086 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17088 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
17089 (two anonymous define_insn and two define_split): Delete.
17090 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
17092 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17094 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
17096 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17098 * config/rs6000/predicates.md (ca_operand): Allow subregs.
17099 (input_operand): Do not allow ca_operand.
17100 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
17101 carry bit, allow SImode and Pmode.
17102 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
17104 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
17106 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
17107 clobbered registers using clobber_reg. Remove UNSPEC decoration.
17108 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
17109 (*call_rex64_ms_sysv): Remove.
17110 (*call_value_rex64_ms_sysv): Ditto.
17111 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
17113 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
17115 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
17116 operand 3 to "CnL".
17118 2014-09-20 Andreas Schwab <schwab@suse.de>
17120 * config/ia64/ia64.md: Remove constraints from define_split
17123 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17125 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class;
17127 (possible_polymorphic_call_targets,
17128 dump_possible_polymorphic_call_targets,
17129 possible_polymorphic_call_target_p,
17130 possible_polymorphic_call_target_p): Simplify.
17131 (get_dynamic_type): Remove.
17132 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
17133 (clear_speculation): Bring to ipa-deivrt.h
17134 (get_class_context): Rename to ...
17135 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
17136 (contains_type_p): Update.
17137 (get_dynamic_type): Rename to ...
17138 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
17139 (possible_polymorphic_call_targets): UPdate.
17140 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
17141 * ipa-prop.c (ipa_analyze_call_uses): Update.
17143 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17145 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
17146 privatize dynamic TLS variables.
17148 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17150 * diagnostic.c (warning_n): New function.
17151 * diagnostic-core.h (warning_n): Declare.
17152 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
17153 output dynamic counts when available.
17155 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17157 PR tree-optimization/63255
17158 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
17159 issue in setting body_removed flag.
17161 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17164 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
17165 that visibility change is possible
17166 (handle_weakref_attribute): Likewise.
17167 * cgraph.h (symtab_node): Add method get_create and
17168 field refuse_visibility_changes.
17169 (symtab_node::get_create): New method.
17170 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
17171 * varasm.c (mark_weak): Verify that visibility change is possible.
17173 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
17175 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
17176 for base_reg_operand to be common between LO_SUM and PLUS.
17177 (fusion_gpr_mem_combo): New predicate to match a fused address
17178 that combines the addis and memory offset address.
17180 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
17182 (emit_fusion_gpr_load): Likewise.
17184 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
17185 signature to pass each argument separately, rather than
17186 using an operands array. Rewrite the insns found by peephole2 to
17187 be a single insn, rather than hoping the insns will still be
17188 together when the peephole pass is done. Drop being called via a
17190 (emit_fusion_gpr_load): Change calling signature to be called from
17191 the fusion_gpr_load_<mode> insns with a combined memory address
17192 instead of the peephole pass passing the addis and offset
17195 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
17197 (power8 fusion peephole): Drop support for doing power8 via a
17198 normal peephole that was created by the peephole2 pass.
17199 (power8 fusion peephole2): Create a new insn with the fused
17200 address, so that the fused operation is kept together after
17201 register allocation is done.
17202 (fusion_gpr_load_<mode>): Likewise.
17204 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17207 * tree.c (need_assembler_name_p): Do not mangle variadic types.
17209 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
17211 * recog.c (scratch_operand): Do not simply allow all hard registers:
17212 only allow those that are allocatable.
17214 2014-09-19 Felix Yang <felix.yang@huawei.com>
17216 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
17217 comments and fix spacing to conform to coding style.
17219 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17221 * genrecog.c (validate_pattern): Allow empty constraints in
17224 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
17226 * dwarf2out.c (decl_ultimate_origin): Update comment.
17227 * tree.c (block_ultimate_origin): Same.
17229 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17231 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
17232 Update GCC version name to GCC 5.
17233 (rs6000_function_arg_boundary): Likewise.
17234 (rs6000_function_arg): Likewise.
17236 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17238 * config/sh/sh.md: Fix use of constraints in define_split.
17240 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
17243 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
17245 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17247 * doc/md.texi (Modifiers): Consistently use "read/write"
17248 nomenclature rather than "input/output".
17249 * genrecog.c (constraints_supported_in_insn_p): New.
17250 (validate_pattern): If needed, also check constraints on
17251 MATCH_SCRATCH operands.
17252 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
17253 operands with no '=' or '+' modifier.
17255 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17257 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
17258 scratch register as written.
17260 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17262 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
17265 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17267 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
17270 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17273 * config/s390/s390.c (s390_emit_epilogue): When doing the return
17274 address load optimization force s390_optimize_prologue to leave it
17275 that way. Only do the optimization if we already decided to push
17276 r14 into a stack slot.
17278 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
17280 * asan.c (build_check_stmt): Alignment arg was added.
17281 (asan_expand_check_ifn): Optimization for alignment >= 8.
17283 2014-09-19 Olivier Hainque <hainque@adacore.com>
17285 * config/i386/vxworksae.h: Remove obsolete definitions.
17286 (STACK_CHECK_PROTECT): Define.
17287 * config/i386/vx-common.h: Remove. Merge contents within
17288 config/i386/vxworks.h.
17289 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
17292 2014-09-19 Olivier Hainque <hainque@adacore.com>
17294 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
17295 * config/rs6000/t-vxworksmils: New file.
17296 * config/rs6000/vxworksmils.h: New file.
17298 2014-09-19 Olivier Hainque <hainque@adacore.com>
17300 * varasm.c (default_section_type_flags): Flag .persistent.bss
17301 sections as SECTION_BSS.
17303 2014-09-19 Nick Clifton <nickc@redhat.com>
17305 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
17306 pop'ed registers so that DCE does not eliminate them.
17308 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
17311 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
17313 2014-09-18 Joseph Myers <joseph@codesourcery.com>
17315 * system.h (LIBGCC2_TF_CEXT): Poison.
17316 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
17317 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
17318 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
17319 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
17320 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
17321 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
17322 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
17323 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
17324 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
17326 2014-09-19 Kito Cheng <kito@0xlab.org>
17328 * except.h: Fix header guard.
17329 * addresses.h: Add missing header guard.
17330 * cfghooks.h: Likewise.
17331 * collect-utils.h: Likewise.
17332 * collect2-aix.h: Likewise.
17333 * conditions.h: Likewise.
17334 * cselib.h: Likewise.
17335 * dwarf2asm.h: Likewise.
17336 * graphds.h: Likewise.
17337 * graphite-scop-detection.h: Likewise.
17338 * gsyms.h: Likewise.
17339 * hw-doloop.h: Likewise.
17340 * incpath.h: Likewise.
17341 * ipa-inline.h: Likewise.
17342 * ipa-ref.h: Likewise.
17343 * ira-int.h: Likewise.
17345 * lra-int.h: Likewise.
17347 * lto-section-names.h: Likewise.
17348 * read-md.h: Likewise.
17349 * reload.h: Likewise.
17350 * rtl-error.h: Likewise.
17351 * sdbout.h: Likewise.
17352 * targhooks.h: Likewise.
17353 * tree-affine.h: Likewise.
17354 * xcoff.h: Likewise.
17355 * xcoffout.h: Likewise.
17357 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
17360 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
17363 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
17366 * lra.c (lra): Call recog_init.
17368 2014-09-18 Jakub Jelinek <jakub@redhat.com>
17371 * asan.c (transform_statements): Don't instrument clobber statements.
17373 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17375 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
17376 to neon_load1_1reg<q>.
17378 2014-09-17 Jakub Jelinek <jakub@redhat.com>
17381 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
17382 if there are only debug stmts after the noreturn call, instead
17383 remove the debug stmts.
17385 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
17387 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
17388 (odr_types_equivalent_p): Use pair hash.
17389 (odr_subtypes_equivalent_p): Likewise, do structural compare
17390 on ODR types that may be mismatched.
17391 (warn_odr): Support warning when only one field is given.
17392 (odr_types_equivalent_p): Strenghten comparsions made;
17394 (add_type_duplicate): Update VISITED hash set.
17396 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
17398 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
17399 Enable selection of 'posix' or no thread model.
17401 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
17403 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
17404 when architecture is older than ARMv7.
17406 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
17409 * config/pa/pa.c (pa_function_value): Directly handle aggregates
17410 that fit exactly in a word or double word.
17412 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
17414 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
17415 zmm/k regs support.
17417 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
17418 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17419 Anna Tikhonova <anna.tikhonova@intel.com>
17420 Ilya Tocar <ilya.tocar@intel.com>
17421 Andrey Turetskiy <andrey.turetskiy@intel.com>
17422 Ilya Verbin <ilya.verbin@intel.com>
17423 Kirill Yukhin <kirill.yukhin@intel.com>
17424 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17426 * config/i386/i386.c
17427 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
17428 * config/i386/sse.md
17429 (define_mode_iterator VI48F_256): New.
17430 (define_mode_attr extract_type): Ditto.
17431 (define_mode_attr extract_suf): Ditto.
17432 (define_mode_iterator AVX512_VEC): Ditto.
17434 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
17436 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
17438 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
17440 (define_mode_attr extract_type_2): Ditto.
17441 (define_mode_attr extract_suf_2): Ditto.
17442 (define_mode_iterator AVX512_VEC_2): Ditto.
17444 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
17445 AVX512_VEC_2 mode iterator.
17446 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
17447 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
17448 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
17449 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
17450 (define_split for V16FI mode): Ditto.
17451 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
17452 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
17453 (define_split for VI8F_256 mode): Ditto.
17454 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
17455 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
17456 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
17457 (define_split for VI4F_256 mode): Ditto.
17458 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
17459 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
17460 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
17461 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
17462 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
17463 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
17464 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
17465 Update `type' attribute, remove explicit `memory' attribute calculation.
17467 2014-09-16 Kito Cheng <kito@0xlab.org>
17469 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
17470 ira_spilled_reg_stack_slots_num if using lra.
17471 (do_reload): Remove release ira_spilled_reg_stack_slots part.
17472 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
17473 make sure not using lra.
17474 (ira_reuse_stack_slot): Likewise.
17475 (ira_mark_new_stack_slot): Likewise.
17477 2014-09-15 Andi Kleen <ak@linux.intel.com>
17479 * function.c (allocate_struct_function): Force
17480 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
17481 profiling is disabled.
17483 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
17485 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
17486 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
17487 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
17488 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
17489 macro with statically checked member functions.
17490 * rtl.h (rtx_insn::deleted): New method.
17491 (rtx_insn::set_deleted): Likewise.
17492 (rtx_insn::set_undeleted): Likewise.
17493 (INSN_DELETED_P): Remove.
17495 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
17497 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
17498 result of emit_jump_insn_before to a new variable.
17499 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
17500 (mark_jump_label_1): Likewise.
17501 (mark_jump_label_asm): Likewise.
17502 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
17503 * rtl.h (mark_jump_label): Adjust.
17505 2014-09-15 Jakub Jelinek <jakub@redhat.com>
17507 * Makefile.in (dg_target_exps): Remove.
17508 (check_gcc_parallelize): Change to just an upper bound number.
17509 (check-%-subtargets): Always print the non-parallelized goals.
17510 (check_p_vars, check_p_comma, check_p_subwork): Remove.
17511 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
17512 check_p_numbers3, check_p_numbers4, check_p_numbers5,
17513 check_p_numbers6): New variables.
17514 (check_p_numbers): Set to sequence from 1 to 9999.
17515 (check_p_subdirs): Set to sequence from 1 to minimum of
17516 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
17518 (check-%, check-parallel-%): Rewritten so that for parallelized
17519 testing each job runs all the *.exp files, with
17520 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
17522 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17524 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
17526 (arc_sets_cc_p): Likewise.
17527 * config/arc/arc.c (arc_print_operand): Use methods of
17528 "final_sequence" for clarity, and to enable strengthening of
17529 locals "jump" and "delay" from rtx to rtx_insn *.
17530 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
17531 rtx_insn *; use method of rtx_sequence for typesafety.
17532 (arc_get_insn_variants): Use insn method of rtx_sequence for
17534 (arc_pad_return): Likewise.
17535 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
17536 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
17537 dyn_cast to rtx_sequence *, using insn method for typesafety.
17538 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
17539 rtx_sequence * and use insn method when invoking get_attr_length.
17540 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
17541 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
17542 rtx_sequence *, introducing a local "seq", using its insn method
17543 from typesafety and clarity.
17544 (add_sched_insns_for_speculation): Strengthen local "next" from
17546 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
17547 (predicate_insn): Likewise.
17548 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
17550 * config/cris/cris.c (cris_notice_update_cc): Likewise.
17551 * config/epiphany/epiphany-protos.h
17552 (extern void epiphany_insert_mode_switch_use): Likewise for param
17554 (get_attr_sched_use_fpu): Likewise for param.
17555 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
17556 Likewise for param "insn".
17557 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
17558 param "insn" of "target_insert_mode_switch_use" callback.
17559 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
17560 (frv_issues_to_branch_unit_p): Likewise.
17561 (frv_pack_insn_p): Likewise.
17562 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
17563 const rtx * (i.e. mutable rtx_def * const *) to
17564 rtx_insn * const *.
17565 * config/i386/i386-protos.h (standard_sse_constant_opcode):
17566 Strengthen first param from rtx to rtx_insn *.
17567 (output_fix_trunc): Likewise.
17568 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
17569 (output_fix_trunc): Likewise.
17570 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
17572 (min_insn_size): Likewise for param "insn".
17573 (get_mem_group): Likewise.
17574 (is_cmp): Likewise.
17575 (get_insn_path): Likewise.
17576 (get_insn_group): Likewise.
17577 (count_num_restricted): Likewise.
17578 (fits_dispatch_window): Likewise.
17579 (add_insn_window): Likewise.
17580 (add_to_dispatch_window): Likewise.
17581 (debug_insn_dispatch_info_file): Likewise.
17582 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
17584 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
17585 "cmp" and local "prev".
17586 (m32c_output_compare): Likewise for param "insn".
17587 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
17588 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
17589 (define_predicate "large_insn_p"): Likewise.
17590 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
17591 param from rtx to rtx_insn *.
17592 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
17593 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
17594 (m68k_sched_attr_size): Likewise.
17595 (sched_get_opxy_mem_type): Likewise for param "insn".
17596 (m68k_sched_attr_op_mem): Likewise.
17597 (sched_mem_operand_p): Likewise.
17598 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
17599 * config/mep/mep.c (mep_multi_slot): Likewise.
17600 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
17602 (mips_sync_loop_insns): Likewise.
17603 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
17604 method of "final_sequence" for typesafety.
17605 (mips_process_sync_loop): Strengthen param "insn" from rtx to
17607 (mips_output_sync_loop): Likewise.
17608 (mips_sync_loop_insns): Likewise.
17609 (mips_74k_agen_init): Likewise.
17610 (mips_sched_init): Use NULL rather than NULL_RTX when working with
17612 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
17613 Strengthen param "insn" from rtx to rtx_insn *.
17614 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
17616 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for param.
17617 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
17618 "insn". Use method of rtx_sequence for typesafety.
17619 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
17621 (branch_needs_nop_p): Likewise.
17622 (use_skip_p): Likewise.
17623 (pa_insn_refs_are_delayed): Likewise.
17624 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
17625 for locals "insn", "ninsn".
17626 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
17628 (is_cracked_insn): Likewise.
17629 (is_branch_slot_insn): Likewise.
17630 (is_nonpipeline_insn): Likewise.
17631 (insn_terminates_group_p): Likewise.
17632 (insn_must_be_first_in_group): Likewise.
17633 (insn_must_be_last_in_group): Likewise.
17634 (force_new_group): Likewise for param "next_insn".
17635 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
17637 (s390_sched_score): Likewise.
17638 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
17639 (rtx sfunc_uses_reg): Likewise for sole param.
17640 * config/sh/sh.c (sh_print_operand): Use insn method of
17641 final_sequence for typesafety.
17642 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
17643 Use insn method of final_sequence for typesafety.
17644 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
17645 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
17647 (eligible_for_return_delay): Likewise.
17648 (eligible_for_sibcall_delay): Likewise.
17649 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
17650 (eligible_for_return_delay): Likewise.
17651 (eligible_for_sibcall_delay): Likewise.
17652 * config/stormy16/stormy16-protos.h
17653 (xstormy16_output_cbranch_hi): Likewise for final param.
17654 (xstormy16_output_cbranch_si): Likewise.
17655 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
17656 (xstormy16_output_cbranch_si): Likewise.
17657 * config/v850/v850-protos.h (notice_update_cc): Likewise.
17658 * config/v850/v850.c (notice_update_cc): Likewise.
17660 * final.c (get_attr_length_1): Strengthen param "insn" and param
17661 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
17662 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
17663 (get_attr_min_length): Likewise.
17664 (shorten_branches): Likewise for signature of locals "length_fun"
17665 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
17666 from a checked cast and use its methods for clarity and to enable
17667 strengthening local "inner_insn" from rtx to rtx_insn *.
17668 * genattr.c (gen_attr): When writing out the prototypes of the
17669 various generated "get_attr_" functions, strengthen the params of
17670 the non-const functions from rtx to rtx_insn *.
17671 Similarly, strengthen the params of insn_default_length,
17672 insn_min_length, insn_variable_length_p, insn_current_length.
17673 (main): Similarly, strengthen the param of num_delay_slots,
17674 internal_dfa_insn_code, insn_default_latency, bypass_p,
17675 insn_latency, min_issue_delay, print_reservation,
17676 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
17677 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
17678 to hook_int_rtx_insn_unreachable.
17679 * genattrtab.c (write_attr_get): When writing out the generated
17680 "get_attr_" functions, strengthen the param "insn" from rtx to
17681 rtx_insn *, eliminating a checked cast.
17682 (make_automaton_attrs): When writing out prototypes of
17683 "internal_dfa_insn_code_", "insn_default_latency_" functions
17684 and the "internal_dfa_insn_code" and "insn_default_latency"
17685 callbacks, strengthen their params from rtx to rtx_insn *
17686 * genautomata.c (output_internal_insn_code_evaluation): When
17687 writing out code, add a checked cast from rtx to rtx_insn * when
17688 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
17689 (output_dfa_insn_code_func): Strengthen param of generated
17690 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
17691 (output_trans_func): Likewise for generated function
17692 "state_transition".
17693 (output_internal_insn_latency_func): When writing out generated
17694 function "internal_insn_latency", rename params from "insn" and
17695 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
17696 locals "insn" and "insn2" as rtx_insn * with checked casts once
17697 we've proven that we're not dealing with const0_rtx.
17698 (output_insn_latency_func): Strengthen param of generated
17699 function "insn_latency" from rtx to rtx_insn *.
17700 (output_print_reservation_func): Likewise for generated function
17701 "print_reservation".
17702 (output_insn_has_dfa_reservation_p): Likewise for generated
17703 function "insn_has_dfa_reservation_p".
17704 * hooks.c (hook_int_rtx_unreachable): Rename to...
17705 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
17706 from rtx to rtx_insn *.
17707 * hooks.h (hook_int_rtx_unreachable): Likewise.
17708 (extern int hook_int_rtx_insn_unreachable): Likewise.
17709 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
17710 (get_attr_min_length): Likewise.
17711 * recog.c (get_enabled_alternatives): Likewise.
17712 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
17713 * reorg.c (find_end_label): Introduce local rtx "pat" and
17714 strengthen local "insn" from rtx to rtx_insn *.
17715 (redundant_insn): Use insn method of "seq" rather than element for
17716 typesafety; strengthen local "control" from rtx to rtx_insn *.
17717 * resource.c (mark_referenced_resources): Add checked cast to
17718 rtx_insn * within INSN/JUMP_INSN case.
17719 (mark_set_resources): Likewise.
17720 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
17723 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17725 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
17726 param "label" from rtx to rtx_insn *.
17727 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
17729 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
17730 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
17731 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
17732 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
17733 * final.c (default_label_align_after_barrier_max_skip): Strengthen
17734 param from rtx to rtx_insn *.
17735 (default_loop_align_max_skip): Likewise.
17736 (default_label_align_max_skip): Likewise.
17737 (default_jump_align_max_skip): Likewise.
17738 * target.def (label_align_after_barrier_max_skip): Likewise.
17739 (loop_align_max_skip): Likewise.
17740 (label_align_max_skip): Likewise.
17741 (jump_align_max_skip): Likewise.
17742 * targhooks.h (default_label_align_after_barrier_max_skip): Likewise.
17743 (default_loop_align_max_skip): Likewise.
17744 (default_label_align_max_skip): Likewise.
17745 (default_jump_align_max_skip): Likewise.
17747 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17749 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
17750 from const_rtx to const rtx_insn *. Update union members from rtx
17752 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
17753 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
17754 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
17755 strengthen both params from const_rtx to const rtx_insn *.
17756 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
17757 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
17758 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
17760 * target.def (can_follow_jump): Strengthen both params from
17761 const_rtx to const rtx_insn *, and update default implementation
17762 from hook_bool_const_rtx_const_rtx_true to
17763 hook_bool_const_rtx_insn_const_rtx_insn_true.
17765 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17767 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
17768 "insn" from rtx to rtx_insn *.
17769 * sched-int.h (deps_start_bb): Likewise for 2nd param.
17771 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
17772 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17773 Anna Tikhonova <anna.tikhonova@intel.com>
17774 Ilya Tocar <ilya.tocar@intel.com>
17775 Andrey Turetskiy <andrey.turetskiy@intel.com>
17776 Ilya Verbin <ilya.verbin@intel.com>
17777 Kirill Yukhin <kirill.yukhin@intel.com>
17778 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17780 * config/i386/sse.md
17781 (define_insn "vcvtph2ps<mask_name>"): Add masking.
17782 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
17783 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
17784 (define_expand "vcvtps2ph_mask"): New.
17785 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
17786 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
17787 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
17789 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
17790 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17791 Anna Tikhonova <anna.tikhonova@intel.com>
17792 Ilya Tocar <ilya.tocar@intel.com>
17793 Andrey Turetskiy <andrey.turetskiy@intel.com>
17794 Ilya Verbin <ilya.verbin@intel.com>
17795 Kirill Yukhin <kirill.yukhin@intel.com>
17796 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17798 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
17800 (define_mode_iterator VI24_AVX512BW_1): Ditto.
17801 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
17802 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
17803 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
17804 also for TARGET_AVX512VL.
17805 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
17807 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
17809 * doc/install.texi (Options specification): add
17810 --disable-libsanitizer item.
17812 2014-09-14 James Clarke <jrtc27@jrtc27.com>
17813 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17816 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
17818 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
17819 kernel version check to avoid incrementing it after every major OS X
17821 (darwin_default_min_version): Avoid static memory buffer.
17823 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
17825 * tree.c (need_assembler_name_p): Store C++ type mangling only
17828 2014-09-13 Marek Polacek <polacek@redhat.com>
17830 * tree.c (protected_set_expr_location): Don't check whether T is
17833 2014-09-12 DJ Delorie <dj@redhat.com>
17835 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
17836 (extend_and_shift1_hipsi2): Likewise.
17837 (extend_and_shift2_hipsi2): Likewise.
17839 2014-09-12 David Malcolm <dmalcolm@redhat.com>
17841 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
17842 with NULL when dealing with an insn.
17843 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
17844 from rtx to rtx_insn *.
17845 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
17846 const_rtx to const rtx_insn *.
17847 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
17849 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
17851 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
17854 2014-09-12 Joseph Myers <joseph@codesourcery.com>
17856 * target.def (libgcc_floating_mode_supported_p): New hook.
17857 * targhooks.c (default_libgcc_floating_mode_supported_p): New
17859 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
17860 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
17861 (LIBGCC2_HAS_TF_MODE): Remove.
17862 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
17863 * doc/tm.texi: Regenerate.
17864 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
17866 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
17867 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
17868 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
17869 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
17870 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17871 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
17872 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
17873 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
17874 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
17875 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
17877 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
17878 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17879 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17880 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17881 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17882 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17883 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17884 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
17885 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
17886 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
17887 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17888 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
17889 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
17890 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
17892 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
17894 (ia64_libgcc_floating_mode_supported_p): New function.
17895 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
17896 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
17897 (IA64_NO_LIBGCC_TFMODE): Define.
17898 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
17899 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
17900 (pdp11_scalar_mode_supported_p): New function.
17901 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
17902 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
17904 2014-09-12 Richard Biener <rguenther@suse.de>
17906 PR middle-end/63237
17907 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
17909 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
17911 * tree.c (integer_each_onep): New function.
17912 * tree.h (integer_each_onep): Declare it.
17913 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
17914 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
17915 (X & 1) == 0 for vector and complex.
17917 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
17919 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
17921 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
17922 cost to spilling from integer to FP registers.
17924 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
17926 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
17928 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
17929 are now handled correctly.
17931 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
17933 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
17934 handling of CALLER_SAVE_REGS and POINTER_REGS.
17936 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
17938 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
17939 the number of hard registers.
17941 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
17942 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17943 Anna Tikhonova <anna.tikhonova@intel.com>
17944 Ilya Tocar <ilya.tocar@intel.com>
17945 Andrey Turetskiy <andrey.turetskiy@intel.com>
17946 Ilya Verbin <ilya.verbin@intel.com>
17947 Kirill Yukhin <kirill.yukhin@intel.com>
17948 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17950 * config/i386/sse.md
17951 (define_mode_iterator VI48_AVX512VL): New.
17952 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
17953 "avx512f_vternlog<mode>_maskz" and update mode iterator.
17954 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
17955 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
17956 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
17957 "avx512f_vternlog<mode>_mask" and update mode iterator.
17958 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
17959 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
17961 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
17962 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
17963 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
17964 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
17965 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
17966 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
17968 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
17969 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17970 Anna Tikhonova <anna.tikhonova@intel.com>
17971 Ilya Tocar <ilya.tocar@intel.com>
17972 Andrey Turetskiy <andrey.turetskiy@intel.com>
17973 Ilya Verbin <ilya.verbin@intel.com>
17974 Kirill Yukhin <kirill.yukhin@intel.com>
17975 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17977 * config/i386/sse.md (VI128_256): Delete.
17978 (define_mode_iterator VI124_256): New.
17979 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
17980 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
17981 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
17982 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
17983 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
17984 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
17985 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
17986 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
17988 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
17989 in presence of AVX-512.
17991 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
17992 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17993 Anna Tikhonova <anna.tikhonova@intel.com>
17994 Ilya Tocar <ilya.tocar@intel.com>
17995 Andrey Turetskiy <andrey.turetskiy@intel.com>
17996 Ilya Verbin <ilya.verbin@intel.com>
17997 Kirill Yukhin <kirill.yukhin@intel.com>
17998 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18000 * config/i386/sse.md
18001 (define_expand "<avx512>_gathersi<mode>"): Rename from
18002 "avx512f_gathersi<mode>".
18003 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
18004 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
18005 (define_expand "<avx512>_gatherdi<mode>"): Rename from
18006 "avx512f_gatherdi<mode>".
18007 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
18008 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
18010 (define_expand "<avx512>_scattersi<mode>"): Rename from
18011 "avx512f_scattersi<mode>".
18012 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
18013 (define_expand "<avx512>_scatterdi<mode>"): Rename from
18014 "avx512f_scatterdi<mode>".
18015 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
18017 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
18019 * ira.h (ira_finish_once): Delete.
18020 * ira-int.h (target_ira_int::~target_ira_int): Declare.
18021 (target_ira_int::free_ira_costs): Likewise.
18022 (target_ira_int::free_register_move_costs): Likewise.
18023 (ira_finish_costs_once): Delete.
18024 * ira.c (free_register_move_costs): Replace with...
18025 (target_ira_int::free_register_move_costs): ...this new function.
18026 (target_ira_int::~target_ira_int): Define.
18027 (ira_init): Call free_register_move_costs as a member function rather
18028 than a global function.
18029 (ira_finish_once): Delete.
18030 * ira-costs.c (free_ira_costs): Replace with...
18031 (target_ira_int::free_ira_costs): ...this new function.
18032 (ira_init_costs): Call free_ira_costs as a member function rather
18033 than a global function.
18034 (ira_finish_costs_once): Delete.
18035 * target-globals.c (target_globals::~target_globals): Call the
18036 target_ira_int destructor.
18037 * toplev.c: Include lra.h.
18038 (finalize): Call lra_finish_once rather than ira_finish_once.
18040 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
18042 * common.opt (flto-odr-type-merging): New flag.
18043 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
18044 (types_same_for_odr): Likewise.
18045 (odr_subtypes_equivalent_p): Likewise.
18046 (add_type_duplicate): Do not walk type variants.
18047 (register_odr_type): New function.
18048 * ipa-utils.h (register_odr_type): Declare.
18049 (odr_type_p): New function.
18050 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
18052 * doc/invoke.texi (-flto-odr-type-merging): Document.
18053 * tree.c (need_assembler_name_p): Compute ODR names when asked
18055 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
18057 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
18060 * config/i386/i386.c (ix86_option_override_internal): Also turn
18061 off OPTION_MASK_ABI_X32 for -m16.
18063 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
18065 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
18068 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
18071 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
18072 Directly forward to __*_DENORM_MIN__.
18074 2014-09-11 David Malcolm <dmalcolm@redhat.com>
18076 * rtl.h (LABEL_REF_LABEL): New macro.
18078 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
18079 of XEXP (, 0), where we know that we have a LABEL_REF.
18080 * cfgbuild.c (make_edges): Likewise.
18081 (purge_dead_tablejump_edges): Likewise.
18082 * cfgexpand.c (convert_debug_memory_address): Likewise.
18083 * cfgrtl.c (patch_jump_insn): Likewise.
18084 * combine.c (distribute_notes): Likewise.
18085 * cse.c (hash_rtx_cb): Likewise.
18086 (exp_equiv_p): Likewise.
18087 (fold_rtx): Likewise.
18088 (check_for_label_ref): Likewise.
18089 * cselib.c (rtx_equal_for_cselib_1): Likewise.
18090 (cselib_hash_rtx): Likewise.
18091 * emit-rtl.c (mark_label_nuses): Likewise.
18092 * explow.c (convert_memory_address_addr_space): Likewise.
18093 * final.c (output_asm_label): Likewise.
18094 (output_addr_const): Likewise.
18095 * gcse.c (add_label_notes): Likewise.
18096 * genconfig.c (walk_insn_part): Likewise.
18097 * genrecog.c (validate_pattern): Likewise.
18098 * ifcvt.c (cond_exec_get_condition): Likewise.
18099 (noce_emit_store_flag): Likewise.
18100 (noce_get_alt_condition): Likewise.
18101 (noce_get_condition): Likewise.
18102 * jump.c (maybe_propagate_label_ref): Likewise.
18103 (mark_jump_label_1): Likewise.
18104 (redirect_exp_1): Likewise.
18105 (rtx_renumbered_equal_p): Likewise.
18106 * lra-constraints.c (operands_match_p): Likewise.
18107 * reload.c (operands_match_p): Likewise.
18108 (find_reloads): Likewise.
18109 * reload1.c (set_label_offsets): Likewise.
18110 * reorg.c (get_branch_condition): Likewise.
18111 * rtl.c (rtx_equal_p_cb): Likewise.
18112 (rtx_equal_p): Likewise.
18113 * rtlanal.c (reg_mentioned_p): Likewise.
18114 (rtx_referenced_p): Likewise.
18115 (get_condition): Likewise.
18116 * sched-vis.c (print_value): Likewise.
18117 * varasm.c (const_hash_1): Likewise.
18118 (compare_constant): Likewise.
18119 (const_rtx_hash_1): Likewise.
18120 (output_constant_pool_1): Likewise.
18122 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
18124 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
18125 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
18127 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
18128 cr6_test_for_lt_reverse): Ditto.
18130 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
18133 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
18135 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
18137 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
18138 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
18139 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
18140 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
18143 (aarch64_fold_builtin): Remove all reinterpret cases.
18145 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
18147 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
18149 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
18150 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
18151 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
18152 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
18153 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
18154 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
18155 aarch64_reinterpretv2df<mode>): Delete.
18157 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
18159 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
18160 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
18161 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
18162 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
18163 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
18164 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
18165 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
18166 vreinterpret_u32_f64): Use cast.
18168 * config/aarch64/iterators.md (VD_RE): Delete.
18170 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
18172 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
18173 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
18174 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
18175 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
18176 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
18177 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
18178 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
18179 Replace inline assembler with __aarch64_vset_lane_any.
18181 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
18183 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
18185 (vmull_high_lane_s32): Likewise.
18186 (vmull_high_lane_u16): Likewise.
18187 (vmull_high_lane_u32): Likewise.
18189 2014-09-11 Jason Merrill <jason@redhat.com>
18192 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
18194 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
18197 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
18198 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
18199 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
18201 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18202 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18203 Anna Tikhonova <anna.tikhonova@intel.com>
18204 Ilya Tocar <ilya.tocar@intel.com>
18205 Andrey Turetskiy <andrey.turetskiy@intel.com>
18206 Ilya Verbin <ilya.verbin@intel.com>
18207 Kirill Yukhin <kirill.yukhin@intel.com>
18208 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18210 * config/i386/sse.md
18211 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
18212 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
18213 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
18215 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
18216 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
18218 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
18220 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
18221 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
18222 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
18223 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
18224 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
18225 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
18226 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
18227 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
18229 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
18231 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
18232 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
18233 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
18235 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
18237 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
18238 to access removed nodes.
18240 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
18242 PR tree-optimization/63186
18243 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
18244 (mark_nonssa_use): Likewise.
18245 (verify_non_ssa_vars): Verify all header blocks for label
18248 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18249 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18250 Anna Tikhonova <anna.tikhonova@intel.com>
18251 Ilya Tocar <ilya.tocar@intel.com>
18252 Andrey Turetskiy <andrey.turetskiy@intel.com>
18253 Ilya Verbin <ilya.verbin@intel.com>
18254 Kirill Yukhin <kirill.yukhin@intel.com>
18255 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18257 * config/i386/sse.md
18258 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
18259 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
18260 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
18261 "<avx2_avx512f>_permvar<mode><mask_name>".
18262 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
18263 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
18264 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
18265 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
18267 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
18268 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
18269 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
18270 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
18272 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
18274 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
18275 V2DF, V4SF, DF, and DI modes.
18276 (vsx_fmav2df2): Likewise.
18277 (vsx_float_fix_<mode>2): Likewise.
18278 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
18280 2014-09-10 Xinliang David Li <davidxl@google.com>
18283 * config/arm/arm.md (movcond_addsi): Handle case where source
18284 and target operands are the same.
18286 2014-09-10 David Malcolm <dmalcolm@redhat.com>
18288 * final.c (this_is_asm_operands): Strengthen this variable from
18289 rtx to const rtx_insn *.
18290 * output.h (this_is_asm_operands): Likewise.
18291 * rtl-error.c (location_for_asm): Strengthen param "insn" from
18292 const_rtx to const rtx_insn *.
18293 (diagnostic_for_asm): Likewise.
18294 * rtl-error.h (error_for_asm): Likewise.
18295 (warning_for_asm): Likewise.
18297 2014-09-10 David Malcolm <dmalcolm@redhat.com>
18299 * genextract.c (print_header): When writing out insn_extract to
18300 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
18301 * recog.h (insn_extract): Strengthen the param from rtx to
18304 2014-09-10 Mike Stump <mikestump@comcast.net>
18306 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
18309 2014-09-10 Martin Jambor <mjambor@suse.cz>
18311 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
18312 (analyze): Do not set analyze flag if expand_thunk returns false;.
18313 (create_wrapper): Likewise.
18314 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
18316 2014-09-10 Martin Jambor <mjambor@suse.cz>
18319 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
18320 new decl properly. Analyze the new thunk if it is expanded.
18322 2014-09-10 Andreas Schwab <schwab@suse.de>
18324 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
18325 [USED_FOR_TARGET]: Define.
18327 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
18329 * config/mips/mips.c (mips_secondary_reload_class): Handle
18332 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
18334 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
18337 2014-09-10 Jakub Jelinek <jakub@redhat.com>
18339 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
18340 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
18341 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
18342 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
18343 flag_delete_null_pointer_checks for them.
18344 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
18345 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
18346 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
18347 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
18348 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
18350 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
18351 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
18352 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
18353 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
18354 * doc/invoke.texi (-fsanitize=nonnull-attribute,
18355 -fsanitize=returns-nonnull-attribute): Document.
18357 * ubsan.h (struct ubsan_mismatch_data): Removed.
18358 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
18359 * ubsan.c (ubsan_source_location): For unknown locations,
18360 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
18361 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
18362 Allow more than one location and arbitrary extra arguments passed
18363 in ... instead of through MISMATCH pointer.
18364 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
18365 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
18366 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
18369 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18370 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18371 Anna Tikhonova <anna.tikhonova@intel.com>
18372 Ilya Tocar <ilya.tocar@intel.com>
18373 Andrey Turetskiy <andrey.turetskiy@intel.com>
18374 Ilya Verbin <ilya.verbin@intel.com>
18375 Kirill Yukhin <kirill.yukhin@intel.com>
18376 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18378 * config/i386/sse.md
18379 (define_mode_iterator VI48F): New.
18380 (define_insn "<avx512>_compress<mode>_mask"): Rename from
18381 "avx512f_compress<mode>_mask" and update mode iterator.
18382 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
18383 "avx512f_compressstore<mode>_mask" and update mode iterator.
18384 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
18385 "avx512f_expand<mode>_maskz" and update mode iterator.
18386 (define_insn "<avx512>_expand<mode>_mask"): Rename from
18387 "avx512f_expand<mode>_mask" and update mode iterator.
18389 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18390 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18391 Anna Tikhonova <anna.tikhonova@intel.com>
18392 Ilya Tocar <ilya.tocar@intel.com>
18393 Andrey Turetskiy <andrey.turetskiy@intel.com>
18394 Ilya Verbin <ilya.verbin@intel.com>
18395 Kirill Yukhin <kirill.yukhin@intel.com>
18396 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18398 * config/i386/i386.c
18399 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
18400 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
18401 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
18402 avx512dq_rangepv4sf_mask.
18403 * config/i386/sse.md
18404 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
18406 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
18407 (define_insn "reduces<mode>"): Ditto.
18408 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
18410 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
18411 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
18412 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
18414 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18415 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18416 Anna Tikhonova <anna.tikhonova@intel.com>
18417 Ilya Tocar <ilya.tocar@intel.com>
18418 Andrey Turetskiy <andrey.turetskiy@intel.com>
18419 Ilya Verbin <ilya.verbin@intel.com>
18420 Kirill Yukhin <kirill.yukhin@intel.com>
18421 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18423 * config/i386/i386.c
18424 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
18425 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
18426 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
18427 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
18428 avx512vl_getmantv2df_mask.
18429 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
18430 avx512f_vgetmantv4sf_round.
18431 * config/i386/sse.md
18432 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
18433 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
18435 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
18436 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
18437 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
18438 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
18440 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
18441 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
18442 update mode iterator.
18444 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
18445 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
18448 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
18449 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
18450 update mode iterator.
18451 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
18452 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
18455 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
18456 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
18458 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
18459 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
18460 update mode iterator.
18461 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
18462 "avx512f_getmant<mode><round_saeonly_name>".
18464 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
18467 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
18469 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18470 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18471 Anna Tikhonova <anna.tikhonova@intel.com>
18472 Ilya Tocar <ilya.tocar@intel.com>
18473 Andrey Turetskiy <andrey.turetskiy@intel.com>
18474 Ilya Verbin <ilya.verbin@intel.com>
18475 Kirill Yukhin <kirill.yukhin@intel.com>
18476 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18478 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
18479 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
18480 (define_mode_iterator FMAMODE_AVX512): New.
18481 (define_mode_iterator FMAMODE): Remove conditions.
18482 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
18483 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
18484 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
18486 (define_mode_iterator FMAMODE_NOVF512): Remove.
18487 (define_insn "*fma_fmadd_<mode>"): Rename from
18488 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
18489 FMAMODE mode iterator.
18490 (define_mode_iterator VF_SF_AVX512VL): New.
18491 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
18492 Use VF_SF_AVX512VL mode iterator.
18493 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
18494 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
18496 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
18497 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18499 (define_insn "*fma_fmsub_<mode>"): Rename from
18500 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
18501 FMAMODE mode iterator.
18502 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
18503 Use VF_SF_AVX512VL mode iterator.
18504 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
18505 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
18507 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
18508 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18510 (define_insn "*fma_fnmadd_<mode>"): Rename from
18511 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
18512 use FMAMODE mode iterator.
18513 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
18514 Use VF_SF_AVX512VL mode iterator.
18515 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
18516 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
18518 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
18519 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18521 (define_insn "*fma_fnmsub_<mode>"): Rename from
18522 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
18523 FMAMODE mode iterator.
18524 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
18525 Use VF_SF_AVX512VL mode iterator.
18526 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
18527 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
18529 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
18530 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18532 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
18533 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
18534 use VF_AVX512VL mode iterator.
18535 (define_insn "*fma_fmaddsub_<mode>"): Rename from
18536 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
18537 remove subst usage.
18538 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
18539 Use VF_SF_AVX512VL mode iterator.
18540 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
18541 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
18543 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
18544 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18546 (define_insn "*fma_fmsubadd_<mode>"): Rename from
18547 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
18548 remove usage of subst.
18549 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
18550 Use VF_SF_AVX512VL mode iterator.
18551 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
18552 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
18554 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
18555 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18558 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
18561 * calls.c (precompute_arguments): Check
18562 promoted_for_signed_and_unsigned_p and set the promoted mode.
18563 (promoted_for_signed_and_unsigned_p): New function.
18564 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
18565 and set the promoted mode.
18566 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
18567 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
18568 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
18570 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18572 * opth-gen.awk: Generate mapping from cpp message reasons to the
18573 options that enable them.
18574 * doc/options.texi (CppReason): Document.
18576 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18578 * doc/invoke.texi (Wnormalized=): Update.
18580 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
18583 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
18584 operands. Split off the constant operand alternative to ...
18585 (*bool<mode>3_imm): New.
18587 2014-09-09 David Malcolm <dmalcolm@redhat.com>
18589 * rtl.h (single_set_2): Strengthen first param from const_rtx to
18590 const rtx_insn *, and move prototype to above...
18591 (single_set): ...this. Convert this from a macro to an inline
18592 function, enforcing the requirement that the param is a const
18594 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
18596 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
18597 Strengthen both params from rtx to rtx_insn *.
18598 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
18599 Likewise; introduce locals "producer_set", "consumer_set", using
18600 them in place of "producer" and "consumer" when dealing with SET
18602 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
18603 when invoking single_set in region guarded by INSN_P.
18604 (avr_out_bitop): Likewise.
18605 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
18606 region guarded by GET_CODE check, using methods to strengthen
18607 local "this_insn" from rtx to rtx_insn *, and for clarity.
18608 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
18609 Strengthen local "insn" from rtx to rtx_insn *.
18610 (define_insn_and_split "xload<mode>_A"): Likewise.
18611 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
18613 (find_load): Likewise for return type.
18614 (workaround_speculation): Likewise for both locals named
18616 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
18618 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
18620 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
18622 * config/h8300/h8300.c (notice_update_cc): Likewise.
18623 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
18624 "insn" and "dep_insn".
18625 (exact_store_load_dependency): Likewise for both params.
18626 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
18627 since this now clashes with inline function. Instead, delay
18628 calling single_set until the point where its needed, and then
18629 assign the result to "compare_set" and rework the conditional that
18631 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
18632 local "last" from rtx to rtx_insn *.
18633 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
18635 (mips_store_data_bypass_p): Likewise for both params.
18636 * config/mips/mips.c (mips_load_store_insns): Likewise for second
18638 (mips_store_data_bypass_p): Likewise for both params.
18639 (mips_orphaned_high_part_p): Likewise for param "insn".
18640 * config/mn10300/mn10300.c (extract_bundle): Likewise.
18641 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
18642 Introduce local rtx "insn2_pat".
18643 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
18645 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
18646 Introduce local rtx "set", using it in place of "insn" for the
18647 result of single_set. This appears to fix a bug, since the call
18648 to find_regno_note on a SET does nothing.
18649 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
18650 params from rtx to rtx_insn *.
18651 (set_to_load_agen): Likewise.
18652 * config/s390/s390.c (s390_label_align): Likewise for local
18653 "prev_insn". Introduce new rtx locals "set" and "src", using
18654 them in place of "prev_insn" for the results of single_set
18655 and SET_SRC respectively.
18656 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
18657 Introduce new rtx local "set" using in place of "jump" for the
18658 result of single_set. Use SET_SRC (set) rather than plain
18660 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
18662 (noncall_uses_reg): Likewise.
18663 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
18664 guarded by GET_CODE check, using its methods for clarity, and to
18665 enable strengthening local "this_insn" from rtx to rtx_insn *.
18666 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
18667 "insn" from rtx to rtx_insn *.
18668 (define_expand "umulhisi3"): Likewise.
18669 (define_expand "smulsi3_highpart"): Likewise.
18670 (define_expand "umulsi3_highpart"): Likewise.
18671 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
18672 local "after". Replace GET_CODE check with a dyn_cast,
18673 introducing new local rtx_sequence * "seq", using insn method for
18676 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
18677 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
18678 place of "insn" once we're dealing with patterns rather than the
18680 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
18681 (scan_trace): Likewise for local "elt", updating lookups within
18682 sequence to use insn method rather than element method.
18683 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
18685 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
18686 * ifcvt.c (noce_try_abs): Likewise for local "insn".
18687 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
18688 invoking single_set.
18689 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
18690 "insn" from rtx to rtx_insn *.
18691 (skip_usage_debug_insns): Likewise for return type, adding a
18693 (check_secondary_memory_needed_p): Likewise for local "insn".
18694 (inherit_reload_reg): Likewise.
18695 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
18696 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
18698 (store_data_bypass_p): Likewise for both params.
18699 (if_test_bypass_p): Likewise.
18700 * recog.h (store_data_bypass_p): Likewise for both params.
18701 (if_test_bypass_p): Likewise.
18702 * reload.c (find_equiv_reg): Likewise for local "where".
18703 * reorg.c (delete_jump): Likewise for param "insn".
18704 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
18705 to const rtx_insn *.
18706 * store-motion.c (replace_store_insn): Likewise for param "del".
18707 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
18708 and use its methods for clarity, and to strengthen local "del"
18709 from rtx to rtx_insn *.
18710 (build_store_vectors): Use insn method of "st" when calling
18711 replace_store_insn for typesafety and clarity.
18713 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18715 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
18716 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
18717 on how to make it legal in future.
18719 2014-09-09 David Malcolm <dmalcolm@redhat.com>
18721 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
18723 (restinsn): Likewise.
18724 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
18725 Likewise for param.
18726 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
18728 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
18730 (arc_hazard): Likewise for both params.
18731 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
18732 checked casts to rtx_sequence * and uses of the insn method for
18734 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
18735 (arc_adjust_insn_length): Likewise for param "insn".
18736 (struct insn_length_parameters_s): Likewise for first param of
18737 "get_variants" callback field.
18738 (arc_get_insn_variants): Likewise for first param and local
18739 "inner". Replace a check of GET_CODE with a dyn_cast to
18740 rtx_sequence *, using methods for type-safety and clarity.
18741 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
18742 rtx_sequence * and uses of the insn method for type-safety when
18743 invoking arc_adjust_insn_length.
18744 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
18746 (arm_address_offset_is_imm): Likewise.
18747 (struct tune_params): Likewise for params 1 and 3 of the
18748 "sched_adjust_cost" callback field.
18749 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
18750 params 1 and 3 ("insn" and "dep").
18751 (xscale_sched_adjust_cost): Likewise.
18752 (fa726te_sched_adjust_cost): Likewise.
18753 (cortexa7_older_only): Likewise for param "insn".
18754 (cortexa7_younger): Likewise.
18755 (arm_attr_length_move_neon): Likewise.
18756 (arm_address_offset_is_imm): Likewise.
18757 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
18758 * config/avr/avr.c (avr_notice_update_cc): Likewise.
18759 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
18760 (workaround_speculation): Likewise for local "last_condjump".
18761 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
18762 (shadow_or_blockage_p): Likewise.
18763 (get_unit_reqs): Likewise.
18764 (get_unit_operand_masks): Likewise.
18765 (c6x_registers_update): Likewise.
18766 (returning_call_p): Likewise.
18767 (can_use_callp): Likewise.
18768 (convert_to_callp): Likewise.
18769 (find_last_same_clock): Likwise for local "t".
18770 (reorg_split_calls): Likewise for local "shadow".
18771 (hwloop_pattern_reg): Likewise for param "insn".
18772 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
18773 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
18774 (frv_extract_membar): Likewise.
18775 (frv_optimize_membar_local): Strengthen param "last_membar" from
18776 rtx * to rtx_insn **.
18777 (frv_optimize_membar_global): Strengthen param "membar" from rtx
18779 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
18781 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
18782 both params from rtx to rtx_insn *.
18783 (ia64_ld_address_bypass_p): Likewise.
18784 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
18786 (ia64_safe_type): Likewise.
18787 (group_barrier_needed): Likewise.
18788 (safe_group_barrier_needed): Likewise.
18789 (ia64_single_set): Likewise.
18790 (is_load_p): Likewise.
18791 (record_memory_reference): Likewise.
18792 (get_mode_no_for_insn): Likewise.
18793 (important_for_bundling_p): Likewise.
18794 (unknown_for_bundling_p): Likewise.
18795 (ia64_st_address_bypass_p): Likewise for both params.
18796 (ia64_ld_address_bypass_p): Likewise.
18797 (expand_vselect): Introduce new local rtx_insn * "insn", using it
18798 in place of rtx "x" after the emit_insn call.
18799 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
18800 Strengthen param from rtx to rtx_insn *.
18801 (ix86_agi_dependent): Likewise for both params.
18802 (ix86_attr_length_immediate_default): Likewise for param 1.
18803 (ix86_attr_length_address_default): Likewise for param.
18804 (ix86_attr_length_vex_default): Likewise for param 1.
18805 * config/i386/i386.c (ix86_attr_length_immediate_default):
18806 Likewise for param "insn".
18807 (ix86_attr_length_address_default): Likewise.
18808 (ix86_attr_length_vex_default): Likewise.
18809 (ix86_agi_dependent): Likewise for both params.
18810 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
18811 (vselect_insn): Likewise for this variable.
18812 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
18814 (m68k_sched_attr_opy_type): Likewise.
18815 * config/m68k/m68k.c (sched_get_operand): Likewise.
18816 (sched_attr_op_type): Likewise.
18817 (m68k_sched_attr_opx_type): Likewise.
18818 (m68k_sched_attr_opy_type): Likewise.
18819 (sched_get_reg_operand): Likewise.
18820 (sched_get_mem_operand): Likewise.
18821 (m68k_sched_address_bypass_p): Likewise for both params.
18822 (sched_get_indexed_address_scale): Likewise.
18823 (m68k_sched_indexed_address_bypass_p): Likewise.
18824 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
18825 (m68k_sched_indexed_address_bypass_p): Likewise.
18826 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
18827 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
18829 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
18830 params from rtx to rtx_insn *.
18831 (mips_fmadd_bypass): Likewise.
18832 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
18833 (mips_linked_madd_p): Likewise.
18834 (mips_macc_chains_last_hilo): Likewise for this variable.
18835 (mips_macc_chains_record): Likewise for param.
18836 (vr4130_last_insn): Likewise for this variable.
18837 (vr4130_swap_insns_p): Likewise for both params.
18838 (mips_ls2_variable_issue): Likewise for param.
18839 (mips_need_noat_wrapper_p): Likewise for param "insn".
18840 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
18841 in place of "x" after the emit_insn.
18842 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
18843 params from rtx to rtx_insn *.
18844 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
18845 (pa_combine_instructions): Introduce local "par" for result of
18846 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
18848 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
18849 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
18850 (rl78_alloc_physical_registers_op1): Likewise.
18851 (rl78_alloc_physical_registers_op2): Likewise.
18852 (rl78_alloc_physical_registers_ro1): Likewise.
18853 (rl78_alloc_physical_registers_cmp): Likewise.
18854 (rl78_alloc_physical_registers_umul): Likewise.
18855 (rl78_alloc_address_registers_macax): Likewise.
18856 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
18857 * config/s390/predicates.md (execute_operation): Likewise for
18859 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
18861 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
18862 (addr_generation_dependency_p): Likewise for param "insn".
18863 (s390_agen_dep_p): Likewise for both params.
18864 (s390_fpload_toreg): Likewise for param "insn".
18865 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
18866 * config/sh/sh.c (sh_loop_align): Likewise for param and local
18868 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
18869 * config/sh/sh_treg_combine.cc
18870 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
18872 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
18873 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
18874 "and_insn", "load", "shift".
18875 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
18877 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
18878 for XEXP (note, 0) of the REG_CC_SETTER note.
18879 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
18880 rtx_insn *, eliminating a checked cast made redundant by this.
18881 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
18883 * genattr.c (main): When writing out the prototype to
18884 const_num_delay_slots, strengthen the param from rtx to
18886 * genattrtab.c (write_const_num_delay_slots): Likewise when
18887 writing out the implementation of const_num_delay_slots.
18888 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
18889 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
18890 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
18891 favor of new rtx locals "src" and "set" and new local rtx_insn *
18893 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
18895 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
18896 locals "cond", "if_then_else", "set" and new rtx_insn * locals
18898 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
18899 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
18900 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
18901 the top-level scope, replacing with new more tightly-scoped rtx
18902 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
18903 "new_insn", "copy_of_insn_b", and make local rtx "set" more
18905 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
18907 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
18909 (ira_setup_alts): Likewise for param "insn".
18910 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
18911 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
18913 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
18914 new more-tightly scoped rtx locals "add3_insn", "insn",
18915 "add2_insn" and rtx_insn * "move_insn".
18916 * postreload-gcse.c (eliminate_partially_redundant_load): Add
18917 checked cast on result of gen_move_insn when invoking
18919 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
18921 (verify_changes): Add a checked cast on "object" when invoking
18923 (extract_insn_cached): Strengthen param "insn" from rtx to
18925 (extract_constrain_insn_cached): Likewise.
18926 (extract_insn): Likewise.
18927 * recog.h (insn_invalid_p): Likewise for param 1.
18928 (recog_memoized): Likewise for param.
18929 (extract_insn): Likewise.
18930 (extract_constrain_insn_cached): Likewise.
18931 (extract_insn_cached): Likewise.
18932 * reload.c (can_reload_into): Likewise for local "test_insn".
18933 * reload.h (cleanup_subreg_operands): Likewise for param.
18934 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
18935 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
18936 result of emit_insn. Remove a checked cast made redundant by this
18938 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
18940 * sel-sched.c (get_reg_class): Likewise.
18942 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
18943 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18945 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
18946 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
18948 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
18950 2014-09-09 David Malcolm <dmalcolm@redhat.com>
18952 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
18953 const rtx_insn *, and from rtx to rtx_insn * for the other
18954 overloaded variant.
18955 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
18956 INSN_LOCATION, since we know INSN_P holds.
18957 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
18958 (insn_file): Likewise.
18959 (insn_scope): Likewise.
18960 (insn_location): Likewise.
18962 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
18963 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
18964 for the result of gen_load_const_gp.
18965 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
18966 param from rtx to rtx_insn *.
18967 * config/rs6000/rs6000.c (output_call): Likewise.
18968 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
18969 introducing a checked cast to rtx_sequence * and use of the insn
18971 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
18972 from rtx to rtx_insn *.
18973 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
18974 (insn_line): Likewise.
18975 (insn_file): Likewise.
18976 (insn_location): Likewise.
18977 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
18978 from rtx to rtx_insn *.
18979 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
18980 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
18981 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
18982 via a checked cast.
18983 * reorg.c (relax_delay_slots): Strengthen locals named "after"
18984 from rtx to rtx_insn *; use methods of "pat" for type-safety.
18986 2014-09-09 David Malcolm <dmalcolm@redhat.com>
18988 * combine.c (try_combine): Eliminate checked cast on result of
18990 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
18991 autogenerated one by strengthening the return type and params 2 and 3
18992 from rtx to rtx_insn *, and by naming the params.
18993 * gengenrtl.c (special_rtx): Add INSN to those that are
18995 * rtl.h (gen_rtx_INSN): New prototype.
18997 2014-09-09 David Malcolm <dmalcolm@redhat.com>
18999 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
19001 (no_equiv): Likewise.
19002 (update_equiv_regs): Likewise.
19003 (setup_reg_equiv): Likewise. Strengthen locals "elem",
19004 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
19005 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
19007 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
19008 from rtx to rtx_insn_list *.
19009 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
19010 rtx_insn_list * and use methods for clarity and typesafety.
19011 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
19013 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
19014 redundant check on INSN_P (insns): this cannot hold, as "insns" is
19015 an INSN_LIST, not an insn.
19016 (reverse_equiv_p): Strengthen local "insns" from rtx to
19017 rtx_insn_list * and use methods for clarity and typesafety.
19018 (contains_reloaded_insn_p): Likewise for local "list".
19020 2014-09-09 Jiong Wang <jiong.wang@arm.com>
19022 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
19023 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
19024 (arm_builtin_vectorized_function): Likewise.
19025 * config/arm/arm_neon_builtins.def: New macro for copysignf.
19026 * config/arm/neon.md (neon_copysignf<mode>): New pattern for
19029 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
19031 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
19032 * builtins.h (default_target_builtins): Likewise.
19033 * gcse.h (default_target_gcse): Likewise.
19034 * target-globals.h (target_globals): Add a destructor. Convert
19035 void-pointer fields back to their real type and change from
19036 GTY((atomic)) to GTY((skip)).
19037 (restore_target_globals): Remove casts accordingly.
19038 * target-globals.c (save_target_globals): Use XCNEW rather than
19039 ggc_internal_cleared_alloc to allocate non-GC structures.
19040 Use ggc_cleared_alloc to allocate the target_globals structure
19042 (target_globals::~target_globals): Define.
19044 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19046 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
19047 mnemonic instead of fldmfdd.
19048 * config/arm/arm.c (vfp_output_fstmd): Rename to...
19049 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
19050 Output vpush when address register is SP.
19051 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
19052 (vfp_output_vstmd): ... This.
19053 * config/arm/vfp.md (push_multi_vfp): Update call to
19056 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19058 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
19060 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19062 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
19063 (*sqrtdf2_vfp): Likewise.
19064 (*cmpsf_vfp): Likewise.
19065 (*cmpsf_trap_vfp): Likewise.
19066 (*cmpdf_vfp): Likewise.
19067 (*cmpdf_trap_vfp): Likewise.
19069 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19071 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
19072 (*truncdfsf2_vfp): Likewise.
19073 (*truncsisf2_vfp): Likewise.
19074 (*truncsidf2_vfp): Likewise.
19075 (fixuns_truncsfsi2): Likewise.
19076 (fixuns_truncdfsi2): Likewise.
19077 (*floatsisf2_vfp): Likewise.
19078 (*floatsidf2_vfp): Likewise.
19079 (floatunssisf2): Likewise.
19080 (floatunssidf2): Likewise.
19082 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19084 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
19085 (*muldf3_vfp): Likewise.
19086 (*mulsf3negsf_vfp): Likewise.
19087 (*muldf3negdf_vfp): Likewise.
19088 (*mulsf3addsf_vfp): Likewise.
19089 (*muldf3adddf_vfp): Likewise.
19090 (*mulsf3subsf_vfp): Likewise.
19091 (*muldf3subdf_vfp): Likewise.
19092 (*mulsf3negsfaddsf_vfp): Likewise.
19093 (*fmuldf3negdfadddf_vfp): Likewise.
19094 (*mulsf3negsfsubsf_vfp): Likewise.
19095 (*muldf3negdfsubdf_vfp): Likewise.
19097 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19099 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
19100 (*absdf2_vfp): Likewise.
19101 (*negsf2_vfp): Likewise.
19102 (*negdf2_vfp): Likewise.
19103 (*addsf3_vfp): Likewise.
19104 (*adddf3_vfp): Likewise.
19105 (*subsf3_vfp): Likewise.
19106 (*subdf3_vfp): Likewise.
19107 (*divsf3_vfp): Likewise.
19108 (*divdf3_vfp): Likewise.
19110 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19112 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
19114 (arm_print_operand): Don't convert real values to decimal
19115 representation in default case.
19116 (fp_immediate_constant): Delete.
19117 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
19118 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
19120 (*thumb2_movsi_vfp): Likewise.
19121 (*movdi_vfp): Likewise.
19122 (*movdi_vfp_cortexa8): Likewise.
19123 (*movhf_vfp_neon): Likewise.
19124 (*movhf_vfp): Likewise.
19125 (*movsf_vfp): Likewise.
19126 (*thumb2_movsf_vfp): Likewise.
19127 (*movdf_vfp): Likewise.
19128 (*thumb2_movdf_vfp): Likewise.
19129 (*movsfcc_vfp): Likewise.
19130 (*thumb2_movsfcc_vfp): Likewise.
19131 (*movdfcc_vfp): Likewise.
19132 (*thumb2_movdfcc_vfp): Likewise.
19134 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
19136 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
19137 (-mtune): Likewise.
19140 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19143 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
19144 Use qualifier_immediate for last operand. Rename to...
19145 (aarch64_types_ternop_lane_qualifiers): ... This.
19146 (TYPES_QUADOP): Rename to...
19147 (TYPES_TERNOP_LANE): ... This.
19148 (aarch64_simd_expand_args): Return const0_rtx when encountering user
19149 error. Change return of 0 to return of NULL_RTX.
19150 (aarch64_crc32_expand_builtin): Likewise.
19151 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
19152 ICE when expanding unknown builtin.
19153 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
19154 TERNOP_LANE qualifiers.
19155 (sqdmlsl_lane): Likewise.
19156 (sqdmlal_laneq): Likewise.
19157 (sqdmlsl_laneq): Likewise.
19158 (sqdmlal2_lane): Likewise.
19159 (sqdmlsl2_lane): Likewise.
19160 (sqdmlal2_laneq): Likewise.
19161 (sqdmlsl2_laneq): Likewise.
19163 2014-09-09 Nick Clifton <nickc@redhat.com>
19165 * doc/invoke.texi (Optimization Options): Add missing @gol to the
19167 (S/390 and zSeries Options): Remove superfluous word from the
19168 description of the -mhotpatch option.
19170 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
19172 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
19173 * ira.c: #include "shrink-wrap.h"
19174 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
19175 * ifcvt.c: #include "shrink-wrap.h"
19176 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
19178 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
19180 * common/config/picochip/picochip-common.c: Remove.
19181 * config.gcc: Remove support for picochip.
19182 * config/picochip/constraints.md: Remove.
19183 * config/picochip/dfa_space.md: Remove.
19184 * config/picochip/dfa_speed.md: Remove.
19185 * config/picochip/picochip-protos.h: Remove.
19186 * config/picochip/picochip.c: Remove.
19187 * config/picochip/picochip.h: Remove.
19188 * config/picochip/picochip.md: Remove.
19189 * config/picochip/picochip.opt: Remove.
19190 * config/picochip/predicates.md: Remove.
19191 * config/picochip/t-picochip: Remove.
19192 * doc/md.texi: Don't document picochi.
19194 2014-09-08 David Malcolm <dmalcolm@redhat.com>
19196 * basic-block.h (control_flow_insn_p): Strengthen param from
19197 const_rtx to const rtx_insn *.
19198 * cfgbuild.c (control_flow_insn_p): Likewise.
19200 2014-09-08 David Malcolm <dmalcolm@redhat.com>
19202 * gcse.c (modify_mem_list): Strengthen this variable from
19203 vec<rtx> * to vec<rtx_insn *> *.
19204 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
19206 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
19207 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
19208 (record_last_mem_set_info): Strengthen param "insn" from rtx to
19210 (record_last_set_info): Likewise for local "last_set_insn".
19212 2014-09-08 DJ Delorie <dj@redhat.com>
19214 * doc/invoke.texi (MSP430 Options): Add -minrt.
19216 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19218 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
19219 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
19220 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
19222 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
19224 (adjust_splat): New function.
19225 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
19226 (dump_swap_insn_table): Add case for SH_SPLAT.
19228 2014-09-08 Richard Biener <rguenther@suse.de>
19231 * tree-inline.c (copy_loops): The source loop header should
19232 always be non-NULL.
19233 (tree_function_versioning): If loops need fixup after removing
19234 unreachable blocks fix them.
19235 * omp-low.c (simd_clone_adjust): Do not add incr block to
19236 loop under construction.
19238 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
19240 * config/aarch64/aarch64-builtins.c
19241 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
19243 2014-09-08 Joseph Myers <joseph@codesourcery.com>
19245 * config/i386/cygming.h (TF_SIZE): Remove.
19246 * config/i386/darwin.h (TF_SIZE): Remove.
19247 * config/i386/dragonfly.h (TF_SIZE): Remove.
19248 * config/i386/freebsd.h (TF_SIZE): Remove.
19249 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
19250 * config/i386/openbsdelf.h (TF_SIZE): Remove.
19251 * config/i386/sol2.h (TF_SIZE): Remove.
19252 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
19253 * config/ia64/linux.h (TF_SIZE): Remove.
19254 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
19255 * doc/tm.texi: Regenerate.
19256 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
19258 2014-09-08 Joseph Myers <joseph@codesourcery.com>
19260 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
19262 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
19264 * doc/tm.texi: Regenerate.
19265 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
19267 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
19268 * config/cris/cris.h (__make_dp): Remove.
19270 2014-09-08 Richard Biener <rguenther@suse.de>
19273 * cfgloop.c (mark_loop_for_removal): Track former header
19275 * cfgloop.h (struct loop): Add former_header member unconditionally.
19276 * loop-init.c (fix_loop_structure): Enable bogus loop removal
19277 diagnostic unconditionally.
19279 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19282 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
19283 constraint for operand0 and remove write only modifier from operand3.
19285 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
19287 PR rtl-optimization/62208
19288 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
19289 rather than const0_rtx in eq/ne-xor simplifications.
19291 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
19293 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
19294 (arc_output_mi_thunk): Likewise.
19296 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
19297 arguments to silence bogus warning.
19299 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
19301 PR middle-end/63171
19302 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
19304 2014-09-06 Tom de Vries <tom@codesourcery.com>
19306 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
19307 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
19308 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
19310 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
19313 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
19314 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
19316 2014-09-05 Easwaran Raman <eraman@google.com>
19318 PR rtl-optimization/62146
19319 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
19320 hoisted instruction unconditional.
19322 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
19325 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
19326 Do not allow any_mask_operand for operands[2].
19327 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
19329 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19331 * config/arc/arc.c (arc_print_operand): Use insn method of
19332 final_sequence for type-safety.
19333 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
19334 "insn" from rtx to rtx_insn *.
19335 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
19336 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
19337 Likewise for locals "branch", "label".
19338 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
19339 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
19340 (same_cmp_following_p): Likewise for locals "i2", "i3".
19341 * config/sh/sh_optimize_sett_clrt.cc
19342 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
19343 param "cbranch_insn".
19344 * function.c (convert_jumps_to_returns): Likewis for local "jump".
19345 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
19346 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
19348 (condjump_p): Likewise.
19349 (condjump_in_parallel_p): Likewise.
19350 (pc_set): Likewise.
19351 (any_uncondjump_p): Likewise.
19352 (any_condjump_p): Likewise.
19353 (condjump_label): Likewise.
19354 (returnjump_p): Strengthen param "insn" from rtx to
19356 (onlyjump_p): Strengthen param "insn" from const_rtx to
19358 (jump_to_label_p): Likewise.
19359 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
19360 (invert_jump): Likewise.
19361 * reorg.c (simplejump_or_return_p): Add checked cast when calling
19363 (get_jump_flags): Strengthen param "insn" from rtx to
19365 (get_branch_condition): Likewise.
19366 (condition_dominates_p): Likewise.
19367 (make_return_insns): Move declaration of local "pat" earlier, to
19368 after we've handled NONJUMP_INSN_P and non-sequences, using its
19369 methods to simplify the code and for type-safety.
19370 * rtl.h (find_constant_src): Strengthen param from const_rtx to
19372 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
19373 (condjump_p): Strengthen param from const_rtx to
19375 (any_condjump_p): Likewise.
19376 (any_uncondjump_p): Likewise.
19377 (pc_set): Likewise.
19378 (condjump_label): Likewise.
19379 (simplejump_p): Likewise.
19380 (returnjump_p): Likewise.
19381 (onlyjump_p): Likewise.
19382 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
19383 (invert_jump): Likewise.
19384 (condjump_in_parallel_p): Strengthen param from const_rtx to
19386 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
19387 to const rtx_insn *.
19388 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
19389 to const rtx_insn *.
19390 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
19392 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19394 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
19395 above the conditional, and convert the check on GET_CODE to a
19396 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
19397 the conditional. Simplify the conditional by using methods of
19400 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19402 * haifa-sched.c (check_clobbered_conditions): Strengthen local
19403 "link" from rtx to rtx_insn_list *, and use its methods for
19404 clarity and type-safety.
19405 (toggle_cancelled_flags): Likewise.
19406 (restore_last_backtrack_point): Likewise.
19407 (queue_to_ready): Use insn method of "link" in one place.
19408 (schedule_block): Strengthen local "link" from rtx to
19409 rtx_insn_list *, and use its methods for clarity and type-safety.
19411 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19413 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
19414 param "insn" from const_rtx to const rtx_insn *.
19415 (sched_get_reverse_condition_uncached): Likewise.
19416 (sched_get_condition_with_rev): Likewise.
19417 (sched_has_condition_p): Likewise.
19418 (sched_insns_conditions_mutex_p): Likewise for both params.
19419 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
19420 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
19421 (setup_insn_reg_uses): Move local "list" to be more tightly
19422 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
19423 its methods for clarity and type-safety.
19424 (sched_analyze_1): Strengthen local "pending" from rtx to
19425 rtx_insn_list *, and local "pending_mem" from rtx to
19426 rtx_expr_list *. Use methods of each for clarity and type-safety.
19427 (sched_analyze_2): Likewise.
19428 (sched_analyze_insn): Likewise.
19430 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
19431 param from const_rtx to const rtx_insn *.
19432 (sched_insns_conditions_mutex_p): Likewise for both params.
19433 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
19436 * system.h (CONST_CAST_RTX_INSN): New macro.
19438 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19440 * recog.c (peep2_attempt): Strengthen return type from rtx to
19442 (peep2_update_life): Likewise for params "last", "prev", removing
19443 a checked cast made redundant by this.
19444 (peephole2_optimize): Likewise for local "last".
19446 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19448 * basic-block.h (set_block_for_insn): Eliminate this macro in
19450 * rtl.h (set_block_for_insn): New inline function, imposing the
19451 requirement that the "insn" param is an rtx_insn *.
19453 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19455 * caller-save.c (setup_save_areas): Strengthen local "insn" from
19457 * final.c (get_call_reg_set_usage): Likewise for first param,
19458 eliminating a checked cast.
19459 * regs.h (get_call_reg_set_usage): Likewise for first param.
19460 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
19461 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
19462 cast, replacing references to "x" with "call_insn" where
19464 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
19465 rtx_insn *, adding a checked cast.
19467 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19469 * output.h (final_scan_insn): Strengthen first param from rtx to
19472 * final.c (final_scan_insn): Likewise, renaming it back from
19473 "uncast_insn" to "insn", eliminating the checked cast.
19475 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
19476 "vec" with an rtx_sequence * "seq", taking a copy of
19477 "final_sequence", and using methods of "seq" for clarity, and for
19478 type-safety in the calls to final_scan_insn.
19479 * config/mips/mips.c (mips_output_conditional_branch): Use methods
19480 of "final_sequence" for clarity, and for type-safety in the call to
19482 * config/sh/sh.c (print_slot): Strengthen param from rtx to
19483 rtx_sequence * and rename from "insn" to "seq".
19485 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19487 * jump.c (delete_related_insns): Introduce a new local "table" by
19488 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
19489 get_labels method of "table" to simplify access to the labels in
19492 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19494 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
19495 f_minmaxs, f_minmaxd types.
19497 2014-09-05 Richard Biener <rguenther@suse.de>
19499 * cfgloop.c (mark_loop_for_removal): Record former header
19500 when ENABLE_CHECKING.
19501 * cfgloop.h (strut loop): Add former_header member when
19503 * loop-init.c (fix_loop_structure): Sanity check loops
19504 marked for removal if they re-appeared.
19506 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19508 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
19509 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
19511 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
19512 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
19513 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
19514 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
19515 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
19516 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
19517 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
19518 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
19519 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
19520 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
19521 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
19522 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
19523 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
19524 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
19525 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
19526 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
19527 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
19528 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
19529 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
19530 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
19531 with int{32,16,8}_t.
19533 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19535 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
19536 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
19537 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
19538 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
19539 Remove temporary __asm__ and reimplement.
19541 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19543 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
19544 handling cmge, cmgt, cmeq, cmtst.
19546 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
19547 cmlt, cmgeu, cmgtu, cmtst): Remove.
19549 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
19550 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
19551 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
19552 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
19554 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19556 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
19557 TYPES_TST): Define.
19558 (aarch64_fold_builtin): Update pattern for cmtst.
19560 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
19563 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
19565 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
19566 Switch operands, separate out more cases, refactor.
19568 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
19570 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
19571 argument; rename old version to...
19572 (aarch64_const_vec_all_same_in_range_p): ...this.
19573 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
19575 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
19577 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19579 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19580 Remove qualifier_const_pointer, update comment.
19582 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19584 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
19586 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19588 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
19589 varargs with pointer parameter.
19590 (aarch64_simd_expand_builtin): pass pointer into previous.
19592 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19594 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
19597 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19599 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
19600 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
19601 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
19602 Replace temporary asm with call to builtin.
19603 (vrbit_p8, vrbitq_p8): New functions.
19605 2014-09-05 Richard Biener <rguenther@suse.de>
19607 * cfgloop.c (mark_loop_for_removal): New function.
19608 * cfgloop.h (mark_loop_for_removal): Declare.
19609 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
19610 (merge_blocks): Likewise.
19611 (duplicate_block): Likewise.
19612 * except.c (sjlj_emit_dispatch_table): Likewise.
19613 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
19614 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
19615 (thread_through_loop_header): Likewise.
19617 2014-09-05 Richard Biener <rguenther@suse.de>
19619 PR middle-end/63148
19620 * fold-const.c (try_move_mult_to_index): Remove.
19621 (fold_binary_loc): Do not call it.
19622 * tree-data-ref.c (dr_analyze_indices): Strip conversions
19623 from the base object again.
19625 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19627 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
19630 2014-09-05 Bin Cheng <bin.cheng@arm.com>
19633 * config/arm/arm.md (setmem): New pattern.
19634 * config/arm/arm-protos.h (struct tune_params): New fields.
19635 (arm_gen_setmem): New prototype.
19636 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
19637 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
19638 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
19639 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
19640 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
19641 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
19642 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
19643 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
19644 (arm_const_inline_cost): New function.
19645 (arm_block_set_max_insns): New function.
19646 (arm_block_set_non_vect_profit_p): New function.
19647 (arm_block_set_vect_profit_p): New function.
19648 (arm_block_set_unaligned_vect): New function.
19649 (arm_block_set_aligned_vect): New function.
19650 (arm_block_set_unaligned_non_vect): New function.
19651 (arm_block_set_aligned_non_vect): New function.
19652 (arm_block_set_vect, arm_gen_setmem): New functions.
19654 2014-09-05 Bin Cheng <bin.cheng@arm.com>
19656 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
19658 2014-09-05 Bin Cheng <bin.cheng@arm.com>
19660 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
19662 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19664 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
19666 * valtrack.h: Adjust.
19668 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19670 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
19672 (emit_jump_insn_before_noloc): Likewise.
19673 (emit_call_insn_before_noloc): Likewise.
19674 (emit_label_before): Likewise.
19675 (emit_label_after): Likewise.
19676 (emit_insn_before_setloc): Likewise.
19677 (emit_jump_insn_before_setloc): Likewise.
19678 (emit_call_insn_before_setloc): Likewise.
19679 (emit_call_insn_before): Likewise.
19682 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19684 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
19685 rtx_insn *, eliminating a checked cast.
19687 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19689 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
19690 const_rtx to const rtx_insn *.
19691 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
19694 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19696 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
19697 fixup_args_size_notes.
19698 * expr.c (fixup_args_size_notes): Strengthen first two params from
19699 rtx to rtx_insn *, eliminating a checked cast.
19700 * rtl.h (fixup_args_size_notes): Strengthen first two params from
19703 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19705 * haifa-sched.c (get_ready_element): Strengthen return type from
19707 * sched-int.h (get_ready_element): Likewise.
19709 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
19712 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
19713 indexed_or_indirect_operand instead of memory_operand.
19714 (floatsi<mode>2_lfiwzx_mem): Ditto.
19716 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19718 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
19719 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
19720 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
19722 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19724 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
19726 (get_last_nonnote_insn): Likewise.
19727 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
19728 * resource.c (find_basic_block): Likewise.
19730 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
19733 2014-09-04 David Malcolm <dmalcolm@redhat.com>
19735 * genattr.c (main): Within the prototype of insn_latency written
19736 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
19737 * genautomata.c (output_internal_maximal_insn_latency_func):
19738 Within the implementation of insn_latency written out to
19739 insn-automata.c, strengthen both params from rtx to rtx_insn *,
19740 eliminating a pair of checked casts.
19742 2014-09-04 David Malcolm <dmalcolm@redhat.com>
19744 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
19747 * rtl.h (eh_returnjump_p): Likewise.
19749 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
19751 * Makefile.in (TAGS): Handle constructs in timevar.def.
19753 2014-09-04 Guozhi Wei <carrot@google.com>
19756 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
19757 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
19758 it into two patterns.
19759 (move_lo_quad_internal_be_<mode>): Likewise.
19761 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
19763 * doc/options.texi: Document that Var and Init are required if CPP
19765 * optc-gen.awk: Require Var and Init if CPP is given.
19766 * common.opt (Wpedantic): Use Init.
19768 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19770 * config/rs6000/rs6000.c (special_handling_values): Add
19772 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
19773 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
19774 as swappable with special handling SH_EXTRACT. Remove
19775 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
19777 (adjust_extract): New function.
19778 (handle_special_swappables): Add default to case statement; add
19779 case for SH_EXTRACT that calls adjust_extract.
19780 (dump_swap_insn_table): Handle SH_EXTRACT.
19782 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19784 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
19785 selection of 0th memory doubleword, regardless of endianness.
19787 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19789 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
19791 2014-09-04 Alan Modra <amodra@gmail.com>
19794 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
19797 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
19799 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
19800 * targhooks.c (default_dwarf_frame_reg_mode): New function.
19801 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
19802 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
19803 * doc/tm.texi: Regenerate.
19804 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
19805 selection logic to default_dwarf_frame_reg_mode.
19807 2014-09-03 Marek Polacek <polacek@redhat.com>
19809 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
19812 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
19814 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
19815 the automodified register.
19817 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
19819 * output.h (get_some_local_dynamic_name): Declare.
19820 * final.c (some_local_dynamic_name): New variable.
19821 (get_some_local_dynamic_name): New function.
19822 (final_end_function): Clear some_local_dynamic_name.
19823 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
19824 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
19825 (print_operand): Report an error if '%&' is used inappropriately.
19826 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
19827 (get_some_local_dynamic_name_1): Delete.
19828 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
19829 (rs6000_get_some_local_dynamic_name): Delete.
19830 (rs6000_get_some_local_dynamic_name_1): Delete.
19831 (print_operand): Report an error if '%&' is used inappropriately.
19832 * config/s390/s390.c (machine_function): Remove some_ld_name.
19833 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
19834 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
19835 * config/sparc/sparc.c: Include rtl-iter.h.
19836 (machine_function): Remove some_ld_name.
19837 (sparc_print_operand): Report an error if '%&' is used inappropriately.
19838 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
19840 2014-09-03 Richard Henderson <rth@redhat.com>
19842 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
19843 (aarch64_popwb_pair_reg): Remove.
19844 (aarch64_set_frame_expr): Remove.
19845 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
19846 the restore ops performed by the insns generated.
19847 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
19848 insn. Perform the calls_eh_return addition later; do not attempt to
19849 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
19850 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
19851 special markup at all. Load cfun->machine->frame.hard_fp_offset
19852 into a local variable.
19853 (aarch64_frame_pointer_required): Don't check calls_alloca.
19855 2014-09-03 Richard Biener <rguenther@suse.de>
19857 * opts.c (default_options_optimization): Adjust
19858 max-combine-insns to 2 for -Og.
19860 2014-09-03 Martin Jambor <mjambor@suse.cz>
19863 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
19864 pass-trough jump functions correctly.
19866 2014-09-03 Martin Jambor <mjambor@suse.cz>
19869 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
19870 created replacements in ascending order of offsets.
19871 (known_aggs_to_agg_replacement_list): Likewise.
19873 2014-09-03 Martin Liska <mliska@suse.cz>
19875 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
19876 is set to set uninitialized value for vnresult.
19878 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19880 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
19881 for TARGET_MUST_PASS_IN_STACK.
19883 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19885 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
19886 for TARGET_ARG_PARTIAL_BYTES.
19888 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19890 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
19891 instructions for varargs implementation.
19892 (nds32_expand_epilogue): Emit stack adjustment instructions for
19893 varargs implementation.
19895 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19897 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
19898 optimization detection.
19900 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19902 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
19904 (nds32_function_arg_advance): Deal with nameless arguments.
19905 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
19906 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
19907 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
19909 2014-09-03 Richard Biener <rguenther@suse.de>
19911 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
19912 (struct bb_bitmap_sets): Remove deferred member.
19913 (BB_DEFERRED): Remove.
19914 (defer_or_phi_translate_block): Remove.
19915 (compute_antic_aux): Remove deferring of blocks, assert
19916 proper iteration order.
19917 (compute_antic): Do not set BB_DEFERRED.
19918 (eliminate): Allocate el_avail of proper size initially.
19920 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19922 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
19923 according to the value of crtl->args.pretend_args_size.
19925 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19927 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
19928 varargs information.
19930 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19932 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
19933 implementation for TARGET_SETUP_INCOMING_VARARGS.
19934 (nds32_strict_argument_naming): Refine comment.
19935 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
19936 Define for future implementation.
19938 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
19940 * config/i386/adxintrin.h (_subborrow_u32): New.
19941 (_addcarry_u32): Ditto.
19942 (_subborrow_u64): Ditto.
19943 (_addcarry_u64): Ditto.
19944 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
19945 IX86_BUILTIN_SBB64.
19946 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
19947 __builtin_ia32_sbb_u64
19949 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19951 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
19952 GPR-specific stuff.
19953 (nds32_function_arg_advance): Likewise.
19954 (nds32_init_cumulative_args): Likewise.
19955 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
19956 (NDS32_FIRST_GPR_REGNUM): Define.
19957 (NDS32_LAST_GPR_REGNUM): Define.
19958 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
19959 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
19960 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
19961 (machine_function): Use GRP-specific stuff.
19963 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19965 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
19966 (nds32_expand_epilogue): Likewise.
19967 (nds32_expand_prologue_v3push): Likewise.
19968 (nds32_expand_epilogue_v3pop): Likewise.
19970 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19972 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
19973 v3push/v3pop for variadic function.
19974 * config/nds32/nds32.md (prologue, epilogue): Likewise.
19976 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19978 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
19979 Check rtx for varargs implementation.
19980 (nds32_output_stack_pop): Likewise.
19981 * config/nds32/nds32-protos.h: Have a rtx argument for
19982 nds32_output_stack_push and nds32_output_stack_pop.
19983 * config/nds32/nds32.md: Likewise.
19985 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19987 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
19988 to check if FUNC is an interrupt service routine.
19989 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
19991 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19993 * config/nds32/nds32.h (machine_function): Add some fields for variadic
19994 arguments implementation.
19996 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19998 * config/nds32/nds32-predicates.c
19999 (nds32_valid_stack_push_pop): Rename to ...
20000 (nds32_valid_stack_push_pop_p): ... this.
20001 * config/nds32/nds32-protos.h: Likewise.
20002 * config/nds32/predicates.md: Likewise.
20004 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20006 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
20007 (nds32_emit_stack_v3push): ... this.
20008 (nds32_gen_stack_v3pop): Rename to ...
20009 (nds32_emit_stack_v3pop): ... this and consider CFA restore
20012 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20014 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
20015 (nds32_emit_stack_push_multiple): ... this.
20016 (nds32_gen_stack_pop_multiple): Rename to ...
20017 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
20020 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20023 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
20024 and add a second splitter to handle the remaining cases.
20026 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20028 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
20030 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
20032 * cfgexpand.c (label_rtx_for_bb): Change type to
20033 hash_map<basic_block, rtx_code_label *> *.
20034 (expand_gimple_basic_block): Adjust.
20035 (pass_expand::execute): Likewise.
20037 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
20039 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
20040 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
20041 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
20042 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
20043 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
20044 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
20045 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
20048 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
20050 * alloc-pool.c: Include coretypes.h.
20051 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
20052 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
20053 hash_set instead of htab.
20054 * ggc-page.c (in_gc): New variable.
20055 (ggc_free): Do nothing if a collection is taking place.
20056 (ggc_collect): Set in_gc appropriately.
20057 * ggc.h (gt_ggc_mx(const char *)): New function.
20058 (gt_pch_nx(const char *)): Likewise.
20059 (gt_ggc_mx(int)): Likewise.
20060 (gt_pch_nx(int)): Likewise.
20061 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
20062 (hash_map::hash_entry::pch_nx): Likewise.
20063 (hash_map::hash_entry::pch_nx_helper): Likewise.
20064 (hash_map::hash_map): Adjust.
20065 (hash_map::create_ggc): New function.
20066 (gt_ggc_mx): Likewise.
20067 (gt_pch_nx): Likewise.
20068 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
20069 (default_hashset_traits::pch_nx): Likewise.
20070 (hash_set::hash_entry::ggc_mx): Likewise.
20071 (hash_set::hash_entry::pch_nx): Likewise.
20072 (hash_set::hash_entry::pch_nx_helper): Likewise.
20073 (hash_set::hash_set): Adjust.
20074 (hash_set::create_ggc): New function.
20075 (hash_set::elements): Likewise.
20076 (gt_ggc_mx): Likewise.
20077 (gt_pch_nx): Likewise.
20078 * hash-table.h (hash_table::hash_table): Adjust.
20079 (hash_table::m_ggc): New member.
20080 (hash_table::~hash_table): Adjust.
20081 (hash_table::expand): Likewise.
20082 (hash_table::empty): Likewise.
20083 (gt_ggc_mx): New function.
20084 (hashtab_entry_note_pointers): Likewise.
20085 (gt_pch_nx): Likewise.
20087 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20089 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
20090 built-in definition.
20091 (XVCVUXDDP_SCALE): Likewise.
20092 (XVCVDPSXDS_SCALE): Likewise.
20093 (XVCVDPUXDS_SCALE): Likewise.
20094 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20095 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
20096 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
20097 VSX_BUILTIN_XVCVDPUXDS_SCALE.
20098 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
20100 * config/rs6000/rs6000.c (real.h): New include.
20101 (rs6000_scale_v2df): New function.
20102 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
20103 (UNSPEC_VSX_XVCVUXDDP): Likewise.
20104 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
20105 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
20106 (vsx_xvcvsxddp_scale): New define_expand.
20107 (vsx_xvcvsxddp): New define_insn.
20108 (vsx_xvcvuxddp_scale): New define_expand.
20109 (vsx_xvcvuxddp): New define_insn.
20110 (vsx_xvcvdpsxds_scale): New define_expand.
20111 (vsx_xvcvdpsxds): New define_insn.
20112 (vsx_xvcvdpuxds_scale): New define_expand.
20113 (vsx_xvcvdpuxds): New define_insn.
20114 * doc/extend.texi (vec_ctf): Add new prototypes.
20115 (vec_cts): Likewise.
20116 (vec_ctu): Likewise.
20117 (vec_splat): Likewise.
20118 (vec_div): Likewise.
20119 (vec_mul): Likewise.
20121 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20124 * config/arm/neon.md
20125 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
20126 <v_cmp_result>): New pattern.
20127 * config/arm/iterators.md (NEON_VCVT): New int iterator.
20128 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
20129 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
20130 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
20131 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
20132 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
20134 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20137 * config/arm/iterators.md (FIXUORS): New code iterator.
20138 (VCVT): New int iterator.
20139 (su_optab): New code attribute.
20141 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
20143 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20145 * config/aarch64/predicates.md (aarch64_comparison_operation):
20146 New special predicate.
20147 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
20148 aarch64_comparison_operation instead of matching an operator.
20149 Update operand numbers.
20150 (csinc3<mode>_insn): Likewise.
20151 (*csinv3<mode>_insn): Likewise.
20152 (*csneg3<mode>_insn): Likewise.
20153 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
20154 * config/aarch64/aarch64.c (aarch64_get_condition_code):
20155 Return -1 instead of aborting on invalid condition codes.
20156 (aarch64_print_operand): Update aarch64_get_condition_code callsites
20157 to assert that the returned condition code is valid.
20158 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
20160 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
20162 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
20163 tree.def, and gimple.def
20165 2014-09-02 Jakub Jelinek <jakub@redhat.com>
20166 Balaji V. Iyer <balaji.v.iyer@intel.com>
20167 Igor Zamyatin <igor.zamyatin@intel.com>
20169 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
20170 (__cilkrts_cilk_for_64): Likewise.
20171 * cilk-common.c (declare_cilk_for_builtin): New function.
20172 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
20173 __cilkrts_cilk_for_64 bultins.
20174 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
20176 (cilk_for_32_fndecl): New define.
20177 (cilk_for_64_fndecl): Likewise.
20178 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
20179 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
20180 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
20181 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
20182 GF_OMP_FOR_COMBINED_INTO.
20183 * gimplify.c (gimplify_scan_omp_clauses): Added
20184 OMP_CLAUSE__CILK_FOR_COUNT_ case.
20185 (gimplify_adjust_omp_clauses): Ditto.
20186 (gimplify_omp_for): Added CILK_FOR case.
20187 (gimplify_expr): Ditto.
20188 * omp-low.c: Include cilk.h.
20189 (extract_omp_for_data): Set appropriate kind for
20190 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
20191 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
20192 (create_omp_child_function_name): Added second argument to handle
20194 (cilk_for_check_loop_diff_type): New function.
20195 (expand_cilk_for_call): Likewise.
20196 (expand_cilk_for): Likewise.
20197 (create_omp_child_function): Set cilk_for_count; handle the cases when
20198 it is true; call create_omp_child_function_name with second argument.
20199 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
20200 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
20201 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
20202 * tree-nested.c (convert_nonlocal_omp_clauses): Added
20203 OMP_CLAUSE__CILK_FOR_COUNT_ case.
20204 (convert_local_omp_clauses): Ditto.
20205 * tree-pretty-print.c (dump_omp_clause): Added
20206 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
20207 (dump_generic_node): Added CILK_FOR case.
20208 * tree.c (omp_clause_num_ops): New element
20209 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
20210 (omp_clause_code_name): New element _Cilk_for_count_.
20211 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
20212 * tree.def: Add tree code for CILK_FOR.
20214 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20216 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
20217 (ppc403-compare): Add "exts with dot" case.
20218 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
20219 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
20220 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
20221 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
20222 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
20223 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
20224 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
20225 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20226 cell-cmp-microcoded): Similarly.
20227 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
20228 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
20229 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
20230 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
20231 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
20232 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
20233 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
20234 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
20235 (power6-compare): Add "exts with dot" case.
20236 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
20237 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
20238 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
20240 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
20241 if avoiding Cell microcode.
20242 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
20243 (is_cracked_insn): Ditto.
20244 (insn_must_be_first_in_group): Ditto.
20245 * config/rs6000/rs6000.md (dot): Adjust comment.
20246 (cell_micro): Handle exts+dot.
20247 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
20248 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
20249 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
20250 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
20251 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
20252 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
20253 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
20255 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20257 * config/rs6000/rs6000.md (QHSI): Delete.
20258 (EXTQI, EXTHI, EXTSI): New mode iterators.
20259 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
20260 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
20261 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
20262 9 anonymous instructions, and 8 splitters): Delete.
20263 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
20264 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
20265 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
20266 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
20267 *zero_extendsi<mode>2_dot2): New.
20269 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20271 * config/rs6000/rs6000.md (any_extend): New code iterator.
20272 (u, su): New code attributes.
20273 (dmode, DMODE): New mode attributes.
20274 (<su>mul<mode>3_highpart): New.
20275 (*<su>mul<mode>3_highpart): New.
20276 (<su>mulsi3_highpart_le): New.
20277 (<su>muldi3_highpart_le): New.
20278 (<su>mulsi3_highpart_64): New.
20279 (<u>mul<mode><dmode>3): New.
20280 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
20281 splitters): Delete.
20282 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
20283 splitters): Delete.
20285 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20287 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
20288 *mulsi3_internal2, and two splitters): Delete.
20289 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
20291 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
20293 2014-09-02 Richard Biener <rguenther@suse.de>
20295 PR tree-optimization/62695
20296 * tree-ssa-structalias.c (find_func_clobbers): Add missing
20299 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
20302 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
20304 2014-09-01 Andi Kleen <ak@linux.intel.com>
20306 * file-find.c (add_prefix_begin): Add.
20307 (do_add_prefix): Rename from add_prefix with first argument.
20308 (add_prefix): Add new wrapper.
20309 * file-find.h (add_prefix_begin): Add.
20310 * gcc-ar.c (main): Support -B option.
20312 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
20314 * genemit.c: Include dumpfile.h.
20315 (gen_split): Print name of splitter function to dump file.
20317 2014-09-01 Richard Biener <rguenther@suse.de>
20319 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
20320 Use stack auto_vecs for constraint expressions.
20321 (find_func_aliases_for_call): Likewise.
20322 (find_func_aliases): Likewise.
20323 (find_func_clobbers): Likewise.
20325 2014-09-01 Richard Biener <rguenther@suse.de>
20327 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
20328 operands vector in most cases. Remove redundant code.
20330 2014-09-01 Olivier Hainque <hainque@adacore.com>
20332 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
20333 $WIND_BASE instead of designating a harcoded arbitrary home dir.
20334 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
20336 2014-09-01 Richard Biener <rguenther@suse.de>
20338 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
20339 copy_reference_ops_from_call, vn_nary_op_compute_hash,
20340 vn_reference_compute_hash, vn_reference_insert): Remove.
20341 (vn_reference_lookup_call): New function.
20342 * tree-ssa-sccvn.c (vn_reference_compute_hash,
20343 copy_reference_ops_from_ref, copy_reference_ops_from_call,
20344 vn_reference_insert, vn_nary_op_compute_hash): Make static.
20345 (create_reference_ops_from_call): Remove.
20346 (vn_reference_lookup_3): Properly update shared_lookup_references.
20347 (vn_reference_lookup_pieces): Assert that we updated
20348 shared_lookup_references properly.
20349 (vn_reference_lookup): Likewise.
20350 (vn_reference_lookup_call): New function.
20351 (visit_reference_op_call): Use it. Avoid re-building the
20353 (visit_reference_op_load): Remove redundant lookup.
20354 (visit_reference_op_store): Perform special tail-merging work
20355 only when possibly doing tail-merging.
20356 (visit_use): Likewise.
20357 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
20359 2014-09-01 Jakub Jelinek <jakub@redhat.com>
20362 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
20363 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
20364 (find_inc): Revert 2014-08-13 change.
20366 2014-09-01 Marek Polacek <polacek@redhat.com>
20368 PR middle-end/61903
20369 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
20370 Change the type of V to unsigned HOST_WIDE_INT.
20372 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
20374 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
20375 the size of byte markers.
20376 (do_shift_rotate): Fix confusion between host, target and marker byte
20378 (verify_symbolic_number_p): Likewise.
20379 (find_bswap_or_nop_1): Likewise.
20380 (find_bswap_or_nop): Likewise.
20382 2014-09-01 Olivier Hainque <hainque@adacore.com>
20384 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
20385 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
20387 2014-09-01 Jakub Jelinek <jakub@redhat.com>
20389 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
20390 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
20391 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
20393 2014-09-01 Yury Gribov <y.gribov@samsung.com>
20397 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
20398 (build_check_stmt): Likewise.
20399 (instrument_strlen_call): Likewise.
20400 (asan_expand_check_ifn): Likewise and fix types.
20401 (maybe_cast_to_ptrmode): New function.
20403 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20405 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
20407 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
20409 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
20411 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
20413 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
20414 prefix to function labels when generating fast indirect calls.
20416 2014-08-30 David Malcolm <dmalcolm@redhat.com>
20420 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
20421 param back from rtx_insn * to rtx. Rename param from "label" to
20422 "label_or_return", reintroducing "label" as an rtx_insn * after
20423 we've ensured it's not a RETURN.
20424 (first_active_target_insn): Likewise for return type and param;
20425 add a checked cast to rtx_insn * once we've ensured "insn" is not
20427 (steal_delay_list_from_target): Convert param "pnew_thread" back
20428 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
20430 (own_thread_p): Convert param "thread" back from an rtx_insn * to
20431 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
20432 cast once we've established we're not dealing with a RETURN,
20433 renaming subsequent uses of "thread" to "thread_insn".
20434 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
20436 (follow_jumps): Convert return type and param "label" from
20437 rtx_insn * back to rtx. Move initialization of "value" to after
20438 the handling for ANY_RETURN_P, adding a checked cast there to
20439 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
20440 rename to "this_label_or_return", reintroducing "this_label" as
20441 an rtx_insn * once we've handled the case where it could be an
20443 (fill_slots_from_thread): Rename param "thread" to
20444 "thread_or_return", converting from an rtx_insn * back to an rtx.
20445 Reintroduce name "thread" as an rtx_insn * local with a checked
20446 cast once we've handled the case of it being an ANY_RETURN_P.
20447 Convert local "new_thread" from an rtx_insn * back to an rtx.
20448 Add a checked cast when assigning to "trial" from "new_thread".
20449 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
20450 checked cast to rtx_insn * from "new_thread" when invoking
20452 (fill_eager_delay_slots): Convert locals "target_label",
20453 "insn_at_target" from rtx_insn * back to rtx.
20454 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
20455 (relax_delay_slots): Convert locals "trial", "target_label" from
20456 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
20457 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
20458 invoking update_block.
20459 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
20460 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
20462 * resource.h (mark_target_live_regs): Undo erroneous conversion
20463 of second param of r214693, converting it back from rtx_insn * to
20464 rtx, since it could be a RETURN.
20466 * resource.c (find_dead_or_set_registers): Similarly, convert
20467 param "jump_target" back from an rtx_insn ** to an rtx *, as we
20468 could be writing back a RETURN. Rename local rtx_insn * "next" to
20469 "next_insn", and introduce "lab_or_return" as a local rtx,
20470 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
20471 (mark_target_live_regs): Undo erroneous conversion
20472 of second param of r214693, converting it back from rtx_insn * to
20473 rtx, since it could be a RETURN. Rename it from "target" to
20474 "target_maybe_return", reintroducing the name "target" as a local
20475 rtx_insn * with a checked cast, after we've handled the case of
20478 2014-08-29 DJ Delorie <dj@redhat.com>
20480 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
20481 pointer size up to a power of two.
20482 * defaults.h (DWARF2_ADDR_SIZE): Round up.
20483 (POINTER_SIZE_UNITS): New, rounded up value.
20484 * dwarf2asm.c (size_of_encoded_value): Use it.
20485 (dw2_output_indirect_constant_1): Likewise.
20486 * expmed.c (init_expmed_one_conv): We now know the sizes of
20488 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
20489 * optabs.c (expand_float): Use precision, not size.
20490 (expand_fix): Likewise.
20491 * simplify-rtx (simplify_unary_operation_1): Likewise.
20492 * tree-dfa.c (get_ref_base_and_extent): Likewise.
20493 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
20494 (default_assemble_integer) Likewise.
20495 (dump_tm_clone_pairs): Likewise.
20496 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
20497 * var-tracking.c (adjust_mems): Allow partial-int modes also.
20498 (prepare_call_arguments): Likewise.
20499 * stor-layout.c (finalize_type_size): Preserve precision.
20500 (layout_type): Use precision, not size.
20502 * expr.c (convert_move): If the target has an explicit converter,
20505 2014-08-29 David Malcolm <dmalcolm@redhat.com>
20507 * gdbinit.in: Skip various inline functions in rtl.h when
20510 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
20513 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
20515 2014-08-29 Richard Biener <rguenther@suse.de>
20517 PR tree-optimization/62291
20518 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
20519 exactly the vector size needed and use quick_push.
20520 (phi_translate_1): Adjust comment.
20521 (valid_in_sets): Remove block argument and remove pointless
20523 (dependent_clean): Adjust for removal of block argument.
20525 (compute_antic_aux): Likewise.
20526 (compute_partial_antic_aux): Likewise.
20528 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
20529 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20530 Anna Tikhonova <anna.tikhonova@intel.com>
20531 Ilya Tocar <ilya.tocar@intel.com>
20532 Andrey Turetskiy <andrey.turetskiy@intel.com>
20533 Ilya Verbin <ilya.verbin@intel.com>
20534 Kirill Yukhin <kirill.yukhin@intel.com>
20535 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20537 * config/i386/sse.md
20538 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
20539 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
20540 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
20541 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
20543 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
20544 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20545 Anna Tikhonova <anna.tikhonova@intel.com>
20546 Ilya Tocar <ilya.tocar@intel.com>
20547 Andrey Turetskiy <andrey.turetskiy@intel.com>
20548 Ilya Verbin <ilya.verbin@intel.com>
20549 Kirill Yukhin <kirill.yukhin@intel.com>
20550 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20552 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
20553 * config/i386/sse.md
20554 (define_mode_iterator VI4_128_8_256): New.
20555 (define_mode_iterator VI2_128_4_256): Ditto.
20556 (define_mode_iterator PMOV_DST_MODE): Rename into
20557 (define_mode_iterator PMOV_DST_MODE_1): this.
20558 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
20559 Use PMOV_DST_MODE_1 mode iterator.
20560 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
20562 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
20564 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
20565 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
20566 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
20567 (define_mode_iterator PMOV_DST_MODE_2): New.
20568 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
20569 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
20570 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
20572 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
20573 (define_mode_attr pmov_dst_3): Ditto.
20574 (define_mode_attr pmov_dst_zeroed_3): Ditto.
20575 (define_mode_attr pmov_suff_3): Ditto.
20576 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
20577 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
20578 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
20579 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
20580 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
20581 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
20582 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
20583 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
20584 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
20585 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
20586 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
20587 (define_mode_attr pmov_dst_4): Ditto.
20588 (define_mode_attr pmov_dst_zeroed_4): Ditto.
20589 (define_mode_attr pmov_suff_4): Ditto.
20590 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
20591 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
20592 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
20593 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
20594 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
20595 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
20596 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
20597 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
20598 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
20599 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
20600 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
20602 2014-08-29 Richard Biener <rguenther@suse.de>
20604 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
20605 NON_LVALUE_EXPR in gimple.
20607 2014-08-29 Richard Biener <rguenther@suse.de>
20609 PR middle-end/62292
20610 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
20611 from previous refactoring.
20612 (gimple_fold_builtin_strncpy): Likewise.
20614 2014-08-29 David Malcolm <dmalcolm@redhat.com>
20617 * function.c (assign_parm_setup_reg): Remove erroneous checked
20618 cast to rtx_insn * on result of gen_extend_insn in favor of
20619 introducing a new local rtx "pat".
20621 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20623 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
20624 to silence warning.
20625 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
20627 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20629 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
20630 (next_insn): Likewise.
20631 * emit-rtl.c (next_insn): Likewise.
20632 (previous_insn): Likewise.
20633 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
20634 "insn" and "next" from rtx to rtx_insn *.
20635 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
20636 "insn", "insn1", "vliw_start", "prologue_end_note",
20637 "last_insn_in_packet".
20639 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20641 * shrink-wrap.h (active_insn_between): Strengthen both params from
20643 * function.c (active_insn_between): Likewise.
20645 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20647 * genattr.c (main): When writing out insn-attr.h, strengthen param
20648 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
20649 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
20650 writing out the definition of dfa_clear_single_insn_cache to the
20651 generated insn-automata.c
20653 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20655 * resource.h (clear_hashed_info_for_insn): Strengthen param from
20657 (incr_ticks_for_insn): Likewise.
20658 (init_resource_info): Likewise.
20660 * resource.c (init_resource_info): Likewise.
20661 (clear_hashed_info_for_insn): Likewise.
20662 (incr_ticks_for_insn): Likewise.
20664 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
20666 (steal_delay_list_from_target): Use methods of "seq".
20667 (try_merge_delay_insns): Use methods of "merged_insns".
20668 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
20669 (reorg_redirect_jump): Likewise for param "jump".
20671 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20673 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
20675 * config/s390/s390.c (s390_split_branches): Eliminate top-level
20676 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
20678 (s390_mainpool_finish): In three places, split out a local rtx
20679 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
20680 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
20681 and split another local rtx "insn" out into rtx "pat" and
20683 * config/sh/sh.c (output_branchy_insn): Rather than working
20684 directly on operands[9], introduce local rtx_code_label *
20685 variables named "lab" in two places, working on them, and then
20686 assigning them to operands[9], so that the intervening operations
20687 are known by the type system to be on insns.
20689 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20691 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
20694 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
20695 in invocation of INSN_HAS_LOCATION.
20697 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20699 * config/rs6000/altivec.h (vec_xl): New #define.
20700 (vec_xst): Likewise.
20701 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
20702 (XXSPLTD_V2DI): Likewise.
20703 (DIV_V2DI): Likewise.
20704 (UDIV_V2DI): Likewise.
20705 (MUL_V2DI): Likewise.
20706 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20707 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
20708 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
20709 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
20710 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
20711 (UNSPEC_VSX_DIVSD): Likewise.
20712 (UNSPEC_VSX_DIVUD): Likewise.
20713 (UNSPEC_VSX_MULSD): Likewise.
20714 (vsx_mul_v2di): New insn-and-split.
20715 (vsx_div_v2di): Likewise.
20716 (vsx_udiv_v2di): Likewise.
20717 (vsx_xxspltd_<mode>): New insn.
20719 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20721 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
20723 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
20724 (NEXT_INSN): Likewise.
20725 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
20726 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
20728 (no_labels_between_p): Likewise for both params.
20730 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
20731 cast when using NEXT_INSN on operands[2].
20732 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
20733 "insn" from rtx to rtx_insn *, adding a checked cast.
20734 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
20736 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
20738 (arc_text_label): Likewise for param "insn".
20739 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
20741 (arc_ccfsm_record_condition): Likewise for param "jump".
20742 (arc_text_label): Likewise for local "label".
20743 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
20744 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
20745 a method for typesafety. Add a checked cast.
20746 * config/arc/constraints.md (Clb): Add a checked cast when getting
20747 the CODE_LABEL from a LABEL_REF.
20748 * config/arm/arm.c (require_pic_register): Strengthen locals
20749 "seq", "insn" from rtx to rtx_insn *.
20750 (create_fix_barrier): Likewise for locals "selected", "next".
20751 (thumb1_reorg): Likewise for locals "prev", "insn".
20752 (arm_expand_prologue): Likewise for local "last".
20753 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
20755 (thumb2_output_casesi): Likewise for operands[2].
20756 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
20757 strengthen local "insn" from rtx to rtx_insn *.
20758 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
20759 type and param "insn".
20760 (find_prev_insn_start): Likewise.
20761 (hwloop_optimize): Likewise for locals "insn", "last_insn",
20763 (gen_one_bundle): Likewise for loal "t".
20764 (find_load): Likewise for param "insn".
20765 (workaround_speculation): Likewise for locals "insn", "next",
20766 "target", "next_tgt".
20767 * config/c6x/c6x.c (assign_reservations): Likewise for both params
20768 and for locals "insn", "within", "last".
20769 (count_unit_reqs): Likewise for params "head", "tail" and local
20771 (try_rename_operands): Likewise for params "head", "tail".
20772 (reshuffle_units): Likewise for locals "head", "tail", "insn".
20773 (struct c6x_sched_context): Likewise for fields
20774 "last_scheduled_insn", "last_scheduled_iter0".
20775 (init_sched_state): Replace NULL_RTX with NULL.
20776 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
20778 (undo_split_delayed_nonbranch): Likewise for param and for local
20780 (conditionalize_after_sched): Likewise for local "insn".
20781 (bb_earliest_end_cycle): Likewise.
20782 (filter_insns_above): Likewise for locals "insn", "next".
20783 (hwloop_optimize): Remove redundant checked cast.
20784 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
20785 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
20786 NULL_RTX with NULL.
20787 (cris_simple_epilogue): Likewise.
20788 (cris_expand_prologue): Likewise.
20789 (cris_expand_epilogue): Likewise.
20790 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
20791 local "insn" from rtx to rtx_insn *.
20792 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
20793 (struct frv_packet_group): Likewise for the elements within array
20794 fields "insns", "sorted", and for field "nop".
20795 (frv_packet): Likewise for the elements within array field
20797 (frv_add_insn_to_packet): Likewise for param "insn".
20798 (frv_insert_nop_in_packet): Likewise for param "insn" and local
20800 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
20801 (frv_sort_insn_group_1): Likewise for local "insn".
20802 (frv_optimize_membar_local): Likewise.
20803 (frv_align_label): Likewise for locals "x", "last", "barrier",
20805 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
20807 (ia64_sched_init): Likewise for local "insn".
20808 (scheduled_good_insn): Likewise for param "last".
20809 (struct _ia64_sched_context): Likewise for field
20810 "last_scheduled_insn".
20811 (ia64_init_sched_context): Replace NULL_RTX with NULL.
20812 (struct bundle_state): Likewise for field "insn".
20813 (issue_nops_and_insn): Likewise for param "insn".
20814 (get_next_important_insn): Likewise for return type and both
20816 (ia64_add_bundle_selector_before): Likewise for param "insn".
20817 (bundling): Likewise for params "prev_head_insn", "tail" and
20818 locals "insn", "next_insn", "b". Eliminate top-level local rtx
20819 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
20820 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
20821 Strengthen final param from rtx to rtx_insn *.
20822 (iq2000_move_1word): Likewise for second param.
20823 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
20824 param "cur_insn" and local "next_insn".
20825 (iq2000_move_1word): Likewise for param "insn".
20826 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
20827 casts when using NEXT_INSN on operands[1].
20828 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
20829 "insn" from rtx to rtx_insn *.
20830 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
20831 "x", introducing local rtx_insn * "insn" for when working with the
20832 CODE_LABEL of the LABEL_REF.
20833 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
20835 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
20837 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
20839 (conditionalize_block): Likewise for return type and param.
20840 (mcore_is_dead): Likewise for param "first" and local "insn".
20841 (emit_new_cond_insn): Likewise for return type.
20842 (conditionalize_block): Likewise for return type, param, and
20843 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
20845 (conditionalize_optimization): Likewise for local "insn".
20846 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
20848 * config/microblaze/microblaze.md: Add checked casts when using
20850 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
20851 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
20852 and rtx_insn * "insn".
20853 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
20854 checked cast when using NEXT_INSN on operands[2].
20855 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
20856 local "insn" from rtx to rtx_insn *.
20857 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
20859 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
20860 Add a checked cast when using NEXT_INSN on operands[1].
20861 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
20863 (pa_output_cbranch): Likewise for final param.
20864 (pa_output_lbranch): Likewise for second param.
20865 (pa_output_bb): Likewise for third param.
20866 (pa_output_bvb): Likewise.
20867 (pa_output_dbra): Likewise for second param.
20868 (pa_output_movb): Likewise.
20869 (pa_output_parallel_movb): Likewise.
20870 (pa_output_parallel_addb): Likewise.
20871 (pa_output_millicode_call): Likewise for first param.
20872 (pa_output_mul_insn): Likewise for second param.
20873 (pa_output_div_insn): Likewise for third param.
20874 (pa_output_mod_insn): Likewise for second param.
20875 (pa_jump_in_call_delay): Likewise for param.
20876 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
20877 (pa_output_div_insn): Likewise.
20878 (pa_output_mod_insn): Likewise.
20879 (pa_output_cbranch): Likewise.
20880 (pa_output_lbranch): Likewise.
20881 (pa_output_bb): Likewise.
20882 (pa_output_bvb): Likewise.
20883 (pa_output_dbra): Likewise.
20884 (pa_output_movb): Likewise.
20885 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
20886 to simplify and for typesafety.
20887 (pa_output_call): Use method of rtx_sequence *.
20888 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
20889 (pa_jump_in_call_delay): Likewise.
20890 (pa_output_parallel_movb): Likewise.
20891 (pa_output_parallel_addb): Likewise.
20892 (pa_following_call): Likewise.
20893 (pa_combine_instructions): Likewise for locals "anchor",
20895 (pa_can_combine_p): Likewise for params "anchor", "floater" and
20896 locals "start", "end".
20897 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
20898 param "insn" and local "local_insn".
20899 (picochip_final_prescan_insn): Likewise for local "local_insn".
20900 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
20902 (uses_TOC): Likewise.
20903 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
20904 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
20905 splitting out to more tightly-scoped locals, 3 as rtx and one as
20907 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
20909 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
20911 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
20913 (fixup_addr_diff_vecs): Likewise.
20914 (reg_unused_after): Likewise for param 2.
20915 (sh_can_redirect_branch): Likewise for both params.
20916 (check_use_sfunc_addr): Likewise for param 1.
20917 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
20918 (find_barrier): Likewise for local "last_got".
20919 (gen_block_redirect): Likewise for return type, param "jump" and
20920 locals "prev", "scan", "next", "insn".
20921 (struct far_branch): Likewise for fields "near_label",
20922 "insert_place", "far_label".
20923 (gen_far_branch): Likewise for local "jump".
20924 (fixup_addr_diff_vecs): Likewise for param "first" and locals
20926 (barrier_align): Likewise for param and for locals "prev", "x".
20927 Introduce local rtx_sequence * "prev_seq" and use insn method for
20928 typesafety and clarity.
20929 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
20930 (get_dest_uid): Likewise for local "dest".
20931 (split_branches): Likewise for locals "next", "beyond", "label",
20932 "block", "far_label". Add checked casts when assigning to
20933 bp->far_label and "far_label".
20934 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
20935 (sequence_insn_p): Likewise.
20936 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
20937 more loop-scoped rtx "insn" when walking LABEL_REFS.
20938 (sh_can_redirect_branch): Strengthen both params from rtx to
20940 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
20941 new local rtx_sequence * "seq" via a dyn_cast, and use a method
20942 for clarity and typesafety.
20943 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
20944 "insn" from rtx to rtx_insn *.
20945 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
20946 when using NEXT_INSN on the CODE_LABEL in operands[2].
20947 (define_insn "casesi_worker_2"): Likewise.
20948 (define_insn "casesi_shift_media"): Likewise.
20949 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
20951 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
20952 Strengthen field "insn" from rtx to rtx_insn *.
20953 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
20954 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
20955 param "start_insn" and local "start_insn".
20956 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
20958 (find_set_of_reg_bb): Likewise for param "insn".
20959 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
20960 (trace_reg_uses): Likewise for param "start_insn".
20961 (sh_treg_combine::cbranch_trace): Likewise for field
20963 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
20965 (sh_treg_combine::record_set_of_reg): Likewise for param
20966 "start_insn" and local "i".
20967 (sh_treg_combine::can_remove_cstore): Likewise for local
20969 (sh_treg_combine::try_optimize_cbranch): Likewise for param
20971 (sh_treg_combine::execute): Likewise for local "i".
20972 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
20974 (sparc_check_64): Likewise for second param.
20975 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
20976 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
20977 dyn_cast, using its insn method for typesafety and clarity.
20978 (empty_delay_slot): Strengthen param "insn" from rtx to
20980 (set_extends): Likewise.
20981 (sparc_check_64): Likewise.
20982 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
20983 for locals "seq", "last_insn".
20984 (combine_bnp): Likewise for param "insn".
20985 (xstormy16_reorg): Likewise for local "insn".
20986 * config/v850/v850.c (substitute_ep_register): Likewise for params
20987 "first_insn", "last_insn" and local "insn".
20988 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
20989 elements of "regs" array, and local "insn".
20990 * except.c (emit_note_eh_region_end): Likewise for param "insn".
20991 * final.c (final_sequence): Strengthen this global from rtx to
20993 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
20995 (final_scan_insn): Update assignment to "final_sequence" to be
20996 from "seq", the cast version of "body", for type-safety.
20997 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
20998 "insns" from rtx to rtx_insn *.
20999 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
21000 * genattr.c (main): When writing out generated insn-attr.h,
21001 strengthen params 1 and 3 of eligible_for_delay,
21002 eligible_for_annul_true, eligible_for_annul_false from rtx to
21004 * genattrtab.c (write_eligible_delay): Likewise when writing out
21005 generated insn-attrtab.c; also local "insn" the generated
21007 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
21009 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
21010 "start_label" from rtx to rtx_insn *.
21011 * ira.c (decrease_live_ranges_number): Likewise for local "p".
21012 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
21013 "insns" and local "insn".
21014 (validate_equiv_mem): Likewise for param "start" and local "insn".
21015 (memref_used_between_p): Likewise for params "start", "end" and
21017 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
21019 * loop-doloop.c (doloop_optimize): Within region guarded by
21020 INSN_P (doloop_pat), introduce a new local rtx_insn *
21021 "doloop_insn" via a checked cast, and use it for typesafety,
21022 eventually writing the value back into doloop_pat.
21023 * output.h (final_sequence): Strengthen this global from rtx to
21025 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
21026 reintroducing "insn" as an rtx_insn * via a checked cast.
21027 Strengthen param "attempt" and local "new_insn"from rtx to
21029 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
21031 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
21032 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
21033 "p" in favor of more tightly-scoped replacements, sometimes rtx
21034 and sometimes rtx_insn *, as appropriate.
21035 (delete_output_reload): Eliminate top-level rtx "i1", splitting
21036 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
21037 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
21038 local "trial" from rtx to rtx_insn *.
21039 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
21040 rtx to rtx_insn *. Strenghten local "pat" from rtx to
21041 rtx_sequence * and use methods for clarity and typesafety.
21042 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
21043 rtx to rtx_insn *. Strenghten local "li" from rtx to
21044 rtx_insn_list * and use its methods for clarity and typesafety.
21045 (steal_delay_list_from_target): Strengthen param "insn" from rtx
21047 (steal_delay_list_from_fallthrough): Likewise.
21048 (try_merge_delay_insns): Likewise for param "thread" and locals
21049 "trial", "next_trial", "delay_insn".
21050 (redundant_insn): Likewise for param "target" and local "trial".
21051 (own_thread_p): Likewise for param "thread" and locals
21052 "active_insn", "insn".
21053 (get_label_before): Likewise for param "insn".
21054 (fill_simple_delay_slots): Likewise for local "new_label"; use
21055 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
21056 (label_before_next_insn): Strengthen return type and local "insn"
21057 from rtx to rtx_insn *.
21058 (relax_delay_slots): Likewise for locals "other", "tmp".
21059 (make_return_insns): Likewise for param "first" and locals "insn",
21060 "jump_insn", "prev". Move declaration of "pat" to its assignment
21061 and strengthen from rtx to rtx_sequence *. Use its methods for
21062 clarity and typesafety.
21063 * rtlanal.c (no_labels_between_p): Strengthen params from
21064 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
21066 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
21067 from const_rtx to const rtx_insn *.
21068 (reg_set_between_p): Rename param "from_insn" to
21069 "uncast_from_insn", and reintroduce "from_insn" as a
21070 const rtx_insn * via a checked cast.
21071 (modified_between_p): Likewise for param "start" as "uncast_start".
21072 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
21073 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
21074 "tmp", head" from rtx to rtx_insn *.
21075 (recompute_rev_top_order): Likewise for local "insn".
21076 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
21077 * store-motion.c (build_store_vectors): Likewise for local "insn".
21078 Strengthen local "st" from rtx to rtx_insn_list * and use methods
21079 for clarity and typesafety.
21080 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
21082 (computation_cost): Likewise for local "seq".
21083 (get_address_cost): Likewise.
21085 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21087 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
21089 (label_is_jump_target_p): Likewise for second param.
21091 * rtlanal.c (tablejump_p): Likewise for param "insn".
21092 (label_is_jump_target_p): Likewise for param "jump_insn".
21094 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21096 * rtl.h (find_first_parameter_load): Strengthen return type and
21097 both params from rtx to rtx_insn *.
21098 * rtlanal.c (find_first_parameter_load): Strengthen return type,
21099 both params and locals "before", "first_set" from rtx to
21100 rtx_insn *. Remove now-redundant cast.
21101 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
21103 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21105 * rtl.h (find_last_value): Delete.
21106 * rtlanal.c (find_last_value): Delete.
21108 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21110 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
21111 from rtx to rtx_insn *.
21112 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
21113 rtx "note" with new local rtx_insn * "new_head" when calculating
21114 head insn of new basic block.
21115 * combine.c (combine_split_insns): Strengthen return type and local
21116 "ret" from rtx to rtx_insn *.
21117 (likely_spilled_retval_p): Likewise for locals "use" and "p".
21118 (try_combine): Eliminate local "m_split", splitting into new
21119 locals "m_split_insn" and "m_split_pat".
21120 (find_split_point): Strengthen local "seq" from rtx into
21122 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
21123 locals "label", "branch".
21124 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
21126 (define_expand "umulsi3_highpart"): Likewise for local "insn".
21127 * dse.c (note_add_store_info): Likewise for fields "first",
21129 (note_add_store): Likewise for local "insn".
21130 (emit_inc_dec_insn_before): Likewise for locals "insn",
21132 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
21133 (replace_read): Likewise for locals "insns", "this_insn".
21134 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
21135 (notice_eh_throw): Likewise for param "insn".
21136 (before_next_cfi_note): Likewise for return type, param, and local
21138 (connect_traces): Likewise for local "note".
21139 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
21140 (verify_rtl_sharing): Likewise.
21141 (unshare_all_rtl_in_chain): Likewise for param "insn".
21142 (get_first_nonnote_insn): Likewise for local "insn".
21143 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
21144 "seq" and use its methods to clarify things.
21145 (next_insn): Strengthen return type from rtx to rtx_insn *.
21146 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
21147 local rtx_insn * using a checked cast, dropping a checked cast
21148 made redundant by this change. Use a cast to and method of
21149 rtx_sequence to clarify the code.
21150 (previous_insn): Rename param "insn" to "uncast_insn" and
21151 reintroduce "insn" as a local rtx_insn * using a checked cast,
21152 dropping a checked cast made redundant by this change. Use a cast
21153 to and method of rtx_sequence to clarify the code.
21154 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
21155 reintroduce "insn" as a local rtx_insn * using a checked cast,
21156 dropping a checked cast made redundant by this change.
21157 (next_nonnote_insn_bb): Likewise.
21158 (prev_nonnote_insn): Likewise.
21159 (prev_nonnote_insn_bb): Likewise.
21160 (next_nondebug_insn): Likewise.
21161 (prev_nondebug_insn): Likewise.
21162 (next_nonnote_nondebug_insn): Likewise.
21163 (prev_nonnote_nondebug_insn): Likewise.
21164 (next_real_insn): Likewise.
21165 (prev_real_insn): Likewise.
21166 (next_active_insn): Likewise.
21167 (prev_active_insn): Likewise.
21168 (next_cc0_user): Likewise. Use rtx_sequence and a method for
21170 (prev_cc0_setter): Likewise.
21171 (try_split): Rename param "trial" to "uncast_trial" and
21172 reintroduce "insn" as a local rtx_insn * using a checked cast,
21173 dropping checked casts made redundant by this change.
21174 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
21176 (remove_insn): Rename param "insn" to "uncast_insn" and
21177 reintroduce "insn" as a local rtx_insn * using a checked cast.
21178 (emit_pattern_after_setloc): Likewise for param "after", as
21180 (emit_pattern_after): Likewise. Strengthen local "prev" from
21182 (emit_pattern_before_setloc): Rename param "before" to
21183 "uncast_before" and reintroduce "before" as a local rtx_insn *
21184 using a checked cast. Strengthen locals "first", "last" from
21186 (emit_pattern_before): Likewise rename/cast param "before" to
21187 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
21188 * except.c (copy_reg_eh_region_note_forward): Strengthen param
21189 "first" and local "insn" from rtx to rtx_insn *.
21190 (copy_reg_eh_region_note_backward): Likewise for param "last"
21192 * expr.c (fixup_args_size_notes): Rename param "last" to
21193 "uncast_last" and reintroduce "last" as a local rtx_insn *
21194 using a checked cast. Strengthen local "insn" from rtx to
21196 * function.c (set_insn_locations): Strengthen param "insn" from
21198 (record_insns): Likewise for param "insns" and local "tmp".
21199 (active_insn_between): Rename param "tail" to
21200 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
21201 using a checked cast.
21202 (thread_prologue_and_epilogue_insns): Split out top-level local
21203 rtx "seq" into three different rtx_insn * locals. Strengthen
21204 local "prologue_seq" from rtx to rtx_insn *.
21205 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
21206 from rtx to rtx_insn *.
21207 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
21208 (priority): Likewise for locals "prev_first", "twin".
21209 (setup_insn_max_reg_pressure): Likewise for param "after".
21210 (sched_setup_bb_reg_pressure_info): Likewise.
21211 (no_real_insns_p): Strengthen params from const_rtx to
21213 (schedule_block): Strengthen local "next_tail" from rtx to
21215 * ifcvt.c (find_active_insn_before): Strengthen return type and
21216 param "insn" from rtx to rtx_insn *.
21217 (find_active_insn_after): Likewise.
21218 (cond_exec_process_insns): Likewise for param "start" and local "insn".
21219 (cond_exec_process_if_block): Likewise for locals "then_start",
21220 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
21221 (noce_process_if_block): Likewise for local "jump".
21222 (merge_if_block): Likewise for two locals named "end".
21223 (cond_exec_find_if_block): Likewise for local "last_insn".
21224 * jump.c (delete_related_insns): Rename param "insn" to
21225 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
21226 checked cast. Strengthen local "p" from rtx to rtx_insn *.
21227 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
21229 (split_reg): Likewise.
21230 * lra.c (lra_process_new_insns): Likewise.
21231 * modulo-sched.c (permute_partial_schedule): Strengthen param
21232 "last" from rtx to rtx_insn *.
21233 * optabs.c (add_equal_note): Likewise for param "insns" and local
21235 (expand_binop_directly): Add checked casts to rtx_insn * within
21236 NEXT_INSN (pat) uses.
21237 (expand_unop_direct): Likewise.
21238 (maybe_emit_unop_insn): Likewise.
21239 * recog.c (peep2_attempt): Strengthen locals "last",
21240 "before_try", "x" from rtx to rtx_insn *.
21241 * reorg.c (optimize_skip): Strengthen return type and local
21242 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
21243 and locals "trial", "next_trial" from rtx to rtx_insn *.
21244 * resource.c (next_insn_no_annul): Strengthen return type and
21245 param "insn" from rtx to rtx_insn *. Use a cast to and method of
21246 rtx_sequence to clarify the code.
21247 (mark_referenced_resources): Add a checked cast to rtx_insn *
21248 within PREV_INSN (x).
21249 (find_dead_or_set_registers): Strengthen return type, param
21250 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
21251 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
21253 (mark_target_live_regs): Strengthen params "insns" and "target",
21254 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
21255 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
21257 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
21258 from rtx to rtx_insn *.
21259 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
21260 from rtx to rtx_insn *.
21261 (copy_reg_eh_region_note_backward): Likewise.
21262 (unshare_all_rtl_in_chain): Likewise for sole param.
21263 (dump_rtl_slim): Strengthen second and third params from const_rtx
21264 to const rtx_insn *.
21265 * sched-deps.c (sched_free_deps): Strengthen params "head" and
21266 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
21267 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
21268 "next_tail" from rtx to rtx_insn *.
21269 (begin_move_insn): Likewise for local "next".
21270 * sched-int.h (sched_free_deps): Likewise for first and second
21272 (no_real_insns_p): Strengthen both params from const_rtx to
21274 (sched_setup_bb_reg_pressure_info): Strengthen second params from
21276 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
21278 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
21279 and locals "insn", "tail" from const_rtx to const rtx_insn *.
21280 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
21282 (debug_rtl_slim): Strengthen params "first" and "last" from
21283 const_rtx to const rtx_insn *.
21284 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
21285 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
21286 (convert_to_simple_return): Likewise for param "returnjump".
21287 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
21289 (convert_to_simple_return): Likewise for param "returnjump".
21290 * valtrack.c (propagate_for_debug): Likewise for params
21292 * valtrack.h (propagate_for_debug): Likewise for second param.
21294 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21296 * output.h (insn_current_reference_address): Strengthen param
21297 from rtx to rtx_insn *.
21298 * final.c (insn_current_reference_address): Likewise.
21300 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21302 * basic-block.h (inside_basic_block_p): Strengthen param from
21303 const_rtx to const rtx_insn *.
21304 * cfgbuild.c (inside_basic_block_p): Likewise.
21306 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21308 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
21310 (get_trace_info): Likewise for param "insn".
21311 (save_point_p): Likewise.
21312 (maybe_record_trace_start): Likewise for both params.
21313 (maybe_record_trace_start_abnormal): Likewise.
21314 (create_trace_edges): Likewise for sole param and for three of the
21315 locals named "lab".
21316 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
21317 to rtx_insn *, and update a call to pat->element to pat->insn.
21319 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21321 * function.h (struct expr_status): Convert field "x_forced_labels"
21322 from rtx_expr_list * to rtx_insn_list *.
21324 * cfgbuild.c (make_edges): Convert local "x" from an
21325 rtx_expr_list * to an rtx_insn_list *, replacing use of
21326 "element" method with "insn" method.
21327 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
21328 * except.c (sjlj_emit_dispatch_table): Replace use of
21329 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
21331 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
21332 rtx_expr_list * to an rtx_insn_list *, replacing use of
21333 "element" method with "insn" method.
21334 * reload1.c (set_initial_label_offsets): Likewise for local "x".
21335 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
21336 rtx_insn *, adding a checked cast. Replace use of
21337 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
21339 (expand_label): Likewise for local "label_r".
21341 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21343 * function.h (struct rtl_data): Convert field
21344 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
21346 * rtl.h (remove_node_from_insn_list): New prototype.
21348 * builtins.c (expand_builtin): When prepending to
21349 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
21351 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
21352 to rtx_insn_list *, and use its "insn" method rather than
21354 * cfgrtl.c (delete_insn): Use new function
21355 remove_node_from_insn_list rather than
21356 remove_node_from_expr_list.
21357 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
21358 to rtx_insn_list *, and use its "insn" method rather than
21360 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
21361 * reload1.c (set_initial_label_offsets): Likewise for local "x".
21362 * rtlanal.c (remove_node_from_insn_list): New function, adapted
21363 from remove_node_from_expr_list.
21364 * stmt.c (expand_label): When prepending to
21365 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
21368 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21370 * function.h (struct rtl_data): Strengthen fields "x_return_label"
21371 and "x_naked_return_label" from rtx to rtx_code_label *.
21373 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21375 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
21376 (SET_NEXT_INSN): Likewise.
21377 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
21379 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
21380 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
21381 to split out the SEQUENCE from local "bundle", strengthening the
21382 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
21383 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
21384 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
21385 and the type of the elements of the "slot" array from rtx to
21387 (reorg_split_calls): Likewise for locals "insn" and "next", and
21388 the type of the elements of the "slot" array.
21390 * config/frv/frv.c (frv_nops): Likewise for the elements of this
21392 (frv_function_prologue): Likewise for locals "insn", "next",
21394 (frv_register_nop): Introduce a local "nop_insn" to be the
21395 rtx_insn * containing rtx "nop".
21397 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
21398 used as an insn and sometimes as a pattern, so rename it to
21399 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
21400 using it where dealing with the core insn.
21402 * config/picochip/picochip.c (reorder_var_tracking_notes):
21403 Strengthen locals "insn", "next", "last_insn", "queue",
21404 "next_queue", "prev" from rtx to rtx_insn *.
21406 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
21407 the second param is an rtx_insn ** rather than an rtx **.
21408 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
21409 from rtx to rtx_sequence *, and introduce local named "sequence",
21410 using methods of rtx_sequence to clarify the code.
21411 (remove_insn): Introduce local rtx_sequence * named "sequence" and
21413 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
21414 Rename param "after" to "uncast_after", reintroducing "after" as a
21415 local rtx_insn * with a checked cast.
21416 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
21417 reintroducing "after" as a local rtx_insn * with a checked cast.
21418 Strengthen local "last" from rtx to rtx_insn * and remove the
21419 now-redundant checked casts.
21420 (copy_delay_slot_insn): Strengthen return type and param from rtx
21423 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
21424 "last" from rtx to rtx_insn *.
21426 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21428 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
21429 param from rtx to rtx_insn *.
21431 * emit-rtl.c (copy_delay_slot_insn): Likewise.
21433 * reorg.c (skip_consecutive_labels): Strengthen return type, param
21434 and local "insn" from rtx to rtx_insn *.
21435 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
21436 (unfilled_slots_next): Likewise.
21437 (function_return_label): Strengthen from rtx to rtx_code_label *.
21438 (function_simple_return_label): Likewise.
21439 (first_active_target_insn): Strengthen return type and param from
21441 (find_end_label): Strengthen return type from rtx to
21442 rtx_code_label *; strengthen locals as appropriate.
21443 (emit_delay_sequence): Strengthen return type, param "insn" and
21444 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
21445 and local "li" from rtx to rtx_insn_list *, using methods of
21446 rtx_insn_list for clarity and typesafety.
21447 (add_to_delay_list): Strengthen return type and param "insn" from
21448 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
21449 rtx_insn_list * and use methods of rtx_insn_list.
21450 (delete_from_delay_slot): Strengthen return type, param "insn",
21451 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
21452 Strengthen local "seq" from rtx to rtx_sequence *, and local
21453 "delay_list" from rtx to rtx_insn_list *, using methods of
21454 rtx_sequence for clarity and type-safety.
21455 (delete_scheduled_jump): Add checked cast when invoking
21456 delete_from_delay_slot. Strengthen local "trial" from rtx to
21458 (optimize_skip): Strengthen return type and local "delay_list"
21459 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
21461 (steal_delay_list_from_target): Strengthen return type, param
21462 "delay_list" and local "new_delay_list" from rtx to
21463 rtx_insn_list *. Strengthen param "seq" from rtx to
21464 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
21466 Split out local "temp" into multiple more-tightly scoped locals:
21467 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
21468 of rtx_insn_list and rtx_sequence for clarity and typesafety.
21469 Strengthen locals named "trial" from rtx to rtx_insn *.
21470 (steal_delay_list_from_fallthrough): Strengthen return type and
21471 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
21472 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
21473 Strengthen local "trial" from rtx to rtx_insn *.
21474 (try_merge_delay_insns): Strength local "merged_insns" from rtx
21475 to rtx_insn_list * and use its methods. Strengthen local "pat"
21476 from rtx to rtx_sequence * and use its methods. Strengthen locals
21477 "dtrial" and "new_rtx" from rtx to rtx_insn *.
21478 (get_label_before): Strengthen return type and local "label" from
21480 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
21481 "next_trial", "next", prev". Strengthen local "delay_list" from
21482 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
21484 (follow_jumps): Strengthen return type, param "label" and locals
21485 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
21486 (fill_slots_from_thread): Strengthen return type, param
21487 "delay_list" from rtx to rtx_insn_list *. Strengthen params
21488 "insn", "thread", "opposite_thread" and locals "new_thread",
21489 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
21490 "sequence" from a checked cast to rtx_sequence so that we can call
21491 steal_delay_list_from_target and steal_delay_list_from_fallthrough
21492 with an rtx_sequence *.
21493 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
21494 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
21495 Strengthen local "delay_list" from rtx to rtx_insn_list *.
21496 (relax_delay_slots): Strengthen param "first" and locals "insn",
21497 "next", "trial", "delay_insn", "target_label" from rtx to
21498 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
21499 Introduce a local "trial_seq" for PATTERN (trial) of type
21500 rtx_sequence *, in both cases using methods of rtx_sequence.
21501 (dbr_schedule): Strengthen param "first" and locals "insn",
21502 "next", "epilogue_insn" from rtx to rtx_insn *.
21504 2014-08-28 Richard Biener <rguenther@suse.de>
21506 PR tree-optimization/62283
21507 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21508 Do not peel loops for alignment where the vector loop likely
21509 doesn't run at least VF times.
21511 2014-08-28 Bin Cheng <bin.cheng@arm.com>
21513 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
21514 important_candidates. Consider all important candidates if
21515 IVS doesn't give any result. Remove check on ivs->upto.
21516 (try_add_cand_for): Call iv_ca_add_use only once.
21518 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21519 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21520 Anna Tikhonova <anna.tikhonova@intel.com>
21521 Ilya Tocar <ilya.tocar@intel.com>
21522 Andrey Turetskiy <andrey.turetskiy@intel.com>
21523 Ilya Verbin <ilya.verbin@intel.com>
21524 Kirill Yukhin <kirill.yukhin@intel.com>
21525 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21527 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
21528 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
21530 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
21531 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
21532 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
21533 (define_insn "*mul<mode>3"): Add EVEX version.
21535 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21536 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21537 Anna Tikhonova <anna.tikhonova@intel.com>
21538 Ilya Tocar <ilya.tocar@intel.com>
21539 Andrey Turetskiy <andrey.turetskiy@intel.com>
21540 Ilya Verbin <ilya.verbin@intel.com>
21541 Kirill Yukhin <kirill.yukhin@intel.com>
21542 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21544 * config/i386/sse.md
21545 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
21546 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
21547 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
21548 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
21549 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
21550 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
21551 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
21552 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
21553 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
21554 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
21555 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
21556 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
21557 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
21558 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
21559 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
21560 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"):
21563 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21564 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21565 Anna Tikhonova <anna.tikhonova@intel.com>
21566 Ilya Tocar <ilya.tocar@intel.com>
21567 Andrey Turetskiy <andrey.turetskiy@intel.com>
21568 Ilya Verbin <ilya.verbin@intel.com>
21569 Kirill Yukhin <kirill.yukhin@intel.com>
21570 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21572 * config/i386/sse.md
21573 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
21574 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
21575 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
21577 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21578 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21579 Anna Tikhonova <anna.tikhonova@intel.com>
21580 Ilya Tocar <ilya.tocar@intel.com>
21581 Andrey Turetskiy <andrey.turetskiy@intel.com>
21582 Ilya Verbin <ilya.verbin@intel.com>
21583 Kirill Yukhin <kirill.yukhin@intel.com>
21584 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21586 * config/i386/sse.md
21587 (define_mode_iterator VI128_256): New.
21588 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
21590 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21591 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21592 Anna Tikhonova <anna.tikhonova@intel.com>
21593 Ilya Tocar <ilya.tocar@intel.com>
21594 Andrey Turetskiy <andrey.turetskiy@intel.com>
21595 Ilya Verbin <ilya.verbin@intel.com>
21596 Kirill Yukhin <kirill.yukhin@intel.com>
21597 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21599 * config/i386/sse.md
21600 (define_mode_iterator VI8_256_512): New.
21601 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
21603 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
21604 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
21606 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
21608 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21610 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
21611 pointer to the cumulative reloc value and return the value for
21612 this reloc instead.
21613 (compute_reloc_for_rtx): Take a const_rtx. Call
21614 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
21615 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
21616 for_each_rtx for the CONST case.
21618 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21620 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
21621 (mark_constants_in_pattern): ...this new function to iterate over
21623 (mark_constants): Update accordingly.
21625 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21627 * varasm.c: Include rtl-iter.h.
21628 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
21629 Remove the pointer to the cumulative hashval_t and just return
21630 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
21631 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21632 Accumulate the hashval_ts here instead of const_rtx_hash_1.
21634 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21636 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
21637 Give real type of data parameter. Remove return value.
21638 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
21639 to iterate over subrtxes.
21641 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21643 * var-tracking.c (use_narrower_mode_test): Turn from being a
21644 for_each_rtx callback to being a function that examines each
21646 (adjust_mems): Update accordingly.
21648 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21650 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
21651 callback to being a function that examines each subrtx itself.
21652 Remove handling of null rtxes.
21653 (add_uses): Update accordingly.
21655 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21657 * var-tracking.c: Include rtl-iter.h.
21658 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
21659 to being a function that examines each subrtx itself.
21660 (use_type): Update accordingly.
21662 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21664 * store-motion.c: Include rtl-iter.h.
21665 (extract_mentioned_regs_1): Delete.
21666 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
21667 for_each_rtx to iterate over subrtxes.
21669 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21671 * sel-sched.c: Include rtl-iter.h
21672 (count_occurrences_1): Delete.
21673 (count_occurrences_equiv): Turn rtxes into const_rtxes.
21674 Use FOR_EACH_SUBRTX rather than for_each_rtx.
21676 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21678 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
21679 * rtlanal.c (tls_referenced_p_1): Delete.
21680 (tls_referenced_p): Take a const_rtx rather than an rtx.
21681 Use FOR_EACH_SUBRTX rather than for_each_rtx.
21683 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21685 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
21686 (for_each_inc_dec): Take an rtx rather than an rtx *.
21687 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
21688 (cselib_record_sets): Likewise.
21689 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
21690 (check_for_inc_dec): Likewise.
21691 * rtlanal.c (for_each_inc_dec_ops): Delete.
21692 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
21693 rather than a pointer to the memory address. Replace
21694 for_each_inc_dec_ops argument with separate function and data
21695 arguments. Abort on non-autoinc addresses.
21696 (for_each_inc_dec_find_mem): Delete.
21697 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
21698 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
21700 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21702 * rtl.h (find_all_hard_regs): Declare.
21703 * rtlanal.c (find_all_hard_regs): New function.
21704 (record_hard_reg_uses_1): Delete.
21705 (record_hard_reg_uses): Use find_all_hard_regs.
21707 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21709 * rtl.h (replace_label_data): Delete.
21710 (replace_label): Take the old label, new label and update-nuses flag
21711 as direct arguments. Return void.
21712 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
21713 * rtlanal.c (replace_label): Update interface as above. Handle
21714 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
21715 iterator. Use FOR_EACH_SUBRTX_PTR.
21717 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21719 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
21720 with const_rtx parameters.
21721 * varasm.c (get_pool_constant): Likewise.
21722 * rtlanal.c (rtx_referenced_p_1): Delete.
21723 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21724 Assert that the rtx we're looking for is nonnull. Allow searches
21725 for constant pool SYMBOL_REFs.
21727 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21729 * reload1.c: Include rtl-iter.h.
21730 (note_reg_elim_costly): Turn from being a for_each_rtx callback
21731 to being a function that examines each subrtx itself.
21732 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
21734 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21736 * regcprop.c (cprop_find_used_regs_1): Delete.
21737 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21739 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21741 * regcprop.c: Include rtl-iter.h.
21742 (kill_value): Take a const_rtx.
21743 (kill_autoinc_value): Turn from being a for_each_rtx callback
21744 to being a function that examines each subrtx itself.
21745 (copyprop_hardreg_forward_1): Update accordingly.
21747 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21749 * reg-stack.c: Include rtl-iter.h.
21750 (subst_stack_regs_in_debug_insn): Delete.
21751 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
21752 instead of for_each_rtx.
21754 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21756 * lower-subreg.c (find_decomposable_subregs): Turn from being
21757 a for_each_rtx callback to being a function that examines each
21758 subrtx itself. Remove handling of null rtxes.
21759 (decompose_multiword_subregs): Update accordingly.
21761 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21763 * lower-subreg.c (adjust_decomposed_uses): Delete.
21764 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
21765 Remove handling of null rtxes.
21767 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21769 * lower-subreg.c: Include rtl-iter.h.
21770 (resolve_subreg_use): Turn from being a for_each_rtx callback
21771 to being a function that examines each subrtx itself. Remove
21772 handling of null rtxes.
21773 (resolve_reg_notes, resolve_simple_move): Update accordingly.
21774 (decompose_multiword_subregs): Likewise.
21776 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21778 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
21779 to being a function that examines each subrtx itself.
21780 (simplify_using_condition, simplify_using_initial_values): Update
21783 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21785 * loop-iv.c: Include rtl-iter.h.
21786 (find_single_def_src): New function.
21787 (replace_single_def_regs): Turn from being a for_each_rtx callback
21788 to being a function that examines each subrtx itself.
21789 (replace_in_expr, simplify_using_initial_values): Update accordingly.
21791 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21793 * jump.c (eh_returnjump_p_1): Delete.
21794 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
21795 Remove handling of null rtxes.
21797 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21799 * jump.c: Include rtl-iter.h.
21800 (returnjump_p_1): Delete.
21801 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
21802 Remove handling of null rtxes.
21804 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21806 * ira.c: Include rtl-iter.h.
21807 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
21808 to being a function that examines each subrtx itself. Remove
21809 handling of null rtxes.
21810 (update_equiv_regs): Update call accordingly.
21812 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21814 * fwprop.c: Include rtl-iter.h.
21815 (varying_mem_p): Turn from being a for_each_rtx callback to being
21816 a function that examines each subrtx itself.
21817 (propagate_rtx): Update accordingly.
21819 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21821 * function.c: Include rtl-iter.h
21822 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
21823 callback to being a function that examines each subrtx itself.
21824 Return the changed flag.
21825 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
21826 (instantiate_virtual_regs): Update calls accordingly.
21828 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21830 * final.c: Include rtl-iter.h.
21831 (mark_symbol_ref_as_used): Delete.
21832 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
21835 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21837 * emit-rtl.c: Include rtl-iter.h.
21838 (find_auto_inc): Turn from being a for_each_rtx callback to being
21839 a function that examines each subrtx itself. Assume the first operand
21840 to an RTX_AUTOINC is the automodified register.
21841 (try_split): Update call accordingly.
21843 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21845 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
21846 Return a bool, inverting the result so that 0/false means "not ok".
21847 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
21848 subrtxes of a CONST.
21849 (mem_loc_descriptor, add_const_value_attribute)
21850 (resolve_addr_in_expr): Update calls accordingly.
21852 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21854 * dwarf2out.c: Include rtl-iter.h.
21855 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
21856 Remove unused data parameter. Return a bool, inverting the result
21857 so that 0/false means "not ok".
21858 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
21859 instead of for_each_rtx.
21861 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21863 * dse.c: Include rtl-iter.h.
21864 (check_mem_read_rtx): Change void * parameter to real type.
21865 Remove return value.
21866 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
21867 for_each_rtx. Don't handle null rtxes.
21869 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21871 * df-problems.c: Include rtl-iter.h.
21872 (find_memory): Turn from being a for_each_rtx callback to being
21873 a function that examines each subrtx itself. Continue to look for
21874 volatile references even after a nonvolatile one has been found.
21875 (can_move_insns_across): Update calls accordingly.
21877 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21879 * ddg.c (walk_mems_2, walk_mems_1): Delete.
21880 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
21881 to iterate over subrtxes. Return a bool rather than an int.
21883 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21885 * ddg.c: Include rtl-iter.h.
21886 (mark_mem_use_1): Rename to...
21887 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
21888 instead of for_each_rtx.
21889 (mem_read_insn_p): Update accordingly.
21891 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21893 * cse.c (change_cc_mode_args): Delete.
21894 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
21895 a function that examines each subrtx itself. Take the fields of
21896 change_cc_mode_args as argument and return void.
21897 (cse_change_cc_mode_insn): Update calls accordingly.
21899 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21901 * cse.c (is_dead_reg): Change argument to const_rtx.
21902 (dead_debug_insn_data): Delete.
21903 (is_dead_debug_insn): Expand commentary. Turn from being a
21904 for_each_rtx callback to being a function that examines
21905 each subrtx itself. Take the fields of dead_debug_insn_data
21907 (delete_trivially_dead_insns): Update call accordingly.
21909 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21911 * cse.c (check_for_label_ref): Move earlier in file. Turn from
21912 being a for_each_rtx callback to being a function that examines
21913 each subrtx itself.
21914 (cse_extended_basic_block): Update call accordingly.
21916 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21918 * cse.c (check_dependence_data): Delete.
21919 (check_dependence): Change from being a for_each_rtx callback to being
21920 a function that examines all subrtxes itself. Don't handle null rtxes.
21921 (invalidate): Update call accordingly.
21923 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21925 * cse.c: Include rtl-iter.h.
21926 (approx_reg_cost_1): Delete.
21927 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21928 Don't handle null rtxes.
21930 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21932 * cfgcleanup.c: Include rtl-iter.h.
21933 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
21934 to being a function that examines each subrtx itself.
21935 (thread_jump): Update accordingly.
21937 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21939 * combine-stack-adj.c: Include rtl-iter.h.
21940 (record_stack_refs_data): Delete.
21941 (record_stack_refs): Turn from being a for_each_rtx callback
21942 to being a function that examines each subrtx itself.
21943 Take a pointer to the reflist. Invert sense of return value
21944 so that true means success and false means failure. Don't
21946 (combine_stack_adjustments_for_block): Update accordingly.
21948 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21950 * combine.c (record_truncated_value): Turn from being a for_each_rtx
21951 callback to a function that takes an rtx and returns a bool
21952 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
21955 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21957 * combine.c: Include rtl-iter.h.
21958 (unmentioned_reg_p_1): Delete.
21959 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
21960 Don't handle null rtxes.
21962 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21964 * calls.c: Include rtl-iter.h.
21965 (internal_arg_pointer_based_exp_1): Delete.
21966 (internal_arg_pointer_based_exp): Take a const_rtx.
21967 Use FOR_EACH_SUBRTX to iterate over subrtxes.
21969 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21971 * caller-save.c: Include rtl-iter.h.
21972 (add_used_regs_1): Delete.
21973 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
21974 to iterate over subrtxes. Assert that any remaining pseudos
21977 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21979 * bt-load.c: Include rtl-iter.h.
21980 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
21981 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
21982 to iterate over subrtxes.
21983 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
21984 find_btr_use rather than btr_referenced_p.
21986 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21988 * alias.c: Include rtl-iter.h.
21989 (refs_newer_value_cb): Delete.
21990 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21992 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21994 * rtl-iter.h: New file.
21995 * rtlanal.c: Include it.
21996 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
21997 (generic_subrtx_iterator <T>::add_single_to_queue)
21998 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
21999 (generic_subrtx_iterator <T>::free_array): New functions.
22000 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
22001 (generic_subrtx_iterator <const_rtx_accessor>)
22002 (generic_subrtx_iterator <rtx_var_accessor>
22003 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
22004 (setup_reg_subrtx_bounds): New function.
22005 (init_rtlanal): Call it.
22007 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
22010 * config/sh/sh.md (ashlsi3): Handle negative shift count for
22012 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
22014 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
22016 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
22018 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22020 * rtl.h (JUMP_LABEL_AS_INSN): New.
22022 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22024 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
22026 (alloc_EXPR_LIST): Strengthen return type from rtx to
22028 (remove_free_EXPR_LIST_node): Likewise for param.
22029 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
22030 from rtx to rtx_expr_list *.
22031 * sched-int.h (struct deps_desc): Strengthen fields
22032 "pending_read_mems" and "pending_write_mems" from rtx to
22035 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
22036 rtx to rtx_expr_list *.
22037 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
22038 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
22040 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
22041 from rtx to rtx_expr_list *.
22042 * loop-iv.c (simplify_using_initial_values): Strengthen local
22043 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
22044 "pnote_next" from rtx * to rtx_expr_list **.
22045 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
22046 param "exprp" from rtx * to rtx_expr_list **.
22047 (add_insn_mem_dependence): Strengthen local "mem_list" from
22048 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
22049 to rtx_expr_list *.
22050 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
22051 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
22052 param "old_mems_p" from rtx * to rtx_expr_list **.
22053 * var-tracking.c (struct adjust_mem_data): Strengthen field
22054 "side_effects" from rtx to rtx_expr_list *.
22055 (adjust_insn): Replace NULL_RTX with NULL when assigning to
22057 (prepare_call_arguments): Likewise.
22059 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22061 * function.h (struct rtl_data): Strengthen field
22062 "x_stack_slot_list" from rtx to rtx_expr_list *.
22064 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
22065 when assigning to stack_slot_list.
22067 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22069 * function.h (struct rtl_data): Strengthen field
22070 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
22071 * rtl.h (remove_node_from_expr_list): Strengthen second param from
22072 rtx * to rtx_expr_list **.
22074 * cfgbuild.c (make_edges): In loop over
22075 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
22076 rtx_expr_list *, and use methods of the latter class to clarify
22078 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
22079 rtx_expr_list *, and use methods of the latter class to clarify
22081 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
22082 * reload1.c (set_initial_label_offsets): Likewise for local "x".
22083 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
22084 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
22085 to rtx_expr_list *. Use methods of the latter class to clarify
22088 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22090 * function.h (struct expr_status): Strengthen field
22091 "x_forced_labels" from rtx to rtx_expr_list *.
22093 * cfgbuild.c (make_edges): Split local "x" into two locals,
22094 strengthening one from rtx to rtx_expr_list *, and using methods
22096 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
22097 loop over forced_labels, introduce strengthen it from rtx to
22098 rtx_expr_list *, using methods to clarify the code.
22099 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
22100 to rtx_expr_list *, using methods of said class to clarify the
22102 * reload1.c (set_initial_label_offsets): Split local "x" into two
22103 per-loop variables, strengthening the first from rtx to
22104 rtx_expr_list * and using methods.
22106 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22108 * coretypes.h (class rtx_expr_list): Add forward declaration.
22109 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
22110 * gengenrtl.c (special_rtx): Add EXPR_LIST.
22111 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
22112 invariant: GET_CODE (X) == EXPR_LIST.
22113 (is_a_helper <rtx_expr_list *>::test): New.
22114 (rtx_expr_list::next): New.
22115 (rtx_expr_list::element): New.
22116 (gen_rtx_EXPR_LIST): New.
22118 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22120 * varasm.c (mark_constants): Convert a GET_CODE check into a
22121 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
22122 Use methods of rtx_sequence to clarify the code.
22124 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22126 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
22127 local "seq" via a checked cast, and use methods of rtx_sequence
22128 to simplify the code.
22130 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22132 * resource.c (mark_referenced_resources): Strengthen local
22133 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
22134 using methods of rtx_sequence to clarify the code.
22135 (find_dead_or_set_registers): Within the switch statement, convert
22136 a GET_CODE check to a dyn_cast, introducing local "seq". Within
22137 the JUMP_P handling, introduce another local "seq", adding a
22138 checked cast to rtx_sequence *. In both cases, use methods of
22139 rtx_sequence to clarify the code.
22140 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
22141 via a checked cast, and use methods of rtx_sequence to simplify
22144 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22146 * reorg.c (redundant_insn): In two places in the function, replace
22147 a check of GET_CODE with a dyn_cast, introducing local "seq", and
22148 usings methods of rtx_sequence to clarify the code.
22150 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22152 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
22153 local "seq" with a checked cast, and use methods of rtx_sequence
22154 to clarify the code.
22156 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22158 * function.c (contains): Introduce local "seq" for PATTERN (insn),
22159 with a checked cast, in the region for where we know it's a
22160 SEQUENCE. Use methods of rtx_sequence.
22162 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22164 * final.c (get_attr_length_1): Replace GET_CODE check with a
22165 dyn_cast, introducing local "seq" and the use of methods of
22167 (shorten_branches): Likewise, introducing local "body_seq".
22168 Strengthen local "inner_insn" from rtx to rtx_insn *.
22169 (reemit_insn_block_notes): Replace GET_CODE check with a
22170 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
22171 Use methods of rtx_sequence.
22172 (final_scan_insn): Likewise, introducing local "seq" for when
22173 "body" is known to be a SEQUENCE, using its methods.
22175 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22177 * except.c (can_throw_external): Strengthen local "seq" from rtx
22178 to rtx_sequence *. Use methods of rtx_sequence.
22179 (insn_nothrow_p): Likewise.
22181 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22183 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
22184 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
22185 Use methods of rtx_sequence.
22186 (scan_trace): Likewise for local "pat".
22188 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22190 * coretypes.h (class rtx_sequence): Add forward declaration.
22191 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
22192 invariant: GET_CODE (X) == SEQUENCE.
22193 (is_a_helper <rtx_sequence *>::test): New.
22194 (is_a_helper <const rtx_sequence *>::test): New.
22195 (rtx_sequence::len): New.
22196 (rtx_sequence::element): New.
22197 (rtx_sequence::insn): New.
22199 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22201 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
22203 (alloc_INSN_LIST): Strengthen return type from rtx to
22205 (copy_INSN_LIST): Likewise for return type and param.
22206 (concat_INSN_LIST): Likewise for both params and return type.
22207 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
22208 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
22209 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
22210 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
22212 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
22213 "implicit_sets", "control_uses", "clobbers" from rtx to
22215 (struct deps_desc): Likewise for fields "pending_read_insns",
22216 "pending_write_insns", "pending_jump_insns",
22217 "last_pending_memory_flush", "last_function_call",
22218 "last_function_call_may_noreturn", "sched_before_next_call",
22219 "sched_before_next_jump".
22220 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
22221 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
22223 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
22224 from rtx to rtx_insn_list *.
22225 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
22228 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
22229 to rtx_insn_list **.
22230 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
22232 (queue_insn): Likewise for local "link".
22233 (struct haifa_saved_data): Strengthen field "insn_queue" from
22234 rtx * to rtx_insn_list **.
22235 (save_backtrack_point): Update allocation of save->insn_queue to
22236 reflect the strengthening of elements from rtx to rtx_insn_list *.
22237 (queue_to_ready): Strengthen local "link" from rtx to
22238 rtx_insn_list *; use methods "next" and "insn" when traversing the
22240 (early_queue_to_ready): Likewise for locals "link", "next_link",
22242 (schedule_block): Update allocation of insn_queue to reflect the
22243 strengthening of elements from rtx to rtx_insn_list *. Strengthen
22244 local "link" from rtx to rtx_insn_list *, and use methods when
22246 (add_to_speculative_block): Strengthen locals "twins" and
22247 "next_node" from rtx to rtx_insn_list *, and use methods when
22248 working with them. Strengthen local "twin" from rtx to
22249 rtx_insn *, eliminating a checked cast.
22250 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
22251 from rtx to rtx_insn_list *, and use methods when working with
22254 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
22255 from rtx to rtx_insn_list *, adding a checked cast.
22256 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
22258 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
22259 "newlink" from rtx to rtx_insn_list *. Strengthen local
22260 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
22261 from rtx to rtx_insn *.
22262 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
22263 from rtx to rtx_insn_list *. Use methods of the latter class.
22264 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
22265 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
22266 (remove_free_INSN_LIST_node): Strengthen return type and local
22267 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
22268 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
22269 rtx_insn_list *, using "insn" method.
22271 * sched-deps.c (add_dependence_list): Strengthen param "list"
22272 from rtx to rtx_insn_list *, and use methods when working with it.
22273 (add_dependence_list_and_free): Strengthen param "listp" from
22274 rtx * to rtx_insn_list **.
22275 (remove_from_dependence_list): Strenghten param "listp" from rtx *
22276 to rtx_insn_list **, and use methods when working with *listp.
22277 (remove_from_both_dependence_lists): Strengthen param "listp" from
22278 rtx * to rtx_insn_list **
22279 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
22280 to rtx_insn_list **. Eliminate local "link", in favor of two new
22281 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
22283 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
22284 by introducing local "cond_deps".
22285 (remove_from_deps): Strengthen param "insn" from rtx to
22288 * sched-rgn.c (concat_insn_mem_list): Strengthen param
22289 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
22290 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
22291 Use methods of rtx_insn_list.
22293 * store-motion.c (struct st_expr): Strengthen fields
22294 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
22295 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
22297 (find_moveable_store): Split out "tmp" into multiple more-tightly
22298 scoped locals. Use methods of rtx_insn_list *.
22299 (compute_store_table): Strengthen local "tmp" from rtx to
22300 rtx_insn *. Use methods of rtx_insn_list *.
22302 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22304 * coretypes.h (class rtx_insn_list): Add forward declaration.
22305 * rtl.h (class rtx_insn_list): New subclass of rtx_def
22306 (is_a_helper <rtx_insn_list *>::test): New.
22307 (rtx_insn_list::next): New.
22308 (rtx_insn_list::insn): New.
22309 (gen_rtx_INSN_LIST): Add prototype.
22310 * emit-rtl.c (gen_rtx_INSN_LIST): New.
22311 * gengenrtl.c (special_rtx): Add INSN_LIST.
22313 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22315 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
22316 "prev" from rtx to rtx_insn *.
22318 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22320 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
22321 functions. Require merely an rtx for now, not an rtx_insn *.
22322 (BLOCK_FOR_INSN): Likewise.
22323 (INSN_LOCATION): Likewise.
22324 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
22326 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22328 * rtl.h (PATTERN): Convert this macro into a pair of inline
22329 functions, for now, requiring const_rtx and rtx.
22331 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22333 * target.def (unwind_emit): Strengthen param "insn" from rtx to
22335 (final_postscan_insn): Likewise.
22336 (adjust_cost): Likewise.
22337 (adjust_priority): Likewise.
22338 (variable_issue): Likewise.
22339 (macro_fusion_pair_p): Likewise.
22340 (dfa_post_cycle_insn): Likewise.
22341 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
22342 (first_cycle_multipass_issue): Likewise.
22343 (dfa_new_cycle): Likewise.
22344 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
22345 (speculate_insn): Likewise for param "insn".
22346 (gen_spec_check): Likewise for params "insn" and "label".
22347 (get_insn_spec_ds): Likewise for param "insn".
22348 (get_insn_checked_ds): Likewise.
22349 (dispatch_do): Likewise.
22350 (dispatch): Likewise.
22351 (cannot_copy_insn_p): Likewise.
22352 (invalid_within_doloop): Likewise.
22353 (legitimate_combined_insn): Likewise.
22354 (needed): Likewise.
22357 * doc/tm.texi: Automatically updated to reflect changes to
22360 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
22362 (schedule_block): Likewise.
22363 (sched_init): Likewise.
22364 (sched_speculate_insn): Strengthen param "insn" from rtx to
22366 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
22368 * hooks.c (hook_bool_rtx_true): Rename to...
22369 hook_bool_rtx_insn_true): ...this, and strengthen first param from
22371 (hook_constcharptr_const_rtx_null): Rename to...
22372 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
22373 first param from const_rtx to const rtx_insn *.
22374 (hook_bool_rtx_int_false): Rename to...
22375 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
22376 param from rtx to rtx_insn *.
22377 (hook_void_rtx_int): Rename to...
22378 (hook_void_rtx_insn_int): ...this, and strengthen first param from
22381 * hooks.h (hook_bool_rtx_true): Rename to...
22382 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
22384 (hook_bool_rtx_int_false): Rename to...
22385 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
22386 param from rtx to rtx_insn *.
22387 (hook_void_rtx_int): Rename to...
22388 (hook_void_rtx_insn_int): ...this, and strengthen first param from
22390 (hook_constcharptr_const_rtx_null): Rename to...
22391 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
22392 first param from const_rtx to const rtx_insn *.
22394 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
22395 and local "prev" from rtx to rtx_insn *.
22397 * sched-int.h (sched_speculate_insn): Strengthen first param from
22400 * sel-sched.c (create_speculation_check): Likewise for local "label".
22401 * targhooks.c (default_invalid_within_doloop): Strengthen param
22402 "insn" from const_rtx to const rtx_insn *.
22403 * targhooks.h (default_invalid_within_doloop): Strengthen param
22404 from const_rtx to const rtx_insn *.
22406 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
22407 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
22409 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
22411 (arc_invalid_within_doloop): Likewise, with const.
22413 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
22414 (arm_cannot_copy_insn_p): Likewise for param "insn".
22415 (arm_unwind_emit): Likewise.
22417 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
22420 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
22421 (c6x_variable_issue): Likewise. Removed now-redundant checked
22423 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
22425 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
22426 Likewise for param "insn".
22427 (epiphany_mode_after): Likewise.
22428 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
22429 params "insn", "dep_insn".
22430 (epiphany_mode_needed): Likewise for param "insn".
22431 (epiphany_mode_after): Likewise.
22433 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
22434 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22435 (ix86_avx_u128_mode_needed): Likewise.
22436 (ix86_i387_mode_needed): Likewise.
22437 (ix86_mode_needed): Likewise.
22438 (ix86_avx_u128_mode_after): Likewise.
22439 (ix86_mode_after): Likewise.
22440 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
22441 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
22442 (ix86_adjust_priority): Likewise for param "insn".
22443 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
22444 (do_dispatch): Likewise.
22445 (has_dispatch): Likewise.
22446 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
22448 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
22449 reflect renaming of default hook implementation from
22450 hook_constcharptr_const_rtx_null to
22451 hook_constcharptr_const_rtx_insn_null.
22452 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
22454 (ia64_variable_issue): Likewise for param "insn".
22455 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
22456 (ia64_dfa_new_cycle): Likewise.
22457 (ia64_get_insn_spec_ds): Likewise.
22458 (ia64_get_insn_checked_ds): Likewise.
22459 (ia64_speculate_insn): Likewise.
22460 (ia64_gen_spec_check): Likewise for params "insn", "label".
22461 (ia64_asm_unwind_emit): Likewise for param "insn".
22463 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
22465 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
22466 "insn", "def_insn".
22467 (m68k_sched_variable_issue): Likewise for param "insn".
22469 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
22472 * config/microblaze/microblaze.c (microblaze_adjust_cost):
22473 Likewise for params "insn", "dep".
22475 * config/mips/mips.c (mips_adjust_cost): Likewise.
22476 (mips_variable_issue): Likewise for param "insn".
22477 (mips_final_postscan_insn): Likewise.
22479 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
22480 for params "insn", "dep".
22482 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
22484 (pa_adjust_priority): Likewise for param "insn".
22486 * config/picochip/picochip.c (picochip_sched_adjust_cost):
22487 Likewise for params "insn", "dep_insn".
22489 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
22491 (rs6000_variable_issue): Likewise.
22492 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
22493 (rs6000_debug_adjust_cost): Likewise.
22494 (rs6000_adjust_priority): Likewise for param "insn".
22495 (rs6000_use_sched_lookahead_guard): Likewise.
22496 (get_next_active_insn): Likewise for return type and both params.
22497 (redefine_groups): Likewise for params "prev_head_insn", "tail"
22498 and locals "insn", "next_insn".
22499 (pad_groups): Likewise.
22501 * config/s390/s390.c (s390_adjust_priority): Likewise for param
22503 (s390_cannot_copy_insn_p): Likewise.
22504 (s390_sched_variable_issue): Likewise for third param, eliminating
22506 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
22507 default hook implementation from hook_constcharptr_const_rtx_null
22508 to hook_constcharptr_const_rtx_insn_null.
22510 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
22511 from rtx to rtx_insn *.
22512 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
22513 (sh_variable_issue): Likewise for param "insn".
22514 (sh_dfa_new_cycle): Likewise.
22515 (sh_mode_needed): Likewise.
22516 (sh_mode_after): Likewise.
22518 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
22519 params "insn", "dep_insn".
22520 (hypersparc_adjust_cost): Likewise.
22521 (sparc_adjust_cost): Likewise.
22523 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
22524 param, eliminated checked cast.
22525 (spu_sched_adjust_cost): Likewise for first and third params.
22527 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
22528 params "insn" and "dep_insn" from rtx to rtx_insn *.
22530 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
22532 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22534 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
22535 (set_is_load_p): ...this, updating to work on a SET pattern rather
22537 (is_store_insn): Rename to...
22538 (set_is_store_p): ...this, updating to work on a SET pattern
22539 rather than an insn.
22540 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
22541 top of function to where it is needed. Rewrite the bogus
22542 condition that checks for "insn" and "dep" being PARALLEL to
22543 instead use single_set, introducing locals "insn_set" and
22544 "dep_set". Given that we only ever returned "cost" for a non-pair
22545 of SETs, bail out early if we don't have a pair of SET.
22546 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
22547 use the new locals "insn_set" and "dep_set", and update calls to
22548 is_load_insn and is_store_insn to be calls to set_is_load_p and
22551 2014-08-27 Guozhi Wei <carrot@google.com>
22554 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
22555 amount before using it.
22557 2014-08-27 Richard Biener <rguenther@suse.de>
22559 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
22560 get_maxval_strlen inside a more useful API.
22561 (gimple_fold_builtin_with_strlen): Remove and fold into ...
22562 (gimple_fold_builtin): ... caller.
22563 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
22564 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
22565 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
22566 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
22567 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
22568 gimple_fold_builtin_sprintf): Adjust to compute maxval
22571 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
22574 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
22576 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
22577 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22578 Anna Tikhonova <anna.tikhonova@intel.com>
22579 Ilya Tocar <ilya.tocar@intel.com>
22580 Andrey Turetskiy <andrey.turetskiy@intel.com>
22581 Ilya Verbin <ilya.verbin@intel.com>
22582 Kirill Yukhin <kirill.yukhin@intel.com>
22583 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22585 * config/i386/sse.md
22586 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
22587 Use `concat_tg_mode' attribute to determine asm register size.
22589 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
22590 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22591 Anna Tikhonova <anna.tikhonova@intel.com>
22592 Ilya Tocar <ilya.tocar@intel.com>
22593 Andrey Turetskiy <andrey.turetskiy@intel.com>
22594 Ilya Verbin <ilya.verbin@intel.com>
22595 Kirill Yukhin <kirill.yukhin@intel.com>
22596 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22598 * config/i386/sse.md
22599 (define_mode_iterator VI48_AVX512VL): New.
22600 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
22601 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
22602 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
22603 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22604 with VI1): Change mode iterator.
22605 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22606 with VI_ULOADSTORE_BW_AVX512VL): New.
22607 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22608 with VI_ULOADSTORE_F_AVX512VL): Ditto.
22609 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22610 with VI1): Change mode iterator.
22611 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22612 with VI_ULOADSTORE_BW_AVX512VL): New.
22613 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22614 with VI_ULOADSTORE_F_AVX512VL): Ditto.
22615 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
22616 with VI1): Change mode iterator.
22617 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
22618 with VI_ULOADSTORE_BW_AVX512VL): New.
22619 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
22620 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
22621 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
22622 (define_insn "<avx512>_storedqu<mode>_mask" with
22623 VI48_AVX512VL): New.
22624 (define_insn "<avx512>_storedqu<mode>_mask" with
22625 VI12_AVX512VL): Ditto.
22627 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
22628 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22629 Anna Tikhonova <anna.tikhonova@intel.com>
22630 Ilya Tocar <ilya.tocar@intel.com>
22631 Andrey Turetskiy <andrey.turetskiy@intel.com>
22632 Ilya Verbin <ilya.verbin@intel.com>
22633 Kirill Yukhin <kirill.yukhin@intel.com>
22634 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22636 * config/i386/sse.md
22637 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
22638 (define_mode_iterator VI48_AVX512BW): New.
22639 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
22640 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
22641 with VI48_AVX2_48_AVX512F): New.
22642 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
22643 with VI2_AVX512VL): Ditto.
22645 2014-08-27 Richard Biener <rguenther@suse.de>
22647 PR middle-end/62239
22648 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
22649 (fold_builtin_3): Do not fold strcat_chk here.
22650 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
22652 (gimple_fold_builtin): Fold strcat_chk here.
22654 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
22656 * dwarf2out.h (dwarf2out_decl): Remove prototype.
22657 * dwarf2out.c (dwarf2out_decl): Make static.
22659 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
22661 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
22663 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22665 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
22666 from rtx to rtx_insn *.
22667 (cselib_lookup_from_insn): Likewise for final param.
22668 (cselib_subst_to_values_from_insn): Likewise.
22669 (cselib_add_permanent_equiv): Likewise.
22671 * cselib.c (cselib_current_insn): Likewise for this variable.
22672 (cselib_subst_to_values_from_insn): Likewise for param "insn".
22673 (cselib_lookup_from_insn): Likewise.
22674 (cselib_add_permanent_equiv): Likewise for param "insn" and local
22675 "save_cselib_current_insn".
22676 (cselib_process_insn): Replace use of NULL_RTX with NULL.
22678 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
22679 from rtx to rtx_insn *.
22681 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22683 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
22686 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22688 * df.h (df_dump_insn_problem_function): Strengthen first param of
22689 this callback from const_rtx to const rtx_insn *.
22690 (struct df_insn_info): Strengthen field "insn" from rtx to
22692 (DF_REF_INSN): Eliminate this function, reinstating the older
22694 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
22695 (df_reg_defined): Likewise.
22696 (df_find_use): Likewise.
22697 (df_reg_used): Likewise.
22698 (df_dump_insn_top): Strengthen param 1 from const_rtx to
22700 (df_dump_insn_bottom): Likewise.
22701 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
22702 (df_insn_debug_regno): Likewise.
22703 (debug_df_insn): Likewise.
22704 (df_rd_simulate_one_insn): Likewise for param 2.
22705 (df_word_lr_simulate_defs): Likewise for param 1.
22706 (df_word_lr_simulate_uses): Likewise.
22707 (df_md_simulate_one_insn): Likewise for param 2.
22708 (df_simulate_find_noclobber_defs): Likewise for param 1.
22709 (df_simulate_find_defs): Likewise.
22710 (df_simulate_defs): Likewise.
22711 (df_simulate_uses): Likewise.
22712 (df_simulate_one_insn_backwards): Likewise for param 2.
22713 (df_simulate_one_insn_forwards): Likewise.
22714 (df_uses_create): Likewise for param 2.
22715 (df_insn_create_insn_record): Likewise for param 1.
22716 (df_insn_delete): Likewise.
22717 (df_insn_rescan): Likewise.
22718 (df_insn_rescan_debug_internal): Likewise.
22719 (df_insn_change_bb): Likewise.
22720 (df_notes_rescan): Likewise.
22721 * rtl.h (remove_death): Likewise for param 2.
22722 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
22724 * sched-int.h (reemit_notes): Strengthen param from rtx to
22726 * valtrack.h (propagate_for_debug): Likewise for param 1.
22728 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
22729 local "tmp_rtx" from const_rtx to const rtx_insn *.
22730 * combine.c (remove_death): Strengthen param "insn" from rtx to
22732 (move_deaths): Likewise for local "where_dead".
22733 * cse.c (delete_trivially_dead_insns): Introduce local
22734 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
22735 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
22737 (df_reg_defined): Likewise.
22738 (df_find_use): Likewise.
22739 (df_reg_used): Likewise.
22740 (df_dump_insn_problem_data): Strengthen param "insn" from
22741 const_rtx to const rtx_insn *.
22742 (df_dump_insn_top): Likewise.
22743 (df_dump_insn_bottom): Likewise.
22744 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
22745 (df_insn_debug_regno): Likewise.
22746 (debug_df_insn): Likewise.
22747 (DF_REF_INSN): Delete.
22748 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
22749 from rtx to rtx_insn *.
22750 (df_chain_insn_top_dump): Strengthen param "insn" from
22751 const_rtx to const rtx_insn *.
22752 (df_chain_insn_bottom_dump): Likewise.
22753 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
22755 (df_word_lr_simulate_uses): Likewise.
22756 (df_print_note): Likewise.
22757 (df_remove_dead_and_unused_notes): Likewise.
22758 (df_set_unused_notes_for_mw): Likewise.
22759 (df_set_dead_notes_for_mw): Likewise.
22760 (df_create_unused_note): Likewise.
22761 (df_simulate_find_defs): Likewise.
22762 (df_simulate_find_uses): Likewise.
22763 (df_simulate_find_noclobber_defs): Likewise.
22764 (df_simulate_defs): Likewise.
22765 (df_simulate_uses): Likewise.
22766 (df_simulate_one_insn_backwards): Likewise.
22767 (df_simulate_one_insn_forwards): Likewise.
22768 (df_md_simulate_one_insn): Likewise.
22769 * df-scan.c (df_uses_create): Likewise.
22770 (df_insn_create_insn_record): Likewise.
22771 (df_insn_delete): Likewise.
22772 (df_insn_rescan): Likewise.
22773 (df_insn_rescan_debug_internal): Likewise.
22774 (df_insn_change_bb): Likewise.
22775 (df_notes_rescan): Likewise.
22776 (df_refs_add_to_chains): Likewise.
22777 (df_insn_refs_verify): Likewise.
22778 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
22779 when invoking df_insn_delete.
22780 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
22781 (set_unique_reg_note): Add checked cast.
22782 * final.c (cleanup_subreg_operands): Likewise.
22783 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
22784 "insn" from rtx to rtx_insn *.
22785 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
22786 "last" from rtx to rtx_insn *.
22787 * ira-emit.c (change_regs_in_insn): New function.
22788 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
22789 Invoke change_regs_in_insn rather than change_regs.
22790 * ira.c (update_equiv_regs): Strengthen locals "insn",
22791 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
22792 for_each_rtx_in_insn rather than for_each_rtx.
22793 * recog.c (confirm_change_group): Add checked casts.
22794 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
22796 (peep2_fill_buffer): Add checked cast.
22797 * rtlanal.c (remove_note): Likewise.
22798 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
22799 locals "next" "end" from rtx to rtx_insn *.
22801 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22803 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
22805 (struct reg_use_data): Likewise for field "insn".
22806 (insn_cost): Likewise for param.
22807 (real_insn_for_shadow): Likewise for return type and param.
22808 (increase_insn_priority): Likewise for param 1.
22809 (debug_dependencies): Likewise for both params.
22811 * haifa-sched.c (insn_delay): Likewise for param "insn".
22812 (real_insn_for_shadow): Likewise for return type and param "insn".
22813 (update_insn_after_change): Likewise for param "insn".
22814 (recompute_todo_spec): Likewise for param "next" and locals "pro",
22816 (insn_cost): Likewise for param "insn".
22817 (increase_insn_priority): Likewise.
22818 (calculate_reg_deaths): Likewise.
22819 (setup_insn_reg_pressure_info): Likewise.
22820 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
22821 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
22822 (model_recompute): Likewise.
22823 (must_restore_pattern_p): Likewise for param "next".
22824 (model_excess_cost): Likewise for param "insn".
22825 (queue_remove): Likewise.
22826 (adjust_priority): Likewise for param "prev".
22827 (update_register_pressure): Likewise for param "insn".
22828 (setup_insn_max_reg_pressure): Likewise for local "insn".
22829 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
22830 (model_add_to_schedule): Likewise.
22831 (model_reset_queue_indices): Likewise for local "insn".
22832 (unschedule_insns_until): Strengthen local "recompute_vec" from
22833 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
22834 "con" from rtx to rtx_insn *.
22835 (restore_last_backtrack_point): Likewise for both locals "x". Add
22837 (estimate_insn_tick): Likewise for param "insn".
22838 (commit_schedule): Likewise for params "prev_head", "tail" and
22840 (verify_shadows): Likewise for locals "i1", "i2".
22841 (dump_insn_stream): Likewise for params "head", "tail" and locals
22842 "next_tail", "insn".
22843 (schedule_block): Likewise for locals "insn", "x". Add a checked
22845 (fix_inter_tick): Likewise for params "head", "tail".
22846 (create_check_block_twin): Likewise for local "jump".
22847 (haifa_change_pattern): Likewise for param "insn".
22848 (haifa_speculate_insn): Likewise.
22849 (dump_new_block_header): Likewise for params "head", "tail".
22850 (fix_jump_move): Likewise for param "jump".
22851 (move_block_after_check): Likewise.
22852 (sched_init_insn_luid): Likewise for param "insn".
22853 (sched_init_luids): Likewise for local "insn".
22854 (insn_luid): Likewise for param "insn".
22855 (init_h_i_d): Likewise.
22856 (haifa_init_h_i_d): Likewise for local "insn".
22857 (haifa_init_insn): Likewise for param "insn".
22858 * sched-deps.c (add_dependence): Likewise for local "real_pro",
22860 (create_insn_reg_use): Likewise for param "insn".
22861 (setup_insn_reg_uses): Likewise. Add a checked cast.
22862 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
22863 "tail" from rtx to rtx_insn *.
22864 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
22865 "insn", "next_tail".
22867 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22869 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
22870 from rtx to rtx_insn *.
22871 (model_add_to_schedule): Likewise for locals "start", "end",
22874 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22876 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
22878 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
22879 "to" and locals "insn", "next", "copy". Remove now-redundant
22882 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22884 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
22885 rtx_insn * and param 4 from rtx * to rtx_insn **.
22886 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
22887 param 2 from rtx * to rtx_insn **.
22889 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
22890 rtx_insn * and final param from rtx * to rtx_insn **.
22892 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
22893 from rtx to rtx_insn *.
22894 (try_head_merge_bb): Likewise for both locals named "move_upto".
22895 * df-problems.c (can_move_insns_across): Likewise for params
22896 "from", "to", "across_from", "across_to" and locals "insn",
22897 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
22899 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
22900 from rtx to rtx_insn *.
22901 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
22902 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
22903 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
22905 (noce_try_abs): Likewise.
22906 (noce_get_condition): Likewise for param "jump". Strengthen param
22907 "earliest" from rtx * to rtx_insn **.
22908 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
22910 (find_cond_trap): Likewise.
22911 (dead_or_predicable): Likewise for local "earliest".
22912 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
22914 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
22915 and local "prev". Strengthen param "earliest" from rtx * to
22917 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
22918 Strengthen param "earliest" from rtx * to rtx_insn **.
22920 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22922 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
22923 "to" and local "insn" from rtx to rtx_insn *.
22925 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22927 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
22928 from rtx to rtx_insn *.
22929 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
22930 (code_motion_path_driver): Likewise for local "last_insn".
22931 (simplify_changed_insns): Likewise for local "insn".
22933 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22935 * rtl.h (push_to_sequence): Strengthen param from rtx to
22937 (push_to_sequence2): Likewise for both params.
22938 (delete_insns_since): Likewise for param.
22939 (reorder_insns_nobb): Likewise for all three params.
22940 (set_new_first_and_last_insn): Likewise for both params.
22942 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
22943 rtx_insn *. Remove now-redundant cast.
22944 (set_last_insn): Likewise.
22946 * builtins.c (expand_builtin_return): Strengthen local
22947 "call_fusage" from rtx to rtx_insn *.
22948 * cfgrtl.c (create_basic_block_structure): Likewise for local
22950 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
22951 "first", "last" and local "insn".
22952 (delete_insns_since): Likewise for param "from".
22953 (reorder_insns_nobb): Likewise for params "from", "to", "after"
22955 (push_to_sequence): Likewise for param "first" and local "last".
22956 (push_to_sequence2): Likewise for params "first" and "last".
22957 * lra.c (emit_add3_insn): Likewise for local "last".
22958 (lra_emit_add): Likewise.
22959 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
22961 (process_address_1): Likewise for locals "insn", last".
22962 * modulo-sched.c (ps_first_note): Likewise for return type.
22963 * optabs.c (expand_binop_directly): Likewise for param "last".
22965 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22967 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
22969 * emit-rtl.c (get_last_insn_anywhere): Likewise.
22971 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22973 * function.h (struct sequence_stack): Strengthen fields "first"
22974 and "last" from rtx to rtx_insn *.
22975 (struct emit_status): Likewise for fields "x_first_insn" and
22978 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
22979 (set_first_insn): Add checked cast.
22980 (get_last_insn): Remove now-redundant checked cast.
22981 (set_last_insn): Add checked cast.
22983 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
22984 "saved_first" and "saved_last" from rtx to rtx_insn *.
22986 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22988 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
22989 (unlink_insn_chain): Strengthen both params from rtx to
22992 * cfgrtl.c (cfg_layout_function_header): Likewise for this
22994 (unlink_insn_chain): Likewise for params "first" and "last".
22995 Remove now-redundant checked cast.
22996 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
22997 (fixup_reorder_chain): Strengthen local "insn" from rtx to
22999 * emit-rtl.c (link_insn_into_chain): Likewise for all three
23001 (add_insn): Likewise for param "insn" and local "prev".
23002 (add_insn_after_nobb): Likewise for both params and local "next".
23003 (add_insn_before_nobb): Likewise for both params and local "prev".
23004 (add_insn_after): Rename param "after" to "uncast_after",
23005 introducing local "after" with another checked cast.
23006 (add_insn_before): Rename params "insn" and "before", giving them
23007 "uncast_" prefixes, adding the old names back using checked casts.
23008 (emit_note_after): Likewise for param "after".
23009 (emit_note_before): Likewise for param "before".
23010 (emit_label): Add a checked cast.
23012 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23014 * cselib.h (cselib_record_sets_hook): Strengthen initial param
23015 "insn" from rtx to rtx_insn *.
23017 * cselib.c (cselib_record_sets_hook): Likewise.
23019 * var-tracking.c (add_with_sets): Likewise, renaming back from
23020 "uncast_insn" to "insn" and eliminating the checked cast from rtx
23023 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23025 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
23026 and "header_" from rtx to rtx_insn *.
23027 (struct basic_block_d): Likewise for field "head_" within "x"
23028 field of union basic_block_il_dependent.
23029 (BB_HEAD): Drop function...
23030 (SET_BB_HEAD): ...and this function in favor of...
23031 (BB_HEAD): ...reinstate macro.
23032 (BB_END): Drop function...
23033 (SET_BB_END): ...and this function in favor of...
23034 (BB_END): ...reinstate macro.
23035 (BB_HEADER): Drop function...
23036 (SET_BB_HEADER): ...and this function in favor of...
23037 (BB_HEADER): ...reinstate macro.
23039 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
23040 (fix_crossing_unconditional_branches): Likewise.
23041 * caller-save.c (save_call_clobbered_regs): Likewise.
23042 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
23043 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
23044 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
23045 (merge_blocks_move_successor_nojumps): Likewise.
23046 (outgoing_edges_match): Update use of for_each_rtx to
23047 for_each_rtx_in_insn.
23048 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
23049 (expand_gimple_cond): Likewise.
23050 (expand_gimple_tailcall): Likewise.
23051 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
23053 (construct_exit_block): Drop use of SET_BB_END.
23054 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
23056 (delete_insn): Rename param "insn" to "uncast_insn", introducing
23057 a new local "insn" with a checked cast to rtx_insn *. Drop use of
23058 SET_BB_HEAD and SET_BB_END.
23059 (create_basic_block_structure): Drop use of SET_BB_HEAD and
23061 (rtl_delete_block): Drop use of SET_BB_HEAD.
23062 (rtl_split_block): Drop use of SET_BB_END.
23063 (emit_nop_for_unique_locus_between): Likewise.
23064 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
23065 (block_label): Drop use of SET_BB_HEAD.
23066 (fixup_abnormal_edges): Drop use of SET_BB_END.
23067 (record_effective_endpoints): Drop use of SET_BB_HEADER.
23068 (relink_block_chain): Likewise.
23069 (fixup_reorder_chain): Drop use of SET_BB_END.
23070 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
23071 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
23072 rtx_insn **. Drop use of SET_BB_HEADER.
23073 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
23075 (BB_HEAD): Delete this function.
23076 (SET_BB_HEAD): Likewise.
23077 (BB_END): Likewise.
23078 (SET_BB_END): Likewise.
23079 (BB_HEADER): Likewise.
23080 (SET_BB_HEADER): Likewise.
23081 * emit-rtl.c (add_insn_after): Rename param "insn" to
23082 "uncast_insn", adding a new local "insn" and a checked cast to
23083 rtx_insn *. Drop use of SET_BB_END.
23084 (remove_insn): Strengthen locals "next" and "prev" from rtx to
23085 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
23086 (reorder_insns): Drop use of SET_BB_END.
23087 (emit_insn_after_1): Strengthen param "first" and locals "last",
23088 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
23089 (emit_pattern_after_noloc): Add checked cast.
23090 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
23091 (restore_other_notes): Likewise.
23092 (move_insn): Likewise.
23093 (sched_extend_bb): Likewise.
23094 (fix_jump_move): Likewise.
23095 * ifcvt.c (noce_process_if_block): Likewise.
23096 (dead_or_predicable): Likewise.
23097 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
23098 * reg-stack.c (change_stack): Drop use of SET_BB_END.
23099 * sel-sched-ir.c (sel_move_insn): Likewise.
23100 * sel-sched.c (move_nop_to_previous_block): Likewise.
23102 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
23104 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
23106 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23108 * basic-block.h (create_basic_block_structure): Strengthen params
23109 1 "head" and 2 "end" from rtx to rtx_insn *.
23110 * cfgrtl.c (create_basic_block_structure): Likewise.
23111 (rtl_create_basic_block): Update casts from void * to rtx to
23112 rtx_insn *, so that we can pass them as rtx_insn * to
23113 create_basic_block_structure.
23114 * sel-sched-ir.c (sel_create_basic_block): Likewise.
23116 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23118 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
23120 (check_for_inc_dec): Strengthen param "insn" from rtx to
23123 * cselib.h (cselib_process_insn): Likewise.
23125 * cselib.c (cselib_record_sets): Likewise.
23126 (cselib_process_insn): Likewise.
23128 * dse.c (struct insn_info): Likewise for field "insn".
23129 (check_for_inc_dec_1): Likewise for local "insn".
23130 (check_for_inc_dec): Likewise for param "insn".
23131 (scan_insn): Likewise.
23132 (dse_step1): Likewise for local "insn".
23134 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
23135 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
23137 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23139 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
23140 from rtx to rtx_insn *.
23141 (DEP_PRO): Delete this function and...
23142 (SET_DEP_PRO): ...this function in favor of...
23143 (DEP_PRO): ...reinstate this macro.
23144 (DEP_CON): Delete this function and...
23145 (SET_DEP_CON): ...this function in favor of...
23146 (DEP_CON): ...reinstate this old macro.
23147 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
23148 (init_dep): Likewise.
23149 (set_priorities): Likewise for both params.
23150 (sd_copy_back_deps): Likewise for params 1 and 2.
23152 * haifa-sched.c (priority): Likewise for param "insn" and local
23154 (set_priorities): Likewise for params "head" and "tail" and local
23156 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
23158 (add_to_speculative_block): Add a checked cast.
23159 (create_check_block_twin): Drop use of SET_DEP_CON.
23160 (add_jump_dependencies): Strengthen params "insn" and "jump" from
23163 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
23164 Drop use of SET_DEP_PRO
23165 (init_dep): Strengthen params "pro" and "con" from rtx to
23167 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
23168 use of SET_DEP_CON.
23171 (SET_DEP_PRO): Delete.
23172 (SET_DEP_CON): Delete.
23174 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23176 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
23177 from rtx to rtx_insn *.
23178 (VINSN_INSN_RTX): Eliminate rvalue function and...
23179 (SET_VINSN_INSN): ...lvalue function in favor of...
23180 (VINSN_INSN_RTX): reinstate this old macro.
23182 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
23183 in favor of VINSN_INSN_RTX.
23184 (VINSN_INSN_RTX): Delete this function.
23185 (SET_VINSN_INSN_RTX): Likewise.
23187 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23189 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
23190 (BND_TO): Delete this function and...
23191 (SET_BND_TO): ...this functions in favor of...
23192 (BND_TO): ...reinstating this macro.
23193 (struct _fence): Strengthen field "executing_insns" from
23194 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
23195 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
23196 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
23197 and param "insn" from rtx to insn_t.
23198 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
23201 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
23203 (rtx_vec_t): Likewise.
23204 (struct sched_deps_info_def): Strengthen param of "start_insn"
23205 callback from rtx to rtx_insn *. Likewise for param "insn2" of
23206 "note_mem_dep" callback and first param of "note_dep" callback.
23208 * haifa-sched.c (add_to_speculative_block): Strengthen param
23209 "insn" from rtx to rtx_insn *.
23210 (clear_priorities): Likewise.
23211 (calc_priorities): Likewise for local "insn".
23213 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
23214 Remove redundant checked cast.
23215 (haifa_note_mem_dep): Likewise for param "pending_insn".
23216 (haifa_note_dep): Likewise for param "elem".
23217 (note_mem_dep): Likewise for param "e".
23218 (sched_analyze_1): Add checked casts.
23219 (sched_analyze_2): Likewise.
23221 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
23222 from rtx to rtx_insn *.
23223 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
23224 from vec<rtx> * to vec<rtx_insn *> *.
23226 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
23228 (flist_add): Strengthen param "executing_insns" from
23229 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
23230 (advance_deps_context): Remove now-redundant checked cast.
23231 (init_fences): Replace uses of NULL_RTX with NULL.
23232 (merge_fences): Strengthen params "last_scheduled_insn" and
23233 "sched_next" from rtx to rtx_insn * and "executing_insns" from
23234 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
23235 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
23236 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
23237 an instruction, rather than doing double-duty as a pattern.
23238 (return_nop_to_pool): Update for change of insn_t.
23239 (deps_init_id): Remove now-redundant checked cast.
23240 (struct sched_scan_info_def): Strengthen param of "init_insn"
23241 callback from rtx to insn_t.
23242 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
23243 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
23245 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
23246 "end" from rtx to rtx_insn *.
23247 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
23248 (rtx insn_rtx, bool force_unique_p)
23249 (BND_TO): Delete function.
23250 (SET_BND_TO): Delete function.
23252 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
23254 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
23255 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
23257 (undo_transformations): Likewise for param "insn".
23258 (update_liveness_on_insn): Likewise.
23259 (compute_live_below_insn): Likewise for param "insn" and local
23261 (update_data_sets): Likewise for param "insn".
23262 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
23263 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
23264 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
23266 (move_cond_jump): Likewise for param "insn".
23267 (move_cond_jump): Drop use of SET_BND_TO.
23268 (compute_av_set_on_boundaries): Likewise.
23269 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
23270 (update_and_record_unavailable_insns): Strengthen local "bb_end"
23271 from rtx to rtx_insn *.
23272 (maybe_emit_renaming_copy): Likewise for param "insn".
23273 (maybe_emit_speculative_check): Likewise.
23274 (handle_emitting_transformations): Likewise.
23275 (remove_insn_from_stream): Likewise.
23276 (code_motion_process_successors): Strengthen local "succ" from rtx
23279 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23281 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
23282 ilist_t, not _xlist_t;
23283 (ILIST_INSN): Define in terms of new union field "insn".
23284 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
23286 (struct _list_node): Add new field "insn" to the union, of type
23288 (ilist_add): Replace macro with an inline function, requiring an
23290 (ilist_remove): Define this macro directly in terms of
23291 _list_remove, rather than indirectly via _xlist_remove.
23292 (ilist_clear): Likewise, in terms of _list_clear rather than
23294 (ilist_is_in_p): Replace macro with an inline function, requiring
23296 (_list_iter_cond_insn): New function.
23297 (ilist_iter_remove): Define this macro directly in terms of
23298 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
23299 (ilist_iterator): Define directly in terms of _list_iterator
23300 rather than indirectly through _xlist_iterator.
23301 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
23302 than in terms of _FOR_EACH_X.
23303 (FOR_EACH_INSN_1): Likewise.
23305 2014-08-26 Joseph Myers <joseph@codesourcery.com>
23309 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
23310 DECL_HARD_REGISTER and return for invalid register specifications.
23311 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
23312 DECL_HARD_REGISTER, call expand_one_error_var.
23313 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
23314 CC_REGNUM with non-MODE_CC modes.
23315 (arm_regno_class): Return NO_REGS for PC_REGNUM.
23317 2014-08-26 Marek Polacek <polacek@redhat.com>
23320 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
23322 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
23324 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
23325 qi cost; add di cost.
23326 (cortexa57_addrcost_table): Likewise.
23328 2014-08-26 Marek Polacek <polacek@redhat.com>
23331 * expr.c (is_aligning_offset): Remove logical not.
23333 2014-08-26 Marek Polacek <polacek@redhat.com>
23336 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
23337 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
23339 2014-08-26 Richard Biener <rguenther@suse.de>
23341 PR tree-optimization/62175
23342 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
23343 expand possibly trapping operations.
23345 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23347 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
23348 "insn" from rtx to rtx_insn *.
23349 (permute_load): Likewise for param "insn".
23350 (permute_store): Likewise.
23351 (handle_special_swappables): Likewise for local "insn".
23352 (replace_swap_with_copy): Likewise for locals "insn" and
23354 (rs6000_analyze_swaps): Likewise for local "insn".
23356 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23358 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
23361 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23363 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
23364 "note_list" from rtx to rtx_insn *.
23365 (BB_NOTE_LIST): Replace this function and...
23366 (SET_BB_NOTE_LIST): ...this function with...
23367 (BB_NOTE_LIST): ...the former macro implementation.
23369 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
23370 local "from_start" from rtx to rtx_insn *. Strengthen param
23371 "to_endp" from rtx * to rtx_insn **.
23373 * haifa-sched.c (concat_note_lists): Likewise.
23374 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
23376 (sel_restore_notes): Likewise.
23377 (move_bb_info): Likewise.
23378 (BB_NOTE_LIST): Delete this function.
23379 (SET_BB_NOTE_LIST): Delete this function.
23380 * sel-sched.c (create_block_for_bookkeeping): Eliminate
23381 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
23383 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23385 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
23386 from rtx * to rtx_insn **.
23387 (reorder2): Likewise.
23388 (dependencies_evaluation_hook): Strengthen params "head", "tail"
23389 from rtx to rtx_insn *.
23391 * doc/tm.texi: Update mechanically for above change to target.def.
23393 * sched-int.h (note_list): Strengthen this variable from rtx to
23395 (remove_notes): Likewise for both params.
23396 (restore_other_notes): Likewise for return type and first param.
23397 (struct ready_list): Strengthen field "vec" from rtx * to
23399 (struct dep_replacement): Strenghten field "insn" from rtx to
23401 (struct deps_desc): Likewise for fields "last_debug_insn",
23403 (struct haifa_sched_info): Likewise for callback field
23404 "can_schedule_ready_p"'s param, for first param of "new_ready"
23405 callback field, for both params of "rank" callback field, for
23406 first field of "print_insn" callback field (with a const), for
23407 both params of "contributes_to_priority" callback, for param
23408 of "insn_finishes_block_p" callback, for fields "prev_head",
23409 "next_tail", "head", "tail", for first param of "add_remove_insn"
23410 callback, for first param of "begin_schedule_ready" callback, for
23411 both params of "begin_move_insn" callback, and for second param
23412 of "advance_target_bb" callback.
23413 (add_dependence): Likewise for params 1 and 2.
23414 (sched_analyze): Likewise for params 2 and 3.
23415 (deps_analyze_insn): Likewise for param 2.
23416 (ready_element): Likewise for return type.
23417 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
23418 (try_ready): Strenghten param from rtx to rtx_insn *.
23419 (sched_emit_insn): Likewise for return type.
23420 (record_delay_slot_pair): Likewise for params 1 and 2.
23421 (add_delay_dependencies): Likewise for param.
23422 (contributes_to_priority): Likewise for both params.
23423 (find_modifiable_mems): Likewise.
23425 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
23426 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
23427 "first_older_only_insn" from rtx to rtx_insn *.
23428 (arm_sched_reorder): Strengthen param "ready" from rtx * to
23431 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
23432 "last_scheduled_iter0" from rtx to rtx_insn *.
23433 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
23434 (c6x_sched_reorder_1): Strengthen param "ready" and locals
23435 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
23436 "insn" from rtx to rtx_insn *.
23437 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
23439 (c6x_sched_reorder2): Strengthen param "ready" and locals
23440 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
23441 "insn" from rtx to rtx_insn *.
23442 (c6x_variable_issue): Add a checked cast when assigning from insn
23443 to ss.last_scheduled_iter0.
23444 (split_delayed_branch): Strengthen param "insn" and local "i1"
23445 from rtx to rtx_insn *.
23446 (split_delayed_nonbranch): Likewise.
23447 (undo_split_delayed_nonbranch): Likewise for local "insn".
23448 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
23449 "entry_after", "end_packet", "head_insn", "tail_insn",
23450 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
23451 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
23452 to rtx_insn **. Remove now-redundant checked cast on last_insn,
23453 but add a checked cast on loop->start_label. Consolidate calls to
23454 avoid assigning result of gen_spkernel to "insn", now an
23457 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
23458 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
23460 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
23461 rtx_insn **. Strengthen locals "top", "next" from rtx to
23463 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
23464 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
23465 (add_parameter_dependencies): Strengthen params "call", "head" and
23466 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
23467 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
23468 (add_dependee_for_func_arg): Likewise for param "arg" and local
23470 (ix86_dependencies_evaluation_hook): Likewise for params "head",
23471 "tail" and locals "insn", "first_arg".
23473 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
23474 for params "head", "tail" and locals "insn", "next", "next_tail".
23475 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
23476 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
23477 "insn", "lowest", "highest" from rtx to rtx_insn *.
23478 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
23480 (ia64_sched_reorder2): Likewise.
23482 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
23483 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
23484 from rtx * to rtx_insn **.
23485 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
23487 (mep_print_sched_insn): Strengthen param "insn" from rtx to
23489 (mep_sched_reorder): Strengthen param "ready" from rtx * to
23490 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
23493 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
23494 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
23496 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
23497 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
23498 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
23500 (vr4130_reorder): Likewise.
23501 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
23503 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
23505 (mips_sched_reorder): Likewise.
23506 (mips_sched_reorder2): Likewise.
23508 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
23510 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
23511 Strengthen local "tmp" from rtx to rtx_insn *.
23512 (rs6000_sched_reorder2): Likewise.
23514 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
23515 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
23516 (s390_sched_reorder): Strengthen param "ready" from rtx * to
23517 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
23519 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
23520 "tmp2" from rtx to rtx_insn *.
23521 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
23522 Strengthen local "insn" from rtx to rtx_insn *.
23523 (ready_reorder): Strengthen param "ready" from rtx * to
23524 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
23525 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
23526 (sh_reorder2): Likewise.
23528 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
23529 local "insn" from rtx to rtx_insn *.
23531 * haifa-sched.c (note_list): Strengthen this variable from rtx to
23533 (scheduled_insns): Strengthen this variable from vec<rtx> to
23535 (set_modulo_params): Likewise for locals "i1", "i2".
23536 (record_delay_slot_pair): Likewise for params "i1", "i2".
23537 (add_delay_dependencies): Likewise for param "insn".
23538 (cond_clobbered_p): Likewise.
23539 (recompute_todo_spec): Likewise for local "prev".
23540 (last_scheduled_insn): Likewise for this variable.
23541 (nonscheduled_insns_begin): Likewise.
23542 (model_set_excess_costs): Strengthen param "insns" from rtx * to
23544 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
23546 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
23547 Strengthen local "insn" from rtx to rtx_insn *.
23548 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
23549 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
23550 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
23551 (ready_remove_first): Likewise for return type and local "t".
23552 (ready_element): Likewise for return type.
23553 (ready_remove): Likewise for return type and local "t".
23554 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
23555 (check_clobbered_conditions): Strengthen local "x" from rtx to
23556 rtx_insn *, adding a checked cast.
23557 (schedule_insn): Likewise for param "insn".
23558 (remove_notes): Likewise for params "head", "tail" and locals
23559 "next_tail", "insn", "next".
23560 (struct haifa_saved_data): Likewise for fields
23561 "last_scheduled_insn", "nonscheduled_insns_begin".
23562 (save_backtrack_point): Update for change to field "vec" of
23564 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
23566 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
23567 from rtx to rtx_insn *
23568 (resolve_dependencies): Strengthen param "insn" from rtx to
23570 (restore_other_notes): Likewise for return type, for param "head"
23571 and local "note_head".
23572 (undo_all_replacements): Likewise for local "insn".
23573 (first_nonscheduled_insn): Likewise for return type and local "insn".
23574 (queue_to_ready): Likewise for local "insn", adding checked casts.
23575 (early_queue_to_ready): Likewise for local "insn".
23576 (debug_ready_list_1): Strengthen local "p" from rtx * to
23578 (move_insn): Strengthen param "insn" and local "note" from rtx to
23580 (insn_finishes_cycle_p): Likewise for param "insn".
23581 (max_issue): Likewise for local "insn".
23582 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
23584 (commit_schedule): Strengthen param "prev_head" and local "insn"
23585 from rtx to rtx_insn *
23586 (prune_ready_list): Likewise for local "insn".
23587 (schedule_block): Likewise for locals "prev_head", "head", "tail",
23588 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
23589 (set_priorities): Likewise for local "prev_head".
23590 (try_ready): Likewise for param "next".
23591 (fix_tick_ready): Likewise.
23592 (change_queue_index): Likewise.
23593 (sched_extend_ready_list): Update for change to field "vec" of
23595 (generate_recovery_code): Strengthen param "insn" from rtx to
23597 (begin_speculative_block): Likewise.
23598 (create_check_block_twin): Likewise for param "insn" and locals
23599 "label", "check", "twin". Introduce local "check_pat" to avoid
23600 "check" being used as a plain rtx before being used as an insn.
23601 (fix_recovery_deps): Add a checked cast to rtx_insn * when
23602 extracting elements from ready_list.
23603 (sched_remove_insn): Strengthen param "insn" from rtx to
23605 (sched_emit_insn): Likewise for return type.
23606 (ready_remove_first_dispatch): Likewise for return type and local
23609 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
23611 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
23614 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
23615 from rtx to rtx_insn *.
23616 (add_dependence_list): Likewise for param "insn". Add a checked
23618 (add_dependence_list_and_free): Strengthen param "insn" from rtx
23619 to rtx_insn *. Strengthen param "list_p" from rtx * to
23621 (chain_to_prev_insn): Strengthen param "insn" and locals
23622 "prec_nonnote", "i" from rtx to rtx_insn *.
23623 (flush_pending_lists): Likewise for param "insn".
23624 (cur_insn): Likewise for this variable.
23625 (haifa_start_insn): Add a checked cast.
23626 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
23627 (sched_analyze_reg): Likewise for param "insn".
23628 (sched_analyze_1): Likewise.
23629 (sched_analyze_2): Likewise. Add checked casts.
23630 (sched_analyze_insn): Likewise. Also for local "prev".
23631 (deps_analyze_insn): Likewise for param "insn".
23632 (sched_analyze): Likewise for params "head", "tail" and local "insn".
23633 (add_dependence_1): Likewise for params "insn", "elem".
23634 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
23635 (parse_add_or_inc): Likewise for param "insn".
23636 (find_inc): Likewise for local "inc_cand".
23637 (find_modifiable_mems): Likewise for params "head", "tail" and
23638 locals "insn", "next_tail".
23640 * sched-ebb.c (init_ready_list): Likewise for local "insn".
23641 (begin_schedule_ready): Likewise for param "insn".
23642 (begin_move_insn): Likewise for params "insn" and "last".
23643 (ebb_print_insn): Strengthen param "insn" from const_rtx to
23645 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
23646 (ebb_contributes_to_priority): Likewise for params "next", "insn".
23647 (ebb_add_remove_insn): Likewise for param "insn".
23648 (advance_target_bb): Likewise.
23650 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
23652 (check_live): Likewise for param "insn".
23653 (init_ready_list): Likewise for local "insn".
23654 (can_schedule_ready_p): Likewise for param "insn".
23655 (begin_schedule_ready): Likewise.
23656 (new_ready): Likewise for param "next".
23657 (rgn_print_insn): Likewise for param "insn".
23658 (rgn_rank): Likewise for params "insn1", "insn2".
23659 (contributes_to_priority): Likewise for params "next", "insn".
23660 (rgn_insn_finishes_block_p): Likewise for param "insn".
23661 (add_branch_dependences): Likewise for params "head", "tail" and
23662 locals "insn", "last".
23663 (rgn_add_remove_insn): Likewise for param "insn".
23664 (advance_target_bb): Likewise.
23666 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
23667 const_rtx to const rtx_insn *.
23669 * sel-sched-dump.h (sel_print_insn): Likewise.
23671 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
23672 (deps_init_id): Likewise.
23674 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
23675 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
23678 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23680 * output.h (final_start_function): Strengthen param 1 from rtx to
23683 * final.c (final_start_function): Likewise, renaming back from
23684 "uncast_first" to "first", and dropping the checked cast from rtx
23687 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23689 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
23690 * final.c (final): Likewise. Rename param back from
23691 "uncast_first" to "first" and eliminate the checked cast from rtx
23694 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23696 * output.h (shorten_branches): Strengthen param from rtx to
23699 * final.c (shorten_branches): Likewise, renaming param back from
23700 "uncast_first" to "first", and dropping the checked cast from rtx
23703 * genattr.c (gen_attr): Likewise when writing out the prototype of
23706 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23708 * sched-int.h (struct haifa_sched_info): Strengthen fields
23709 "prev_head" and "next_tail" from rtx to rtx_insn *.
23711 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23713 * rtl.h (rtx_jump_table_data::get_labels): New method.
23714 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
23715 with use of the new rtx_jump_table_data::get_labels method.
23716 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
23717 to rtx_jump_table_data *. Simplify by using get_labels method.
23718 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
23719 a dyn_cast, introducing local "table", using it to replace
23720 label-lookup logic with a get_labels method call.
23721 (patch_jump_insn): Simplify using get_labels method.
23722 * dwarf2cfi.c (create_trace_edges): Likewise.
23723 * rtlanal.c (label_is_jump_target_p): Likewise.
23725 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23727 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
23730 * emit-rtl.c (unshare_all_rtl_1): Likewise.
23731 (unshare_all_rtl_again): Likewise, also for local "p".
23733 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23735 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
23737 * cfgrtl.c (delete_insn_and_edges): Likewise.
23739 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23741 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
23742 from rtx to rtx_insn *.
23744 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
23746 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23748 * function.c (thread_prologue_and_epilogue_insns): Likewise for
23749 locals "returnjump", "epilogue_end", "insn", "next".
23751 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
23752 "returnjump" from rtx * to rtx_insn **.
23753 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
23755 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23757 * basic-block.h (struct edge_def). Strengthen "r" within
23758 union edge_def_insns from rtx to rtx_insn *.
23760 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
23761 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
23763 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
23764 from rtx to rtx_insn *.
23765 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
23767 * postreload-gcse.c (reg_killed_on_edge): Likewise.
23768 (reg_used_on_edge): Likewise.
23769 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
23770 (gt_pch_nx): New overload for rtx_insn *&.
23771 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
23772 from rtx to rtx_insn *.
23774 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23776 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
23777 from rtx to rtx_insn *.
23778 (BB_FOOTER): Replace function with access macro.
23779 (SET_BB_FOOTER): Delete.
23781 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
23783 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
23784 (emit_barrier_after_bb): Likewise.
23785 (record_effective_endpoints): Likewise.
23786 (relink_block_chain): Likewise.
23787 (fixup_fallthru_exit_predecessor): Likewise.
23788 (cfg_layout_duplicate_bb): Likewise.
23789 (cfg_layout_split_block): Likewise.
23790 (cfg_layout_delete_block): Likewise.
23791 (cfg_layout_merge_blocks): Likewise.
23792 (BB_FOOTER): Delete function.
23793 (SET_BB_FOOTER): Delete function.
23794 * combine.c (update_cfg_for_uncondjump): Replace uses of
23795 SET_BB_FOOTER with BB_FOOTER.
23797 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23799 * except.h (struct eh_landing_pad_d): Strengthen field
23800 "landing_pad" from rtx to rtx_code_label *.
23802 * except.c (sjlj_emit_dispatch_table): Likewise for param
23804 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
23806 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23808 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
23809 first param from rtx to rtx_insn *.
23810 * config/xtensa/xtensa.c (struct machine_function): Likewise for
23811 field "set_frame_ptr_insn".
23812 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
23813 "csend" from rtx to rtx_code_label *.
23814 (xtensa_expand_atomic): Likewise for local "csloop".
23815 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
23817 (xtensa_call_tls_desc): Likewise for return type and locals
23818 "call_insn", "insns".
23819 (xtensa_legitimize_tls_address): Likewise for local "insns".
23820 (xtensa_expand_prologue): Likewise for locals "insn", "first".
23822 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23824 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
23825 first param from rtx to rtx_insn *.
23826 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
23829 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23831 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
23832 Strengthen param 1 from rtx to rtx_insn *.
23833 (tilepro_output_cbranch): Likewise.
23834 (tilepro_adjust_insn_length): Likewise.
23835 (tilepro_final_prescan_insn): Likewise for sole param.
23837 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
23838 Likewise for local "last".
23839 (cbranch_predicted_p): Likewise for param "insn".
23840 (tilepro_output_simple_cbranch_with_opcode): Likewise.
23841 (tilepro_output_cbranch_with_opcode): Likewise.
23842 (tilepro_output_cbranch): Likewise.
23843 (frame_emit_load): Likewise for return type and locals "seq",
23845 (emit_sp_adjust): Likewise for return type and local "insn".
23846 (tilepro_expand_epilogue): Likewise for locals "last_insn",
23848 (tilepro_adjust_insn_length): Likewise for param "insn".
23849 (next_insn_to_bundle): Likewise for return type and params
23851 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
23852 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
23854 (match_addli_pcrel): Likewise for param "insn".
23855 (replace_addli_pcrel): Likewise.
23856 (match_auli_pcrel): Likewise.
23857 (replace_auli_pcrel): Likewise.
23858 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
23860 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
23861 "queue", "next_queue", "prev".
23862 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
23863 (tilepro_final_prescan_insn): Likewise for param "insn".
23865 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23867 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
23868 Strengthen param 1 from rtx to rtx_insn *.
23869 (tilegx_output_cbranch): Likewise.
23870 (tilegx_adjust_insn_length): Likewise.
23871 (tilegx_final_prescan_insn): Likewise for sole param.
23873 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
23875 (cbranch_predicted_p): Likewise for param "insn".
23876 (tilegx_output_simple_cbranch_with_opcode): Likewise.
23877 (tilegx_output_cbranch_with_opcode): Likewise.
23878 (tilegx_output_cbranch): Likewise.
23879 (frame_emit_load): Likewise for return type.
23880 (set_frame_related_p): Likewise for locals "seq", "insn".
23881 (emit_sp_adjust): Likewise for return type, and for local "insn".
23882 Introduce local "pat" for use in place of "insn" where the latter
23883 isn't an instruction.
23884 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
23885 from rtx to rtx_insn *.
23886 (tilegx_adjust_insn_length): Likewise for param "insn".
23887 (next_insn_to_bundle): Likewise for return type and params "r" and
23889 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
23891 (replace_insns): Likewise for params "old_insn", "new_insns".
23892 (replace_mov_pcrel_step1): Likewise for param "insn" and local
23894 (replace_mov_pcrel_step2): Likewise.
23895 (replace_mov_pcrel_step3): Likewise.
23896 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
23898 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
23899 "queue", "next_queue", "prev".
23900 (tilegx_output_mi_thunk): Likewise for local "insn".
23901 (tilegx_final_prescan_insn): Likewise for param "insn".
23903 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23905 * config/spu/spu.c (frame_emit_store): Strengthen return type from
23907 (frame_emit_load): Likewise.
23908 (frame_emit_add_imm): Likewise, also for local "insn".
23909 (spu_expand_prologue): Likewise for local "insn".
23910 (struct spu_bb_info): Likewise for field "prop_jump".
23911 (emit_nop_for_insn): Likewise for param "insn" and local
23913 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
23915 (spu_emit_branch_hint): Likewise for params "before", "branch" and
23916 locals "hint", "insn".
23917 (get_branch_target): Likewise for param "branch".
23918 (insn_clobbers_hbr): Likewise for param "insn".
23919 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
23920 locals "insn", "before_4", "before_16".
23921 (insert_hbrp): Likewise for local "insn".
23922 (spu_machine_dependent_reorg): Likewise for locals "branch",
23923 "insn", "next", "bbend".
23924 (uses_ls_unit): Likewise for param "insn".
23925 (get_pipe): Likewise.
23926 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
23927 introducing a checked cast.
23928 (spu_sched_adjust_cost): Likewise for params "insn" and
23930 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
23931 (spu_sms_res_mii): Likewise.
23933 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23935 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
23936 from rtx to rtx_insn *.
23937 (output_cbranch): Likewise for param 6.
23938 (output_return): Likewise for param 1.
23939 (output_sibcall): Likewise.
23940 (output_v8plus_shift): Likewise.
23941 (output_v8plus_mult): Likewise.
23942 (output_v9branch): Likewise for param 7.
23943 (output_cbcond): Likewise for param 3.
23945 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
23947 (sparc_legitimize_pic_address): Likewise.
23948 (sparc_emit_call_insn): Likewise.
23949 (emit_save_or_restore_regs): Likewise.
23950 (emit_window_save): Likewise for return type and local "insn".
23951 (sparc_expand_prologue): Likewise for local "insn".
23952 (sparc_flat_expand_prologue): Likewise.
23953 (output_return): Likewise for param "insn".
23954 (output_sibcall): Likewise for param "insn" and local "delay".
23955 (output_ubranch): Likewise for param "insn".
23956 (output_cbranch): Likewise.
23957 (output_cbcond): Likewise.
23958 (output_v9branch): Likewise.
23959 (output_v8plus_shift): Likewise.
23960 (sparc_output_mi_thunk): Likewise for local "insn".
23961 (get_some_local_dynamic_name): Likewise.
23962 (output_v8plus_mult): Likewise for param "insn".
23964 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23966 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
23967 from rtx to rtx_insn *.
23968 (output_branchy_insn): Likewise for param 3.
23969 (output_far_jump): Likewise for param 1.
23970 (final_prescan_insn): Likewise.
23971 (sh_insn_length_adjustment): Likewise for sole param.
23973 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
23974 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
23976 (sh_emit_compare_and_set): Likewise for local "lab".
23977 (output_far_jump): Strengthen param "insn" and local "prev" from
23979 (output_branchy_insn): Likewise for param "insn" and local
23981 (output_ieee_ccmpeq): Likewise for param "insn".
23982 (struct label_ref_list_d): Strengthen field "label" from rtx to
23984 (pool_node): Likewise.
23985 (pool_window_label): Likewise for this global.
23986 (add_constant): Likewise for return type and locals "lab", "new_rtx".
23987 (dump_table): Strengthen params "start", "barrier" and local
23988 "scan" from rtx to rtx_insn *.
23989 (broken_move): Likewise for param "insn".
23990 (untangle_mova): Likewise for params "first_mova" and "new_mova".
23991 Strengthen param "first_mova" from rtx * to rtx_insn **.
23992 (mova_p): Likewise for param "insn".
23993 (fixup_mova): Likewise for param "mova".
23994 (find_barrier): Likewise for return type, params "mova" and
23995 "from", and locals "barrier_before_mova", "found_barrier",
23996 "good_barrier", "orig", "last_symoff", "next". Strengthen local
23997 "label" from rtx to rtx_code_label *.
23998 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
24000 (sh_reorg): Likewise for locals "link", "scan", "barrier".
24001 (split_branches): Likewise for param "first" and local "insn".
24002 (final_prescan_insn): Likewise for param "insn".
24003 (sequence_insn_p): Likewise for locals "prev", "next".
24004 (sh_insn_length_adjustment): Likewise for param "insn".
24005 (sh_can_redirect_branch): Likewise for local "insn".
24006 (find_r0_life_regions): Likewise for locals "end", "insn".
24007 (sh_output_mi_thunk): Likewise for local "insns".
24009 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24011 * config/score/score.c (score_output_mi_thunk): Strengthen local
24012 "insn" from rtx to rtx_insn *.
24013 (score_prologue): Likewise.
24015 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24017 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
24018 1 from rtx to rtx_insn *.
24019 (s390_emit_jump): Likewise for return type.
24020 (s390_emit_call): Likewise.
24021 (s390_load_got): Likewise.
24023 * config/s390/s390.c (last_scheduled_insn): Likewise for this
24025 (s390_match_ccmode): Likewise for param "insn".
24026 (s390_emit_jump): Likewise for return type.
24027 (s390_split_branches): Likewise for local "label".
24028 (struct constant): Strengthen field "label" from rtx to
24030 (struct constant_pool): Likewise for field "label". Strengthen
24031 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
24033 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
24035 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
24036 (s390_end_pool): Likewise.
24037 (s390_dump_pool): Likewise for local "insn".
24038 (s390_mainpool_start): Likewise.
24039 (s390_chunkify_start): Likewise.
24040 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
24041 with insns. Strengthen locals "label", "jump", "barrier", "next",
24042 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
24043 (s390_chunkify_finish): Strengthen local "insn" from rtx to
24045 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
24046 "jump", "label", "next_insn".
24047 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
24048 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
24050 (s390_load_got): Likewise for return type and local "insns".
24051 (s390_save_gprs_to_fprs): Likewise for local "insn".
24052 (s390_restore_gprs_from_fprs): Likewise.
24053 (pass_s390_early_mach::execute): Likewise.
24054 (s390_emit_prologue): Likewise for local "insns".
24055 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
24057 (s390_emit_call): Strengthen return type and local "insn" from
24059 (s390_emit_tpf_eh_return): Likewise for local "insn".
24060 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
24061 "next_insn", introducing locals "s_pat", "rpat" to allow this.
24062 (s390_fix_long_loop_prediction): Likewise for param "insn" and
24064 (s390_non_addr_reg_read_p): Likewise for param "insn".
24065 (find_cond_jump): Likewise for return type and param "insn".
24066 (s390_swap_cmp): Likewise for param "insn".
24067 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
24068 "prev_insn", "next_insn".
24069 (s390_reorg): Likewise for locals "insn", "target".
24070 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
24071 (s390_sched_variable_issue): For now, rename param "insn" to
24072 "uncast_insn", introducing a checked cast.
24073 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
24075 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
24076 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
24078 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24080 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
24081 param from rtx to rtx_insn *.
24082 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
24084 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24086 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
24087 4 from rtx to rtx_insn *.
24088 (rs6000_final_prescan_insn): Likewise for first param.
24089 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
24091 (rs6000_get_some_local_dynamic_name): Likewise.
24092 (output_cbranch): Likewise for param "insn".
24093 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
24094 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
24095 (rs6000_emit_allocate_stack): Likewise for local "insn".
24096 (load_cr_save): Likewise.
24097 (restore_saved_cr): Likewise.
24098 (restore_saved_lr): Likewise.
24099 (emit_cfa_restores): Likewise.
24100 (rs6000_output_function_epilogue): Likewise for locals "insn" and
24101 "deleted_debug_label".
24102 (rs6000_output_mi_thunk): Likewise for local "insn".
24103 (rs6000_final_prescan_insn): Likewise for param "insn".
24105 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24107 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
24108 Strengthen param "insn" from rtx to rtx_insn *.
24109 * config/picochip/picochip.c (picochip_current_prescan_insn):
24110 Likewise for this variable.
24111 (picochip_final_prescan_insn): Likewise for param "insn".
24113 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24115 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
24116 from rtx to rtx_insn *.
24117 (pa_output_indirect_call): Likewise.
24118 (pa_adjust_insn_length): Likewise.
24119 (pa_attr_length_millicode_call): Likewise.
24120 (pa_attr_length_call): Likewise.
24121 (pa_attr_length_indirect_call): Likewise.
24123 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
24125 (pa_attr_length_millicode_call): Likewise.
24126 (pa_attr_length_call): Likewise.
24127 (pa_output_call): Likewise.
24128 (pa_attr_length_indirect_call): Likewise.
24129 (pa_output_indirect_call): Likewise.
24131 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24133 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
24134 Strengthen first param from rtx to rtx_insn *.
24135 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
24138 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24140 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
24141 type from rtx to rtx_insn *.
24142 (mips_expand_call): Likewise.
24143 (mips_adjust_insn_length): Likewise for first param.
24144 (mips_output_conditional_branch): Likewise.
24145 (mips_output_order_conditional_branch): Likewise.
24146 (mips_final_prescan_insn): Likewise.
24148 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
24149 rtx_insn * for the SEQUENCE case.
24150 (SEQ_END): Likewise.
24151 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
24152 (mips_emit_call_insn): Likewise, also for local "insn".
24153 (mips16_gp_pseudo_reg): Likewise for local "scan".
24154 (mips16_build_call_stub): Likewise for return type and for local
24155 "insn". Introduce a new local "pattern" so that "insn" can indeed
24157 (mips_expand_call): Strengthen return type and local "insn" from
24159 (mips_block_move_loop): Strengthen local "label" from rtx to
24161 (mips_expand_synci_loop): Likewise for locals "label",
24163 (mips_set_frame_expr): Strengthen local "insn" from rtx to
24165 (mips16e_collect_argument_saves): Likewise for locals "insn",
24167 (mips_find_gp_ref): Likewise for param of callback for "pred"
24168 param, and for local "insn".
24169 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
24170 (mips_insn_has_flexible_gp_ref_p): Likewise.
24171 (mips_epilogue_emit_cfa_restores): Likewise for return type and
24173 (mips_epilogue_set_cfa): Likewise for local "insn".
24174 (mips_expand_epilogue): Likewise.
24175 (mips_adjust_insn_length): Likewise for param "insn".
24176 (mips_output_conditional_branch): Likewise.
24177 (mips_output_order_conditional_branch): Likewise.
24178 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
24179 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
24180 "falu2_turn_enabled_insn".
24181 (mips_builtin_branch_and_move): Strengthen locals "true_label",
24182 "done_label" from rtx to rtx_code_label *.
24183 (struct mips16_constant): Likewise for field "label".
24184 (mips16_add_constant): Likewise for return type.
24185 (mips16_emit_constants_1): Strengthen return type and param "insn"
24186 from rtx to rtx_insn *.
24187 (mips16_emit_constants): Likewise for param "insn".
24188 (mips16_insn_length): Likewise.
24189 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
24190 to rtx_code_label *.
24191 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
24192 from rtx to rtx_insn *.
24193 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
24194 "jump". Strengthen local "label" from rtx to rtx_code_label *.
24195 (r10k_simplify_address): Strengthen param "insn" and local
24196 "def_insn" from rtx to rtx_insn *.
24197 (r10k_safe_address_p): Strengthen param "insn" from rtx to
24199 (r10k_needs_protection_p_1): Update target type of cast of data
24200 from to rtx to rtx_insn *.
24201 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
24202 rtx * to rtx_insn **.
24203 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
24205 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
24206 (mips_call_expr_from_insn): Likewise for param "insn".
24207 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
24208 (mips_find_pic_call_symbol): Likewise for param "insn".
24209 (mips_annotate_pic_calls): Likewise for local "insn".
24210 (mips_sim_insn): Likewise for this variable.
24211 (struct mips_sim): Likewise for field "insn" within elements of
24213 (mips_sim_wait_reg): Likewise for param "insn".
24214 (mips_sim_wait_regs): Likewise.
24215 (mips_sim_wait_units): Likewise.
24216 (mips_sim_wait_insn): Likewise.
24217 (mips_sim_issue_insn): Likewise.
24218 (mips_sim_finish_insn): Likewise.
24219 (mips_seq_time): Likewise for param "seq" and local "insn".
24220 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
24221 locals "first", "second".
24222 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
24223 "last", "last2", "next".
24224 (mips_avoid_hazard): Likewise for params "after", "insn".
24225 (mips_reorg_process_insns): Likewise for locals "insn",
24226 "last_insn", "subinsn", "next_insn".
24227 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
24228 (mips16_split_long_branches): Likewise for locals "insn" "jump",
24230 (mips_output_mi_thunk): Likewise for local "insn".
24231 (mips_final_prescan_insn): Likewise for param "insn".
24233 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24235 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
24236 Strengthen return type and local "insns" from rtx to rtx_insn *.
24237 (microblaze_legitimize_tls_address): Likewise for local "insns".
24238 (microblaze_block_move_loop): Strengthen local "label" from rtx
24239 to rtx_code_label *.
24240 (microblaze_expand_prologue): Strengthen two locals named "insn"
24241 from rtx to rtx_insn *.
24242 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
24243 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
24244 "insn". Strengthen locals "div_label", "div_end_label" from rtx
24245 to rtx_code_label *.
24247 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24249 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
24250 param from rtx to rtx_insn *.
24251 (mep_reuse_lo): Likewise for third param.
24252 (mep_use_post_modify_p): Likewise for first param.
24253 (mep_core_address_length): Likewise.
24254 (mep_cop_address_length): Likewise.
24255 (mep_final_prescan_insn): Likewise.
24256 (mep_store_data_bypass_p): Likewise for both params.
24257 (mep_mul_hilo_bypass_p): Likewise.
24258 (mep_ipipe_ldc_p): Likewise for param.
24260 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
24261 (mep_rewrite_mult): Likewise.
24262 (mep_rewrite_mulsi3): Likewise.
24263 (mep_rewrite_maddsi3): Likewise.
24264 (mep_reuse_lo_p_1): Likewise.
24265 (mep_reuse_lo_p): Likewise.
24266 (mep_frame_expr): Likewise.
24267 (mep_make_parallel): Likewise for both params.
24268 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
24270 (mep_use_post_modify_p): Likewise for param "insn".
24271 (mep_core_address_length): Likewise.
24272 (mep_cop_address_length): Likewise.
24273 (mep_reg_set_in_function): Likewise for local "insn".
24274 (mep_asm_without_operands_p): Likewise.
24275 (F): Likewise for return type and param "x".
24276 (add_constant): Likewise for local "insn".
24277 (maybe_dead_move): Likewise for return type and local "insn".
24278 (mep_expand_prologue): Likewise for local "insn".
24279 (mep_final_prescan_insn): Likewise for param "insn".
24280 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
24281 "next", "follow", "x".
24282 (mep_insert_repeat_label_last): Likewise for return type, param
24283 "last_insn", and locals "next", "prev". Strengthen param "label"
24284 from rtx to rtx_code_label *.
24285 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
24287 (struct mep_doloop_end): Likewise for fields "insn" and
24289 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
24290 Strengthen local "repeat_label" from rtx to rtx_code_label *.
24291 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
24293 (mep_invert_branch): Likewise for params "insn" and "after".
24294 (mep_reorg_erepeat): Likewise for param "insns" and locals
24295 "insn", "prev", "new_last", "barrier", "user". Strengthen local
24296 "l" from rtx to rtx_code_label *.
24297 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
24298 from rtx to rtx_insn *.
24299 (mep_reorg_addcombine): Likewise for param "insns" and locals
24301 (add_sp_insn_p): Likewise for param "insn".
24302 (mep_reorg_noframe): Likewise for param "insns" and locals
24303 "start_frame_insn", "end_frame_insn", "next".
24304 (mep_reorg): Likewise for local "insns".
24305 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
24307 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
24308 (mep_mul_hilo_bypass_p): Likewise.
24309 (mep_ipipe_ldc_p): Likewise for param "insn".
24310 (mep_make_bundle): Likewise for return type, param "cop" and local
24311 "insn", splitting out the latter into a new local "seq" for when it
24312 is a SEQUENCE rather than an insn.
24313 (core_insn_p): Likewise for param "insn".
24314 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
24315 "last", "first", "note", "prev", "core_insn".
24317 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24319 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
24321 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
24322 (m68k_final_prescan_insn): Likewise for first param.
24324 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
24325 (m68k_set_frame_related): Likewise for param "insn".
24326 (output_btst): Likewise for param "insn".
24327 (m68k_final_prescan_insn): Likewise.
24328 (m68k_move_to_reg): Likewise for local "insn".
24329 (m68k_call_tls_get_addr): Likewise for local "insns".
24330 (m68k_call_m68k_read_tp): Likewise.
24331 (strict_low_part_peephole_ok): Likewise for param "first_insn".
24332 (m68k_output_mi_thunk): Likewise for local "insn".
24334 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24336 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
24337 first param from rtx to rtx_insn *.
24338 (iq2000_adjust_insn_length): Likewise.
24339 (iq2000_output_conditional_branch): Likewise.
24340 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
24341 "insn" and local "nop_insn".
24342 (iq2000_annotate_frame_insn): Likewise for param "insn".
24343 (iq2000_expand_prologue): Likewise for both locals "insn".
24344 (iq2000_adjust_insn_length): Likewise for param "insn".
24345 (iq2000_output_conditional_branch): Likewise.
24347 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24349 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
24350 "insns" from rtx to rtx_insn *.
24351 (ia64_emit_cond_move): Likewise for locals "insn", "first".
24352 (struct spill_fill_data): Likewise for field "init_after" and for
24353 elements of array field "prev_insn".
24354 (spill_restore_mem): Likewise for locals "insn", "first".
24355 (do_spill): Likewise for local "insn".
24356 (do_restore): Likewise.
24357 (ia64_expand_prologue): Likewise.
24358 (ia64_expand_epilogue): Likewise.
24359 (emit_insn_group_barriers): Likewise for locals "insn",
24361 (emit_all_insn_group_barriers): Likewise for locals "insn",
24363 (dfa_stop_insn): Likewise for this global.
24364 (dfa_pre_cycle_insn): Likewise.
24365 (ia64_nop): Likewise.
24366 (final_emit_insn_group_barriers): Likewise for locals "insn",
24368 (emit_predicate_relation_info): Likewise for locals "head", "n",
24370 (ia64_reorg): Likewise for local "insn".
24371 (ia64_output_mi_thunk): Likewise.
24372 (expand_vec_perm_interleave_2): Likewise for local "seq".
24374 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24376 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
24377 param 1 "insn" from rtx to rtx_insn *.
24378 (ix86_use_lea_for_mov): Likewise.
24379 (ix86_avoid_lea_for_addr): Likewise.
24380 (ix86_split_lea_for_addr): Likewise.
24381 (ix86_lea_for_add_ok): Likewise.
24382 (ix86_output_call_insn): Likewise.
24384 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
24385 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
24386 (ix86_output_function_epilogue): Likewise for locals "insn",
24387 "deleted_debug_label".
24388 (legitimize_tls_address): Likewise for local "insn".
24389 (get_some_local_dynamic_name): Likewise.
24390 (increase_distance): Likewise for params "prev", "next".
24391 (distance_non_agu_define_in_bb): Likewise for params "insn",
24392 "start" and locals "prev", "next".
24393 (distance_non_agu_define): Likewise for param "insn".
24394 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
24395 locals "next", "prev".
24396 (distance_agu_use): Likewise for param "insn".
24397 (ix86_lea_outperforms): Likewise.
24398 (ix86_ok_to_clobber_flags): Likewise.
24399 (ix86_avoid_lea_for_add): Likewise.
24400 (ix86_use_lea_for_mov): Likewise.
24401 (ix86_avoid_lea_for_addr): Likewise.
24402 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
24403 (ix86_split_lea_for_addr): Likewise for param "insn".
24404 (ix86_lea_for_add_ok): Likewise for param "insn".
24405 (ix86_expand_carry_flag_compare): Likewise for local
24407 (ix86_expand_int_movcc): Likewise.
24408 (ix86_output_call_insn): Likewise for param "insn".
24409 (ix86_output_call_insn): Likewise for local "i".
24410 (x86_output_mi_thunk): Introduce local "insn", using it in place
24411 of "tmp" when dealing with insns.
24412 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
24414 (ix86_pad_returns): Likewise for locals "ret", "prev".
24415 (ix86_count_insn_bb): Likewise for local "insn".
24416 (ix86_pad_short_function): Likewise for locals "ret", "insn".
24417 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
24418 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
24419 (expand_vec_perm_interleave2): Likewise for local "seq".
24420 (expand_vec_perm_vperm2f128_vblend): Likewise.
24421 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
24422 call to for_each_rtx with for_each_rtx_in_insn.
24424 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24426 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
24427 "label" from rtx to rtx_code_label *.
24428 (ix86_expand_prologue): Likewise.
24429 (ix86_expand_split_stack_prologue): Likewise for locals "label",
24431 (ix86_split_idivmod): Likewise for locals "end_label" and
24433 (ix86_expand_branch): Likewise for local "label2".
24434 (ix86_expand_aligntest): Likewise for return type and local "label".
24435 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
24437 (expand_movmem_epilogue): Likewise for the various locals named
24439 (expand_setmem_epilogue): Likewise.
24440 (expand_small_movmem_or_setmem): Likewise for local "label".
24441 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
24442 Strengthen param "done_label" from rtx * to rtx_code_label **.
24443 Strengthen locals "loop_label" and "label" from rtx to
24445 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
24446 Likewise for locals "loop_label", "label".
24447 (ix86_expand_set_or_movmem): Likewise for locals "label",
24448 "jump_around_label", "hot_label".
24449 (ix86_expand_strlensi_unroll_1): Likewise for locals
24450 "align_2_label", align_3_label", "align_4_label", "end_0_label",
24452 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
24453 (void ix86_emit_i387_log1p): Likewise for locals "label1",
24454 "label2", "jump_label".
24455 (ix86_expand_sse_compare_and_jump): Likewise for return type and
24457 (ix86_expand_lfloorceil): Likewise for local "label".
24458 (ix86_expand_rint): Likewise.
24459 (ix86_expand_floorceildf_32): Likewise.
24460 (ix86_expand_floorceil): Likewise.
24461 (ix86_expand_rounddf_32): Likewise.
24462 (ix86_expand_trunc): Likewise.
24463 (ix86_expand_truncdf_32): Likewise.
24464 (ix86_expand_round): Likewise.
24466 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24468 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
24469 first param from rtx to rtx_insn *.
24470 (h8300_insn_length_from_table): Likewise.
24471 * config/h8300/h8300.c (F): Likewise for return type and param
24473 (Fpa): Add a checked cast to rtx_insn *.
24474 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
24476 (final_prescan_insn): Likewise for param "insn".
24477 (h8300_binary_length): Likewise.
24478 (h8300_insn_length_from_table): Likewise.
24480 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24482 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
24483 Strengthen first param "insn" from rtx to rtx_insn *.
24485 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
24487 (frame_insn): Likewise for return type. Introduce local "insn"
24488 for use in place of local "x" for use as an rtx_insn *.
24489 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
24490 (epiphany_expand_prologue): Likewise for local "insn".
24491 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
24492 * config/epiphany/resolve-sw-modes.c
24493 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
24496 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24498 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
24499 param from rtx to rtx_insn *.
24500 (c6x_final_prescan_insn): Likewise for first param.
24502 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
24503 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
24504 (c6x_expand_compare): Strengthen local "insns" from rtx to
24506 (c6x_get_unit_specifier): Likewise for param "insn".
24507 (c6x_print_unit_specifier_field): Likewise.
24508 (c6x_final_prescan_insn): Likewise.
24509 (emit_add_sp_const): Likewise for local "insn".
24510 (c6x_expand_prologue): Likewise.
24512 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24514 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
24515 param 1 from rtx to rtx_insn *.
24516 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
24517 the various locals named "insn".
24518 (expand_epilogue_reg_restore): Likewise.
24519 (frame_related_constant_load): Likewise.
24520 (add_to_reg): Likewise.
24521 (emit_link_insn): Likewise.
24522 (do_link): Likewise.
24523 (expand_interrupt_handler_prologue): Likewise.
24524 (branch_dest): Likewise for param "branch".
24525 (asm_conditional_branch): Likewise for param "insn".
24526 (gen_one_bundle): Likewise for elements of param "slot" and local
24528 (bfin_gen_bundles): Likewise for locals "insn", "next" and
24529 elements of local "slot".
24530 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
24531 "queue", "next_queue", "prev".
24532 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
24533 (add_sched_insns_for_speculation): Likewise for local "insn".
24535 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24537 * config/avr/avr-protos.h (output_movqi): Strengthen first param
24538 from rtx to rtx_insn *.
24539 (output_movhi): Likewise.
24540 (output_movsisf): Likewise.
24541 (avr_out_tstsi): Likewise.
24542 (avr_out_tsthi): Likewise.
24543 (avr_out_tstpsi): Likewise.
24544 (avr_out_compare): Likewise.
24545 (avr_out_compare64): Likewise.
24546 (avr_out_movpsi): Likewise.
24547 (ashlqi3_out): Likewise.
24548 (ashlhi3_out): Likewise.
24549 (ashlsi3_out): Likewise.
24550 (ashrqi3_out): Likewise.
24551 (ashrhi3_out): Likewise.
24552 (ashrsi3_out): Likewise.
24553 (lshrqi3_out): Likewise.
24554 (lshrhi3_out): Likewise.
24555 (lshrsi3_out): Likewise.
24556 (avr_out_ashlpsi3): Likewise.
24557 (avr_out_ashrpsi3): Likewise.
24558 (avr_out_lshrpsi3): Likewise.
24559 (avr_out_fract): Likewise.
24560 (avr_out_sbxx_branch): Likewise.
24561 (avr_out_round): Likewise.
24562 (avr_out_xload): Likewise.
24563 (avr_out_movmem): Likewise.
24564 (adjust_insn_length): Likewise.
24565 (avr_out_lpm): Likewise.
24566 (reg_unused_after): Likewise.
24567 (_reg_unused_after): Likewise.
24568 (avr_jump_mode): Likewise for second param.
24569 (jump_over_one_insn): Likewise for first param.
24570 (avr_final_prescan_insn): Likewise.
24571 (out_shift_with_cnt): Likewise for second param.
24573 * config/avr/avr.c (get_sequence_length): Likewise for param
24574 "insns" and local "insn".
24575 (emit_push_byte): Likewise for local "insn".
24576 (emit_push_sfr): Likewise.
24577 (avr_prologue_setup_frame): Likewise for locals "insn",
24578 "fp_plus_insns", "sp_plus_insns".
24579 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
24581 (avr_jump_mode): Likewise for param "insn".
24582 (avr_final_prescan_insn): Likewise.
24583 (avr_find_unused_d_reg): Likewise.
24584 (avr_out_lpm_no_lpmx): Likewise.
24585 (avr_out_lpm): Likewise.
24586 (avr_out_xload): Likewise.
24587 (output_movqi): Likewise.
24588 (output_movhi): Likewise.
24589 (out_movqi_r_mr): Likewise.
24590 (out_movhi_r_mr): Likewise.
24591 (out_movsi_r_mr): Likewise.
24592 (out_movsi_mr_r): Likewise.
24593 (output_movsisf): Likewise.
24594 (avr_out_load_psi): Likewise.
24595 (avr_out_store_psi): Likewise.
24596 (avr_out_movpsi): Likewise.
24597 (out_movqi_mr_r): Likewise.
24598 (avr_out_movhi_mr_r_xmega): Likewise.
24599 (out_movhi_mr_r): Likewise.
24600 (compare_condition): Likewise for param "insn" and local "next".
24601 (compare_sign_p): Likewise for param "insn".
24602 (compare_diff_p): Likewise.
24603 (compare_eq_p): Likewise.
24604 (avr_out_compare): Likewise.
24605 (avr_out_compare64): Likewise.
24606 (avr_out_tsthi): Likewise.
24607 (avr_out_tstpsi): Likewise.
24608 (avr_out_tstsi): Likewise.
24609 (out_shift_with_cnt): Likewise.
24610 (ashlqi3_out): Likewise.
24611 (ashlhi3_out): Likewise.
24612 (avr_out_ashlpsi3): Likewise.
24613 (ashlsi3_out): Likewise.
24614 (ashrqi3_out): Likewise.
24615 (ashrhi3_out): Likewise.
24616 (avr_out_ashrpsi3): Likewise.
24617 (ashrsi3_out): Likewise.
24618 (lshrqi3_out): Likewise.
24619 (lshrhi3_out): Likewise.
24620 (avr_out_lshrpsi3): Likewise.
24621 (lshrsi3_out): Likewise.
24622 (avr_out_fract): Likewise.
24623 (avr_out_round): Likewise.
24624 (avr_adjust_insn_length): Likewise.
24625 (reg_unused_after): Likewise.
24626 (_reg_unused_after): Likewise.
24627 (avr_compare_pattern): Likewise.
24628 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
24629 and locals "branch1", "branch2", "insn2", "jump".
24630 (avr_reorg): Likewise for local "insn".
24631 (avr_2word_insn_p): Likewise for param "insn".
24632 (jump_over_one_insn_p): Likewise.
24633 (avr_out_sbxx_branch): Likewise.
24634 (avr_out_movmem): Likewise.
24636 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24638 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
24639 param from rtx to rtx_insn *.
24640 (thumb1_final_prescan_insn): Likewise.
24641 (thumb2_final_prescan_insn): Likewise.
24643 * config/arm/arm.c (emit_set_insn): Strengthen return type from
24645 (struct minipool_node): Likewise for field "insn".
24646 (dump_minipool): Likewise for param "scan".
24647 (create_fix_barrier): Likewise for local "from". Strengthen local
24648 "label" from rtx to rtx_code_label *.
24649 (push_minipool_barrier): Strengthen param "insn" from rtx to
24651 (push_minipool_fix): Likewise.
24652 (note_invalid_constants): Likewise.
24653 (thumb2_reorg): Likewise for local "insn".
24654 (arm_reorg): Likewise.
24655 (thumb2_final_prescan_insn): Likewise for param
24656 "insn" and local "first_insn".
24657 (arm_final_prescan_insn): Likewise for param "insn" and locals
24658 "start_insn", "this_insn".
24659 (arm_debugger_arg_offset): Likewise for param "insn".
24660 (thumb1_emit_multi_reg_push): Likewise for return type and local
24662 (thumb1_final_prescan_insn): Likewise for param "insn".
24663 (thumb_far_jump_used_p): Likewise for local "insn".
24664 (thumb1_expand_prologue): Likewise.
24665 (arm_expand_epilogue_apcs_frame): Likewise.
24666 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
24667 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
24668 from rtx to rtx_code_label *.
24669 (arm_split_atomic_op): Likewise for local "label".
24670 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
24672 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24674 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
24675 first param from rtx to rtx_insn *.
24676 (arc_verify_short): Likewise.
24677 (arc_short_long): Likewise.
24678 (arc_need_delay): Likewise.
24680 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
24682 (arc_ccfsm_advance): Likewise for param "insn" and locals
24683 "start_insn", "this_insn".
24684 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
24685 (arc_ccfsm_post_advance): Likewise for param "insn".
24686 (arc_next_active_insn): Likewise for return type and param "insn".
24687 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
24688 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
24689 (output_short_suffix): Likewise for local "insn".
24690 (arc_final_prescan_insn): Likewise for param "insn". Remove
24691 now-redundant checked cast.
24692 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
24693 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
24694 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
24695 for use where lc_set became an insn.
24696 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
24698 (arc_get_insn_variants): Likewise for local "prev".
24699 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
24701 (arc_predicate_delay_insns): Likewise for local "insn".
24702 (arc_pad_return): Likewise for local "prev". For now, add a
24703 checked cast when extracting the insn from "final_sequence".
24704 (arc_short_long): Likewise for param "insn".
24705 (arc_need_delay): Likewise for param "insn" and local "next".
24706 (arc_label_align): Likewise for locals "prev", "next".
24708 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24710 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
24711 "insn" from rtx to rtx_insn *.
24712 (alpha_gp_save_rtx): Likewise for local "seq".
24713 (alpha_instantiate_decls): Likewise for local "top".
24714 (get_some_local_dynamic_name): Likewise for local "insn".
24715 (alpha_does_function_need_gp): Likewise.
24716 (set_frame_related_p): Likewise for return type and for locals
24718 (emit_frame_store_1): Likewise for local "insn".
24719 (alpha_expand_prologue): Likewise for locals "insn", "seq".
24720 (alpha_end_function): Likewise for local "insn".
24721 (alpha_output_mi_thunk_osf): Likewise.
24722 (alphaev4_insn_pipe): Likewise for param "insn".
24723 (alphaev5_insn_pipe): Likewise.
24724 (alphaev4_next_group): Likewise for return type and param 1
24726 (alphaev5_next_group): Likewise.
24727 (alpha_align_insns_1): Likewise for return type and param 1 of
24728 callback param "next_group", and for locals "i", "next", "prev",
24729 "where", "where2", "insn".
24731 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
24733 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
24734 rather than modifying the stmt.
24736 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24738 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
24739 cgraph_state conversion.
24741 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24743 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
24744 Strengthen local "insns" from rtx to rtx_insn *.
24745 (aarch64_set_frame_expr): Likewise for local "insn".
24746 (aarch64_save_or_restore_fprs): Likewise.
24747 (aarch64_save_or_restore_callee_save_registers): Likewise.
24748 (aarch64_expand_prologue): Likewise.
24749 (aarch64_expand_epilogue): Likewise.
24750 (aarch64_output_mi_thunk): Likewise.
24751 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
24752 "label2" from rtx to rtx_code_label *.
24753 (aarch64_split_atomic_op): Likewise for local "label".
24755 2014-08-25 Martin Liska <mliska@suse.cz>
24757 * cgraph.h (symtab_node):
24758 (bool needed_p (void)): created from decide_is_symbol_needed
24759 (bool referred_to_p (void)): created from referred_to_p
24760 (static cgraph_node *get_for_asmname (tree asmname)):
24761 created from symtab_node_for_asm
24762 * cgraph.h (cgraph_node):
24763 (void assemble_thunks_and_aliases (void)):
24764 created from assemble_thunks_and_aliases
24765 (void expand (void)): created from expand_function
24766 (static void finalize_function (tree, bool)):
24767 created from cgraph_finalize_function
24768 (static cgraph_local_info *local_info (tree decl)):
24769 created from cgraph_local_info
24770 (static cgraph_global_info *global_info (tree)):
24771 created from cgraph_global_info
24772 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
24773 * cgraph.h (varpool_node):
24774 (static void add (tree decl): created from varpool_add_new_variable
24775 * cgraph.h (cgraph_edge):
24776 void remove (void);
24777 (void remove_caller (void)): created from cgraph_edge_remove_caller
24778 (void remove_callee (void)): created from cgraph_edge_remove_callee
24779 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
24780 created from cgraph_set_call_stmt
24781 (void redirect_callee (cgraph_node *n)): created from
24782 cgraph_redirect_edge_callee
24783 (cgraph_edge *make_direct (cgraph_node *callee)): created from
24784 cgraph_make_edge_direct
24785 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
24786 gimple redirect_call_stmt_to_callee (void)): created from
24787 cgraph_turn_edge_to_speculative
24788 (void speculative_call_info (cgraph_edge *&direct,
24789 cgraph_edge *&indirect, ipa_ref *&reference)): created from
24790 cgraph_speculative_call_info
24791 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt,
24792 unsigned stmt_uid, gcov_type count_scale,
24793 int freq_scale, bool update_original)): created from cgraph_clone_edge
24794 (cgraph_edge *resolve_speculation (tree callee_decl)):
24795 created from cgraph_resolve_speculation
24796 (bool cannot_lead_to_return_p (void)): created from
24797 cannot_lead_to_return_p
24798 (bool recursive_p (void)): created from cgraph_edge_recursive_p
24799 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
24800 (static unsigned int rebuild_edges (void)): created from
24801 rebuild_cgraph_edges
24802 (static void rebuild_references (void)): created from
24803 cgraph_rebuild_references
24804 * cgraph.h (symbol_table):
24805 (create_reference): renamed from add_reference
24806 (maybe_create_reference): renamed from maybe_add_reference
24807 (void register_symbol (symtab_node *node)): new function
24808 (void clear_asm_symbols (void)): new function
24809 (void unregister (symtab_node *node)): new function
24810 (void release_symbol (cgraph_node *node, int uid)): new function
24811 (cgraph_node * allocate_cgraph_symbol (void)): new function
24812 (void initialize (void)): created from cgraph_init
24813 (symtab_node *first_symbol (void)):new function
24814 (asm_node *first_asm_symbol (void)):new function
24815 (symtab_node *first_defined_symbol (void)):new function
24816 (varpool_node *first_variable (void)):new function
24817 (varpool_node *next_variable (varpool_node *node)):new function
24818 (varpool_node *first_static_initializer (void)):new function
24819 (varpool_node *next_static_initializer (varpool_node *node)):new
24821 (varpool_node *first_defined_variable (void)):new function
24822 (varpool_node *next_defined_variable (varpool_node *node)):new function
24823 (cgraph_node *first_defined_function (void)):new function
24824 (cgraph_node *next_defined_function (cgraph_node *node)):new function
24825 (cgraph_node *first_function (void)):new function
24826 (cgraph_node *next_function (cgraph_node *node)):new function
24827 (cgraph_node *first_function_with_gimple_body (void)):new function
24828 (asm_node *finalize_toplevel_asm (tree asm_str)): created from
24830 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
24831 created from symtab_remove_unreachable_nodes
24832 (void remove_unreferenced_decls (void)): created from
24833 varpool_remove_unreferenced_decls
24834 (void process_new_functions (void)): created from
24835 cgraph_process_new_functions
24836 (void process_same_body_aliases (void)): created from
24837 cgraph_process_same_body_aliases
24838 (bool output_variables (void)): created from
24839 varpool_node::output_variables
24840 (void output_asm_statements (void)): created from output_asm_statements
24841 (void finalize_compilation_unit (void)): created from
24842 finalize_compilation_unit
24843 (void compile (void)): created from compile
24844 (void output_weakrefs (void)): created from output_weakrefs
24845 (cgraph_node *create_empty (void)): created from
24846 cgraph_node::create_empty
24847 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee,
24848 gimple call_stmt, gcov_type count, int freq,
24849 bool indir_unknown_callee)): created from cgraph_node::create_edge
24850 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
24851 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
24852 created from cgraph_next_function_with_gimple_body
24853 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
24854 created from cgraph_remove_edge_removal_hook
24855 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook,
24856 void *)): created from cgraph_add_node_removal_hook
24857 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
24858 created from cgraph_remove_node_removal_hook
24859 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook,
24860 void *)): created from varpool_add_node_removal_hook
24861 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
24862 created from varpool_remove_node_removal_hook
24863 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook,
24864 void *)): created from cgraph_add_function_insertion_hook
24865 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
24866 created from cgraph_remove_function_insertion_hook
24867 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook,
24868 void *)): created from varpool_add_variable_insertion_hook
24869 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
24870 created from varpool_remove_variable_insertion_hook
24871 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook,
24872 void *)): created from cgraph_add_edge_duplication_hook
24873 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
24874 created from cgraph_remove_edge_duplication_hook
24875 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook,
24876 void *)): created from cgraph_add_node_duplication_hook
24877 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
24878 created from cgraph_remove_node_duplication_hook
24879 (void call_edge_removal_hooks (cgraph_edge *e)):
24880 created from cgraph_call_edge_removal_hooks
24881 (void call_cgraph_insertion_hooks (cgraph_node *node)):
24882 created from call_function_insertion_hooks
24883 (void call_cgraph_removal_hooks (cgraph_node *node)):
24884 created from cgraph_call_node_removal_hooks
24885 (void call_cgraph_duplication_hooks (cgraph_node *node,
24886 cgraph_node *node2)): created from cgraph_node::call_duplication_hooks
24887 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
24888 created from cgraph_call_edge_duplication_hooks
24889 (void call_varpool_removal_hooks (varpool_node *node)):
24890 created from varpool_call_node_removal_hooks
24891 (void call_varpool_insertion_hooks (varpool_node *node)):
24892 created from varpool_call_variable_insertion_hooks
24893 (void insert_to_assembler_name_hash (symtab_node *node,
24894 bool with_clones)): created from insert_to_assembler_name_hash
24895 (void unlink_from_assembler_name_hash (symtab_node *node,
24896 bool with_clones)): created from unlink_from_assembler_name_hash
24897 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
24898 created from symtab_prevail_in_asm_name_hash
24899 (void symtab_initialize_asm_name_hash (void)):
24900 created from symtab_initialize_asm_name_hash
24901 (void change_decl_assembler_name (tree decl, tree name)):
24902 created from change_decl_assembler_name
24903 (void materialize_all_clones (void)): created from
24904 cgraph_materialize_all_clones
24905 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
24906 created from decl_assembler_name_hash
24907 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
24908 created from decl_assembler_name_equal
24909 (static hashval_t hash_node_by_assembler_name (const void *p)):
24910 created from hash_node_by_assembler_name
24911 (static int eq_assembler_name (const void *p1, const void *p2)):
24912 created from eq_assembler_name
24914 2014-08-25 Marek Polacek <polacek@redhat.com>
24916 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
24918 2014-08-25 Petr Murzin <petr.murzin@intel.com>
24920 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
24921 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
24922 SWI1248_AVX512BW mode iterator.
24924 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
24927 * config/sh/predicates.md (general_extend_operand): Disable
24928 TRUNCATE before reload completes.
24930 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
24932 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
24934 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
24937 * config/sh/sh.opt (musermode): Allow negative form.
24938 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
24939 targets that don't support it.
24940 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
24941 Document -mno-usermode option.
24943 2014-08-24 Kito Cheng <kito@0xlab.org>
24945 * system.h (CALLER_SAVE_PROFITABLE): Poison.
24946 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
24947 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
24948 * doc/tm.texi: Regenerate.
24950 2014-08-24 Kito Cheng <kito@0xlab.org>
24952 * ira.c: Fix typo in comment.
24954 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
24956 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
24957 Deprecate c++1y. Change language to reflect greater confidence in C++14.
24959 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
24962 * config/pa/pa.c (pa_output_function_epilogue): Don't set
24963 last_address when the current function is a thunk.
24964 (pa_asm_output_mi_thunk): When we don't have named sections or they
24965 are not being used, check that thunk can reach the stub table with a
24968 2014-08-23 David Malcolm <dmalcolm@redhat.com>
24970 * web.c (union_match_dups): Strengthen param "insn" from rtx to
24972 (pass_web::execute): Likewise for local "insn".
24974 2014-08-23 David Malcolm <dmalcolm@redhat.com>
24976 * var-tracking.c (struct micro_operation_def): Strengthen field
24977 "insn" from rtx to rtx_insn *.
24978 (struct emit_note_data_def): Likewise.
24979 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
24980 (vt_stack_adjustments): Likewise for local "insn".
24981 (adjust_insn): Likewise for param "insn".
24982 (val_store): Likewise.
24983 (val_resolve): Likewise.
24984 (struct count_use_info): Likewise for field "insn".
24985 (log_op_type): Likewise for param "insn".
24986 (reverse_op): Likewise.
24987 (prepare_call_arguments): Likewise.
24988 (add_with_sets): The initial param takes an insn, but we can't
24989 yet strengthen it from rtx to rtx_insn * since it's used as a
24990 cselib_record_sets_hook callback. For now rename initial param
24991 from "insn" to "uncast_insn", and introduce a local "insn" of
24992 the stronger rtx_insn * type, with a checked cast.
24993 (compute_bb_dataflow): Strengthen local "insn" from rtx to
24995 (emit_note_insn_var_location): Likewise.
24996 (emit_notes_for_changes): Likewise.
24997 (emit_notes_for_differences): Likewise.
24998 (next_non_note_insn_var_location): Likewise for return type and
25000 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
25001 (vt_initialize): Likewise for local "insn".
25002 (delete_debug_insns): Likewise for locals "insn" and "next".
25004 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25006 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
25008 (mark_constant_pool): Likewise for local "insn".
25010 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25012 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
25014 (dead_debug_promote_uses): Likewise.
25015 (dead_debug_insert_temp): Likewise.
25017 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25019 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
25020 from const_rtx to const rtx_insn *.
25021 (store_killed_after): Likewise. Strengthen locals "last", "act"
25022 from rtx to rtx_insn *.
25023 (store_killed_before): Strengthen param "insn" from const_rtx to
25024 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
25025 (find_moveable_store): Strengthen param "insn" from rtx to
25027 (compute_store_table): Likewise for local "insn".
25028 (insert_insn_start_basic_block): Likewise for param "insn" and
25029 locals "prev", "before", "insn".
25030 (insert_store): For now, add a checked cast to rtx_insn * on the
25031 result of gen_move_insn.
25032 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
25034 (replace_store_insn): Likewise. For now, add a checked cast to
25035 rtx_insn * on the result of gen_move_insn.
25037 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25039 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
25041 (expand_sjlj_dispatch_table): Likewise.
25043 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25045 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
25046 "insn" from rtx to rtx_insn *.
25048 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25050 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
25051 "insn" from rtx to rtx_insn *.
25052 (dup_block_and_redirect): Likewise for param 3 "before".
25054 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
25055 from rtx to rtx_insn *.
25056 (move_insn_for_shrink_wrap): Likewise.
25057 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
25058 (dup_block_and_redirect): Likewise for param "before" and local
25060 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
25062 (convert_to_simple_return): Likewise for local "start".
25064 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
25065 Strengthen local "insn" from rtx to rtx_insn *, for use when
25066 invoking requires_stack_frame_p.
25068 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25070 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
25072 (speculate_expr): Likewise for locals "orig_insn_rtx",
25074 (eq_transformed_insns): Likewise for locals "i1", "i2".
25075 (check_for_new_jump): Likewise for return type and local "end".
25076 (find_new_jump): Likewise for return type and local "jump".
25077 (sel_split_edge): Likewise for local "jump".
25078 (sel_create_recovery_block): Likewise.
25079 (sel_redirect_edge_and_branch_force): Likewise.
25080 (sel_redirect_edge_and_branch): Likewise.
25082 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25084 * sel-sched.c (substitute_reg_in_expr): Strengthen local
25085 "new_insn" from rtx to rtx_insn *.
25086 (create_insn_rtx_with_rhs): Likewise for return type and for local
25088 (create_insn_rtx_with_lhs): Likewise.
25089 (create_speculation_check): Likewise for local "insn_rtx".
25090 (implicit_clobber_conflict_p): Likewise for local "insn".
25091 (get_expr_cost): Likewise.
25092 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
25093 (move_cond_jump): Likewise for locals "next", "prev", "link",
25094 "head", "from", "to".
25096 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25098 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
25099 "next" from rtx to rtx_insn *.
25100 (find_conditional_protection): Likewise for local "next".
25101 (is_conditionally_protected): Likewise for local "insn1".
25102 (is_pfree): Likewise for locals "insn1", "insn2".
25104 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25106 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
25107 from rtx to rtx_insn *.
25109 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
25110 locals "insn1", "insn2" from rtx to rtx_insn *.
25111 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
25112 locals "insn", "prev", "last_jump", "next_tail".
25113 (schedule_ebb): Likewise for params "head", "tail".
25114 (schedule_ebbs): Likewise for locals "tail", "head".
25116 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
25117 to rtx_insn on "last_insn" in one of the invocations of
25120 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25122 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
25123 "elem", "insn" from rtx to rtx_insn *.
25124 (change_spec_dep_to_hard): Likewise.
25125 (get_back_and_forw_lists): Likewise for local "con".
25126 (sd_add_dep): Likewise for locals "elem", "insn".
25127 (sd_resolve_dep): Likewise for locals "pro", "con".
25128 (sd_unresolve_dep): Likewise.
25129 (sd_delete_dep): Likewise.
25130 (chain_to_prev_insn): Likewise for local "pro".
25131 (find_inc): Likewise for locals "pro", "con".
25133 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25135 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
25137 (reg_set_between_p): Strengthen local "insn" from const_rtx to
25139 (modified_between_p): Strengthen local "insn" from rtx to
25141 (remove_reg_equal_equiv_notes_for_regno): Likewise.
25142 (keep_with_call_p): Strengthen local "i2" from const_rtx to
25145 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25147 * resource.c (next_insn_no_annul): Strengthen local "next" from
25149 (mark_referenced_resources): Likewise for local "insn".
25151 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25153 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
25155 (find_reloads): Likewise for param 1.
25156 (subst_reloads): Likewise for sole param.
25157 (find_equiv_reg): Likwise for param 2.
25158 (regno_clobbered_p): Likwise for param 2.
25159 (reload): Likewise for param 1.
25161 * caller-save.c (save_call_clobbered_regs): Strengthen local
25162 "insn" from rtx to rtx_insn *.
25163 (insert_one_insn): Likewise for local "insn".
25165 * reload.c (this_insn): Likewise for this global.
25166 (find_reloads): Likewise for param "insn".
25167 (find_reloads_toplev): Likewise.
25168 (find_reloads_address): Likewise.
25169 (subst_reg_equivs): Likewise.
25170 (update_auto_inc_notes): Likewise.
25171 (find_reloads_address_1): Likewise.
25172 (find_reloads_subreg_address): Likewise.
25173 (subst_reloads): Likewise.
25174 (find_equiv_reg): Likewise, also for local "p".
25175 (regno_clobbered_p): Likewise for param "insn".
25177 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
25179 (spill_reg_store): Likewise for the elements of this array.
25180 (remove_init_insns): Likewise for local "equiv_insn".
25181 (will_delete_init_insn_p): Likewise for param "insn".
25182 (reload): Likewise for param ""first" and local "insn".
25183 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
25185 (calculate_elim_costs_all_insns): Likewise.
25186 (delete_caller_save_insns): Likewise.
25187 (spill_failure): Likewise for param "insn".
25188 (delete_dead_insn): Likewise.
25189 (set_label_offsets): Likewise.
25190 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
25192 (elimination_costs_in_insn): Likewise for param "insn".
25193 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
25194 when referring to an insn.
25195 (set_initial_label_offsets): Likewise.
25196 (set_offsets_for_label): Strengthen param "insn" from rtx to
25198 (init_eliminable_invariants): Likewise for param "first" and local
25200 (fixup_eh_region_note): Likewise for param "insn".
25201 (reload_as_needed): Likewise for locals "prev", "insn",
25202 "old_next", "old_prev", "next".
25203 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
25205 (reload_inheritance_insn): Strengthen elements of this array from
25207 (failed_reload): Likewise for param "insn".
25208 (choose_reload_regs): Likewise for local "insn". Replace use of
25209 NULL_RTX with NULL when referring to an insn.
25210 (input_reload_insns): Strengthen elements of this array from rtx
25212 (other_input_address_reload_insns): Likewise for this global.
25213 (other_input_reload_insns): Likewise for this global.
25214 (input_address_reload_insns): Likwise for the elements of this
25216 (inpaddr_address_reload_insns): Likwise for the elements of this
25218 (output_reload_insns): Likewise for the elements of this array.
25219 (output_address_reload_insns): Likewise for the elements of this
25221 (outaddr_address_reload_insns): Likewise for the elements of this
25223 (operand_reload_insns): Likewise for this global.
25224 (other_operand_reload_insns): Likewise for this global.
25225 (other_output_reload_insns): Likewise for the elements of this
25227 (new_spill_reg_store): Likewise for the elements of this
25229 (emit_input_reload_insns): Likewise for locals "insn", "temp".
25230 Strengthen local "where" from rtx * to rtx_insn **.
25231 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
25232 from rtx to rtx_insn *.
25233 (do_input_reload): Likewise for local "insn".
25234 (do_output_reload): Likewise for local "insn".
25235 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
25236 (emit_insn_if_valid_for_reload): Likewise for return type and local
25237 "last". Add checked cast to rtx_insn when returning "insn" since
25238 this has been through emit_insn.
25239 (gen_reload): Strengthen return type and locals "last", "insn", "set"
25240 from rtx to rtx_insn *. Add checked cast to rtx_insn when
25241 returning "insn" since it's been through
25242 emit_insn_if_valid_for_reload at this point.
25243 (delete_output_reload): Strengthen param "insn" and locals
25244 "output_reload_insn", "i2" from rtx to rtx_insn *.
25245 (delete_address_reloads): Likewise for params "dead_insn",
25246 "current_insn" and locals "prev", "next".
25247 (delete_address_reloads_1): Likewise for params "dead_insn",
25248 "current_insn" and locals "prev", "i2".
25249 (inc_for_reload): Likewise for locals "last", "add_insn".
25250 (add_auto_inc_notes): Strengthen param "insn" from rtx to
25253 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
25254 param of this duplicate of the prototype from reload.h
25256 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25258 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
25260 (regstat_bb_compute_calls_crossed): Likewise.
25262 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25264 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
25266 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
25268 (regrename_analyze): Strengthen local "insn" from rtx to
25270 (scan_rtx_reg): Likewise for param "insn".
25271 (scan_rtx_address): Likewise.
25272 (scan_rtx): Likewise.
25273 (restore_operands): Likewise.
25274 (record_out_operands): Likewise.
25275 (build_def_use): Likewise for local "insn". Replace use of
25276 NULL_RTX with NULL when dealing with an insn.
25278 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25280 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
25281 * reginfo.c (reg_scan): Likewise, also for local "insn".
25282 (reg_scan_mark_refs): Likewise for param "insn".
25283 (init_subregs_of_mode): Likewise for local "insn".
25285 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25287 * regcprop.c (struct queued_debug_insn_change): Strengthen field
25288 "insn" from rtx to rtx_insn *.
25289 (replace_oldest_value_reg): Likewise for param "insn".
25290 (replace_oldest_value_addr): Likewise.
25291 (replace_oldest_value_mem): Likewise.
25292 (apply_debug_insn_changes): Likewise for local "last_insn".
25293 (copyprop_hardreg_forward_1): Likewise for local "insn".
25295 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25297 * reg-stack.c (next_flags_user): Strengthen return type and param
25298 "insn" from rtx to rtx_insn *.
25299 (straighten_stack): Likewise for param "insn".
25300 (check_asm_stack_operands): Likewise.
25301 (remove_regno_note): Likewise.
25302 (emit_pop_insn): Likewise for return type, param "insn", local
25304 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
25305 "limit" from rtx to rtx_insn *.
25306 (swap_to_top): Likewise for param "insn".
25307 (move_for_stack_reg): Likewise.
25308 (move_nan_for_stack_reg): Likewise.
25309 (swap_rtx_condition): Likewise.
25310 (compare_for_stack_reg): Likewise.
25311 (subst_all_stack_regs_in_debug_insn): Likewise.
25312 (subst_stack_regs_pat): Likewise, and local "insn2".
25313 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
25315 (subst_stack_regs): Likewise.
25316 (change_stack): Likewise.
25317 (convert_regs_1): Likewise for locals "insn", "next".
25319 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25321 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
25323 (combine_set_extension): Likewise for param "curr_insn".
25324 (transform_ifelse): Likewise for param "def_insn".
25325 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
25326 from vec<rtx> * to vec<rtx_insn *> *.
25327 (is_cond_copy_insn): Likewise for param "insn".
25328 (struct ext_state): Strengthen the four vec fields from vec<rtx>
25329 to vec<rtx_insn *>.
25330 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
25331 local "def_insn" from rtx to rtx_insn *.
25332 (get_sub_rtx): Likewise for param "def_insn".
25333 (merge_def_and_ext): Likewise.
25334 (combine_reaching_defs): Likewise.
25335 (add_removable_extension): Likewise for param "insn".
25336 (find_removable_extensions): Likewise for local "insn".
25337 (find_and_remove_re): Likewise for locals "curr_insn" and
25338 "def_insn". Strengthen locals "reinsn_del_list" and
25339 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
25341 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25343 * recog.c (split_insn): Strengthen param "insn" and locals
25344 "first", "last" from rtx to rtx_insn *.
25345 (split_all_insns): Likewise for locals "insn", "next".
25346 (split_all_insns_noflow): Likewise.
25348 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25350 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
25352 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
25353 (debug_rtx_find): Likewise for param 1 "x".
25355 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
25356 const_rtx to const rtx_insn *. Likewise for local "insn".
25357 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
25358 (debug_rtx_find): Likewise for param 1 "x".
25359 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
25360 from const_rtx to const rtx_insn * within the appropriate cases of
25361 the switch statement.
25363 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
25364 Strengthen local "insns" from rtx to rtx_insn * since this is
25365 passed to a call to debug_rtx_list.
25367 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25369 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
25372 * function.c (stack_protect_epilogue): Add checked cast to
25373 rtx_insn for now when invoking predict_insn_def.
25375 * predict.c (predict_insn): Strengthen param "insn" from rtx to
25377 (predict_insn_def): Likewise.
25378 (rtl_predict_edge): Likewise for local "last_insn".
25379 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
25381 (combine_predictions_for_insn): Strengthen param "insn" from rtx
25383 (bb_estimate_probability_locally): Likewise for local "last_insn".
25384 (expensive_function_p): Likewise for local "insn".
25386 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
25387 local "jmp", since this is used when invoking predict_insn_def.
25389 2014-08-22 Marek Polacek <polacek@redhat.com>
25392 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
25394 2014-08-22 Marek Polacek <polacek@redhat.com>
25397 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
25398 a comparison in parens.
25399 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
25402 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25404 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
25407 * cprop.c (fis_get_condition): Likewise.
25409 * postreload.c (reload_cse_regs): Likewise for param "first".
25410 (reload_cse_simplify): Likewise for param "insn".
25411 (reload_cse_regs_1): Likewise for local "insn".
25412 (reload_cse_simplify_set): Likewise for param "insn".
25413 (reload_cse_simplify_operands): Likewise.
25414 (struct reg_use): Likewise for field "insn".
25415 (reload_combine_purge_insn_uses): Likewise for param "insn".
25416 (fixup_debug_insns): Likewise for params "from", "to" and local
25418 (try_replace_in_use): Likewise for local "use_insn".
25419 (reload_combine_recognize_const_pattern): Likewise for param
25420 "insn" and locals "add_moved_after_insn", "use_insn".
25421 (reload_combine_recognize_pattern): Likewise for param "insn" and
25423 (reload_combine): Likewise for locals "insn", "prev".
25424 (reload_combine_note_use): Likewise for param "insn".
25425 (move2add_use_add2_insn): Likewise.
25426 (move2add_use_add3_insn): Likewise.
25427 (reload_cse_move2add): Likewise, also for local "next".
25428 (move2add_note_store): Likewise for local "insn".
25430 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25432 * postreload-gcse.c (struct occr): Strengthen field "insn" from
25434 (struct unoccr): Likewise.
25435 (struct modifies_mem): Likewise.
25436 (alloc_mem): Likewise for local "insn".
25437 (insert_expr_in_table): Likewise for param "insn".
25438 (dump_expr_hash_table_entry): Likewise for local "insn".
25439 (oprs_unchanged_p): Likewise for param "insn".
25440 (load_killed_in_block_p): Likewise for local "setter".
25441 (record_last_reg_set_info): Likewise for param "insn".
25442 (record_last_reg_set_info_regno): Likewise.
25443 (record_last_mem_set_info): Likewise.
25444 (record_last_set_info): Likewise for local "last_set_insn".
25445 (record_opr_changes): Likewise for param "insn".
25446 (hash_scan_set): Likewise.
25447 (compute_hash_table): Likewise for local "insn".
25448 (get_avail_load_store_reg): Likewise for param "insn".
25449 (eliminate_partially_redundant_load): Likewise, also for locals
25450 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
25452 (eliminate_partially_redundant_loads): Likewise for local "insn".
25454 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25456 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
25458 (expand_binop): Likewise for locals "entry_last", "last", "insns"
25459 (expand_twoval_unop): Likewise for locals entry_last", "last".
25460 (expand_twoval_binop): Likewise.
25461 (expand_twoval_binop_libfunc): Likewise for local "insns".
25462 (widen_leading): Likewise for local "last".
25463 (expand_doubleword_clz): Likewise for local "seq". Strengthen
25464 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
25465 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
25466 (expand_parity): Likewise for locals "last" and "seq".
25467 (expand_ffs): Likewise for local "seq". Strengthen local
25468 "nonzero_label" from rtx to rtx_code_label *.
25469 (expand_absneg_bit): Strengthen local "insns" from rtx to
25471 (expand_unop_direct): Likewise for local "last".
25472 (expand_unop): Likewise for locals "last", "insns".
25473 (expand_abs_nojump): Likewise for local "last".
25474 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
25475 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
25477 (expand_copysign_absneg): Strengthen local "label" from rtx to
25479 (expand_copysign_bit): Strengthen local "insns" from rtx to
25481 (struct no_conflict_data): Likewise for fields "first", "insn".
25482 (emit_libcall_block_1): Likewise for param "insns" and locals
25483 "next", "last", "insn".
25484 (emit_libcall_block): For now, add a checked cast to rtx_insn *
25485 on "insns" when invoking emit_libcall_block_1. Ultimately we
25486 want to strengthen insns itself.
25487 (prepare_cmp_insn): Strengthen local "last" from rtx to
25489 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
25490 (prepare_float_lib_cmp): Likewise for local "insns".
25491 (emit_conditional_move): Likewise for local "last".
25492 (emit_conditional_add): Likewise.
25493 (have_sub2_insn): Likewise for local "seq".
25494 (expand_float): Likewise for local "insns". Strengthen locals
25495 "label", "neglabel" from rtx to rtx_code_label *.
25496 (expand_fix): Likewise for locals "last", "insn", "insns" (to
25497 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
25498 (expand_fixed_convert): Likewise for local "insns" (to
25500 (expand_sfix_optab): Likewise for local "last".
25501 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
25502 to rtx_code_label *.
25503 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
25504 from rtx to rtx_insn *.
25505 (expand_atomic_fetch_op): Likewise for local "insn".
25506 (maybe_legitimize_operand_same_code): Likewise for local "last".
25507 (maybe_legitimize_operands): Likewise.
25509 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25511 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
25512 "insn" from rtx to rtx_insn *.
25513 (ps_rtl_insn): Likewise for return type.
25514 (doloop_register_get): Likewise for params "head", "tail" and
25515 locals "insn", "first_insn_not_to_check".
25516 (schedule_reg_move): Likewise for local "this_insn".
25517 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
25518 of gen_move_insn for now.
25519 (reset_sched_times): Strengthen local "insn" from rtx to
25521 (permute_partial_schedule): Likewise.
25522 (duplicate_insns_of_cycles): Likewise for local "u_insn".
25523 (dump_insn_location): Likewise for param "insn".
25524 (loop_canon_p): Likewise for local "insn".
25525 (sms_schedule): Likewise.
25526 (print_partial_schedule): Likewise.
25527 (ps_has_conflicts): Likewise.
25529 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25531 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
25532 "tailp" from rtx * to rtx_insn **.
25534 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
25535 from rtx to rtx_insn *.
25536 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
25537 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
25538 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
25540 * modulo-sched.c (const_iteration_count): Strengthen return type
25541 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
25542 use of NULL_RTX with NULL when working with insns.
25543 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
25545 (sms_schedule): Likewise.
25546 * sched-rgn.c (init_ready_list): Likewise, also for locals
25547 "src_head" and "src_next_tail".
25548 (compute_block_dependences): Likewise.
25549 (free_block_dependencies): Likewise.
25550 (debug_rgn_dependencies): Likewise.
25551 (free_rgn_deps): Likewise.
25552 (compute_priorities): Likewise.
25553 (schedule_region): Likewise.
25554 * sel-sched.c (find_ebb_boundaries): Likewise.
25556 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
25557 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
25559 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25561 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
25562 from rtx to rtx_insn *.
25563 (new_seginfo): Likewise for param "insn".
25564 (create_pre_exit): Likewise for locals "last_insn",
25565 "before_return_copy", "return_copy".
25566 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
25569 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25571 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
25572 from rtx to rtx_insn *.
25573 (lra_push_insn): Likewise for 1st param.
25574 (lra_push_insn_and_update_insn_regno_info): Likewise.
25575 (lra_pop_insn): Likewise for return type.
25576 (lra_invalidate_insn_data): Likewise for 1st param.
25577 (lra_set_insn_deleted): Likewise.
25578 (lra_delete_dead_insn): Likewise.
25579 (lra_process_new_insns): Likewise for first 3 params.
25580 (lra_set_insn_recog_data): Likewise for 1st param.
25581 (lra_update_insn_recog_data): Likewise.
25582 (lra_set_used_insn_alternative): Likewise.
25583 (lra_invalidate_insn_regno_info): Likewise.
25584 (lra_update_insn_regno_info): Likewise.
25585 (lra_former_scratch_operand_p): Likewise.
25586 (lra_eliminate_regs_1): Likewise.
25587 (lra_get_insn_recog_data): Likewise.
25589 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
25592 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
25594 (substitute_within_insn): New.
25595 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
25596 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
25597 Replace call to "substitute" with call to substitute_within_insn.
25599 * lra-constraints.c (curr_insn): Strengthen from rtx to
25601 (get_equiv_with_elimination): Likewise for param "insn".
25602 (match_reload): Strengthen params "before" and "after" from rtx *
25604 (emit_spill_move): Likewise for return type. Add a checked cast
25605 to rtx_insn * on result of gen_move_insn for now.
25606 (check_and_process_move): Likewise for local "before". Replace
25607 NULL_RTX with NULL when referring to insns.
25608 (process_addr_reg): Strengthen params "before" and "after" from
25609 rtx * to rtx_insn **.
25610 (insert_move_for_subreg): Likewise.
25611 (simplify_operand_subreg): Strengthen locals "before" and "after"
25612 from rtx to rtx_insn *.
25613 (process_address_1): Strengthen params "before" and "after" from
25614 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
25616 (process_address): Strengthen params "before" and "after" from
25617 rtx * to rtx_insn **.
25618 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
25619 (curr_insn_transform): Strengthen locals "before" and "after"
25620 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
25622 (loc_equivalence_callback): Update cast of "data", changing
25623 resulting type from rtx to rtx_insn *.
25624 (substitute_pseudo_within_insn): New.
25625 (inherit_reload_reg): Strengthen param "insn" from rtx to
25626 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
25627 NULL when referring to insns. Add a checked cast to rtx_insn *
25628 when using usage_insn to invoke lra_update_insn_regno_info.
25629 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
25630 likewise for locals "restore", "save". Add checked casts to
25631 rtx_insn * when using usage_insn to invoke
25632 lra_update_insn_regno_info and lra_process_new_insns. Replace
25633 NULL_RTX with NULL when referring to insns.
25634 (split_if_necessary): Strengthen param "insn" from rtx to
25636 (update_ebb_live_info): Likewise for params "head", "tail" and local
25638 (get_last_insertion_point): Likewise for return type and local "insn".
25639 (get_live_on_other_edges): Likewise for local "last".
25640 (inherit_in_ebb): Likewise for params "head", "tail" and locals
25641 "prev_insn", "next_insn", "restore".
25642 (remove_inheritance_pseudos): Likewise for local "prev_insn".
25643 (undo_optional_reloads): Likewise for local "insn".
25645 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
25647 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
25649 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
25651 (spill_pseudos): Likewise for local "insn".
25652 (init_elimination): Likewise.
25653 (process_insn_for_elimination): Likewise for param "insn".
25655 * lra-lives.c (curr_insn): Likewise.;
25657 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
25658 (remove_pseudos): Likewise for param "insn".
25659 (spill_pseudos): Likewise for local "insn".
25660 (lra_final_code_change): Likewise for locals "insn", "curr".
25662 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
25663 (lra_set_insn_deleted): Likewise.
25664 (lra_delete_dead_insn): Likewise, and for local "prev".
25665 (new_insn_reg): Likewise for param "insn".
25666 (lra_set_insn_recog_data): Likewise.
25667 (lra_update_insn_recog_data): Likewise.
25668 (lra_set_used_insn_alternative): Likewise.
25669 (get_insn_freq): Likewise.
25670 (invalidate_insn_data_regno_info): Likewise.
25671 (lra_invalidate_insn_regno_info): Likewise.
25672 (lra_update_insn_regno_info): Likewise.
25673 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
25675 (lra_push_insn_1): Strengthen param "insn" from rtx to
25677 (lra_push_insn): Likewise.
25678 (lra_push_insn_and_update_insn_regno_info): Likewise.
25679 (lra_pop_insn): Likewise for return type and local "insn".
25680 (push_insns): Likewise for params "from", "to", and local "insn".
25681 (setup_sp_offset): Likewise for params "from", "last" and locals
25683 (lra_process_new_insns): Likewise for params "insn", "before",
25684 "after" and local "last".
25685 (struct sloc): Likewise for field "insn".
25686 (lra_former_scratch_operand_p): Likewise for param "insn".
25687 (remove_scratches): Likewise for locals "insn", "last".
25688 (check_rtl): Likewise for local "insn".
25689 (add_auto_inc_notes): Likewise for param "insn".
25690 (update_inc_notes): Likewise for local "insn".
25691 (lra): Replace NULL_RTX with NULL when referring to insn.
25693 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25695 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
25697 (resolve_reg_notes): Likewise.
25698 (resolve_simple_move): Likewise for return type, param "insn", and
25699 locals "insns", "minsn".
25700 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
25701 (resolve_use): Likewise.
25702 (resolve_debug): Likewise.
25703 (find_decomposable_shift_zext): Likewise.
25704 (resolve_shift_zext): Likewise for return type, param "insn", and
25705 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
25706 (decompose_multiword_subregs): Likewise for local "insn",
25707 "orig_insn", "decomposed_shift", "end".
25709 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25711 * basic-block.h (basic_block split_edge_and_insert): Strengthen
25712 param "insns" from rtx to rtx_insn *.
25714 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
25716 (struct iv_to_split): Likewise.
25717 (loop_exit_at_end_p): Likewise for local "insn".
25718 (split_edge_and_insert): Likewise for param "insns".
25719 (compare_and_jump_seq): Likewise for return type, param "cinsn",
25720 and locals "seq", "jump".
25721 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
25722 "branch_code"; update invocations of compare_and_jump_seq to
25723 eliminate NULL_RTX in favor of NULL.
25724 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
25726 (reset_debug_uses_in_loop): Likewise.
25727 (analyze_insn_to_expand_var): Likewise for param "insn".
25728 (analyze_iv_to_split_insn): Likewise.
25729 (analyze_insns_in_loop): Likewise for local "insn".
25730 (insert_base_initialization): Likewise for param
25731 "insn" and local "seq".
25732 (split_iv): Likewise for param "insn" and local "seq".
25733 (expand_var_during_unrolling): Likewise for param "insn".
25734 (insert_var_expansion_initialization): Likewise for local "seq".
25735 (combine_var_copies_in_loop_exit): Likewise.
25736 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
25738 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
25739 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
25742 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25744 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
25746 (iv_analyze_result): Likewise.
25747 (iv_analyze_expr): Likewise.
25750 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
25751 local "def_insn" from rtx to rtx_insn *.
25752 (get_biv_step_1): Likewise for local "insn".
25753 (iv_analyze_expr): Likewise for param "insn".
25754 (iv_analyze_def): Likewise for local "insn".
25755 (iv_analyze_op): Likewise for param "insn".
25756 (iv_analyze): Likewise.
25757 (iv_analyze_result): Likewise.
25759 (suitable_set_for_replacement): Likewise.
25760 (simplify_using_initial_values): Likewise for local "insn".
25761 (iv_number_of_iterations): Likewise for param "insn".
25762 (check_simple_exit): Add checked cast to rtx_insn when invoking
25763 iv_number_of_iterations for now (until get_condition is
25766 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
25767 "insn" from rtx to rtx_insn *.
25768 (analyze_insns_in_loop): Likewise for local "insn".
25770 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25772 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
25774 (struct invariant): Likewise.
25775 (hash_invariant_expr_1): Likewise for param "insn".
25776 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
25777 (find_exits): Likewise for local "insn".
25778 (create_new_invariant): Likewise for param "insn".
25779 (check_dependencies): Likewise.
25780 (find_invariant_insn): Likewise.
25781 (record_uses): Likewise.
25782 (find_invariants_insn): Likewise.
25783 (find_invariants_bb): Likewise for local "insn".
25784 (get_pressure_class_and_nregs): Likewise for param "insn".
25785 (calculate_loop_reg_pressure): Likewise for local "insn".
25787 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25789 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
25791 (add_test): Likewise for locals "seq", "jump".
25792 (doloop_modify): Likewise for locals "sequence", "jump_insn".
25794 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25796 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
25798 (rebuild_jump_labels_chain): Likewise for param "chain".
25800 * cfgexpand.c (pass_expand::execute): Add checked cast to
25801 rtx_insn * when calling rebuild_jump_labels_chain in region where
25802 we know e->insns.r is non-NULL.
25804 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
25806 (rebuild_jump_labels): Likewise.
25807 (rebuild_jump_labels_chain): Likewise for param "chain".
25808 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
25809 (init_label_info): Likewise for param "f".
25810 (maybe_propagate_label_ref): Likewise for params "jump_insn",
25811 "prev_nonjump_insn".
25812 (mark_all_labels): Likewise for param "f" and locals "insn",
25813 "prev_nonjump_insn".
25815 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25817 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
25818 from rtx to rtx_insn *insn.
25819 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
25820 (ira_add_allocno_copy): Likewise.
25821 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
25823 (ira_create_copy): Likewise.
25824 (ira_add_allocno_copy): Likewise.
25825 (create_bb_allocnos): Likewise for local "insn".
25826 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
25827 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
25828 process_regs_for_copy for rtx_insn * param.
25829 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
25830 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
25831 process_regs_for_copy for rtx_insn * param.
25832 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
25833 * ira-costs.c (record_reg_classes): Likewise for param "insn".
25834 (record_operand_costs): Likewise.
25835 (scan_one_insn): Likewise for return type, and for param "insn".
25836 (process_bb_for_costs): Likewise for local "insn".
25837 (process_bb_node_for_hard_reg_moves): Likewise.
25838 * ira-emit.c (struct move): Likewise for field "insn".
25839 (create_move): Eliminate use of NULL_RTX when dealing with an
25841 (emit_move_list): Strengthen return type and locals "result",
25842 "insn" from rtx to rtx_insn *insn.
25843 (emit_moves): Likewise for locals "insns", "tmp".
25844 (ira_emit): Likewise for local "insn".
25845 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
25847 (find_call_crossed_cheap_reg): Likewise.
25848 (process_bb_node_lives): Likewise for local "insn".
25849 * ira.c (decrease_live_ranges_number): Likewise.
25850 (compute_regs_asm_clobbered): Likewise.
25851 (build_insn_chain): Likewise.
25852 (find_moveable_pseudos): Likewise, also locals "def_insn",
25853 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
25854 to rtx_insn **. Add a checked cast when assigning from
25855 "closest_use" into closest_uses array in a region where we know
25856 it's a non-NULL insn.
25857 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
25859 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
25860 "last_interesting_insn", "uin".
25861 (move_unallocated_pseudos): Likewise for locals "def_insn",
25862 "move_insn", "newinsn".
25864 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25866 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
25867 Strengthen locals "done_label", "do_error" from rtx to
25869 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
25870 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
25872 (ubsan_expand_si_overflow_neg_check): Likewise for locals
25873 "done_label", "do_error" to rtx_code_label * and local "last" to
25875 (ubsan_expand_si_overflow_mul_check): Likewise for locals
25876 "done_label", "do_error", "large_op0", "small_op0_large_op1",
25877 "one_small_one_large", "both_ops_large", "after_hipart_neg",
25878 "after_lopart_neg", "do_overflow", "hipart_different" to
25879 rtx_code_label * and local "last" to rtx_insn *.
25881 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25883 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
25884 "insn" and "move_insn" from rtx to rtx_insn *.
25886 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25888 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
25890 (cheap_bb_rtx_cost_p): Likewise.
25891 (first_active_insn): Likewise for return type and local "insn".
25892 (last_active_insn): Likewise for return type and locals "insn",
25894 (struct noce_if_info): Likewise for fields "jump", "insn_a",
25896 (end_ifcvt_sequence): Likewise for return type and locals "insn",
25898 (noce_try_move): Likewise for local "seq".
25899 (noce_try_store_flag): Likewise.
25900 (noce_try_store_flag_constants): Likewise.
25901 (noce_try_addcc): Likewise.
25902 (noce_try_store_flag_mask): Likewise.
25903 (noce_try_cmove): Likewise.
25904 (noce_try_minmax): Likewise.
25905 (noce_try_abs): Likewise.
25906 (noce_try_sign_mask): Likewise.
25907 (noce_try_bitop): Likewise.
25908 (noce_can_store_speculate_p): Likewise for local "insn".
25909 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
25911 (check_cond_move_block): Likewise for local "insn".
25912 (cond_move_convert_if_block): Likewise.
25913 (cond_move_process_if_block): Likewise for locals "seq",
25915 (noce_find_if_block): Likewise for local "jump".
25916 (merge_if_block): Likewise for local "last".
25917 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
25918 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
25919 (block_has_only_trap): Likewise for return type and local "trap".
25920 (find_if_case_1): Likewise for local "jump".
25921 (dead_or_predicable): Likewise for locals "head", "end", "jump",
25924 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25926 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
25927 "last_insn", "loop_end" from rtx to rtx_insn *.
25929 * hw-doloop.c (scan_loop): Likewise for local "insn".
25930 (discover_loop): Likewise for param "tail_insn".
25931 (discover_loops): Likewise for local "tail".
25933 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
25934 cast to rtx_insn * when assigning from an rtx local to a
25935 hwloop_info's "last_insn" field.
25937 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25939 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
25940 (add_delay_dependencies): Strengthen local "pro" from rtx to
25942 (recompute_todo_spec): Likewise.
25943 (dep_cost_1): Likewise for locals "insn", "used".
25944 (schedule_insn): Likewise for local "dbg".
25945 (schedule_insn): Likewise for locals "pro", "next".
25946 (unschedule_insns_until): Likewise for local "con".
25947 (restore_pattern): Likewise for local "next".
25948 (estimate_insn_tick): Likewise for local "pro".
25949 (resolve_dependencies): Likewise for local "next".
25950 (fix_inter_tick): Likewise.
25951 (fix_tick_ready): Likewise for local "pro".
25952 (add_to_speculative_block): Likewise for locals "check", "twin",
25954 (sched_extend_bb): Likewise for locals "end", "insn".
25955 (init_before_recovery): Likewise for local "x".
25956 (sched_create_recovery_block): Likewise for local "barrier".
25957 (create_check_block_twin): Likewise for local "pro".
25958 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
25960 (unlink_bb_notes): Update for change to type of bb_header.
25961 Strengthen locals "prev", "label", "note", "next" from rtx to
25963 (clear_priorities): Likewise for local "pro".
25965 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25967 * gcse.c (struct occr): Strengthen field "insn" from rtx to
25969 (test_insn): Likewise for this global.
25970 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
25972 (oprs_anticipatable_p): Likewise.
25973 (oprs_available_p): Likewise.
25974 (insert_expr_in_table): Strengthen param "insn" from rtx to
25976 (hash_scan_set): Likewise.
25977 (hash_scan_clobber): Likewise.
25978 (hash_scan_call): Likewise.
25979 (hash_scan_insn): Likewise.
25980 (compute_hash_table_work): Likewise for local "insn".
25981 (process_insert_insn): Likewise for return type and local "pat".
25982 (insert_insn_end_basic_block): Likewise for locals "new_insn",
25983 "pat", "pat_end", "maybe_cc0_setter".
25984 (pre_edge_insert): Likewise for local "insn".
25985 (pre_insert_copy_insn): Likewise for param "insn".
25986 (pre_insert_copies): Likewise for local "insn".
25987 (struct set_data): Likewise for field "insn".
25988 (single_set_gcse): Likewise for param "insn".
25989 (gcse_emit_move_after): Likewise.
25990 (pre_delete): Likewise for local "insn".
25991 (update_bb_reg_pressure): Likewise for param "from" and local
25993 (should_hoist_expr_to_dom): Likewise for param "from".
25994 (hoist_code): Likewise for local "insn".
25995 (get_pressure_class_and_nregs): Likewise for param "insn".
25996 (calculate_bb_reg_pressure): Likewise for local "insn".
25997 (compute_ld_motion_mems): Likewise.
25999 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26001 * genpeep.c (main): Rename param back from "uncast_ins1" to
26002 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
26005 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
26007 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26010 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
26011 documentation to state it is only for VSX operations.
26013 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
26014 constraint only active if VSX.
26016 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
26017 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
26018 (lfiwzx): Likewise.
26020 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26022 * fwprop.c (single_def_use_dom_walker::before_dom_children):
26023 Strengthen local "insn" from rtx to rtx_insn *.
26024 (use_killed_between): Likewise for param "target_insn".
26025 (all_uses_available_at): Likewise for param "target_insn" and
26027 (update_df_init): Likewise for params "def_insn", "insn".
26028 (update_df): Likewise for param "insn".
26029 (try_fwprop_subst): Likewise for param "def_insn" and local
26031 (free_load_extend): Likewise for param "insn".
26032 (forward_propagate_subreg): Likewise for param "def_insn" and
26034 (forward_propagate_asm): Likewise for param "def_insn" and local
26036 (forward_propagate_and_simplify): Likewise for param "def_insn"
26037 and local "use_insn".
26038 (forward_propagate_into): Likewise for locals "def_insn" and
26041 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26043 * function.c (emit_initial_value_sets): Strengthen local "seq"
26044 from rtx to rtx_insn *.
26045 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
26047 (instantiate_virtual_regs): Likewise for local "insn".
26048 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
26049 (reorder_blocks_1): Likewise for param "insns" and local "insn".
26050 (expand_function_end): Likewise for locals "insn" and "seq".
26051 (epilogue_done): Likewise for local "insn".
26052 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
26054 (reposition_prologue_and_epilogue_notes): Likewise for locals
26055 "insn", "last", "note", "first".
26056 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
26057 (pass_match_asm_constraints::execute): Likewise for local "insn".
26059 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26061 * output.h (final_scan_insn): Strengthen return type from rtx to
26063 (final_forward_branch_p): Likewise for param.
26064 (current_output_insn): Likewise for this global.
26066 * final.c (rtx debug_insn): Likewise for this variable.
26067 (current_output_insn): Likewise.
26068 (get_attr_length_1): Rename param "insn" to "uncast_insn",
26069 adding "insn" back in as an rtx_insn * with a checked cast, so
26070 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
26072 (compute_alignments): Strengthen local "label" from rtx to
26074 (shorten_branches): Rename param from "first" to "uncast_first",
26075 introducing a new local rtx_insn * "first" using a checked cast to
26076 effectively strengthen "first" from rtx to rtx_insn * without
26077 affecting the type signature. Strengthen locals "insn", "seq",
26078 "next", "label" from rtx to rtx_insn *.
26079 (change_scope): Strengthen param "orig_insn" and local "insn" from
26081 (final_start_function): Rename param from "first" to "uncast_first",
26082 introducing a new local rtx_insn * "first" using a checked cast to
26083 effectively strengthen "first" from rtx to rtx_insn * without
26084 affecting the type signature. Strengthen local "insn" from rtx to
26086 (dump_basic_block_info): Strengthen param "insn" from rtx to
26088 (final): Rename param from "first" to "uncast_first",
26089 introducing a new local rtx_insn * "first" using a checked cast to
26090 effectively strengthen "first" from rtx to rtx_insn * without
26091 affecting the type signature. Strengthen locals "insn", "next"
26092 from rtx to rtx_insn *.
26093 (output_alternate_entry_point): Strengthen param "insn" from rtx to
26095 (call_from_call_insn): Strengthen param "insn" from rtx to
26097 (final_scan_insn): Rename param from "insn" to "uncast_insn",
26098 introducing a new local rtx_insn * "insn" using a checked cast to
26099 effectively strengthen "insn" from rtx to rtx_insn * without
26100 affecting the type signature. Strengthen return type and locals
26101 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
26102 now-redundant checked cast to rtx_insn * from both invocations of
26103 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
26104 introducing a local "call_insn" for use when invoking
26105 call_from_call_insn.
26106 (notice_source_line): Strengthen param "insn" from rtx to
26108 (leaf_function_p): Likewise for local "insn".
26109 (final_forward_branch_p): Likewise.
26110 (leaf_renumber_regs): Likewise for param "first".
26111 (rest_of_clean_state): Likewise for locals "insn" and "next".
26112 (self_recursive_call_p): Likewise for param "insn".
26113 (collect_fn_hard_reg_usage): Likewise for local "insn".
26114 (get_call_fndecl): Likewise for param "insn".
26115 (get_call_cgraph_rtl_info): Likewise.
26116 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
26117 introducing a new local rtx_insn * "insn" using a checked cast to
26118 effectively strengthen "insn" from rtx to rtx_insn * without
26119 affecting the type signature.
26121 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
26122 cast when assigning from param "insn" to current_output_insn.
26123 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
26124 so that we can assign it back to current_output_insn.
26126 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
26128 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
26129 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
26130 atmxt540s and atmxt540sreva devices.
26131 * config/avr/avr-tables.opt: Regenerate.
26132 * config/avr/t-multilib: Regenerate.
26133 * doc/avr-mmcu.texi: Regenerate.
26135 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26137 * expr.c (convert_move): Strengthen local "insns" from rtx to
26139 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
26140 "top_label" from rtx to rtx_code_label *.
26141 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
26143 (emit_single_push_insn): Likewise for locals "prev", "last".
26144 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
26145 to rtx_code_label *.
26146 (store_constructor): Likewise for locals "loop_start", "loop_end".
26147 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
26149 (expand_expr_real_2): Likewise.
26150 (expand_expr_real_1): Strengthen local "label" from rtx to
26153 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26155 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
26156 from rtx to rtx_insn *.
26157 (store_bit_field_1): Likewise.
26158 (extract_bit_field_1): Likewise.
26159 (expand_mult_const): Likewise for local "insns".
26160 (expmed_mult_highpart): Strengthen local "label" from rtx to
26162 (expand_smod_pow2): Likewise.
26163 (expand_sdiv_pow2): Likewise.
26164 (expand_divmod): Strengthen locals "last", "insn" from rtx to
26165 rtx_insn *. Strengthen locals "label", "label1", "label2",
26166 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
26167 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
26168 (emit_store_flag): Likewise.
26169 (emit_store_flag_force): Strengthen local "label" from rtx to
26171 (do_cmp_and_jump): Likewise for param "label".
26173 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26175 * explow.c (force_reg): Strengthen local "insn" from rtx to
26177 (adjust_stack_1): Likewise.
26178 (allocate_dynamic_stack_space): Likewise. Strengthen locals
26179 "final_label", "available_label", "space_available" from rtx to
26181 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
26182 (anti_adjust_stack_and_probe): Likewise.
26184 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26186 * except.h (sjlj_emit_function_exit_after): Strengthen param
26187 "after" from rtx to rtx_insn *. This is only called with
26188 result of get_last_insn (in function.c) so type-change should be
26191 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
26192 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
26193 to rtx_insn *. These fields are only used from except.c so this
26194 type-change should be self-contained to this patch.
26196 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
26197 local "last" from rtx to rtx_insn *.
26198 (dw2_build_landing_pads): Likewise for local "seq".
26199 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
26200 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
26201 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
26203 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
26205 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
26206 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
26207 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
26208 referring to an insn. Strengthen local "dispatch_label" from
26209 rtx to rtx_code_label *.
26210 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
26212 (expand_eh_return): Strengthen local "around_label" from
26213 rtx to rtx_code_label *.
26214 (convert_to_eh_region_ranges): Strengthen locals "iter",
26215 "last_action_insn", "first_no_action_insn",
26216 "first_no_action_insn_before_switch",
26217 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
26219 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26221 * dwarf2out.c (last_var_location_insn): Strengthen this variable
26222 from rtx to rtx_insn *.
26223 (cached_next_real_insn): Likewise.
26224 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
26225 working with insns.
26226 (dwarf2out_var_location): Strengthen locals "next_real",
26227 "next_note", "expected_next_loc_note", "last_start", "insn" from
26230 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26232 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
26233 from rtx to rtx_insn *.
26234 (create_pseudo_cfg): Likewise for local "insn".
26236 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26238 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
26239 from rtx to rtx_insn *.
26240 (df_bb_regno_last_def_find): Likewise.
26242 * df-problems.c (df_rd_bb_local_compute): Likewise.
26243 (df_lr_bb_local_compute): Likewise.
26244 (df_live_bb_local_compute): Likewise.
26245 (df_chain_remove_problem): Likewise.
26246 (df_chain_create_bb): Likewise.
26247 (df_word_lr_bb_local_compute): Likewise.
26248 (df_remove_dead_eq_notes): Likewise for param "insn".
26249 (df_note_bb_compute): Likewise for local "insn".
26250 (simulate_backwards_to_point): Likewise.
26251 (df_md_bb_local_compute): Likewise.
26253 * df-scan.c (df_scan_free_bb_info): Likewise.
26254 (df_scan_start_dump): Likewise.
26255 (df_scan_start_block): Likewise.
26256 (df_install_ref_incremental): Likewise for local "insn".
26257 (df_insn_rescan_all): Likewise.
26258 (df_reorganize_refs_by_reg_by_insn): Likewise.
26259 (df_reorganize_refs_by_insn_bb): Likewise.
26260 (df_recompute_luids): Likewise.
26261 (df_bb_refs_record): Likewise.
26262 (df_update_entry_exit_and_calls): Likewise.
26263 (df_bb_verify): Likewise.
26265 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26267 * ddg.h (struct ddg_node): Strengthen fields "insn" and
26268 "first_note" from rtx to rtx_insn *.
26269 (get_node_of_insn): Likewise for param 2 "insn".
26270 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
26272 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
26274 (mem_write_insn_p): Likewise.
26275 (mem_access_insn_p): Likewise.
26276 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
26277 (def_has_ccmode_p): Likewise for param "insn".
26278 (add_cross_iteration_register_deps): Likewise for locals
26279 "def_insn" and "use_insn".
26280 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
26281 (build_intra_loop_deps): Likewise for local "src_insn".
26282 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
26284 (get_node_of_insn): Likewise for param "insn".
26286 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26288 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
26289 (deletable_insn_p): Strengthen param "insn" from rtx to
26290 rtx_insn *. Add checked cast to rtx_call_insn when invoking
26291 find_call_stack_args, since this is guarded by CALL_P (insn).
26292 (marked_insn_p): Strengthen param "insn" from rtx to
26294 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
26295 invoking find_call_stack_args, since this is guarded by
26297 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
26298 rtx_insn *; we know this is an insn since this was called by
26299 mark_nonreg_stores.
26300 (mark_nonreg_stores_2): Likewise.
26301 (mark_nonreg_stores): Strengthen param "insn" from rtx to
26303 (find_call_stack_args): Strengthen param "call_insn" from rtx to
26304 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
26306 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
26307 from rtx to rtx_insn *.
26308 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
26309 "next", "ref_insn".
26310 (delete_unmarked_insns): Likewise for locals "insn", "next".
26311 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
26312 (mark_reg_dependencies): Likewise for param "insn".
26313 (rest_of_handle_ud_dce): Likewise for local "insn".
26314 (word_dce_process_block): Likewise.
26315 (dce_process_block): Likewise.
26317 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26319 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
26320 from rtx to rtx_insn *.
26321 (struct change_cc_mode_args): Likewise for field "insn".
26322 (this_insn): Strengthen from rtx to rtx_insn *.
26323 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
26325 (validate_canon_reg): Strengthen param "insn" from rtx to
26327 (canon_reg): Likewise.
26328 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
26330 (record_jump_equiv): Strengthen param "insn" from rtx to
26332 (try_back_substitute_reg): Likewise, also for locals "prev",
26334 (find_sets_in_insn): Likewise for param "insn".
26335 (canonicalize_insn): Likewise.
26336 (cse_insn): Likewise. Add a checked cast.
26337 (invalidate_from_clobbers): Likewise for param "insn".
26338 (invalidate_from_sets_and_clobbers): Likewise.
26339 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
26341 (cse_prescan_path): Strengthen local "insn" from rtx to
26343 (cse_extended_basic_block): Likewise for locals "insn" and
26345 (cse_main): Likewise for param "f".
26346 (check_for_label_ref): Likewise for local "insn".
26347 (set_live_p): Likewise for second param ("insn").
26348 (insn_live_p): Likewise for first param ("insn") and for local
26350 (cse_change_cc_mode_insn): Likewise for first param "insn".
26351 (cse_change_cc_mode_insns): Likewise for first and second params
26353 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
26355 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
26358 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
26359 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26360 Anna Tikhonova <anna.tikhonova@intel.com>
26361 Ilya Tocar <ilya.tocar@intel.com>
26362 Andrey Turetskiy <andrey.turetskiy@intel.com>
26363 Ilya Verbin <ilya.verbin@intel.com>
26364 Kirill Yukhin <kirill.yukhin@intel.com>
26365 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26367 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
26369 * config/i386/sse.md
26370 (define_mode_iterator VI248_AVX2): Delete.
26371 (define_mode_iterator VI2_AVX2_AVX512BW): New.
26372 (define_mode_iterator VI48_AVX2): Ditto.
26373 (define_insn <shift_insn><mode>3): Delete.
26374 (define_insn "<shift_insn><mode>3<mask_name>" with
26375 VI2_AVX2_AVX512BW): New.
26376 (define_insn "<shift_insn><mode>3<mask_name>" with
26379 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
26380 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26381 Anna Tikhonova <anna.tikhonova@intel.com>
26382 Ilya Tocar <ilya.tocar@intel.com>
26383 Andrey Turetskiy <andrey.turetskiy@intel.com>
26384 Ilya Verbin <ilya.verbin@intel.com>
26385 Kirill Yukhin <kirill.yukhin@intel.com>
26386 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26388 * config/i386/sse.md
26389 (define_mode_iterator VI4F_BRCST32x2): New.
26390 (define_mode_attr 64x2_mode): Ditto.
26391 (define_mode_attr 32x2mode): Ditto.
26392 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
26393 with VI4F_BRCST32x2): Ditto.
26394 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
26395 with V16FI mode iterator): Ditto.
26396 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
26397 with V16FI): Ditto.
26398 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
26399 with VI8F_BRCST64x2): Ditto.
26401 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
26402 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26403 Anna Tikhonova <anna.tikhonova@intel.com>
26404 Ilya Tocar <ilya.tocar@intel.com>
26405 Andrey Turetskiy <andrey.turetskiy@intel.com>
26406 Ilya Verbin <ilya.verbin@intel.com>
26407 Kirill Yukhin <kirill.yukhin@intel.com>
26408 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26410 * config/i386/sse.md
26411 (define_mode_iterator VI8_AVX512VL): New.
26412 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
26414 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
26416 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
26417 (define_mode_iterator V48_AVX512VL): New.
26418 (define_mode_iterator V12_AVX512VL): Ditto.
26419 (define_insn <avx512>_load<mode>_mask): Split into two similar
26420 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
26421 Refactor output template.
26422 (define_insn "<avx512>_store<mode>_mask"): Ditto.
26424 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26426 * cprop.c (struct occr): Strengthen field "insn" from rtx to
26428 (reg_available_p): Likewise for param "insn".
26429 (insert_set_in_table): Likewise.
26430 (hash_scan_set): Likewise.
26431 (hash_scan_insn): Likewise.
26432 (make_set_regs_unavailable): Likewise.
26433 (compute_hash_table_work): Likewise for local "insn".
26434 (reg_not_set_p): Strengthen param "insn" from const_rtx to
26436 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
26437 (try_replace_reg): Likewise.
26438 (find_avail_set): Likewise.
26439 (cprop_jump): Likewise for params "setcc", "jump".
26440 (constprop_register): Likewise for param "insn".
26441 (cprop_insn): Likewise.
26442 (do_local_cprop): Likewise.
26443 (local_cprop_pass): Likewise for local "insn".
26444 (bypass_block): Likewise for params "setcc" and "jump".
26445 (bypass_conditional_jumps): Likewise for locals "setcc" and
26447 (one_cprop_pass): Likewise for local "insn".
26449 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26451 * compare-elim.c (struct comparison_use): Strengthen field "insn"
26452 from rtx to rtx_insn *.
26453 (struct comparison): Likewise, also for field "prev_clobber".
26454 (conforming_compare): Likewise for param "insn".
26455 (arithmetic_flags_clobber_p): Likewise.
26456 (find_flags_uses_in_insn): Likewise.
26457 (find_comparison_dom_walker::before_dom_children): Likewise for
26458 locals "insn", "next", "last_clobber".
26459 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
26461 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26463 * combine-stack-adj.c (struct csa_reflist): Strengthen field
26464 "insn" from rtx to rtx_insn *.
26465 (single_set_for_csa): Likewise for param "insn".
26466 (record_one_stack_ref): Likewise.
26467 (try_apply_stack_adjustment): Likewise.
26468 (struct record_stack_refs_data): Likewise for field "insn".
26469 (maybe_move_args_size_note): Likewise for params "last" and "insn".
26470 (prev_active_insn_bb): Likewise for return type and param "insn".
26471 (next_active_insn_bb): Likewise.
26472 (force_move_args_size_note): Likewise for params "prev" and "last"
26473 and locals "test", "next_candidate", "prev_candidate".
26474 (combine_stack_adjustments_for_block): Strengthen locals
26475 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
26478 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26480 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
26481 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
26482 (subst_insn): Likewise for this variable.
26483 (added_links_insn): Likewise.
26484 (struct insn_link): Likewise for field "insn".
26485 (alloc_insn_link): Likewise for param "insn".
26486 (struct undobuf): Likewise for field "other_insn".
26487 (find_single_use): Likewise for param "insn" and local "next".
26488 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
26489 (delete_noop_moves): Likewise for locals "insn", "next".
26490 (create_log_links): Likewise for locals "insn", "use_insn".
26491 Strengthen local "next_use" from rtx * to rtx_insn **.
26492 (insn_a_feeds_b): Likewise for params "a", "b".
26493 (combine_instructions): Likewise for param "f" and locals "insn",
26494 "next", "prev", "first", "last_combined_insn", "link", "link1",
26495 "temp". Replace use of NULL_RTX with NULL when referring to
26497 (setup_incoming_promotions): Likewise for param "first"
26498 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
26499 (can_combine_p): Likewise for params "insn", "i3", "pred",
26500 "pred2", "succ", "succ2" and for local "p".
26501 (combinable_i3pat): Likewise for param "i3".
26502 (cant_combine_insn_p): Likewise for param "insn".
26503 (likely_spilled_retval_p): Likewise.
26504 (adjust_for_new_dest): Likewise.
26505 (update_cfg_for_uncondjump): Likewise, also for local "insn".
26506 (try_combine): Likewise for return type and for params "i3", "i2",
26507 "i1", "i0", "last_combined_insn", and for locals "insn",
26508 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
26509 "i0_insn". Eliminate local "tem" in favor of new locals
26510 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
26511 checked cast for now to rtx_insn * on the return type of
26512 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
26514 (find_split_point): Strengthen param "insn" from rtx to
26516 (simplify_set): Likewise for local "other_insn".
26517 (recog_for_combine): Likewise for param "insn".
26518 (record_value_for_reg): Likewise.
26519 (record_dead_and_set_regs_1): Likewise for local
26520 "record_dead_insn".
26521 (record_dead_and_set_regs): Likewise for param "insn".
26522 (record_promoted_value): Likewise.
26523 (check_promoted_subreg): Likewise.
26524 (get_last_value_validate): Likewise.
26525 (reg_dead_at_p): Likewise.
26526 (move_deaths): Likewise for param "to_insn".
26527 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
26528 and locals "place", "place2", "cc0_setter". Eliminate local "tem
26529 in favor of new locals "tem_note" and "tem_insn", the latter being
26531 (distribute_links): Strengthen locals "place", "insn" from rtx to
26534 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26536 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
26538 (can_delete_label_p): Require a const rtx_code_label * rather than
26540 (delete_insn): Add checked cast to rtx_code_label * when we know
26541 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
26543 (delete_insn_chain): Strengthen locals "prev" and "current" from
26544 rtx to rtx_insn *. Add a checked cast when assigning from
26545 "finish" (strengthening the params will come later). Add a
26546 checked cast to rtx_note * in region where we know
26548 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
26550 (compute_bb_for_insn): Likewise.
26551 (free_bb_for_insn): Likewise for local "insn".
26552 (compute_bb_for_insn): Likewise.
26553 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
26554 local "insn" from rtx to rtx_insn *
26555 (flow_active_insn_p): Require a const rtx_insn * rather than a
26557 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
26559 (can_fallthru): Likewise for locals "insn" and "insn2".
26560 (bb_note): Likewise for local "note".
26561 (first_insn_after_basic_block_note): Likewise for local "note" and
26563 (rtl_split_block): Likewise for locals "insn" and "next".
26564 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
26566 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
26567 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
26569 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
26570 them), "kill_from", "barrier", "new_insn".
26571 (patch_jump_insn): Likewise for params "insn", "old_label".
26572 (redirect_branch_edge): Likewise for locals "old_label", "insn".
26573 (force_nonfallthru_and_redirect): Likewise for locals "insn",
26574 "old_label", "new_label".
26575 (rtl_tidy_fallthru_edge): Likewise for local "q".
26576 (rtl_split_edge): Likewise for locals "before", "last".
26577 (commit_one_edge_insertion): Likewise for locals "before",
26578 "after", "insns", "tmp", "last", adding a checked cast where
26579 currently necessary.
26580 (commit_edge_insertions): Likewise.
26581 (rtl_dump_bb): Likewise for locals "insn", "last".
26582 (print_rtl_with_bb): Likewise for local "x".
26583 (rtl_verify_bb_insns): Likewise for local "x".
26584 (rtl_verify_bb_pointers): Likewise for local "insn".
26585 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
26587 (rtl_verify_fallthru): Likewise for local "insn".
26588 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
26589 (purge_dead_edges): Likewise for local "insn".
26590 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
26591 (skip_insns_after_block): Likewise for return type and for locals
26592 "insn", "last_insn", "next_head", "prev".
26593 (record_effective_endpoints): Likewise for locals "next_insn",
26595 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
26596 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
26597 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
26598 (duplicate_insn_chain): For now, add checked cast from rtx to
26599 rtx_insn * when returning insn.
26600 (cfg_layout_duplicate_bb): Likewise for local "insn".
26601 (cfg_layout_delete_block): Likewise for locals "insn", "next",
26602 "prev", "remaints".
26603 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
26604 (rtl_block_empty_p): Likewise.
26605 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
26606 "split_point", "last".
26607 (rtl_block_ends_with_call_p): Likewise for local "insn".
26608 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
26610 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
26611 "split_at_insn" from rtx to rtx_insn *.
26612 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
26613 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
26614 to const rtx_insn *.
26615 (rtl_account_profile_record): Likewise.
26617 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26619 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
26621 (average_num_loop_insns): Likewise.
26622 (init_set_costs): Likewise for local "seq".
26623 (seq_cost): Likewise for param "seq", from const_rtx to const
26626 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26628 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
26631 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26633 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
26634 "f1" and "f2" from rtx * to rtx_insn **.
26635 (flow_find_head_matching_sequence): Likewise.
26637 * cfgcleanup.c (try_simplify_condjump): Strengthen local
26638 "cbranch_insn" from rtx to rtx_insn *.
26639 (thread_jump): Likewise for local "insn".
26640 (try_forward_edges): Likewise for local "last".
26641 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
26642 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
26644 (can_replace_by): Likewise for params "i1", "i2".
26645 (old_insns_match_p): Likewise.
26646 (merge_notes): Likewise.
26647 (walk_to_nondebug_insn): Likewise for param "i1".
26648 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
26649 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
26650 "afterlast1", "afterlast2" from rtx to rtx_insn *.
26651 (flow_find_head_matching_sequence): Strengthen params "f1" and
26652 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
26653 "last1", "last2", "beforelast1", "beforelast2" from rtx to
26655 (outgoing_edges_match): Likewise for locals "last1", "last2".
26656 (try_crossjump_to_edge): Likewise for local "insn".
26657 Replace call to for_each_rtx with for_each_rtx_in_insn.
26659 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
26660 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
26661 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
26662 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
26663 (try_optimize_cfg): Strengthen local "last" from rtx to
26665 (delete_dead_jumptables): Likewise for locals "insn", "next",
26668 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
26669 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
26670 "rtx else_first_tail", to reflect the basic-block.h changes above.
26672 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26674 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
26676 (purge_dead_tablejump_edges): Likewise.
26677 (find_bb_boundaries): Likewise for locals "insn", "end",
26678 "flow_transfer_insn".
26680 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26682 * caller-save.c (save_call_clobbered_regs): Strengthen locals
26683 "ins" and "prev" from rtx to rtx_insn *.
26685 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26687 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
26689 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
26690 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
26692 (load_register_parameters): Likewise for local "before_arg".
26693 (check_sibcall_argument_overlap): Likewise for param "insn".
26694 (expand_call): Likewise for locals "normal_call_insns",
26695 "tail_call_insns", "insns", "before_call", "after_args",
26696 "before_arg", "last", "prev". Strengthen one of the "last" from
26697 rtx to rtx_call_insn *.
26698 (fixup_tail_calls): Strengthen local "insn" from rtx to
26700 (emit_library_call_value_1): Likewise for locals "before_call" and
26703 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26705 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
26706 and "last" from rtx to rtx_insn *.
26707 (expand_builtin_nonlocal_goto): Likewise for local "insn".
26708 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
26710 (expand_errno_check): Strengthen local "lab" from rtx to
26712 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
26714 (expand_builtin_mathfn_2): Likewise.
26715 (expand_builtin_mathfn_ternary): Likewise.
26716 (expand_builtin_mathfn_3): Likewise.
26717 (expand_builtin_interclass_mathfn): Likewise for local "last".
26718 (expand_builtin_int_roundingfn): Likewise for local "insns".
26719 (expand_builtin_int_roundingfn_2): Likewise.
26720 (expand_builtin_strlen): Likewise for local "before_strlen".
26721 (expand_builtin_strncmp): Likewise for local "seq".
26722 (expand_builtin_signbit): Likewise for local "last".
26723 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
26724 from rtx to rtx_code_label *.
26725 (expand_stack_restore): Strengthen local "prev" from rtx to
26728 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26730 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
26732 (struct btr_def_s): Likewise.
26733 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
26735 (add_btr_def): Likewise.
26736 (new_btr_user): Likewise.
26737 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
26739 (link_btr_uses): Likewise.
26740 (move_btr_def): Likewise for locals "insp", "old_insn",
26741 "new_insn". Add checked cast to rtx_insn * for now on result of
26743 (can_move_up): Strengthen param "insn" from const_rtx to
26746 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26748 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
26750 (get_uncond_jump_length): Likewise for locals "label", "jump".
26751 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
26753 (add_labels_and_missing_jumps): Likewise for local "new_jump".
26754 (fix_up_fall_thru_edges): Likewise for local "old_jump".
26755 (find_jump_block): Likewise for local "insn".
26756 (fix_crossing_conditional_branches): Likewise for locals
26757 "old_jump", "new_jump".
26758 (fix_crossing_unconditional_branches): Likewise for locals
26759 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
26760 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
26762 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26764 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
26766 (struct mem_insn): Likewise for field "insn".
26767 (reg_next_use): Strengthen from rtx * to rtx_insn **.
26768 (reg_next_inc_use): Likewise.
26769 (reg_next_def): Likewise.
26770 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
26771 from rtx to rtx_insn *.
26772 (move_insn_before): Likewise for param "next_insn" and local "insns".
26773 (attempt_change): Likewise for local "mov_insn".
26774 (try_merge): Likewise for param "last_insn".
26775 (get_next_ref): Likewise for return type and local "insn".
26776 Strengthen param "next_array" from rtx * to rtx_insn **.
26777 (parse_add_or_inc): Strengthen param "insn" from rtx to
26779 (find_inc): Likewise for locals "insn" and "other_insn" (three of
26781 (merge_in_block): Likewise for locals "insn", "curr",
26783 (pass_inc_dec::execute): Update allocations of the arrays to
26784 reflect the stronger types.
26786 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26788 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
26789 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
26790 from rtx to rtx_code_label *.
26792 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26794 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
26797 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
26799 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
26800 generated a warning and prevented bootstrapping the compiler.
26802 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26804 * rtl.h (delete_related_insns): Strengthen return type from rtx to
26807 * jump.c (delete_related_insns): Likewise, also for locals "next"
26810 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26812 * genautomata.c (output_internal_insn_latency_func): When writing
26813 the function "internal_insn_latency" to insn-automata.c,
26814 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
26815 allowing the optional guard function of (define_bypass) clauses to
26816 expect a pair of rtx_insn *, rather than a pair of rtx.
26817 (output_insn_latency_func): When writing the function
26818 "insn_latency", add an "uncast_" prefix to params "insn" and
26819 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
26820 using checked casts from the params, thus enabling the above
26821 change to the generated "internal_insn_latency" function.
26823 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
26825 PR tree-optimization/62091
26826 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
26827 handle correctly arrays.
26828 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
26829 inheritance binfos.
26830 (record_known_type): Walk into inner type.
26831 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
26832 condition on no type changes.
26834 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26836 * genattrtab.c (write_attr_get): Within the generated get_attr_
26837 functions, rename param "insn" to "uncast_insn" and reintroduce
26838 "insn" as an local rtx_insn * using a checked cast, so that "insn"
26839 is an rtx_insn * within insn-attrtab.c
26841 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26843 * output.h (peephole): Strengthen return type from rtx to
26845 * rtl.h (delete_for_peephole): Likewise for both params.
26846 * genpeep.c (main): In generated "peephole" function, strengthen
26847 return type and local "insn" from rtx to rtx_insn *. For now,
26848 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
26849 rtx_insn *, with a checked cast.
26850 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
26851 locals "insn", "next", "prev" from rtx to rtx_insn *.
26853 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
26855 PR tree-optimization/62112
26856 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
26857 * gimple-iterator.h (gsi_replace): Return bool.
26858 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
26859 moved from ref_may_alias_global_p.
26860 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
26862 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
26863 (stmt_kills_ref_p_1): Rename...
26864 (stmt_kills_ref_p): ... to this.
26865 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
26866 stmt_kills_ref_p): Declare.
26867 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
26868 Move the self-assignment case...
26869 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
26871 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26873 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
26875 * emit-rtl.c (try_split): Likewise, also for locals "before" and
26876 "after". For now, don't strengthen param "trial", which requires
26877 adding checked casts when returning it.
26879 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26881 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
26882 "label" from rtx to rtx_code_label *. Strengthen param 1 of
26883 "var_location" hook from rtx to rtx_insn *.
26884 (debug_nothing_rtx): Delete in favor of...
26885 (debug_nothing_rtx_code_label): New prototype.
26886 (debug_nothing_rtx_rtx): Delete unused prototype.
26887 (debug_nothing_rtx_insn): New prototype.
26889 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
26890 invoking debug_hooks->var_location (in two places, one in a NOTE
26891 case of a switch statement, the other guarded by a CALL_P
26892 conditional. Add checked cast to rtx_code_label * when invoking
26893 debug_hooks->label (within CODE_LABEL case of switch statement).
26895 * dbxout.c (dbx_debug_hooks): Update "label" hook from
26896 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
26897 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
26898 (xcoff_debug_hooks): Likewise.
26899 * debug.c (do_nothing_debug_hooks): Likewise.
26900 (debug_nothing_rtx): Delete in favor of...
26901 (debug_nothing_rtx_insn): New function.
26902 (debug_nothing_rtx_rtx): Delete unused function.
26903 (debug_nothing_rtx_code_label): New function.
26904 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
26905 debug_nothing_rtx to debug_nothing_rtx_code_label.
26906 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
26908 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
26909 debug_nothing_rtx to debug_nothing_rtx_insn.
26910 (sdbout_label): Strengthen param "insn" from rtx to
26912 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
26913 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
26914 "var_location" hook from debug_nothing_rtx to
26915 debug_nothing_rtx_insn.
26917 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26919 * recog.h (insn_output_fn): Update this function typedef to match
26920 the changes below to the generated output functions, strengthening
26921 the 2nd param from rtx to rtx_insn *.
26923 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
26924 insn when invoking an output function, to match the new signature
26925 of insn_output_fn with a stronger second param.
26927 * genconditions.c (write_header): In the generated code for
26928 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
26929 to match the other changes in this patch.
26931 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
26932 the generated "gen_" functions from rtx to rtx_insn * within their
26935 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
26936 the subfunctions within the generated "recog_", "split", "peephole2"
26937 function trees from rtx to rtx_insn *. For now, the top-level
26938 generated functions ("recog", "split", "peephole2") continue to
26939 take a plain rtx for "insn", to avoid introducing dependencies on
26940 other patches. Rename this 2nd param from "insn" to
26941 "uncast_insn", and reintroduce "insn" as a local variable of type
26942 rtx_insn *, initialized at the top of the generated function with
26943 a checked cast on "uncast_insn".
26944 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
26945 the generated "gen_" functions from rtx to rtx_insn * within their
26948 * genoutput.c (process_template): Strengthen the 2nd param within
26949 the generated "output_" functions "insn" from rtx to rtx_insn *.
26951 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
26953 * tree-profile.c (tree_profiling): Skip external functions
26954 when doing coverage instrumentation.
26955 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
26957 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26959 * config/rs6000/altivec.h (vec_cpsgn): New #define.
26960 (vec_mergee): Likewise.
26961 (vec_mergeo): Likewise.
26962 (vec_cntlz): Likewise.
26963 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
26964 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
26965 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
26966 VMRGEW, and VMRGOW.
26967 * doc/extend.texi: Document various forms of vec_cpsgn,
26968 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
26969 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
26970 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
26971 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
26972 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
26974 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26976 * config/rs6000/rs6000.c (context.h): New include.
26977 (tree-pass.h): Likewise.
26978 (make_pass_analyze_swaps): New decl.
26979 (rs6000_option_override): Register pass_analyze_swaps.
26980 (swap_web_entry): New subsclass of web_entry_base (df.h).
26981 (special_handling_values): New enum.
26982 (union_defs): New function.
26983 (union_uses): Likewise.
26984 (insn_is_load_p): Likewise.
26985 (insn_is_store_p): Likewise.
26986 (insn_is_swap_p): Likewise.
26987 (rtx_is_swappable_p): Likewise.
26988 (insn_is_swappable_p): Likewise.
26989 (chain_purpose): New enum.
26990 (chain_contains_only_swaps): New function.
26991 (mark_swaps_for_removal): Likewise.
26992 (swap_const_vector_halves): Likewise.
26993 (adjust_subreg_index): Likewise.
26994 (permute_load): Likewise.
26995 (permute_store): Likewise.
26996 (handle_special_swappables): Likewise.
26997 (replace_swap_with_copy): Likewise.
26998 (dump_swap_insn_table): Likewise.
26999 (rs6000_analyze_swaps): Likewise.
27000 (pass_data_analyze_swaps): New pass_data.
27001 (pass_analyze_swaps): New rtl_opt_pass.
27002 (make_pass_analyze_swaps): New function.
27003 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
27005 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27007 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
27008 type from rtx to rtx_insn *.
27009 (create_copy_of_insn_rtx): Likewise.
27010 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
27011 (create_copy_of_insn_rtx): Likewise, also for local "res".
27013 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27015 * rtl.h (find_first_parameter_load): Strengthen return type from
27017 * rtlanal.c (find_first_parameter_load): Strengthen return type
27018 from rtx to rtx_insn *. Add checked cast for now, to postpone
27019 strengthening the params.
27021 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
27024 * diagnostic.c: Set default caret.
27025 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
27027 * diagnostic.h (struct diagnostic_context):
27029 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27031 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
27032 (sel_bb_head): Strengthen return type insn_t (currently just an
27033 rtx) to rtx_insn *.
27034 (sel_bb_end): Likewise.
27036 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
27037 (sel_bb_head): Strengthen return type and local "head" from
27038 insn_t (currently just an rtx) to rtx_insn *.
27039 (sel_bb_end): Likewise for return type.
27040 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
27043 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27045 * basic-block.h (get_last_bb_insn): Strengthen return type from
27047 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
27050 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
27053 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
27055 (diagnostic_report_diagnostic): ... from here.
27056 * toplev.c (general_init): Move code to c-family.
27058 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27060 * df.h (web_entry_base): Replace existing struct web_entry with a
27061 new class web_entry_base with only the predecessor member.
27062 (unionfind_root): Remove declaration and move to class member.
27063 (unionfind_union): Remove declaration and move to friend
27065 (union_defs): Remove declaration.
27066 * web.c (web_entry_base::unionfind_root): Modify to be member
27067 function and adjust accessors.
27068 (unionfind_union): Modify to be friend function and adjust
27070 (web_entry): New subclass of web_entry_base containing the reg
27072 (union_match_dups): Modify for struct -> class changes.
27073 (union_defs): Likewise.
27074 (entry_register): Likewise.
27075 (pass_web::execute): Likewise.
27077 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
27079 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
27080 builtin define __VEC_ELEMENT_REG_ORDER__.
27082 2014-08-20 Martin Jambor <mjambor@suse.cz>
27083 Wei Mi <wmi@google.com>
27086 PR middle-end/61776
27087 * tree-ssa-operands.c (update_stmt_operands): Remove
27088 MODIFIED_NORETURN_CALLS.
27089 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
27090 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
27091 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
27092 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
27093 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
27094 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
27095 (gimple_call_set_ctrl_altering): New func.
27096 (gimple_call_ctrl_altering_p): Ditto.
27097 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
27098 (make_blocks): Use gimple_call_initialize_ctrl_altering.
27099 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
27100 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
27101 remove MODIFIED_NORETURN_CALLS.
27103 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
27105 * coverage.c (coverage_compute_profile_id): Return non-0;
27106 also handle symbols with unique name.
27107 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
27109 2014-08-20 Steve Ellcey <sellcey@mips.com>
27111 PR middle-end/49191
27112 * doc/sourcebuild.texi (non_strict_align): New.
27114 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
27116 * cgraphunit.c (ipa_passes, compile): Reshedule
27117 symtab_remove_unreachable_nodes passes; update comments.
27118 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
27119 TODO_remove_functions before the pass; the functions ought to be
27121 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
27122 TODO_remove_functions.
27123 * passes.c (pass_data_early_local_passes): Do not schedule function
27125 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
27127 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27130 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
27131 before setting the option.
27132 * diagnostic.c (diagnostic_classify_diagnostic): Record
27133 command-line status.
27135 2014-08-20 Richard Biener <rguenther@suse.de>
27138 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
27139 to build uint{16,32,64}_type_node.
27141 2014-08-20 Terry Guo <terry.guo@arm.com>
27143 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
27144 with immediate_operand.
27146 2014-08-20 David Malcolm <dmalcolm@redhat.com>
27148 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
27149 "insn" from an as_a to a safe_as_a, for the case when "insn" is
27152 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27154 PR preprocessor/51303
27155 * incpath.c (remove_duplicates): Use cpp_warning.
27157 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27161 * doc/options.texi (CPP): Document it.
27162 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
27163 * optc-gen.awk: Handle CPP.
27164 * opth-gen.awk: Likewise.
27166 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27168 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
27170 (duplicate_insn_chain): Likewise.
27171 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
27172 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
27173 checked cast for now (until we can strengthen the params in the
27175 (duplicate_insn_chain): Likewise.
27177 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27179 * rtl.h (next_cc0_user): Strengthen return type from rtx to
27181 (prev_cc0_setter): Likewise.
27183 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
27184 rtx_insn *, adding checked casts for now as necessary.
27185 (prev_cc0_setter): Likewise.
27187 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27189 * expr.h (emit_move_insn): Strengthen return type from rtx to
27191 (emit_move_insn_1): Likewise.
27192 (emit_move_complex_push): Likewise.
27193 (emit_move_complex_parts): Likewise.
27195 * expr.c (emit_move_via_integer): Strengthen return type from rtx
27196 to rtx_insn *. Replace use of NULL_RTX with NULL when working
27198 (emit_move_complex_push): Strengthen return type from rtx to
27200 (emit_move_complex): Likewise, also for local "ret".
27201 (emit_move_ccmode): Likewise.
27202 (emit_move_multi_word): Likewise for return type and locals
27203 "last_insn", "seq".
27204 (emit_move_insn_1): Likewise for return type and locals "result",
27206 (emit_move_insn): Likewise for return type and local "last_insn".
27207 (compress_float_constant): Likewise.
27209 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27211 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
27212 from rtx to rtx_insn *.
27214 * rtl.h (emit_insn_before): Likewise.
27215 (emit_insn_before_noloc): Likewise.
27216 (emit_insn_before_setloc): Likewise.
27217 (emit_jump_insn_before): Likewise.
27218 (emit_jump_insn_before_noloc): Likewise.
27219 (emit_jump_insn_before_setloc): Likewise.
27220 (emit_call_insn_before): Likewise.
27221 (emit_call_insn_before_noloc): Likewise.
27222 (emit_call_insn_before_setloc): Likewise.
27223 (emit_debug_insn_before): Likewise.
27224 (emit_debug_insn_before_noloc): Likewise.
27225 (emit_debug_insn_before_setloc): Likewise.
27226 (emit_label_before): Likewise.
27227 (emit_insn_after): Likewise.
27228 (emit_insn_after_noloc): Likewise.
27229 (emit_insn_after_setloc): Likewise.
27230 (emit_jump_insn_after): Likewise.
27231 (emit_jump_insn_after_noloc): Likewise.
27232 (emit_jump_insn_after_setloc): Likewise.
27233 (emit_call_insn_after): Likewise.
27234 (emit_call_insn_after_noloc): Likewise.
27235 (emit_call_insn_after_setloc): Likewise.
27236 (emit_debug_insn_after): Likewise.
27237 (emit_debug_insn_after_noloc): Likewise.
27238 (emit_debug_insn_after_setloc): Likewise.
27239 (emit_label_after): Likewise.
27240 (emit_insn): Likewise.
27241 (emit_debug_insn): Likewise.
27242 (emit_jump_insn): Likewise.
27243 (emit_call_insn): Likewise.
27244 (emit_label): Likewise.
27245 (gen_clobber): Likewise.
27246 (emit_clobber): Likewise.
27247 (gen_use): Likewise.
27248 (emit_use): Likewise.
27251 (emit_barrier_before): Strengthen return type from rtx to
27253 (emit_barrier_after): Likewise.
27254 (emit_barrier): Likewise.
27256 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
27257 from rtx to rtx_insn *. Add checked casts for now when converting
27258 "last" from rtx to rtx_insn *.
27259 (emit_insn_before_noloc): Likewise for return type.
27260 (emit_jump_insn_before_noloc): Likewise.
27261 (emit_call_insn_before_noloc): Likewise.
27262 (emit_debug_insn_before_noloc): Likewise.
27263 (emit_barrier_before): Strengthen return type and local "insn"
27264 from rtx to rtx_barrier *.
27265 (emit_label_before): Strengthen return type from rtx to
27266 rtx_insn *. Add checked cast for now when returning param
27267 (emit_pattern_after_noloc): Strengthen return type from rtx to
27268 rtx_insn *. Add checked casts for now when converting "last" from
27270 (emit_insn_after_noloc): Strengthen return type from rtx to
27272 (emit_jump_insn_after_noloc): Likewise.
27273 (emit_call_insn_after_noloc): Likewise.
27274 (emit_debug_insn_after_noloc): Likewise.
27275 (emit_barrier_after): Strengthen return type from rtx to
27277 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
27278 Add checked cast for now when converting "label" from rtx to
27280 (emit_pattern_after_setloc): Strengthen return type from rtx to
27281 rtx_insn *. Add checked casts for now when converting "last" from
27283 (emit_pattern_after): Strengthen return type from rtx to
27285 (emit_insn_after_setloc): Likewise.
27286 (emit_insn_after): Likewise.
27287 (emit_jump_insn_after_setloc): Likewise.
27288 (emit_jump_insn_after): Likewise.
27289 (emit_call_insn_after_setloc): Likewise.
27290 (emit_call_insn_after): Likewise.
27291 (emit_debug_insn_after_setloc): Likewise.
27292 (emit_debug_insn_after): Likewise.
27293 (emit_pattern_before_setloc): Likewise. Add checked casts for now
27294 when converting "last" from rtx to rtx_insn *.
27295 (emit_pattern_before): Strengthen return type from rtx to
27297 (emit_insn_before_setloc): Likewise.
27298 (emit_insn_before): Likewise.
27299 (emit_jump_insn_before_setloc): Likewise.
27300 (emit_jump_insn_before): Likewise.
27301 (emit_call_insn_before_setloc): Likewise.
27302 (emit_call_insn_before): Likewise.
27303 (emit_debug_insn_before_setloc): Likewise.
27304 (emit_debug_insn_before): Likewise.
27305 (emit_insn): Strengthen return type and locals "last", "insn",
27306 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
27307 within cases where we know we have an insn.
27308 (emit_debug_insn): Likewise.
27309 (emit_jump_insn): Likewise.
27310 (emit_call_insn): Strengthen return type and local "insn" from rtx
27312 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
27313 a checked cast to rtx_insn * for now on "label".
27314 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
27315 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
27316 (emit_use): Likewise.
27317 (gen_use): Likewise, also for local "seq".
27318 (emit): Likewise for return type and local "insn".
27319 (rtx_insn): Likewise for return type and local "new_rtx".
27321 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
27322 from rtx to rtx_barrier *.
27324 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
27325 changed return type from rtx to rtx_insn *, we must update
27326 "emit_fn" type, and this in turn means updating...
27327 (frame_insn): ...this. Strengthen return type from rtx to
27328 rtx_insn *. Introduce a new local "insn" of the appropriate type.
27330 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27332 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
27333 rtx to rtx_jump_table_data *. Also for local.
27334 * rtl.h (emit_jump_table_data): Likewise.
27336 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27338 * basic-block.h (create_basic_block_structure): Strengthen third
27339 param "bb_note" from rtx to rtx_note *.
27340 * rtl.h (emit_note_before): Strengthen return type from rtx to
27342 (emit_note_after): Likewise.
27343 (emit_note): Likewise.
27344 (emit_note_copy): Likewise. Also, strengthen param similarly.
27345 * function.h (struct rtl_data): Strengthen field
27346 "x_stack_check_probe_note" from rtx to rtx_note *.
27348 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
27349 from rtx to rtx_note *.
27350 * cfgrtl.c (create_basic_block_structure): Strengthen third param
27351 "bb_note" from rtx to rtx_note *.
27352 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
27353 when calling emit_note_copy.
27354 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
27356 (emit_note_after): Likewise.
27357 (emit_note_before): Likewise.
27358 (emit_note_copy): Likewise. Also, strengthen param similarly.
27359 (emit_note): Likewise.
27360 * except.c (emit_note_eh_region_end): Likewise for return type.
27361 Strengthen local "next" from rtx to rtx_insn *.
27362 (convert_to_eh_region_ranges): Strengthen local "note"
27363 from rtx to rtx_note *.
27364 * final.c (change_scope): Likewise.
27365 (reemit_insn_block_notes): Likewise, for both locals named "note".
27366 Also, strengthen local "insn" from rtx to rtx_insn *.
27367 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
27369 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
27370 strengthen local "seq" from rtx to rtx_insn *.
27371 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
27373 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
27375 (get_bb_note_from_pool): Strengthen return type from rtx to
27377 (sel_create_basic_block): Strengthen local "new_bb_note" from
27378 insn_t to rtx_note *.
27379 * var-tracking.c (emit_note_insn_var_location): Strengthen local
27380 "note" from rtx to rtx_note *.
27381 (emit_notes_in_bb): Likewise.
27383 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27385 * function.h (struct rtl_data): Strengthen field
27386 "x_parm_birth_insn" from rtx to rtx_insn *.
27387 * function.c (struct assign_parm_data_all): Strengthen fields
27388 "first_conversion_insn" and "last_conversion_insn" from rtx to
27391 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27393 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
27394 to rtx_insn *; also for local "var_end_seq".
27395 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
27396 (maybe_cleanup_end_of_block): Likewise for param "last" and local
27398 (expand_gimple_cond): Likewise for locals "last2" and "last".
27399 (mark_transaction_restart_calls): Likewise for local "insn".
27400 (expand_gimple_stmt): Likewise for return type and locals "last"
27402 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
27403 (avoid_complex_debug_insns): Likewise for param "insn".
27404 (expand_debug_locations): Likewise for locals "insn", "last",
27405 "prev_insn" and "insn2".
27406 (expand_gimple_basic_block): Likewise for local "last".
27407 (construct_exit_block): Likewise for locals "head", "end",
27409 (pass_expand::execute): Likewise for locals "var_seq",
27410 "var_ret_seq", "next".
27412 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27414 * asan.h (asan_emit_stack_protection): Strengthen return type from
27416 * asan.c (asan_emit_stack_protection): Likewise. Add local
27417 "insns" to hold the return value.
27419 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27421 * basic-block.h (bb_note): Strengthen return type from rtx to
27423 * sched-int.h (bb_note): Likewise.
27424 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
27426 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27428 * rtl.h (make_insn_raw): Strengthen return type from rtx to
27431 * emit-rtl.c (make_insn_raw): Strengthen return type and local
27432 "insn" from rtx to rtx_insn *.
27433 (make_debug_insn_raw): Strengthen return type from rtx to
27434 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
27435 (make_jump_insn_raw): Strengthen return type from rtx to
27436 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
27437 (make_call_insn_raw): Strengthen return type from rtx to
27438 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
27439 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
27440 callback from rtx to rtx_insn *; likewise for local "insn" and
27441 "next", adding a checked cast to rtx_insn in the relevant cases of
27442 the switch statement.
27443 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
27444 callback from rtx to rtx_insn *.
27445 (emit_pattern_after_setloc): Likewise.
27446 (emit_pattern_after): Likewise.
27447 (emit_pattern_before_setloc): Likewise.
27448 (emit_pattern_before): Likewise.
27450 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27452 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
27454 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
27455 accepting an rtx_insn *.
27456 (last_call_insn): Strengthen return type from rtx to
27459 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27461 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
27462 "insns" from rtx to rtx_insn *.
27463 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
27464 locals "insn" and "prev".
27466 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27468 * rtl.h (tablejump_p): Strengthen third param from rtx * to
27469 rtx_jump_table_data **.
27471 * cfgbuild.c (make_edges): Introduce local "table", using it in
27472 place of "tmp" for jump table data.
27473 (find_bb_boundaries): Strengthen local "table" from rtx to
27474 rtx_jump_table_data *.
27475 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
27476 (outgoing_edges_match): Likewise for locals "table1" and "table2".
27477 (try_crossjump_to_edge): Likewise.
27478 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
27480 (patch_jump_insn): Introduce local "table", using it in place of
27481 "tmp" for jump table data.
27482 (force_nonfallthru_and_redirect): Introduce local "table", so that
27483 call to tablejump_p can receive an rtx_jump_table_data **. Update
27484 logic around the call to overwrite "note" appropriately if
27485 tablejump_p returns non-zero.
27486 (get_last_bb_insn): Introduce local "table", using it in place of
27487 "tmp" for jump table data.
27488 * dwarf2cfi.c (create_trace_edges): Likewise.
27490 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
27491 from rtx to rtx_jump_table_data *.
27492 (create_fix_barrier): Strengthen local "tmp" from rtx to
27493 rtx_jump_table_data *.
27494 (arm_reorg): Likewise for local "table".
27496 * config/s390/s390.c (s390_chunkify_start): Likewise.
27498 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
27500 * jump.c (delete_related_insns): Strengthen local "lab_next" from
27501 rtx to rtx_jump_table_data *.
27503 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
27504 rtx_jump_table_data **. Add a checked cast when writing through
27505 the pointer: we know there that local "table" is non-NULL and that
27506 JUMP_TABLE_DATA_P (table) holds.
27507 (label_is_jump_target_p): Introduce local "table", using it in
27508 place of "tmp" for jump table data.
27510 2014-08-19 Marek Polacek <polacek@redhat.com>
27513 * doc/invoke.texi: Document -Wbool-compare.
27515 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27517 * rtl.h (entry_of_function): Strengthen return type from rtx to
27519 * cfgrtl.c (entry_of_function): Likewise.
27521 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27523 * emit-rtl.h (get_insns): Strengthen return type from rtx to
27524 rtx_insn *, adding a checked cast for now.
27525 (get_last_insn): Likewise.
27527 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27529 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
27532 * emit-rtl.c (gen_label_rtx): Likewise.
27534 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27536 * rtl.h (previous_insn): Strengthen return type from rtx to
27538 (next_insn): Likewise.
27539 (prev_nonnote_insn): Likewise.
27540 (prev_nonnote_insn_bb): Likewise.
27541 (next_nonnote_insn): Likewise.
27542 (next_nonnote_insn_bb): Likewise.
27543 (prev_nondebug_insn): Likewise.
27544 (next_nondebug_insn): Likewise.
27545 (prev_nonnote_nondebug_insn): Likewise.
27546 (next_nonnote_nondebug_insn): Likewise.
27547 (prev_real_insn): Likewise.
27548 (next_real_insn): Likewise.
27549 (prev_active_insn): Likewise.
27550 (next_active_insn): Likewise.
27552 * emit-rtl.c (next_insn): Strengthen return type from rtx to
27553 rtx_insn *, adding a checked cast.
27554 (previous_insn): Likewise.
27555 (next_nonnote_insn): Likewise.
27556 (next_nonnote_insn_bb): Likewise.
27557 (prev_nonnote_insn): Likewise.
27558 (prev_nonnote_insn_bb): Likewise.
27559 (next_nondebug_insn): Likewise.
27560 (prev_nondebug_insn): Likewise.
27561 (next_nonnote_nondebug_insn): Likewise.
27562 (prev_nonnote_nondebug_insn): Likewise.
27563 (next_real_insn): Likewise.
27564 (prev_real_insn): Likewise.
27565 (next_active_insn): Likewise.
27566 (prev_active_insn): Likewise.
27568 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
27569 param "stepfunc" so that it returns an rtx_insn * rather than an
27570 rtx, to track the change to prev_nonnote_insn_bb, which is the
27571 only function this is called with.
27572 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
27574 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
27576 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
27579 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27581 * coretypes.h (class rtx_debug_insn): Add forward declaration.
27582 (class rtx_nonjump_insn): Likewise.
27583 (class rtx_jump_insn): Likewise.
27584 (class rtx_call_insn): Likewise.
27585 (class rtx_jump_table_data): Likewise.
27586 (class rtx_barrier): Likewise.
27587 (class rtx_code_label): Likewise.
27588 (class rtx_note): Likewise.
27590 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
27591 adding the invariant DEBUG_INSN_P (X).
27592 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
27593 the invariant NONJUMP_INSN_P (X).
27594 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
27595 the invariant JUMP_P (X).
27596 (class rtx_call_insn): New, a subclass of rtx_insn, adding
27597 the invariant CALL_P (X).
27598 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
27599 invariant JUMP_TABLE_DATA_P (X).
27600 (class rtx_barrier): New, a subclass of rtx_insn, adding the
27601 invariant BARRIER_P (X).
27602 (class rtx_code_label): New, a subclass of rtx_insn, adding
27603 the invariant LABEL_P (X).
27604 (class rtx_note): New, a subclass of rtx_insn, adding
27605 the invariant NOTE_P(X).
27606 (is_a_helper <rtx_debug_insn *>::test): New.
27607 (is_a_helper <rtx_nonjump_insn *>::test): New.
27608 (is_a_helper <rtx_jump_insn *>::test): New.
27609 (is_a_helper <rtx_call_insn *>::test): New.
27610 (is_a_helper <rtx_jump_table_data *>::test): New functions,
27611 overloaded for both rtx and rtx_insn *.
27612 (is_a_helper <rtx_barrier *>::test): New.
27613 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
27614 for both rtx and rtx_insn *.
27615 (is_a_helper <rtx_note *>::test): New.
27617 2014-08-19 Marek Polacek <polacek@redhat.com>
27619 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
27620 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
27621 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
27622 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
27624 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27626 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
27627 rtx_insn *. To help with transition, for now, convert from an
27628 access macro into a pair of functions: BND_TO, returning an
27630 (SET_BND_TO): New function, for use where BND_TO is used as an
27633 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
27635 (BND_TO): New function, adding a checked cast.
27636 (SET_BND_TO): New function.
27638 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
27640 (compute_av_set_on_boundaries): Likewise.
27642 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
27644 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
27645 destination if it is used in source.
27646 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
27647 (*popcount<mode>2_falsedep_1): Likewise.
27649 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
27652 * configure.ac: Set install_gold_as_default to no first.
27653 * configure: Regenerated.
27655 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27657 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
27658 "note_list" field will eventually be an rtx_insn *. To help with
27659 transition, for now, convert from an access macro into a pair of
27660 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
27661 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
27664 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
27665 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
27667 * sel-sched-ir.c (init_bb): Likewise.
27668 (sel_restore_notes): Likewise.
27669 (move_bb_info): Likewise.
27670 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
27671 (SET_BB_NOTE_LIST): New function.
27673 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27675 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
27676 field will eventually be an rtx_insn *. To help with transition,
27677 for now, convert from an access macro into a pair of functions:
27678 VINSN_INSN_RTX, returning an rtx_insn *, and...
27679 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
27680 is used as an lvalue.
27682 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
27683 SET_VINSN_INSN_RTX where it's used as an lvalue.
27684 (VINSN_INSN_RTX): New function.
27685 (SET_VINSN_INSN_RTX): New function.
27687 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27689 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
27690 eventually be rtx_insn *, but to help with transition, for now,
27691 convert from an access macro into a pair of functions: DEP_PRO
27692 returning an rtx_insn * and...
27693 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
27694 lvalue, returning an rtx&.
27695 (DEP_CON): Analogous changes to DEP_PRO above.
27696 (SET_DEP_CON): Likewise.
27698 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
27699 an lvalue to SET_DEP_CON.
27700 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
27701 (sd_copy_back_deps): Likewise for DEP_CON.
27702 (DEP_PRO): New function, adding a checked cast for now.
27703 (DEP_CON): Likewise.
27704 (SET_DEP_PRO): New function.
27705 (SET_DEP_CON): Likewise.
27707 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
27709 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
27710 (extra_options): Add i386/cygwin.opt.
27711 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
27712 (CPP_SPEC): Accept -pthread.
27713 (LINK_SPEC): Ditto.
27714 (GOMP_SELF_SPECS): Update comment.
27715 * config/i386/cygwin.opt: New file for -pthread flag.
27717 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27719 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
27720 * df.h (DF_REF_INSN): Convert from a macro to a function, so
27721 that we can return an rtx_insn *.
27723 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
27725 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
27726 when building executables, not DLLs. Add --large-address-aware
27727 under the same conditions.
27728 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
27729 when building executables, not DLLs. Add --large-address-aware
27730 under the same conditions when using -m32.
27732 * config/i386/cygwin-stdint.h: Throughout, make type
27733 definitions dependent on target architecture, not host.
27735 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27737 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
27738 the return type from rtx to rtx_insn *, which will enable various
27739 conversions in followup patches. For now this is is done by a
27741 (NEXT_INSN): Likewise.
27742 (SET_PREV_INSN): Convert to an inline function. This is intended
27743 for use as an lvalue, and so returns an rtx& to allow in-place
27745 (SET_NEXT_INSN): Likewise.
27747 2014-07-08 Mark Wielaard <mjw@redhat.com>
27750 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
27752 2014-08-19 Marek Polacek <polacek@redhat.com>
27755 * cgraphunit.c (handle_alias_pairs): Fix condition.
27757 2014-08-19 Richard Biener <rguenther@suse.de>
27759 * gimple-fold.c (fold_gimple_assign): Properly build a
27760 null-pointer constant when devirtualizing addresses.
27762 2014-07-07 Mark Wielaard <mjw@redhat.com>
27764 * dwarf2out.c (decl_quals): New function.
27765 (modified_type_die): Take one cv_quals argument instead of two,
27766 one for const and one for volatile.
27767 (add_type_attribute): Likewise.
27768 (generic_parameter_die): Call add_type_attribute with one modifier
27770 (base_type_for_mode): Likewise.
27771 (add_bounds_info): Likewise.
27772 (add_subscript_info): Likewise.
27773 (gen_array_type_die): Likewise.
27774 (gen_descr_array_type_die): Likewise.
27775 (gen_entry_point_die): Likewise.
27776 (gen_enumeration_type_die): Likewise.
27777 (gen_formal_parameter_die): Likewise.
27778 (gen_subprogram_die): Likewise.
27779 (gen_variable_die): Likewise.
27780 (gen_const_die): Likewise.
27781 (gen_field_die): Likewise.
27782 (gen_pointer_type_die): Likewise.
27783 (gen_reference_type_die): Likewise.
27784 (gen_ptr_to_mbr_type_die): Likewise.
27785 (gen_inheritance_die): Likewise.
27786 (gen_subroutine_type_die): Likewise.
27787 (gen_typedef_die): Likewise.
27788 (force_type_die): Likewise.
27790 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27792 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
27794 * configure: Regenerate.
27796 2014-08-19 Richard Biener <rguenther@suse.de>
27798 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
27799 DECL_EXTERNALs in BLOCKs as non-references.
27800 * tree-streamer-out.c (streamer_write_chain): Likewise.
27802 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
27803 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
27804 Anna Tikhonova <anna.tikhonova@intel.com>
27805 Ilya Tocar <ilya.tocar@intel.com>
27806 Andrey Turetskiy <andrey.turetskiy@intel.com>
27807 Ilya Verbin <ilya.verbin@intel.com>
27808 Kirill Yukhin <kirill.yukhin@intel.com>
27809 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
27811 * config/i386/sse.md
27812 (define_mode_iterator VI48_AVX512F): Delete.
27813 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
27814 (define_mode_iterator VI2_AVX512VL): Ditto.
27815 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
27818 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
27820 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
27821 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
27822 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
27823 with VI48_AVX512F_AVX512VL): New.
27824 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
27825 with VI2_AVX512VL): Ditto.
27827 2014-08-19 Marek Polacek <polacek@redhat.com>
27829 * doc/invoke.texi: Document -Wc99-c11-compat.
27831 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27833 * rtl.h (PREV_INSN): Split macro in two: the existing one,
27834 for rvalues, and...
27835 (SET_PREV_INSN): New macro, for use as an lvalue.
27836 (NEXT_INSN, SET_NEXT_INSN): Likewise.
27838 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
27839 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
27840 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
27841 (fixup_abnormal_edges): Likewise.
27842 (unlink_insn_chain): Likewise.
27843 (fixup_reorder_chain): Likewise.
27844 (cfg_layout_delete_block): Likewise.
27845 (cfg_layout_merge_blocks): Likewise.
27846 * combine.c (update_cfg_for_uncondjump): Likewise.
27847 * emit-rtl.c (link_insn_into_chain): Likewise.
27848 (remove_insn): Likewise.
27849 (delete_insns_since): Likewise.
27850 (reorder_insns_nobb): Likewise.
27851 (emit_insn_after_1): Likewise.
27852 * final.c (rest_of_clean_state): Likewise.
27853 (final_scan_insn): Likewise.
27854 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
27855 * haifa-sched.c (concat_note_lists): Likewise.
27856 (remove_notes): Likewise.
27857 (restore_other_notes): Likewise.
27858 (move_insn): Likewise.
27859 (unlink_bb_notes): Likewise.
27860 (restore_bb_notes): Likewise.
27861 * jump.c (delete_for_peephole): Likewise.
27862 * optabs.c (emit_libcall_block_1): Likewise.
27863 * reorg.c (emit_delay_sequence): Likewise.
27864 (fill_simple_delay_slots): Likewise.
27865 * sel-sched-ir.c (sel_move_insn): Likewise.
27866 (sel_remove_insn): Likewise.
27867 (get_bb_note_from_pool): Likewise.
27868 * sel-sched.c (move_nop_to_previous_block): Likewise.
27870 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
27871 * config/c6x/c6x.c (gen_one_bundle): Likewise.
27872 (c6x_gen_bundles): Likewise.
27873 (hwloop_optimize): Likewise.
27874 * config/frv/frv.c (frv_function_prologue): Likewise.
27875 (frv_register_nop): Likewise.
27876 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
27877 (ia64_reorg): Likewise.
27878 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
27879 (mep_make_bundle): Likewise.
27880 (mep_bundle_insns): Likewise.
27881 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
27882 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
27883 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
27885 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27887 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
27888 return type from rtx to rtx_insn *.
27889 (BB_END): Likewise.
27890 (BB_HEADER): Likewise.
27891 (BB_FOOTER): Likewise.
27892 (SET_BB_HEAD): Convert to a function.
27893 (SET_BB_END): Likewise.
27894 (SET_BB_HEADER): Likewise.
27895 (SET_BB_FOOTER): Likewise.
27897 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
27898 Strengthen the return type from rtx to rtx_insn *. For now, this
27899 is done by adding a checked cast, but this will eventually
27900 become a field lookup.
27901 (BB_END): Likewise.
27902 (BB_HEADER): Likewise.
27903 (BB_FOOTER): Likewise.
27904 (SET_BB_HEAD): New function, from macro of same name. This is
27905 intended for use as an lvalue, and so returns an rtx& to allow
27906 in-place modification.
27907 (SET_BB_END): Likewise.
27908 (SET_BB_HEADER): Likewise.
27909 (SET_BB_FOOTER): Likewise.
27911 2014-08-18 David Malcolm <dmalcolm@redhat.com>
27913 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
27914 for rvalues, and...
27915 (SET_BB_HEAD): New macro, for use as a lvalue.
27916 (BB_END, SET_BB_END): Likewise.
27917 (BB_HEADER, SET_BB_HEADER): Likewise.
27918 (BB_FOOTER, SET_BB_FOOTER): Likewise.
27920 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
27921 of BB_* macros into SET_BB_* macros.
27922 (fix_crossing_unconditional_branches): Likewise.
27923 * caller-save.c (save_call_clobbered_regs): Likewise.
27924 (insert_one_insn): Likewise.
27925 * cfgbuild.c (find_bb_boundaries): Likewise.
27926 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
27927 (outgoing_edges_match): Likewise.
27928 (try_optimize_cfg): Likewise.
27929 * cfgexpand.c (expand_gimple_cond): Likewise.
27930 (expand_gimple_tailcall): Likewise.
27931 (expand_gimple_basic_block): Likewise.
27932 (construct_exit_block): Likewise.
27933 * cfgrtl.c (delete_insn): Likewise.
27934 (create_basic_block_structure): Likewise.
27935 (rtl_delete_block): Likewise.
27936 (rtl_split_block): Likewise.
27937 (emit_nop_for_unique_locus_between): Likewise.
27938 (rtl_merge_blocks): Likewise.
27939 (block_label): Likewise.
27940 (try_redirect_by_replacing_jump): Likewise.
27941 (emit_barrier_after_bb): Likewise.
27942 (fixup_abnormal_edges): Likewise.
27943 (record_effective_endpoints): Likewise.
27944 (relink_block_chain): Likewise.
27945 (fixup_reorder_chain): Likewise.
27946 (fixup_fallthru_exit_predecessor): Likewise.
27947 (cfg_layout_duplicate_bb): Likewise.
27948 (cfg_layout_split_block): Likewise.
27949 (cfg_layout_delete_block): Likewise.
27950 (cfg_layout_merge_blocks): Likewise.
27951 * combine.c (update_cfg_for_uncondjump): Likewise.
27952 * emit-rtl.c (add_insn_after): Likewise.
27953 (remove_insn): Likewise.
27954 (reorder_insns): Likewise.
27955 (emit_insn_after_1): Likewise.
27956 * haifa-sched.c (get_ebb_head_tail): Likewise.
27957 (restore_other_notes): Likewise.
27958 (move_insn): Likewise.
27959 (sched_extend_bb): Likewise.
27960 (fix_jump_move): Likewise.
27961 * ifcvt.c (noce_process_if_block): Likewise.
27962 (dead_or_predicable): Likewise.
27963 * ira.c (update_equiv_regs): Likewise.
27964 * reg-stack.c (change_stack): Likewise.
27965 * sel-sched-ir.c (sel_move_insn): Likewise.
27966 * sel-sched.c (move_nop_to_previous_block): Likewise.
27968 * config/c6x/c6x.c (hwloop_optimize): Likewise.
27969 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
27971 2014-08-18 David Malcolm <dmalcolm@redhat.com>
27973 * rtl.h (for_each_rtx_in_insn): New function.
27974 * rtlanal.c (for_each_rtx_in_insn): Likewise.
27976 2014-08-18 David Malcolm <dmalcolm@redhat.com>
27978 * coretypes.h (class rtx_insn): Add forward declaration.
27980 * rtl.h: Include is-a.h.
27981 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
27982 workaround to ensure gengtype knows inheritance is occurring,
27983 whilst continuing to use the pre-existing special-casing for
27985 (class rtx_insn): New subclass of rtx_def, adding the
27986 invariant that we're dealing with something we can sanely use
27987 INSN_UID, NEXT_INSN, PREV_INSN on.
27988 (is_a_helper <rtx_insn *>::test): New.
27989 (is_a_helper <const rtx_insn *>::test): New.
27991 2014-08-18 David Malcolm <dmalcolm@redhat.com>
27993 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
27995 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
27997 * ipa-visibility.c (update_visibility_by_resolution_info): Do no
27998 turn UNDEF comdats as extern.
28000 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
28002 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
28003 to BUILT_IN_UNREACHABLE.
28005 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
28008 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
28010 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
28011 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
28012 (ffs<mode>2): Do not expand with tzcnt for
28013 TARGET_AVOID_FALSE_DEP_FOR_BMI.
28014 (ffssi2_no_cmove): Ditto.
28015 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
28016 (ctz<mode>2): New expander.
28017 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
28018 (*ctz<mode>2_falsedep): New insn.
28019 (*ctz<mode>2): Rename from ctz<mode>2.
28020 (clz<mode>2_lzcnt): New expander.
28021 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
28022 (*clz<mode>2_lzcnt_falsedep): New insn.
28023 (*clz<mode>2): Rename from ctz<mode>2.
28024 (popcount<mode>2): New expander.
28025 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
28026 (*popcount<mode>2_falsedep): New insn.
28027 (*popcount<mode>2): Rename from ctz<mode>2.
28028 (*popcount<mode>2_cmp): Remove.
28029 (*popcountsi2_cmp_zext): Ditto.
28031 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
28033 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
28034 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
28035 * config/microblaze/microblaze.h
28036 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
28038 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
28041 * configure.ac: Set install_gold_as_default to no for
28043 * configure: Regenerated.
28045 2014-08-18 Roman Gareev <gareevroman@gmail.com>
28047 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
28048 * config.in: Add undef of HAVE_isl.
28049 * configure: Regenerate.
28050 * configure.ac: Add definition of HAVE_isl.
28051 * graphite-blocking.c: Add checking of HAVE_isl.
28052 * graphite-dependences.c: Likewise.
28053 * graphite-interchange.c: Likewise.
28054 * graphite-isl-ast-to-gimple.c: Likewise.
28055 * graphite-optimize-isl.c: Likewise.
28056 * graphite-poly.c: Likewise.
28057 * graphite-scop-detection.c: Likewise.
28058 * graphite-sese-to-poly.c: Likewise.
28059 * graphite.c: Likewise.
28060 * toplev.c: Replace the checking of HAVE_cloog with the checking
28063 2014-08-18 Richard Biener <rguenther@suse.de>
28065 PR tree-optimization/62090
28066 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
28067 (fold_builtin_3): Do not fold snprintf.
28068 (fold_builtin_4): Likewise.
28069 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
28070 moved from builtins.c.
28071 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
28072 (gimple_fold_builtin): Do not fold sprintf here.
28074 2014-08-18 Richard Biener <rguenther@suse.de>
28076 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
28078 (maybe_canonicalize_mem_ref_addr): ... this function.
28079 (fold_stmt_1): Apply it here before all simplification.
28081 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
28084 * cgraph.h (cgraph_node::create_indirect_edge): Add
28085 compute_indirect_info param.
28086 * cgraph.c (cgraph_node::create_indirect_edge): Compute
28087 indirect_info only when it is required.
28088 * cgraphclones.c (cgraph_clone_edge): Do not recompute
28089 indirect_info fore cloned indirect edge.
28091 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28092 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28093 Anna Tikhonova <anna.tikhonova@intel.com>
28094 Ilya Tocar <ilya.tocar@intel.com>
28095 Andrey Turetskiy <andrey.turetskiy@intel.com>
28096 Ilya Verbin <ilya.verbin@intel.com>
28097 Kirill Yukhin <kirill.yukhin@intel.com>
28098 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28100 * config/i386/sse.md
28101 (define_mode_iterator VI8_AVX2_AVX512BW): New.
28102 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
28104 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28105 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28106 Anna Tikhonova <anna.tikhonova@intel.com>
28107 Ilya Tocar <ilya.tocar@intel.com>
28108 Andrey Turetskiy <andrey.turetskiy@intel.com>
28109 Ilya Verbin <ilya.verbin@intel.com>
28110 Kirill Yukhin <kirill.yukhin@intel.com>
28111 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28113 * config/i386/sse.md
28114 (define_mode_iterator VF1_AVX512VL): New.
28115 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
28116 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
28119 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28120 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28121 Anna Tikhonova <anna.tikhonova@intel.com>
28122 Ilya Tocar <ilya.tocar@intel.com>
28123 Andrey Turetskiy <andrey.turetskiy@intel.com>
28124 Ilya Verbin <ilya.verbin@intel.com>
28125 Kirill Yukhin <kirill.yukhin@intel.com>
28126 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28128 * config/i386/i386.c: Rename ufloatv8siv8df_mask to
28129 ufloatv8siv8df2_mask.
28130 * config/i386/i386.md
28131 (define_code_iterator any_float): New.
28132 (define_code_attr floatsuffix): New.
28133 * config/i386/sse.md
28134 (define_mode_iterator VF1_128_256VL): New.
28135 (define_mode_iterator VF2_512_256VL): New.
28136 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove
28137 unnecessary TARGET check.
28138 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
28139 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
28141 (define_mode_attr qq2pssuff): New.
28142 (define_mode_attr sselongvecmode): New.
28143 (define_mode_attr sselongvecmodelower): New.
28144 (define_mode_attr sseintvecmode3): New.
28145 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
28147 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
28148 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
28149 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
28150 (define_insn "ufloatv2siv2df2<mask_name>"): New.
28152 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28153 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28154 Anna Tikhonova <anna.tikhonova@intel.com>
28155 Ilya Tocar <ilya.tocar@intel.com>
28156 Andrey Turetskiy <andrey.turetskiy@intel.com>
28157 Ilya Verbin <ilya.verbin@intel.com>
28158 Kirill Yukhin <kirill.yukhin@intel.com>
28159 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28161 * config/i386/sse.md
28162 (define_mode_iterator VF2_AVX512VL): New.
28163 (define_mode_attr sseintvecmode2): New.
28164 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
28165 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
28166 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
28168 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
28170 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
28172 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
28175 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28176 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28177 Anna Tikhonova <anna.tikhonova@intel.com>
28178 Ilya Tocar <ilya.tocar@intel.com>
28179 Andrey Turetskiy <andrey.turetskiy@intel.com>
28180 Ilya Verbin <ilya.verbin@intel.com>
28181 Kirill Yukhin <kirill.yukhin@intel.com>
28182 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28184 * config/i386/i386.md
28185 (define_insn "*movoi_internal_avx"): Add evex version.
28186 (define_insn "*movti_internal"): Ditto.
28188 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28189 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28190 Anna Tikhonova <anna.tikhonova@intel.com>
28191 Ilya Tocar <ilya.tocar@intel.com>
28192 Andrey Turetskiy <andrey.turetskiy@intel.com>
28193 Ilya Verbin <ilya.verbin@intel.com>
28194 Kirill Yukhin <kirill.yukhin@intel.com>
28195 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28197 * config/i386/i386.md
28198 (define_attr "isa"): Add avx512dq, noavx512dq.
28199 (define_attr "enabled"): Ditto.
28200 * config/i386/sse.md
28201 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
28203 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28204 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28205 Anna Tikhonova <anna.tikhonova@intel.com>
28206 Ilya Tocar <ilya.tocar@intel.com>
28207 Andrey Turetskiy <andrey.turetskiy@intel.com>
28208 Ilya Verbin <ilya.verbin@intel.com>
28209 Kirill Yukhin <kirill.yukhin@intel.com>
28210 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28212 * config/i386/i386.c
28213 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
28214 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
28215 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
28216 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
28217 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
28218 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
28219 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
28220 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
28221 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
28222 * config/i386/sse.md
28223 (define_mode_iterator VMOVE): Allow V4TI mode.
28224 (define_mode_iterator V_AVX512VL): New.
28225 (define_mode_iterator V): New handling for AVX512VL.
28226 (define_insn "avx512f_load<mode>_mask"): Delete.
28227 (define_insn "<avx512>_load<mode>_mask"): New.
28228 (define_insn "avx512f_store<mode>_mask"): Delete.
28229 (define_insn "<avx512>_store<mode>_mask"): New.
28232 2014-08-18 Yury Gribov <y.gribov@samsung.com>
28235 * asan.c (instrument_derefs): Fix bitfield check.
28237 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28239 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
28240 * config/rs6000/htm.md (ttest): Remove clobber.
28241 * config/rs6000/predicates.md (any_mask_operand): New predicate.
28242 (and_operand): Reformat.
28243 (and_2rld_operand): New predicate.
28244 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
28246 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
28247 parameter. Handle AND directly.
28248 (rs6000_split_logical_di): Remove last parameter.
28249 (rs6000_split_logical): Remove last parameter. Remove obsolete
28251 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
28252 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
28253 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
28254 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
28255 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
28256 and 5 anonymous splitters): Delete.
28257 (and<mode>3): New expander.
28258 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
28259 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
28260 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
28261 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
28262 (floatdisf2_internal1): Remove clobbers.
28263 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
28264 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
28265 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
28266 (and<mode>3 for BOOL_128): Remove clobber.
28267 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
28268 rs6000_split_logical.
28269 (*bool<mode>3_internal for BOOL_128): Adjust call of
28270 rs6000_split_logical.
28271 (*boolc<mode>3_internal1 for BOOL_128,
28272 *boolc<mode>3_internal2 for BOOL_128,
28273 *boolcc<mode>3_internal1 for BOOL_128,
28274 *boolcc<mode>3_internal2 for BOOL_128,
28275 *eqv<mode>3_internal1 for BOOL_128,
28276 *eqv<mode>3_internal2 for BOOL_128,
28277 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
28278 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
28280 (*vec_reload_and_reg_<mptrsize>): Delete.
28282 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28284 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
28285 and split, *boolccsi3_internal3 and split): Delete.
28286 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
28287 *boolccdi3_internal3 and split): Delete.
28288 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
28289 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
28291 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28293 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
28294 and split, *boolcsi3_internal3 and split): Delete.
28295 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
28296 *boolcdi3_internal3 and split): Delete.
28297 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
28299 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28301 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
28302 <'u'>: Also support printing the low-order 16 bits.
28303 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
28304 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
28305 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
28306 *booldi3_internal3 and split): Delete.
28307 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
28308 *bool<mode>3_dot2): New.
28309 (two anonymous define_splits for non_logical_cint_operand): Merge.
28311 2014-08-17 Marek Polacek <polacek@redhat.com>
28312 Manuel López-Ibáñez <manu@gcc.gnu.org>
28315 * diagnostic.c (adjust_line): Add gcc_checking_assert.
28316 (diagnostic_show_locus): Don't print caret diagnostic
28317 if a column is larger than the line_width.
28319 2014-08-17 Roman Gareev <gareevroman@gmail.com>
28321 * common.opt: Make the ISL AST generator to be the main code generator
28324 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
28326 * wide-int.h (generic_wide_int): Declare as class instead of struct.
28328 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
28331 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
28333 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
28334 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
28335 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
28337 * config/pa/pa.md (begin_brtab): Delete insn.
28338 (end_brtab): Likewise.
28340 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
28342 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
28344 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
28346 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
28347 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
28348 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
28349 (get_dynamic_type): Remove.
28350 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
28351 (clear_speculation): Bring to ipa-deivrt.h
28352 (get_class_context): Rename to ...
28353 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
28354 (contains_type_p): Update.
28355 (get_dynamic_type): Rename to ...
28356 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
28357 (possible_polymorphic_call_targets): UPdate.
28358 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
28359 * ipa-prop.c (ipa_analyze_call_uses): Update.
28361 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
28363 * doc/invoke.texi (SH options): Document missing processor variant
28364 options. Remove references to Hitachi. Undocument deprecated mspace
28367 2014-08-15 Jason Merrill <jason@redhat.com>
28369 * tree.c (type_hash_canon): Uncomment assert.
28371 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28373 * input.h (in_system_header_at): Add comment.
28375 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28378 * diagnostic.c (build_message_string): Make it extern.
28379 * diagnostic.h (build_message_string): Make it extern.
28381 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
28383 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
28384 load/store from/to non-floating class pseudo.
28386 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28388 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
28390 2014-08-15 Richard Biener <rguenther@suse.de>
28392 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
28393 (get_constraint_for_ssa_var): Remove dead code.
28394 (get_constraint_for_1): Adjust.
28395 (find_what_var_points_to): Likewise.
28396 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
28398 2014-08-15 Ilya Tocar <tocarip@gmail.com>
28401 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
28402 (_mm512_mask_cmpge_epu32_mask): Ditto.
28403 (_mm512_cmpge_epu32_mask): Ditto.
28404 (_mm512_mask_cmpge_epi64_mask): Ditto.
28405 (_mm512_cmpge_epi64_mask): Ditto.
28406 (_mm512_mask_cmpge_epu64_mask): Ditto.
28407 (_mm512_cmpge_epu64_mask): Ditto.
28408 (_mm512_mask_cmple_epi32_mask): Ditto.
28409 (_mm512_cmple_epi32_mask): Ditto.
28410 (_mm512_mask_cmple_epu32_mask): Ditto.
28411 (_mm512_cmple_epu32_mask): Ditto.
28412 (_mm512_mask_cmple_epi64_mask): Ditto.
28413 (_mm512_cmple_epi64_mask): Ditto.
28414 (_mm512_mask_cmple_epu64_mask): Ditto.
28415 (_mm512_cmple_epu64_mask): Ditto.
28416 (_mm512_mask_cmplt_epi32_mask): Ditto.
28417 (_mm512_cmplt_epi32_mask): Ditto.
28418 (_mm512_mask_cmplt_epu32_mask): Ditto.
28419 (_mm512_cmplt_epu32_mask): Ditto.
28420 (_mm512_mask_cmplt_epi64_mask): Ditto.
28421 (_mm512_cmplt_epi64_mask): Ditto.
28422 (_mm512_mask_cmplt_epu64_mask): Ditto.
28423 (_mm512_cmplt_epu64_mask): Ditto.
28424 (_mm512_mask_cmpneq_epi32_mask): Ditto.
28425 (_mm512_mask_cmpneq_epu32_mask): Ditto.
28426 (_mm512_cmpneq_epu32_mask): Ditto.
28427 (_mm512_mask_cmpneq_epi64_mask): Ditto.
28428 (_mm512_cmpneq_epi64_mask): Ditto.
28429 (_mm512_mask_cmpneq_epu64_mask): Ditto.
28430 (_mm512_cmpneq_epu64_mask): Ditto.
28431 (_mm512_castpd_ps): Ditto.
28432 (_mm512_castpd_si512): Ditto.
28433 (_mm512_castps_pd): Ditto.
28434 (_mm512_castps_si512): Ditto.
28435 (_mm512_castsi512_ps): Ditto.
28436 (_mm512_castsi512_pd): Ditto.
28437 (_mm512_castpd512_pd128): Ditto.
28438 (_mm512_castps512_ps128): Ditto.
28439 (_mm512_castsi512_si128): Ditto.
28440 (_mm512_castpd512_pd256): Ditto.
28441 (_mm512_castps512_ps256): Ditto.
28442 (_mm512_castsi512_si256): Ditto.
28443 (_mm512_castpd128_pd512): Ditto.
28444 (_mm512_castps128_ps512): Ditto.
28445 (_mm512_castsi128_si512): Ditto.
28446 (_mm512_castpd256_pd512): Ditto.
28447 (_mm512_castps256_ps512): Ditto.
28448 (_mm512_castsi256_si512): Ditto.
28449 (_mm512_cmpeq_epu32_mask): Ditto.
28450 (_mm512_mask_cmpeq_epu32_mask): Ditto.
28451 (_mm512_mask_cmpeq_epu64_mask): Ditto.
28452 (_mm512_cmpeq_epu64_mask): Ditto.
28453 (_mm512_cmpgt_epu32_mask): Ditto.
28454 (_mm512_mask_cmpgt_epu32_mask): Ditto.
28455 (_mm512_mask_cmpgt_epu64_mask): Ditto.
28456 (_mm512_cmpgt_epu64_mask): Ditto.
28457 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
28458 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
28459 * config/i386/i386.c (enum ix86_builtins): Add
28460 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
28461 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
28462 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
28463 (bdesc_args): Add __builtin_ia32_si512_256si,
28464 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
28465 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
28466 __builtin_ia32_pd512_pd.
28467 (ix86_expand_args_builtin): Handle new FTYPEs.
28468 * config/i386/sse.md (castmode): Add 512-bit modes.
28469 (AVX512MODE2P): New.
28470 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
28471 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
28473 2014-08-15 Richard Biener <rguenther@suse.de>
28475 * fold-const.c (tree_swap_operands_p): Put all constants
28476 last, also strip sign-changing NOPs when considering further
28477 canonicalization. Canonicalize also when optimizing for size.
28479 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28481 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
28482 one_match > zero_match case to just before simple_sequence.
28484 2014-08-15 Richard Biener <rguenther@suse.de>
28486 * data-streamer.h (streamer_string_index, string_for_index):
28488 * data-streamer-out.c (streamer_string_index): Make static.
28489 * data-streamer-in.c (string_for_index): Likewise.
28490 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
28491 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
28493 2014-08-15 Richard Biener <rguenther@suse.de>
28495 PR tree-optimization/62031
28496 * tree-data-ref.c (dr_analyze_indices): Do not set
28497 DR_UNCONSTRAINED_BASE.
28498 (dr_may_alias_p): All indirect accesses have to go the
28499 formerly DR_UNCONSTRAINED_BASE path.
28500 * tree-data-ref.h (struct indices): Remove
28501 unconstrained_base member.
28502 (DR_UNCONSTRAINED_BASE): Remove.
28504 2014-08-15 Jakub Jelinek <jakub@redhat.com>
28506 PR middle-end/62092
28507 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
28508 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
28509 in OMP_CLAUSE_MAP in some outer target region.
28511 2014-08-15 Bin Cheng <bin.cheng@arm.com>
28513 * tree-ssa-loop-ivopts.c (ivopts_data): New field
28514 name_expansion_cache.
28515 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
28516 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
28517 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
28518 (difference_cannot_overflow_p): New parameter. Use affine
28519 expansion for equality check.
28520 (iv_elimination_compare_lt): Pass new argument.
28522 2014-08-14 DJ Delorie <dj@redhat.com>
28524 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
28525 variables to the accumulator.
28527 * config/rl78/predicates.md (rl78_near_mem_operand): New.
28528 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
28529 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
28530 with far-far moves.
28532 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
28533 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
28534 (umulqihi3_virt): Likewise.
28535 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
28536 (umulqihi3_real): Likewise.
28538 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
28540 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
28542 PR tree-optimization/62091
28543 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
28544 function_entry_reached.
28545 (walk_aliased_vdefs): Clear it here.
28546 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
28548 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
28550 * ipa-utils.h (compare_virtual_tables): Declare.
28551 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
28553 2014-08-14 Marek Polacek <polacek@redhat.com>
28556 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
28557 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
28559 2014-08-14 Tom de Vries <tom@codesourcery.com>
28561 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
28563 2014-08-14 Tom de Vries <tom@codesourcery.com>
28565 PR rtl-optimization/62004
28566 PR rtl-optimization/62030
28567 * ifcvt.c (rtx_interchangeable_p): New function.
28568 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
28569 * emit-rtl.h (mem_attrs_eq_p): Declare.
28571 2014-08-14 Roman Gareev <gareevroman@gmail.com>
28573 * graphite-scop-detection.c:
28574 Add inclusion of cp-tree.h.
28575 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
28576 in case they are pointers to object types
28578 2014-08-14 Richard Biener <rguenther@suse.de>
28580 * BASE-VER: Change to 5.0.0
28582 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28583 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28584 Anna Tikhonova <anna.tikhonova@intel.com>
28585 Ilya Tocar <ilya.tocar@intel.com>
28586 Andrey Turetskiy <andrey.turetskiy@intel.com>
28587 Ilya Verbin <ilya.verbin@intel.com>
28588 Kirill Yukhin <kirill.yukhin@intel.com>
28589 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28591 * config/i386/sse.md (define_mode_attr avx512): New.
28592 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
28594 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
28595 (define_mode_attr ssse3_avx2): Ditto.
28596 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
28597 (define_mode_attr avx2_avx512bw): New.
28598 (define_mode_attr ssedoublemodelower): New.
28599 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
28600 V32HI, V64QI modes.
28601 (define_mode_attr ssebytemode): Allow V8DI modes.
28602 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
28603 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
28604 (define_mode_attr ssePSmode2): New.
28605 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
28606 V16HI, V32HI modes.
28607 (define_mode_attr dbpsadbwmode): New.
28608 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
28609 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
28610 (vi8_sse4_1_avx2_avx512): New.
28611 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
28613 (define_mode_attr blendbits): Move before its immediate use.
28615 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28616 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28617 Anna Tikhonova <anna.tikhonova@intel.com>
28618 Ilya Tocar <ilya.tocar@intel.com>
28619 Andrey Turetskiy <andrey.turetskiy@intel.com>
28620 Ilya Verbin <ilya.verbin@intel.com>
28621 Kirill Yukhin <kirill.yukhin@intel.com>
28622 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28624 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
28625 * config/i386/subst.md
28626 (define_mode_iterator SUBST_V): Update.
28627 (define_mode_iterator SUBST_A): Ditto.
28628 (define_subst_attr "mask_operand7"): New.
28629 (define_subst_attr "mask_operand10"): New.
28630 (define_subst_attr "mask_operand_arg34") : New.
28631 (define_subst_attr "mask_expand_op3"): New.
28632 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
28633 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
28634 (define_subst_attr "mask_avx512vl_condition"): New.
28635 (define_subst_attr "round_mask_operand4"): Ditto.
28636 (define_subst_attr "round_mask_scalar_op3"): Delete.
28637 (define_subst_attr "round_mask_op4"): New.
28638 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
28640 (define_subst_attr "round_modev8sf_condition"): New.
28641 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
28643 (define_subst_attr "round_saeonly_mask_operand4"): New.
28644 (define_subst_attr "round_saeonly_mask_op4"): New.
28645 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
28646 V8DImode, V16SImode.
28647 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
28648 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
28649 (define_subst_attr "mask_expand4_args"): New.
28650 (define_subst "mask_expand4"): New.
28652 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28653 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28654 Anna Tikhonova <anna.tikhonova@intel.com>
28655 Ilya Tocar <ilya.tocar@intel.com>
28656 Andrey Turetskiy <andrey.turetskiy@intel.com>
28657 Ilya Verbin <ilya.verbin@intel.com>
28658 Kirill Yukhin <kirill.yukhin@intel.com>
28659 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28661 * config/i386/i386.md
28662 (define_attr "isa"): Add avx512bw,noavx512bw.
28663 (define_attr "enabled"): Ditto.
28664 (define_split): Add 32/64-bit mask logic.
28665 (define_insn "*k<logic>qi"): New.
28666 (define_insn "*k<logic>hi"): New.
28667 (define_insn "*anddi_1"): Add mask version.
28668 (define_insn "*andsi_1"): Ditto.
28669 (define_insn "*<code><mode>_1"): Ditto.
28670 (define_insn "*<code>hi_1"): Ditto.
28671 (define_insn "kxnor<mode>"): New.
28672 (define_insn "kunpcksi"): New.
28673 (define_insn "kunpckdi"): New.
28674 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
28675 (define_insn "*one_cmplhi2_1"): Ditto.
28677 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28678 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28679 Anna Tikhonova <anna.tikhonova@intel.com>
28680 Ilya Tocar <ilya.tocar@intel.com>
28681 Andrey Turetskiy <andrey.turetskiy@intel.com>
28682 Ilya Verbin <ilya.verbin@intel.com>
28683 Kirill Yukhin <kirill.yukhin@intel.com>
28684 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28686 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
28689 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28690 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28691 Anna Tikhonova <anna.tikhonova@intel.com>
28692 Ilya Tocar <ilya.tocar@intel.com>
28693 Andrey Turetskiy <andrey.turetskiy@intel.com>
28694 Ilya Verbin <ilya.verbin@intel.com>
28695 Kirill Yukhin <kirill.yukhin@intel.com>
28696 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28698 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
28700 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
28701 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
28702 xmm/ymm16+ when availble.
28703 * config/i386/i386.h
28704 (HARD_REGNO_NREGS): Add mask regs.
28705 (VALID_AVX512F_REG_MODE): Ditto.
28706 (VALID_AVX512F_REG_MODE) : Define.
28707 (VALID_MASK_AVX512BW_MODE): Ditto.
28708 (reg_class) (MASK_REG_P(X)): Define.
28709 * config/i386/i386.md: Do not split long moves with mask register,
28710 use kmovb if avx512bw is availible.
28711 (movdi_internal): Handle mask registers.
28713 2014-08-14 Richard Biener <rguenther@suse.de>
28715 PR tree-optimization/62081
28716 * tree-ssa-loop.c (pass_fix_loops): New pass.
28717 (pass_tree_loop::gate): Do not fixup loops here.
28718 * tree-pass.h (make_pass_fix_loops): Declare.
28719 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
28721 2014-08-14 Richard Biener <rguenther@suse.de>
28723 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
28724 (type_hash_canon): ... this and avoid 2nd lookup for the add.
28726 2014-08-14 Richard Biener <rguenther@suse.de>
28728 PR tree-optimization/62090
28729 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
28730 (fold_builtin_2): Do not fold sprintf.
28731 (fold_builtin_3): Likewise.
28732 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
28733 moved from builtins.c.
28734 (gimple_fold_builtin): Fold sprintf.
28736 2014-08-14 Richard Biener <rguenther@suse.de>
28738 PR rtl-optimization/62079
28739 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
28742 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
28744 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
28745 current_function_decl.
28747 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
28749 * cgraph.c (cgraph_node::function_symbol): Fix wrong
28750 cgraph_function_node to cgraph_node::function_symbol
28753 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
28755 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
28756 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
28758 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
28760 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
28763 2014-08-13 Roman Gareev <gareevroman@gmail.com>
28765 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
28768 2014-08-12 Jakub Jelinek <jakub@redhat.com>
28771 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
28772 any registers that are used in mem_insn.
28774 2014-08-12 Steve Ellcey <sellcey@mips.com>
28776 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
28778 2014-08-12 Steve Ellcey <sellcey@mips.com>
28780 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
28781 (MULTILIB_DIRNAMES): Ditto.
28782 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
28783 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
28784 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
28785 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
28786 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
28787 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
28789 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28792 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
28793 of __ARM_SIZEOF_WCHAR_T.
28795 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28798 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
28799 Remove unnecessary attributes.
28801 2014-08-12 Yury Gribov <y.gribov@samsung.com>
28803 * internal-fn.c (init_internal_fns): Fix off-by-one.
28805 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
28806 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28807 Anna Tikhonova <anna.tikhonova@intel.com>
28808 Ilya Tocar <ilya.tocar@intel.com>
28809 Andrey Turetskiy <andrey.turetskiy@intel.com>
28810 Ilya Verbin <ilya.verbin@intel.com>
28811 Kirill Yukhin <kirill.yukhin@intel.com>
28812 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28814 * config/i386/i386.c (standard_sse_constant_opcode): Use
28815 vpxord/vpternlog if avx512 is availible.
28817 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
28819 PR middle-end/62103
28820 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
28821 bitfields, that is when size doesn't match the size of type or the
28822 size of the constructor.
28824 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28826 * config/rs6000/constraints.md (wh constraint): New constraint,
28827 for FP registers if direct move is available.
28828 (wi constraint): New constraint, for VSX/FP registers that can
28829 handle 64-bit integers.
28830 (wj constraint): New constraint for VSX/FP registers that can
28831 handle 64-bit integers for direct moves.
28832 (wk constraint): New constraint for VSX/FP registers that can
28833 handle 64-bit doubles for direct moves.
28834 (wy constraint): Make documentation match implementation.
28836 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
28837 scalar_in_vmx_p field to simplify tests of whether SFmode or
28838 DFmode can go in the Altivec registers.
28839 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
28840 (rs6000_setup_reg_addr_masks): Likewise.
28841 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
28842 field, and wh/wi/wj/wk constraints.
28843 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
28844 the wh/wi/wj/wk constraints.
28845 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
28846 upper registers, prefer VSX registers unless the operation is a
28847 memory operation with REG+OFFSET addressing.
28849 * config/rs6000/vsx.md (VSr mode attribute): Add support for
28850 DImode. Change SFmode to use ww constraint instead of d to allow
28851 SF registers in the upper registers.
28854 (VSr5): Fix thinko in comment.
28855 (VSa): New mode attribute that is an alternative to wa, that
28856 returns the VSX register class that a mode can go in, but may not
28857 be the preferred register class.
28858 (VS_64dm): New mode attribute for appropriate register classes for
28859 referencing 64-bit elements of vectors for direct moves and normal
28861 (VS_64reg): Likewise.
28862 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
28863 register allocator to only registers the data type can handle.
28864 (vsx_le_perm_load_<mode>): Likewise.
28865 (vsx_le_perm_store_<mode>): Likewise.
28866 (vsx_xxpermdi2_le_<mode>): Likewise.
28867 (vsx_xxpermdi4_le_<mode>): Likewise.
28868 (vsx_lxvd2x2_le_<mode>): Likewise.
28869 (vsx_lxvd2x4_le_<mode>): Likewise.
28870 (vsx_stxvd2x2_le_<mode>): Likewise.
28871 (vsx_add<mode>3): Likewise.
28872 (vsx_sub<mode>3): Likewise.
28873 (vsx_mul<mode>3): Likewise.
28874 (vsx_div<mode>3): Likewise.
28875 (vsx_tdiv<mode>3_internal): Likewise.
28876 (vsx_fre<mode>2): Likewise.
28877 (vsx_neg<mode>2): Likewise.
28878 (vsx_abs<mode>2): Likewise.
28879 (vsx_nabs<mode>2): Likewise.
28880 (vsx_smax<mode>3): Likewise.
28881 (vsx_smin<mode>3): Likewise.
28882 (vsx_sqrt<mode>2): Likewise.
28883 (vsx_rsqrte<mode>2): Likewise.
28884 (vsx_tsqrt<mode>2_internal): Likewise.
28885 (vsx_fms<mode>4): Likewise.
28886 (vsx_nfma<mode>4): Likewise.
28887 (vsx_eq<mode>): Likewise.
28888 (vsx_gt<mode>): Likewise.
28889 (vsx_ge<mode>): Likewise.
28890 (vsx_eq<mode>_p): Likewise.
28891 (vsx_gt<mode>_p): Likewise.
28892 (vsx_ge<mode>_p): Likewise.
28893 (vsx_xxsel<mode>): Likewise.
28894 (vsx_xxsel<mode>_uns): Likewise.
28895 (vsx_copysign<mode>3): Likewise.
28896 (vsx_float<VSi><mode>2): Likewise.
28897 (vsx_floatuns<VSi><mode>2): Likewise.
28898 (vsx_fix_trunc<mode><VSi>2): Likewise.
28899 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
28900 (vsx_x<VSv>r<VSs>i): Likewise.
28901 (vsx_x<VSv>r<VSs>ic): Likewise.
28902 (vsx_btrunc<mode>2): Likewise.
28903 (vsx_b2trunc<mode>2): Likewise.
28904 (vsx_floor<mode>2): Likewise.
28905 (vsx_ceil<mode>2): Likewise.
28906 (vsx_<VS_spdp_insn>): Likewise.
28907 (vsx_xscvspdp): Likewise.
28908 (vsx_xvcvspuxds): Likewise.
28909 (vsx_float_fix_<mode>2): Likewise.
28910 (vsx_set_<mode>): Likewise.
28911 (vsx_extract_<mode>_internal1): Likewise.
28912 (vsx_extract_<mode>_internal2): Likewise.
28913 (vsx_extract_<mode>_load): Likewise.
28914 (vsx_extract_<mode>_store): Likewise.
28915 (vsx_splat_<mode>): Likewise.
28916 (vsx_xxspltw_<mode>): Likewise.
28917 (vsx_xxspltw_<mode>_direct): Likewise.
28918 (vsx_xxmrghw_<mode>): Likewise.
28919 (vsx_xxmrglw_<mode>): Likewise.
28920 (vsx_xxsldwi_<mode>): Likewise.
28921 (vsx_xscvdpspn): Tighten constraints to only use register classes
28923 (vsx_xscvspdpn): Likewise.
28924 (vsx_xscvdpspn_scalar): Likewise.
28926 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
28927 wj, and wk constraints.
28928 (GPR_REG_CLASS_P): New helper macro for register classes targeting
28929 general purpose registers.
28931 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
28933 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
28934 DImode instead of wm. Use wk constraint for direct move of DFmode
28936 (extendsidi2_lfiwax): Likewise.
28937 (lfiwax): Likewise.
28938 (lfiwzx): Likewise.
28939 (movdi_internal64): Likewise.
28941 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
28942 wk constraints. Make the wy constraint documentation match them
28945 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
28947 Replacement of isl_int by isl_val
28948 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
28949 (compute_bounds_for_param): use isl_val instead of isl_int
28950 (compute_bounds_for_loop): likewise
28951 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
28952 (build_linearized_memory_access): use isl_val instead of isl_int
28953 (pdr_stride_in_loop): likewise
28954 * graphite-optimize-isl.c:
28955 (getPrevectorMap): use isl_val instead of isl_int
28957 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
28958 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
28959 (extern the_isl_ctx): declare
28960 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
28961 (extract_affine_gmp): likewise
28963 (build_loop_iteration_domains): likewise
28964 (add_param_constraints): likewise
28966 2014-08-11 Richard Biener <rguenther@suse.de>
28968 PR tree-optimization/62075
28969 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
28970 handle uses in patterns.
28972 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
28973 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28974 Anna Tikhonova <anna.tikhonova@intel.com>
28975 Ilya Tocar <ilya.tocar@intel.com>
28976 Andrey Turetskiy <andrey.turetskiy@intel.com>
28977 Ilya Verbin <ilya.verbin@intel.com>
28978 Kirill Yukhin <kirill.yukhin@intel.com>
28979 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28981 * common/config/i386/i386-common.c
28982 (OPTION_MASK_ISA_AVX512VL_SET): Define.
28983 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
28984 (ix86_handle_option): Handle OPT_mavx512vl.
28985 * config/i386/cpuid.h (bit_AVX512VL): Define.
28986 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
28987 set -mavx512vl accordingly.
28988 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
28989 OPTION_MASK_ISA_AVX512VL.
28990 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
28991 (ix86_option_override_internal): Define PTA_AVX512VL, handle
28992 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
28993 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
28994 * config/i386/i386.h (TARGET_AVX512VL): Define.
28995 (TARGET_AVX512VL_P(x)): Ditto.
28996 * config/i386/i386.opt: Add mavx512vl.
28998 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
29000 PR tree-optimization/62073
29001 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
29004 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
29005 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
29006 Anna Tikhonova <anna.tikhonova@intel.com>
29007 Ilya Tocar <ilya.tocar@intel.com>
29008 Andrey Turetskiy <andrey.turetskiy@intel.com>
29009 Ilya Verbin <ilya.verbin@intel.com>
29010 Kirill Yukhin <kirill.yukhin@intel.com>
29011 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29013 * common/config/i386/i386-common.c
29014 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
29015 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
29016 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
29017 (ix86_handle_option): Handle OPT_mavx512bw.
29018 * config/i386/cpuid.h (bit_AVX512BW): Define.
29019 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
29020 set -mavx512bw accordingly.
29021 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29022 OPTION_MASK_ISA_AVX512BW.
29023 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
29024 (ix86_option_override_internal): Define PTA_AVX512BW, handle
29025 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
29026 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
29027 * config/i386/i386.h (TARGET_AVX512BW): Define.
29028 (TARGET_AVX512BW_P(x)): Ditto.
29029 * config/i386/i386.opt: Add mavx512bw.
29031 2014-08-11 Richard Biener <rguenther@suse.de>
29033 PR tree-optimization/62070
29034 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
29035 Remove SSA checking.
29037 2014-08-11 Yury Gribov <y.gribov@samsung.com>
29039 * asan.c (asan_check_flags): New enum.
29040 (build_check_stmt_with_calls): Removed function.
29041 (build_check_stmt): Split inlining logic to
29042 asan_expand_check_ifn.
29043 (instrument_derefs): Rename parameter.
29044 (instrument_mem_region_access): Rename parameter.
29045 (instrument_strlen_call): Likewise.
29046 (asan_expand_check_ifn): New function.
29047 (asan_instrument): Remove old code.
29048 (pass_sanopt::execute): Change handling of
29049 asan-instrumentation-with-call-threshold.
29050 (asan_clear_shadow): Fix formatting.
29051 (asan_function_start): Likewise.
29052 (asan_emit_stack_protection): Likewise.
29053 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
29054 Update description.
29055 * internal-fn.c (expand_ASAN_CHECK): New function.
29056 * internal-fn.def (ASAN_CHECK): New internal function.
29057 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
29058 Update description.
29059 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
29060 * tree.c: Small comment fix.
29062 2014-08-11 Yury Gribov <y.gribov@samsung.com>
29064 * gimple.c (gimple_call_fnspec): Support internal functions.
29065 (gimple_call_return_flags): Use const.
29066 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
29067 * internal-fn.def: Add fnspec information.
29068 * internal-fn.h (internal_fn_fnspec): New function.
29069 (init_internal_fns): Declare new function.
29070 * internal-fn.c (internal_fn_fnspec_array): New global variable.
29071 (init_internal_fns): New function.
29072 * tree-core.h: Update macro call.
29073 * tree.c (build_common_builtin_nodes): Initialize internal fns.
29075 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
29077 * lto-streamer.h (struct output_block::symbol): Change from
29078 struct symtab_node to plain symtab_node.
29079 (referenced_from_this_partition_p): Change first parameter
29080 from struct symtab_node to plain symtab_node.
29082 2014-08-10 Marek Polacek <polacek@redhat.com>
29085 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
29087 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
29089 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
29090 DECL correctly; do not give up on types in static storage.
29092 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
29094 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
29096 2014-08-09 Roman Gareev <gareevroman@gmail.com>
29098 * graphite-isl-ast-to-gimple.c:
29099 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
29101 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
29103 2014-08-08 Guozhi Wei <carrot@google.com>
29105 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
29107 2014-08-08 Cary Coutant <ccoutant@google.com>
29109 * dwarf2out.c (get_skeleton_type_unit): Remove.
29110 (output_skeleton_debug_sections): Remove skeleton type units.
29111 (output_comdat_type_unit): Likewise.
29112 (dwarf2out_finish): Likewise.
29114 2014-08-07 Yi Yang <ahyangyi@google.com>
29116 * predict.c (expr_expected_value_1): Remove the redundant assignment.
29118 2014-08-08 Richard Biener <rguenther@suse.de>
29120 * lto-streamer.h (struct lto_input_block): Make it a class
29121 with a constructor.
29122 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
29123 (struct lto_function_header, struct lto_simple_header,
29124 struct lto_simple_header_with_strings,
29125 struct lto_decl_header, struct lto_function_header): Make
29126 a simple inheritance hieararchy. Remove unused fields.
29127 (struct lto_asm_header): Remove.
29128 * lto-streamer-out.c (produce_asm): Adjust.
29129 (lto_output_toplevel_asms): Likewise.
29130 (produce_asm_for_decls): Likewise.
29131 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
29132 * data-streamer-in.c (string_for_index): Likewise.
29133 * ipa-inline-analysis.c (inline_read_section): Likewise.
29134 * ipa-prop.c (ipa_prop_read_section): Likewise.
29135 (read_replacements_section): Likewise.
29136 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
29137 * lto-section-in.c (lto_create_simple_input_block): Likewise.
29138 (lto_destroy_simple_input_block): Likewise.
29139 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
29140 (lto_input_toplevel_asms): Likewise.
29142 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
29143 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
29144 Anna Tikhonova <anna.tikhonova@intel.com>
29145 Ilya Tocar <ilya.tocar@intel.com>
29146 Andrey Turetskiy <andrey.turetskiy@intel.com>
29147 Ilya Verbin <ilya.verbin@intel.com>
29148 Kirill Yukhin <kirill.yukhin@intel.com>
29149 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29151 * common/config/i386/i386-common.c
29152 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
29153 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
29154 (ix86_handle_option): Handle OPT_mavx512dq.
29155 * config/i386/cpuid.h (bit_AVX512DQ): Define.
29156 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
29157 set -mavx512dq accordingly.
29158 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29159 OPTION_MASK_ISA_AVX512DQ.
29160 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
29161 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
29162 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
29163 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
29164 * config/i386/i386.h (TARGET_AVX512DQ): Define.
29165 (TARGET_AVX512DQ_P(x)): Ditto.
29166 * config/i386/i386.opt: Add mavx512dq.
29168 2014-08-08 Richard Biener <rguenther@suse.de>
29170 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
29171 target_percent, target_percent_s): Export.
29172 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
29173 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
29174 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
29175 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
29176 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
29177 Move to gimple-fold.c.
29178 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
29180 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
29181 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
29182 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
29183 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
29184 (rewrite_call_expr_array): Remove.
29185 (fold_builtin_sprintf_chk): Likewise.
29186 (fold_builtin_snprintf_chk): Likewise.
29187 (fold_builtin_varargs): Remove handling of sprintf_chk,
29188 vsprintf_chk, snprintf_chk and vsnprintf_chk.
29189 (gimple_fold_builtin_sprintf_chk): Remove.
29190 (gimple_fold_builtin_snprintf_chk): Likewise.
29191 (gimple_fold_builtin_varargs): Likewise.
29192 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
29193 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
29194 * gimple.c (gimple_seq_add_seq_without_update): New function.
29195 * gimple.h (gimple_seq_add_seq_without_update): Declare.
29196 * gimple-fold.c: Include output.h.
29197 (gsi_replace_with_seq_vops): New function, split out from ...
29198 (gimplify_and_update_call_from_tree): ... here.
29199 (replace_call_with_value): New function.
29200 (replace_call_with_call_and_fold): Likewise.
29201 (var_decl_component_p): Moved from builtins.c.
29202 (gimple_fold_builtin_memory_op): Moved from builtins.c
29203 fold_builtin_memory_op and rewritten to GIMPLE.
29204 (gimple_fold_builtin_memset): Likewise.
29205 (gimple_fold_builtin_strcpy): Likewise.
29206 (gimple_fold_builtin_strncpy): Likewise.
29207 (gimple_fold_builtin_strcat): Likewise.
29208 (gimple_fold_builtin_fputs): Likewise.
29209 (gimple_fold_builtin_memory_chk): Likewise.
29210 (gimple_fold_builtin_stxcpy_chk): Likewise.
29211 (gimple_fold_builtin_stxncpy_chk): Likewise.
29212 (gimple_fold_builtin_snprintf_chk): Likewise.
29213 (gimple_fold_builtin_sprintf_chk): Likewise.
29214 (gimple_fold_builtin_strlen): New function.
29215 (gimple_fold_builtin_with_strlen): New function split out from
29216 gimple_fold_builtin.
29217 (gimple_fold_builtin): Change signature and handle
29218 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
29219 here. Call gimple_fold_builtin_with_strlen.
29220 (gimple_fold_call): Adjust.
29222 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
29224 * calls.c (precompute_arguments): Check
29225 promoted_for_signed_and_unsigned_p and set the promoted mode.
29226 (promoted_for_signed_and_unsigned_p): New function.
29227 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
29228 and set the promoted mode.
29229 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
29230 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
29231 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
29234 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
29236 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
29237 instead of SUBREG_PROMOTED_UNSIGNED_SET.
29238 (expand_call): Likewise.
29239 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
29240 to get promoted mode.
29241 * combine.c (record_promoted_value): Skip > 0 comparison with
29242 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
29243 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
29244 of SUBREG_PROMOTED_UNSIGNED_P.
29245 (convert_modes): Likewise.
29246 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
29247 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
29248 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
29249 SUBREG_PROMOTED_UNSIGNED_SET.
29250 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
29251 instead of SUBREG_PROMOTED_UNSIGNED_SET.
29252 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
29253 SUBREG_PROMOTED_SET.
29254 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
29255 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
29256 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
29257 of SUBREG_PROMOTED_UNSIGNED_P.
29258 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
29259 (SUBREG_PROMOTED_SET): New define.
29260 (SUBREG_PROMOTED_GET): Likewise.
29261 (SUBREG_PROMOTED_SIGN): Likewise.
29262 (SUBREG_PROMOTED_SIGNED_P): Likewise.
29263 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
29264 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
29265 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
29266 instead of SUBREG_PROMOTED_UNSIGNED_GET.
29267 (nonzero_bits1): Skip > 0 comparison with the results as
29268 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
29269 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
29270 of !SUBREG_PROMOTED_UNSIGNED_P.
29271 * simplify-rtx.c (simplify_unary_operation_1): Use new
29272 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
29273 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
29274 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
29275 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
29277 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
29279 * ipa-devirt.c: Include gimple-pretty-print.h
29280 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
29282 (decl_maybe_in_construction_p): Fix conditional on cdtor check
29283 (get_polymorphic_call_info): Fix return value
29284 (type_change_info): New sturcture based on ipa-prop
29286 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
29287 based on ipa-prop variant.
29288 (extr_type_from_vtbl_ptr_store): New function
29289 based on ipa-prop variant.
29290 (record_known_type): New function.
29291 (check_stmt_for_type_change): New function.
29292 (get_dynamic_type): New function.
29293 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
29294 * tree-ssa-pre.c: ipa-utils.h
29295 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
29296 machinery; sanity check with ipa-prop devirtualization.
29297 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
29300 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
29302 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
29303 * alias.c, cfgexpand.c, cgraphbuild.c,
29304 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
29305 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
29306 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
29307 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
29308 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
29309 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
29310 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
29311 dse.c, except.c, gengtype.c, gimple-expr.c,
29312 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
29313 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
29314 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
29315 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
29316 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
29317 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
29319 * pointer-set.c: Remove file.
29320 * pointer-set.h: Remove file.
29322 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29324 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
29325 * config/arm/types.md (f_sels, f_seld): Delete.
29327 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29329 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
29330 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
29331 (aarch64_movdi_<mode>high): Likewise.
29332 (aarch64_mov<mode>high_di): Likewise.
29333 (aarch64_movdi_<mode>low): Likewise.
29334 (aarch64_mov<mode>low_di): Likewise.
29335 (aarch64_movtilow_tilow): Likewise.
29336 Add comment explaining usage of fp,simd attributes and of
29337 TARGET_FLOAT and TARGET_SIMD.
29339 2014-08-07 Ian Bolton <ian.bolton@arm.com>
29340 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29342 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
29343 Use MOVN when one of the half-words is 0xffff.
29345 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
29347 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
29349 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29351 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
29352 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
29353 (rfs_str): String corresponding to RFS_* constants.
29354 (rank_for_schedule_stats_t): New typedef.
29355 (rank_for_schedule_stats): New static variable.
29356 (rfs_result): New static function.
29357 (rank_for_schedule): Track statistics for deciding heuristics.
29358 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
29360 (ready_sort): Use them for debug printouts.
29361 (schedule_block): Init statistics state. Print statistics on
29362 rank_for_schedule decisions.
29364 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29366 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
29368 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
29370 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
29373 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
29375 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
29376 function to not conflict.
29377 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
29378 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
29379 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
29380 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
29381 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
29384 2014-08-07 Marek Polacek <polacek@redhat.com>
29386 * fold-const.c (fold_binary_loc): Add folding of
29387 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
29389 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
29391 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
29392 instead of type size.
29393 (ASM_FINISH_DECLARE_OBJECT): Likewise.
29395 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
29397 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
29398 (*thumb1_movqi_insn): Likewise.
29399 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
29401 2014-08-07 Tom de Vries <tom@codesourcery.com>
29403 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
29404 (glibc_2_11_or_earlier): Remove effective-target keywords.
29406 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
29408 * config/arm/arm.c (bdesc_2arg): Fix typo.
29409 (arm_atomic_assign_expand_fenv): Remove The default implementation.
29411 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
29413 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
29415 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
29418 * haifa-sched.c (advance_one_cycle): Fix dump.
29419 (schedule_block): Don't advance cycle if we are already at the
29420 beginning of the cycle.
29422 2014-08-06 Martin Jambor <mjambor@suse.cz>
29425 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
29427 2014-08-06 Richard Biener <rguenther@suse.de>
29430 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
29432 (lto_input_tree): Pop SCCs here.
29434 2014-08-06 Richard Biener <rguenther@suse.de>
29436 PR tree-optimization/61320
29437 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
29438 handle misaligned loads.
29440 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
29442 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
29443 (aarch64_expand_vec_perm_const): Check for dup before zip.
29445 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29447 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
29448 CONST_INT_P instead of GET_CODE and compare.
29449 (aarch64_select_cc_mode): Likewise.
29450 (aarch64_print_operand): Likewise.
29451 (aarch64_rtx_costs): Likewise.
29452 (aarch64_simd_valid_immediate): Likewise.
29453 (aarch64_simd_check_vect_par_cnst_half): Likewise.
29454 (aarch64_simd_emit_pair_result_insn): Likewise.
29456 2014-08-05 David Malcolm <dmalcolm@redhat.com>
29458 * gdbhooks.py (find_gcc_source_dir): New helper function.
29459 (class PassNames): New class, locating and parsing passes.def.
29460 (class BreakOnPass): New command "break-on-pass".
29462 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
29464 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
29467 2014-08-05 Richard Biener <rguenther@suse.de>
29469 PR rtl-optimization/61672
29470 * emit-rtl.h (mem_attrs_eq_p): Declare.
29471 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
29472 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
29473 * cfgcleanup.c (merge_memattrs): Likewise.
29474 Include emit-rtl.h.
29476 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29478 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
29479 rather than singleton vectors.
29480 (vqdmlsls_lane_s32): Likewise.
29482 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29484 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
29485 Use VSDQ_HSI mode iterator.
29486 (aarch64_sqrdmulh_laneq<mode>): Likewise.
29487 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
29488 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
29489 Use BUILTIN_VDQHS macro.
29490 (sqrdmulh_laneq): Likewise.
29491 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
29492 (vqdmlals_laneq_s32): Likewise.
29493 (vqdmlslh_laneq_s16): Likewise.
29494 (vqdmlsls_laneq_s32): Likewise.
29495 (vqdmulhh_laneq_s16): Likewise.
29496 (vqdmulhs_laneq_s32): Likewise.
29497 (vqrdmulhh_laneq_s16): Likewise.
29498 (vqrdmulhs_laneq_s32): Likewise.
29500 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29502 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
29503 (vmuld_laneq_f64): Likewise.
29504 (vmuls_laneq_f32): Likewise.
29505 (vmul_n_f64): Likewise.
29506 (vmuld_lane_f64): Reimplement in C.
29507 (vmuls_lane_f32): Likewise.
29509 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29511 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
29513 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
29515 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29517 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
29518 (rbitsi2): Likewise.
29519 (*arm_rev): Set predicable and predicable_short_it attributes.
29521 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29523 * convert.c (convert_to_integer): Guard transformation to lrint by
29526 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
29528 * config/aarch64/aarch64-builtins.c
29529 (aarch64_simd_builtin_type_mode): Delete.
29530 (v8qi_UP): Remap to V8QImode.
29531 (v4hi_UP): Remap to V4HImode.
29532 (v2si_UP): Remap to V2SImode.
29533 (v2sf_UP): Remap to V2SFmode.
29534 (v1df_UP): Remap to V1DFmode.
29535 (di_UP): Remap to DImode.
29536 (df_UP): Remap to DFmode.
29537 (v16qi_UP):V16QImode.
29538 (v8hi_UP): Remap to V8HImode.
29539 (v4si_UP): Remap to V4SImode.
29540 (v4sf_UP): Remap to V4SFmode.
29541 (v2di_UP): Remap to V2DImode.
29542 (v2df_UP): Remap to V2DFmode.
29543 (ti_UP): Remap to TImode.
29544 (ei_UP): Remap to EImode.
29545 (oi_UP): Remap to OImode.
29546 (ci_UP): Map to CImode.
29547 (xi_UP): Remap to XImode.
29548 (si_UP): Remap to SImode.
29549 (sf_UP): Remap to SFmode.
29550 (hi_UP): Remap to HImode.
29551 (qi_UP): Remap to QImode.
29552 (aarch64_simd_builtin_datum): Make mode a machine_mode.
29553 (VAR1): Build builtin name.
29554 (aarch64_init_simd_builtins): Remove dead code.
29556 2014-08-05 Roman Gareev <gareevroman@gmail.com>
29558 * graphite-isl-ast-to-gimple.c:
29559 (set_options): New function.
29560 (scop_to_isl_ast): Add calling of set_options.
29562 2014-08-05 Jakub Jelinek <jakub@redhat.com>
29564 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
29565 (analyze_iv_to_split_insn): Don't initialize them.
29566 (get_ivts_expr): Removed.
29567 (allocate_basic_variable, insert_base_initialization): Use
29568 SET_SRC instead of *get_ivts_expr.
29569 (split_iv): Use &SET_SRC instead of get_ivts_expr.
29571 2014-08-05 Roman Gareev <gareevroman@gmail.com>
29573 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
29574 (translate_isl_ast_for_loop): Add checking of the
29575 flag_loop_parallelize_all.
29576 (ast_build_before_for): New function.
29577 (scop_to_isl_ast): Add checking of the
29578 flag_loop_parallelize_all.
29579 * graphite-dependences.c: Move the defenition of the
29580 scop_get_dependences from graphite-optimize-isl.c to this file.
29581 (apply_schedule_on_deps): Add checking of the ux's emptiness.
29582 (carries_deps): Add checking of the x's value.
29583 * graphite-optimize-isl.c: Move the defenition of the
29584 scop_get_dependences to graphite-dependences.c.
29585 * graphite-poly.h: Add declarations of scop_get_dependences
29588 2014-08-04 Rohit <rohitarulraj@freescale.com>
29591 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
29593 (alt_reg_names): Likewise.
29594 (rs6000_dwarf_register_span): For SPE high registers, replace
29595 dwarf register numbers with GCC hard register numbers.
29596 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
29597 (rs6000_dbx_register_number): For SPE high registers, return dwarf
29598 register number for the corresponding GCC hard register number.
29599 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
29600 newly added GCC hard register numbers for SPE high registers.
29601 (DWARF_FRAME_REGISTERS): Likewise.
29602 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
29603 (DWARF_FRAME_REGNUM): Likewise.
29604 (FIXED_REGISTERS): Likewise.
29605 (CALL_USED_REGISTERS): Likewise.
29606 (CALL_REALLY_USED_REGISTERS): Likewise.
29607 (REG_ALLOC_ORDER): Likewise.
29608 (enum reg_class): Likewise.
29609 (REG_CLASS_NAMES): Likewise.
29610 (REG_CLASS_CONTENTS): Likewise.
29611 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
29613 2014-08-04 Richard Biener <rguenther@suse.de>
29615 * gimple-fold.h (gimple_fold_builtin): Remove.
29616 * gimple-fold.c (gimple_fold_builtin): Make static.
29617 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
29618 fold_stmt, not gimple_fold_builtin.
29620 2014-08-04 Martin Liska <mliska@suse.cz>
29622 * cgraph.h (csi_end_p): Removed.
29623 (csi_next): Likewise.
29624 (csi_node): Likewise.
29625 (csi_start): Likewise.
29626 (cgraph_node_in_set_p): Likewise.
29627 (cgraph_node_set_size): Likewise.
29628 (vsi_end_p): Likewise.
29629 (vsi_next): Likewise.
29630 (vsi_node): Likewise.
29631 (vsi_start): Likewise.
29632 (varpool_node_set_size): Likewise.
29633 (cgraph_node_set_nonempty_p): Likewise.
29634 (varpool_node_set_nonempty_p): Likewise.
29635 * cgraphunit.c (cgraph_process_new_functions): vec replaces
29637 * ipa-inline-transform.c: Likewise.
29638 * ipa-utils.c (cgraph_node_set_new): Removed.
29639 (cgraph_node_set_add): Likewise.
29640 (cgraph_node_set_remove): Likewise.
29641 (cgraph_node_set_find): Likewise.
29642 (dump_cgraph_node_set): Likewise.
29643 (debug_cgraph_node_set): Likewise.
29644 (free_cgraph_node_set): Likewise.
29645 (varpool_node_set_new): Likewise.
29646 (varpool_node_set_add): Likewise.
29647 (varpool_node_set_remove): Likewise.
29648 (varpool_node_set_find): Likewise.
29649 (dump_varpool_node_set): Likewise.
29650 (free_varpool_node_set): Likewise.
29651 (debug_varpool_node_set): Likewise.
29652 * tree-emutls.c (struct tls_var_data):
29653 (emutls_index): Removed.
29654 (emutls_decl): Likewise.
29655 (gen_emutls_addr): Function implementation uses newly added
29656 hash_map<varpool_node *, tls_var_data>.
29657 (clear_access_vars): Likewise.
29658 (create_emultls_var): Likewise.
29659 (ipa_lower_emutls): Likewise.
29660 (reset_access): New function.
29662 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29664 * config/i386/i386.c (ix86_option_override_internal): Add
29665 PTA_RDRND and PTA_MOVBE for bdver4.
29667 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29668 James Greenhalgh <james.greenhalgh@arm.com>
29670 * doc/md.texi (clrsb): Document.
29671 (clz): Change reference to x into operand 1.
29673 (popcount): Likewise.
29675 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29678 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
29679 move to subtarget in serial version if result is ignored.
29681 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29682 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29684 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
29685 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
29686 (sched_analyze_insn): Update use of try_group_insn to
29687 sched_macro_fuse_insns.
29688 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
29689 arguments that are not conditional jumps.
29691 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29693 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's
29694 extended family information. Handle BTVER2 cpu with cpuid family value.
29696 2014-08-04 Tom de Vries <tom@codesourcery.com>
29698 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
29699 (glibc_2_11_or_earlier): Document effective-target keywords.
29701 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
29703 * ipa-devirt.c (odr_type_warn_count): Add type.
29704 (possible_polymorphic_call_targets): Set it.
29705 (ipa_devirt): Use it.
29707 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
29709 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
29711 * ipa-devirt.c: Include hash-map.h
29712 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
29713 (clear_speculation): Break out of ...
29714 (get_class_context): ... here; speed up handling obviously useless
29716 (odr_type_warn_count, decl_warn_count): New structures.
29717 (final_warning_record): New structure.
29718 (final_warning_records): New static variable.
29719 (possible_polymorphic_call_targets): Cleanup handling of
29720 speculative info; do not build speculation when user do not care;
29721 record info about warnings when asked for.
29722 (add_decl_warning): New function.
29723 (type_warning_cmp): New function.
29724 (decl_warning_cmp): New function.
29725 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
29726 (gate): Enable pass when warnings are requested.
29727 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
29730 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
29732 * hash-map.h (default_hashmap_traits::mark_key_deleted):
29734 (hash_map::remove): New method.
29735 (hash_map::traverse): New method.
29736 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
29737 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
29738 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
29739 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
29740 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
29741 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
29744 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
29746 * hash-set.h: new File.
29747 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
29748 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
29749 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
29750 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
29751 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
29752 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
29753 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
29754 varpool.c: Use hash_set instead of pointer_set.
29756 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
29758 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
29760 2014-08-01 Jiong Wang <jiong.wang@arm.com>
29762 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
29763 for frame access when strict_p is false.
29765 2014-08-01 Renlin Li <renlin.li@arm.com>
29766 2014-08-01 Jiong Wang <jiong.wang@arm.com>
29768 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
29769 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
29770 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
29772 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
29774 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
29775 aarch64_mem_pair_offset.
29777 2014-08-01 Jiong Wang <jiong.wang@arm.com>
29779 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
29781 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
29782 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
29784 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
29786 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
29788 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
29790 PR regression/61510
29791 * cgraphunit.c (analyze_functions): Use get_create rather than get
29792 for decls which are clones of abstract functions.
29794 2014-08-01 Martin Liska <mliska@suse.cz>
29796 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
29797 * ipa-prop.h (count_formal_params): Global function created from static.
29798 * ipa-prop.c (count_formal_params): Likewise.
29799 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
29800 profiles for semantically equivalent functions.
29801 * passes.c (do_per_function): If we load body of a function
29802 during WPA, this condition should behave same.
29803 * varpool.c (ctor_for_folding): More tolerant assert for variable
29804 aliases created during WPA.
29806 2014-08-01 Martin Liska <mliska@suse.cz>
29808 * doc/invoke.texi (Options That Control Optimization): Documentation
29809 for -foptimize-strlen introduced. Optimization levels default options
29812 2014-08-01 Jakub Jelinek <jakub@redhat.com>
29814 * opts.c (common_handle_option): Handle -fsanitize=alignment.
29815 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
29816 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
29818 * stor-layout.h (min_align_of_type): New prototype.
29819 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
29820 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
29822 * ubsan.c: Include builtins.h.
29823 (ubsan_expand_bounds_ifn): Change return type to bool,
29824 always return true.
29825 (ubsan_expand_null_ifn): Change return type to bool, change
29826 argument to gimple_stmt_iterator *. Handle both null and alignment
29827 sanitization, take type from ckind argument's type rather than
29829 (instrument_member_call): Removed.
29830 (instrument_mem_ref): Remove t argument, add mem and base arguments.
29831 Handle both null and alignment sanitization, don't say whole
29832 struct access is member access. Build 3 argument IFN_UBSAN_NULL
29833 call instead of 2 argument.
29834 (instrument_null): Adjust instrument_mem_ref caller. Don't
29835 instrument calls here.
29836 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
29837 like SANITIZE_NULL.
29838 * stor-layout.c (min_align_of_type): New function.
29839 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
29840 Or it into SANITIZE_UNDEFINED.
29841 * doc/invoke.texi (-fsanitize=alignment): Document.
29843 2014-07-31 Andi Kleen <ak@linux.intel.com>
29845 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
29847 2014-07-31 Andi Kleen <ak@linux.intel.com>
29849 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
29851 (vn_reference_compute_hash): Dito.
29852 (vn_nary_op_compute_hash): Dito.
29853 (vn_phi_compute_hash): Dito.
29854 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
29856 2014-07-31 Andi Kleen <ak@linux.intel.com>
29858 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
29859 Rename to inchash:add_expr_commutative. Convert to inchash.
29860 (iterative_hash_hashable_expr): Rename to
29861 inchash:add_hashable_expr. Convert to inchash.
29862 (avail_expr_hash): Dito.
29864 2014-07-31 Andi Kleen <ak@linux.intel.com>
29866 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
29867 Convert to inchash.
29869 2014-07-31 Andi Kleen <ak@linux.intel.com>
29871 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
29873 2014-07-31 Andi Kleen <ak@linux.intel.com>
29875 * Makefile.in (OBJS): Add rtlhash.o
29876 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
29877 (loc_checksum): Dito.
29878 (loc_checksum_ordered): Dito.
29879 (hash_loc_operands): Dito.
29881 (hash_loc_list): Dito.
29882 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
29883 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
29884 * rtlhash.c: New file.
29885 * rtlhash.h: New file.
29887 2014-07-31 Andi Kleen <ak@linux.intel.com>
29889 * inchash.h (inchash): Change inchash class to namespace.
29890 (class hash): ... Rename from inchash.
29891 (add_object): Move from macro to class template.
29892 * lto-streamer-out.c (hash_tree): Change inchash
29894 * tree.c (build_type_attribute_qual_variant): Dito.
29895 (type_hash_list): Dito.
29896 (attribute_hash_list): Dito.
29897 (iterative_hstate_expr): Rename to inchash::add_expr
29898 (build_range_type_1): Change inchash to inchash::hash
29899 and use hash::add_expr.
29900 (build_array_type_1): Dito.
29901 (build_function_type): Dito
29902 (build_method_type_directly): Dito.
29903 (build_offset_type): Dito.
29904 (build_complex_type): Dito.
29905 (make_vector_type): Dito.
29906 * tree.h (iterative_hash_expr): Dito.
29908 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
29910 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
29912 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
29914 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
29915 correct alphabetical position.
29916 (vpaddd_f64): Rewrite using builtins.
29917 (vpaddd_s64): Move to correct alphabetical position.
29920 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
29923 * config/sh/sh.c (sh_legitimate_address_p,
29924 sh_legitimize_reload_address): Handle reg+reg address modes when
29925 ALLOW_INDEXED_ADDRESS is false.
29926 * config/sh/predicates.md (general_movsrc_operand,
29927 general_movdst_operand): Likewise.
29929 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
29931 * config/aarch64/aarch64-builtins.c
29932 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
29935 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
29937 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
29938 the generated mask based on BYTES_BIG_ENDIAN.
29939 (aarch64_simd_check_vect_par_cnst_half): New.
29940 * config/aarch64/aarch64-protos.h
29941 (aarch64_simd_check_vect_par_cnst_half): New.
29942 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
29943 the check out to aarch64_simd_check_vect_par_cnst_half.
29944 (vect_par_cnst_lo_half): Likewise.
29945 * config/aarch64/aarch64-simd.md
29946 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
29947 (move_hi_quad_<mode>): Always generate a low mask.
29949 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29951 * doc/invoke.texi (AVR Options): Add documentation about
29952 __AVR_DEVICE_NAME__ built-in macro.
29954 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
29957 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
29958 constraints are satisfied.
29959 (<shift>di3_neon): Likewise.
29961 2014-07-31 Richard Biener <rguenther@suse.de>
29963 PR tree-optimization/61964
29964 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
29965 by structural equality.
29967 2014-07-31 Yury Gribov <y.gribov@samsung.com>
29969 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
29970 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
29971 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
29973 * gcc.c (sanitize_spec_function): Support new option.
29974 (SANITIZER_SPEC): Remove now redundant check.
29975 * opts.c (common_handle_option): Support new option.
29976 (finish_options): Check for incompatibilities.
29977 * toplev.c (process_options): Split userspace-specific checks.
29979 2014-07-31 Richard Biener <rguenther@suse.de>
29981 * lto-streamer.h (struct output_block): Remove global.
29982 (struct data_in): Remove labels, num_named_labels and
29983 num_unnamed_labels.
29984 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
29985 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
29987 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
29990 * common.opt (-Wreturn-local-addr): Moved from c.opt.
29991 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
29992 (isolate_path): New argument to avoid inserting a trap.
29993 (find_implicit_erroneous_behaviour): Handle returning the address
29994 of a local variable.
29995 (find_explicit_erroneous_behaviour): Likewise.
29997 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
30000 * toplev.c (init_random_seed): Move piece of code never called to
30002 (set_random_seed): see above.
30004 2014-07-31 Tom de Vries <tom@codesourcery.com>
30006 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
30008 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
30010 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
30011 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
30013 2014-07-31 Richard Biener <rguenther@suse.de>
30015 * data-streamer.h (streamer_write_data_stream): Declare here,
30017 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
30018 * lto-cgraph.c (lto_output_node): Adjust.
30019 (lto_output_varpool_node): Likewise.
30020 * data-streamer-out.c (streamer_string_index): Likewise.
30021 (streamer_write_data_stream, lto_append_block): Move from ...
30022 * lto-section-out.c (lto_output_data_stream,
30023 lto_append_block): ... here.
30025 2014-07-30 Mike Stump <mikestump@comcast.net>
30027 * configure.ac: Also check for popen.
30028 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
30029 * configure: Regenerate.
30030 * config.in: Regenerate.
30032 2014-07-30 Martin Jambor <mjambor@suse.cz>
30034 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
30035 parameter to gimple.
30037 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30039 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
30040 address as second parameter to __tpf_eh_return routine.
30042 2014-07-30 Jiong Wang <jiong.wang@arm.com>
30044 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
30047 2014-07-30 Tom Tromey <tromey@redhat.com>
30050 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
30051 * doc/extend.texi (Type Attributes): Document designated_init
30054 2014-07-30 Roman Gareev <gareevroman@gmail.com>
30056 * graphite-isl-ast-to-gimple.c:
30057 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
30058 (gcc_expression_from_isl_expression): Pass type to
30059 gcc_expression_from_isl_ast_expr_id.
30061 2014-07-30 Richard Biener <rguenther@suse.de>
30063 * lto-streamer.h (lto_write_data): New function.
30064 * langhooks.c (lhd_append_data): Do not free block.
30065 * lto-section-out.c (lto_write_data): New function writing
30066 raw data to the current section.
30067 (lto_write_stream): Adjust for langhook semantic change.
30068 (lto_destroy_simple_output_block): Write header directly.
30069 * lto-opts.c (lto_write_options): Write options directly.
30070 * lto-streamer-out.c (produce_asm): Write heaeder directly.
30071 (lto_output_toplevel_asms): Likewise.
30072 (copy_function_or_variable): Copy data directly.
30073 (write_global_references): Output index table directly.
30074 (lto_output_decl_state_refs): Likewise.
30075 (write_symbol): Write data directly.
30076 (produce_symtab): Adjust.
30077 (produce_asm_for_decls): Output header and refs directly.
30079 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
30081 * ipa-devirt.c (polymorphic_call_target_d): Rename
30082 nonconstruction_targets to speculative_targets
30083 (get_class_context): Fix handling of contextes without outer type;
30084 avoid matching non-polymorphic types in LTO.
30085 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
30086 parameter to speculative_targetsp; handle speculation.
30087 (dump_possible_polymorphic_call_targets): Update dumping.
30089 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
30091 * common.opt (Wodr): Enable by default.
30093 2014-07-29 Olivier Hainque <hainque@adacore.com>
30095 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
30097 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
30100 * gengtype.c (strtoken): New function.
30101 (create_user_defined_type): Replace strtok with strtoken.
30103 2014-07-29 Nathan Sidwell <nathan@acm.org>
30105 * gcov-io.c (gcov_var): Make hidden.
30106 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
30107 (gcov_do_dump): Declare.
30108 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
30110 2014-07-29 Martin Jambor <mjambor@suse.cz>
30112 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
30113 parameter to gimple.
30114 (sra_modify_assign): Likewise.
30116 2014-07-29 Richard Biener <rguenther@suse.de>
30118 PR middle-end/52478
30119 * expr.c (expand_expr_real_2): Revert last change.
30121 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
30123 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
30124 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
30125 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
30127 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
30128 (contains_type_p): Forward declare.
30129 (polymorphic_call_target_hasher::hash): Hash speculative info.
30130 (polymorphic_call_target_hasher::equal): Compare speculative info.
30131 (get_class_context): Handle speuclation.
30132 (contains_type_p): Update.
30133 (get_polymorphic_call_info_for_decl): Update.
30134 (walk_ssa_copies): Break out from ...
30135 (get_polymorphic_call_info): ... here; set speculative context
30137 * ipa-prop.c (ipa_write_indirect_edge_info,
30138 ipa_read_indirect_edge_info): Stream speculative context.
30139 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
30140 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
30141 SPECULATIVE_MAYBE_DERIVED_TYPE).
30142 (possible_polymorphic_call_targets overriders): Update.
30143 (dump_possible_polymorphic_call_targets overriders): Update.
30144 (dump_possible_polymorphic_call_target_p overriders): Update.
30146 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
30148 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
30149 ipa-devirt path; fix thinko there.
30151 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
30153 * config/i386/i386.c (ix86_return_in_memory): Replace one
30154 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
30156 2014-07-28 Marek Polacek <polacek@redhat.com>
30158 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
30160 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
30162 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
30163 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
30164 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
30165 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
30166 (USE_LD_AS_NEEDED): Likewise.
30167 (ASM_APP_ON): Likewise.
30168 (ASM_APP_OFF): Likewise.
30169 (TARGET_POSIX_IO): Likewise.
30170 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
30171 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
30172 (USE_LD_AS_NEEDED): Likewise.
30173 (ASM_APP_ON): Likewise.
30174 (ASM_APP_OFF): Likewise.
30175 (TARGET_POSIX_IO): Likewise.
30177 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
30179 PR middle-end/61734
30180 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
30181 operators other than the equality operators.
30183 2014-07-28 Richard Biener <rguenther@suse.de>
30185 PR middle-end/52478
30186 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
30187 sure to register SImode ones, not only >= word_mode ones.
30188 * expr.c (expand_expr_real_2): When expanding -ftrapv
30189 binops do not use OPTAB_LIB_WIDEN.
30191 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
30193 PR middle-end/61919
30194 * tree-outof-ssa.c (insert_partition_copy_on_edge)
30195 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
30196 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
30197 inserting them in the insn stream.
30199 2014-07-28 Marek Polacek <polacek@redhat.com>
30201 PR middle-end/61913
30202 * common.opt (Wodr): Add Var.
30204 2014-07-28 Richard Biener <rguenther@suse.de>
30206 PR tree-optimization/61921
30207 * tree-ssa-structalias.c (create_variable_info_for_1): Check
30208 if there is a varpool node before dereferencing it.
30210 2014-07-28 Roman Gareev <gareevroman@gmail.com>
30212 * graphite-sese-to-poly.c:
30213 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
30214 id of the pbb), which contains pointer to the pbb1.
30216 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
30218 2014-07-28 Roman Gareev <gareevroman@gmail.com>
30220 * graphite-isl-ast-to-gimple.c:
30221 (graphite_create_new_guard): New function.
30222 (translate_isl_ast_node_if): New function.
30223 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
30225 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
30227 2014-07-27 Anthony Green <green@moxielogic.com>
30229 * config.gcc: Add moxie-*-moxiebox* configuration.
30230 * config/moxie/moxiebox.h: New file.
30232 2014-07-26 Andrew Pinski <apinski@cavium.com>
30234 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
30235 from the read only register.
30237 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
30239 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
30240 as the allocation class if it isn't likely to be spilled.
30242 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
30244 * rtl.h (tls_referenced_p): Declare.
30245 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
30246 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
30247 (mips_cannot_force_const_mem): Use tls_referenced_p.
30248 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
30249 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
30250 instead of pa_tls_referenced_p.
30251 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
30252 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
30253 (pa_legitimate_constant_p): Likewise.
30254 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
30255 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
30256 (rs6000_cannot_force_const_mem, rs6000_emit_move)
30257 (rs6000_address_for_altivec): Use tls_referenced_p instead of
30258 rs6000_tls_referenced_p.
30259 (rs6000_tls_symbol_ref_1): Delete.
30261 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
30264 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30265 Optimize inverse of a VEC_CONCAT.
30267 2014-07-25 Xinliang David Li <davidxl@google.com>
30269 * params.def: New parameter.
30270 * coverage.c (get_coverage_counts): Check new flag.
30271 (coverage_compute_profile_id): Check new flag.
30272 (coverage_begin_function): Check new flag.
30273 (coverage_end_function): Check new flag.
30274 * value-prof.c (coverage_node_map_initialized_p): New function.
30275 (init_node_map): Populate map with all functions.
30276 * doc/invoke.texi: Document new parameter.
30278 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
30279 Richard Biener <rguenther@suse.de>
30281 * lto-streamer-out.c (struct sccs): Turn to ...
30282 (class DFS): ... this one; refactor the DFS walk so it can
30283 be re-done on per-SCC basis.
30284 (DFS::DFS): New constructor.
30285 (DFS::~DFS): New destructor.
30286 (hash_tree): Add new MAP argument holding in-SCC hash values;
30287 remove POINTER_TYPE hashing hack.
30288 (scc_entry_compare): Rename to ...
30289 (DFS::scc_entry_compare): ... this one.
30290 (hash_scc): Rename to ...
30291 (DFS::hash_scc): ... this one; pass output_block instead
30292 of streamer_cache; work harder to get unique and stable SCC
30294 (DFS_write_tree): Rename to ...
30295 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
30296 (lto_output_tree): Update.
30298 2014-07-25 Andi Kleen <ak@linux.intel.com>
30300 * lto-streamer-out.c (hash_tree): Convert to inchash.
30302 2014-07-25 Andi Kleen <ak@linux.intel.com>
30304 * tree.c (build_type_attribute_qual_variant): Use inchash.
30305 (type_hash_list): Dito.
30306 (attribute_hash_list): Dito
30307 (iterative_hstate_expr): Dito.
30308 (iterative_hash_expr): Dito.
30309 (build_range_type_1): Dito.
30310 (build_array_type_1): Dito.
30311 (build_function_type): Dito.
30312 (build_method_type_directly): Dito.
30313 (build_offset_type): Dito.
30314 (build_complex_type): Dito.
30315 (make_vector_type): Dito.
30316 * tree.h (iterative_hash_expr): Add compat wrapper.
30317 (iterative_hstate_expr): Add.
30319 2014-07-25 Andi Kleen <ak@linux.intel.com>
30321 * Makefile.in (OBJS): Add inchash.o.
30322 (PLUGIN_HEADERS): Add inchash.h.
30323 * ipa-devirt.c: Include inchash.h.
30324 * lto-streamer-out.c: Dito.
30325 * tree-ssa-dom.c: Dito.
30326 * tree-ssa-pre.c: Dito.
30327 * tree-ssa-sccvn.c: Dito.
30328 * tree-ssa-tail-merge.c: Dito.
30330 * tree.c (iterative_hash_hashval_t): Move to ...
30331 (iterative_hash_host_wide_int): Move to ...
30332 * inchash.c: Here. New file.
30333 * tree.h (iterative_hash_hashval_t): Move to ...
30334 (iterative_hash_host_wide_int): Move to ...
30335 * inchash.h: Here. New file.
30337 2014-07-25 Richard Biener <rguenther@suse.de>
30339 PR middle-end/61762
30340 PR middle-end/61894
30341 * fold-const.c (native_encode_int): Add and handle offset
30342 parameter to do partial encodings of expr.
30343 (native_encode_fixed): Likewise.
30344 (native_encode_real): Likewise.
30345 (native_encode_complex): Likewise.
30346 (native_encode_vector): Likewise.
30347 (native_encode_string): Likewise.
30348 (native_encode_expr): Likewise.
30349 * fold-const.c (native_encode_expr): Add offset parameter
30351 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
30352 (fold_ctor_reference): Handle all reads from tcc_constant
30355 2014-07-25 Richard Biener <rguenther@suse.de>
30357 * tree-inline.c (estimate_move_cost): Mark speed_p argument
30358 as possibly unused.
30360 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30362 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
30364 2014-07-24 Kyle McMartin <kyle@redhat.com>
30366 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
30368 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30370 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
30372 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
30374 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
30375 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
30376 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
30378 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30380 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
30381 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
30382 aggregate types. Instead, *all* aggregate types, except for single-
30383 element or homogeneous float/vector aggregates, are quadword-aligned
30384 if required by their type alignment. Issue -Wpsabi note when a type
30385 is now treated differently than before.
30387 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30389 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
30390 does not fit fully into floating-point registers, and there is still
30391 space in the register parameter area, use GPRs to pass those parts
30392 of the argument. Issue -Wpsabi note if any parameter is now treated
30393 differently than before.
30394 (rs6000_arg_partial_bytes): Update.
30396 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
30398 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
30400 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
30402 * rtl.h (target_rtl): Remove lang_dependent_initialized.
30403 * toplev.c (initialize_rtl): Don't use it. Move previously
30404 "language-dependent" calls to...
30405 (backend_init): ...here.
30406 (lang_dependent_init_target): Don't set lang_dependent_initialized.
30407 Assert that RTL initialization hasn't happend yet.
30409 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
30411 PR rtl-optimization/61629
30412 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
30413 they have already been initialized.
30415 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
30417 PR middle-end/61268
30418 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
30419 DECL_INCOMING_RTL and entry_parm.
30420 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
30421 * calls.c (load_register_parameters): Likewise argument values.
30422 (emit_library_call_value_1, store_one_arg): Likewise argument
30424 * config/i386/i386.c (assign_386_stack_local): Likewise the local
30426 * explow.c (validize_mem): Modify the argument in-place.
30428 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30430 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
30431 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
30433 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30435 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
30436 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
30438 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30440 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
30441 (aarch64_save_callee_saves): New parameter "skip_wb".
30442 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
30444 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30446 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
30448 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
30450 2014-07-24 Roman Gareev <gareevroman@gmail.com>
30452 * graphite-isl-ast-to-gimple.c:
30453 (graphite_create_new_loop): Add calling of isl_id_free to properly
30454 decrement reference counts.
30456 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
30458 2014-07-24 Martin Liska <mliska@suse.cz>
30459 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
30461 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
30462 (rs6000_code_end): Likewise.
30464 2014-07-24 Martin Liska <mliska@suse.cz>
30466 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
30467 symtab_node funtion used.
30468 (rs6000_xcoff_declare_object_name): Likewise.
30470 2014-07-24 Martin Liska <mliska@suse.cz>
30472 * cgraphunit.c (compile): Correct function used.
30474 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
30476 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
30479 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
30482 * varasm.c (bss_initializer_p): Handle offlined ctors.
30483 (align_variable, get_variable_align): Likewise.
30484 (make_decl_one_only): Likewise.
30485 (default_binds_local_p_1): Likewise.
30486 (decl_binds_to_current_def_p): Likewise.
30487 (get_variable_section): Get constructor if it is offlined.
30488 (assemble_variable_contents): Sanity check that the caller
30489 streamed in the ctor in LTO.
30491 2014-07-24 Roman Gareev <gareevroman@gmail.com>
30493 * graphite-isl-ast-to-gimple.c:
30494 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
30495 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
30496 isl_ast_op_pdiv_r to the different case.
30498 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
30500 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30502 PR middle-end/61876
30503 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
30504 when flag_errno_math is on.
30506 2014-07-24 Martin Liska <mliska@suse.cz>
30508 * cgraph.h (varpool_node):
30509 (availability get_availability (void)):
30510 created from cgraph_variable_initializer_availability
30511 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
30512 created from: cgraph_variable_initializer_availability
30513 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
30514 (void finalize_named_section_flags (void)):
30515 created from varpool_finalize_named_section_flags
30516 (bool assemble_decl (void)): created from varpool_assemble_decl
30517 (void analyze (void)): created from varpool_analyze_node
30518 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
30519 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
30520 (void remove_initializer (void)): created from varpool_remove_initializer
30521 (tree get_constructor (void)): created from varpool_get_constructor
30522 (bool externally_visible_p (void)): created from varpool_externally_visible_p
30523 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
30524 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
30525 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
30526 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
30527 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
30528 (static bool output_variables (void)): created from varpool_output_variables
30529 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
30530 created from varpool_extra_name_alias
30531 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
30532 (static void dump_varpool (FILE *f)): created from dump_varpool
30533 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
30534 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
30535 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
30536 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
30537 (void assemble_aliases (void)): created from assemble_aliases
30539 2014-07-24 Martin Liska <mliska@suse.cz>
30541 * cgraph.h (symtab_node):
30542 (void register_symbol (void)): created from symtab_register_node
30543 (void remove (void)): created from symtab_remove_node
30544 (void dump (FILE *f)): created from dump_symtab_node
30545 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
30546 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
30547 (struct ipa_ref *add_reference (symtab_node *referred_node,
30548 enum ipa_ref_use use_type)): created from add_reference
30549 (struct ipa_ref *add_reference (symtab_node *referred_node,
30550 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
30551 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
30552 gimple stmt)): created from maybe_add_reference
30553 (bool semantically_equivalent_p (symtab_node *target)): created from
30554 symtab_semantically_equivalent_p
30555 (void remove_from_same_comdat_group (void)): created from
30556 remove_from_same_comdat_group
30557 (void add_to_same_comdat_group (symtab_node *old_node)): created from
30558 symtab_add_to_same_comdat_group
30559 (void dissolve_same_comdat_group_list (void)): created from
30560 symtab_dissolve_same_comdat_group_list
30561 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
30562 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
30563 created from symtab_alias_ultimate_target
30564 (inline symtab_node *next_defined_symbol (void)): created from
30565 symtab_next_defined_symbol
30566 (bool resolve_alias (symtab_node *target)): created from
30567 symtab_resolve_alias
30568 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
30569 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
30570 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
30571 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
30572 (void set_section (const char *section)): created from set_section_1
30573 (enum availability get_availability (void)): created from symtab_node_availability
30574 (void make_decl_local (void)): created from symtab_make_decl_local
30575 (bool real_symbol_p (void)): created from symtab_read_node
30576 (can_be_discarded_p (void)): created from symtab_can_be_discarded
30577 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
30578 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
30579 symtab_in_same_comdat_p;
30580 (bool address_taken_from_non_vtable_p (void)): created from
30581 address_taken_from_non_vtable_p
30582 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
30583 (static void dump_table (FILE *)): created from dump_symtab
30584 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
30585 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
30586 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
30587 symtab_used_from_object_file_p
30588 (void dump_base (FILE *)): created from dump_symtab_base
30589 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
30590 (void unregister (void)): created from symtab_unregister_node
30591 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
30592 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
30593 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
30594 symtab_nonoverwritable_alias_1
30595 * cgraph.h (cgraph_node):
30596 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
30597 created from cgraph_remove_node_and_inline_clones
30598 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
30599 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
30600 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
30601 (cgraph_node *function_symbol (enum availability *avail = NULL)):
30602 created from cgraph_function_node
30603 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
30604 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
30605 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
30606 created from cgraph_create_clone
30607 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
30608 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
30609 created from cgraph_create_virtual_clone
30610 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
30611 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
30612 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
30613 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
30614 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
30615 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
30616 created from cgraph_function_version_info
30617 (struct cgraph_function_version_info *insert_new_function_version (void)):
30618 created from insert_new_cgraph_node_version
30619 (struct cgraph_function_version_info *function_version (void)): created from
30620 get_cgraph_node_version
30621 (void analyze (void)): created from analyze_function
30622 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
30623 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
30624 tree real_alias) cgraph_add_thunk
30625 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
30626 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
30627 created from cgraph_function_or_thunk_node
30628 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
30629 created from expand_thunk
30630 (void reset (void)): created from cgraph_reset_node
30631 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
30632 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
30633 (void remove (void)): created from cgraph_remove_node
30634 (void dump (FILE *f)): created from dump_cgraph_node
30635 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
30636 (bool get_body (void)): created from cgraph_get_body
30637 (void release_body (void)): created from cgraph_release_function_body
30638 (void unnest (void)): created from cgraph_unnest_node
30639 (void make_local (void)): created from cgraph_make_node_local
30640 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
30641 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
30642 gcov_type count, int freq)): created from cgraph_create_edge
30643 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
30644 gcov_type count, int freq)): created from cgraph_create_indirect_edge
30645 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
30646 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
30647 created from cgraph_create_edge_including_clones
30648 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
30649 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
30650 (void remove_callers (void)): created from cgraph_node_remove_callers
30651 (void remove_callees (void)): created from cgraph_node_remove_callees
30652 (enum availability get_availability (void)): created from cgraph_function_body_availability
30653 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
30654 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
30655 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
30656 (void call_duplication_hooks (cgraph_node *node2)): created from
30657 cgraph_call_node_duplication_hooks
30658 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
30659 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
30660 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
30661 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
30662 (void call_function_insertion_hooks (void)):
30663 created from cgraph_call_function_insertion_hooks
30664 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
30665 (bool local_p (void)): created from cgraph_local_node
30666 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
30667 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
30668 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
30669 (inline bool only_called_directly_or_aliased_p (void)):
30670 created from cgraph_only_called_directly_or_aliased_p
30671 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
30672 created from cgraph_will_be_removed_from_program_if_no_direct_calls
30673 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
30674 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
30675 (bool can_remove_if_no_direct_calls_p (void)):
30676 created from cgraph_can_remove_if_no_direct_calls_p
30677 (inline bool has_gimple_body_p (void)):
30678 created from cgraph_function_with_gimple_body_p
30679 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
30680 (static void dump_cgraph (FILE *f)): created from dump_cgraph
30681 (static inline void debug_cgraph (void)): created from debug_cgraph
30682 (static void record_function_versions (tree decl1, tree decl2)):
30683 created from record_function_versions
30684 (static void delete_function_version (tree decl)):
30685 created from delete_function_version
30686 (static void add_new_function (tree fndecl, bool lowered)):
30687 created from cgraph_add_new_function
30688 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
30689 (static cgraph_node * create (tree decl)): created from cgraph_create_node
30690 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
30691 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
30692 (static cgraph_node *get_for_asmname (tree asmname)):
30693 created from cgraph_node_for_asm
30694 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
30695 created from cgraph_same_body_alias
30696 (static bool used_from_object_file_p_worker (cgraph_node *node,
30697 void *): new function
30698 (static bool non_local_p (cgraph_node *node, void *)):
30699 created from cgraph_non_local_node_p_1
30700 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
30701 created from verify_cgraph
30702 (static bool make_local (cgraph_node *node, void *)):
30703 created from cgraph_make_node_local
30704 (static cgraph_node *create_alias (tree alias, tree target)):
30705 created from cgraph_create_function_alias
30706 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
30707 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
30708 created from cgraph_create_edge_1
30709 * cgraph.h (varpool_node):
30710 (void remove (void)): created from varpool_remove_node
30711 (void dump (FILE *f)): created from dump_varpool_node
30713 2014-07-24 Richard Biener <rguenther@suse.de>
30716 * tree-ssa-structalias.c (create_variable_info_for_1):
30717 Use varpool_get_constructor.
30718 (create_variable_info_for): Likewise.
30720 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30722 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
30723 subtract outgoing area size when restoring stack_pointer_rtx.
30725 2014-07-24 Nick Clifton <nickc@redhat.com>
30727 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
30728 that operations are taking place in parallel.
30729 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
30731 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
30733 * omp-low.c (extract_omp_for_data): Add missing break statement.
30735 2014-07-24 Richard Biener <rguenther@suse.de>
30737 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
30738 * tree-inline.c (estimate_move_cost): Add speed_p parameter
30739 and adjust MOVE_RATIO query accordingly.
30740 (estimate_num_insns): Adjust callers.
30741 * ipa-prop.c (ipa_populate_param_decls): Likewise.
30742 * ipa-cp.c (gather_context_independent_values,
30743 estimate_local_effects): Likewise.
30744 * ipa-split.c (consider_split): Likewise.
30746 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
30748 * config/i386/driver-i386.c: Remove names of unused arguments and
30749 unnecessary unused attributes.
30750 * config/i386/host-mingw32.c: Likewise.
30751 * config/i386/i386.c: Likewise.
30752 * config/i386/winnt-stubs.c: Likewise.
30753 * config/i386/winnt.c: Likewise.
30755 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30757 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
30758 (aarch64_gen_loadwb_pair): New helper function.
30759 (aarch64_expand_epilogue): Simplify code using new helper functions.
30760 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
30762 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30764 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
30765 (aarch64_gen_storewb_pair): New helper function.
30766 (aarch64_expand_prologue): Simplify code using new helper functions.
30767 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
30769 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30771 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
30772 Rename to aarch64_save_callee_saves, remove restore code.
30773 (aarch64_restore_callee_saves): New function.
30775 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30777 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
30778 (aarch64_save_callee_saves): New function to handle reg save
30779 for both core and vectore regs.
30781 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30783 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
30784 (aarch64_gen_store_pair): New helper function.
30785 (aarch64_save_or_restore_callee_save_registers)
30786 (aarch64_save_or_restore_fprs): Use new helper functions.
30788 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30790 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
30791 (aarch64_save_or_restore_callee_save_registers)
30792 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
30794 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30796 * config/aarch64/aarch64.c
30797 (aarch64_save_or_restore_callee_save_registers)
30798 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
30800 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30802 * config/aarch64/aarch64.c
30803 (aarch64_save_or_restore_callee_save_registers)
30804 (aarch64_save_or_restore_fprs): Remove 'increment'.
30806 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30808 * config/aarch64/aarch64.c
30809 (aarch64_save_or_restore_callee_save_registers)
30810 (aarch64_save_or_restore_fprs): Use register offset in
30811 cfun->machine->frame.reg_offset.
30813 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30815 * config/aarch64/aarch64.c
30816 (aarch64_save_or_restore_callee_save_registers)
30817 (aarch64_save_or_restore_fprs): Remove base_rtx.
30819 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30821 * config/aarch64/aarch64.c
30822 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
30823 to 'start_offset'. Remove local variable 'start_offset'.
30825 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30827 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
30828 type to HOST_WIDE_INT.
30830 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30832 * config/aarch64/aarch64.c (aarch64_expand_prologue)
30833 (aarch64_save_or_restore_fprs)
30834 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
30836 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
30838 * config/arm/t-rtems-eabi: Add
30839 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
30840 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
30841 mbig-endian/mthumb/march=armv7-r, and
30842 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
30845 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
30846 Chris Johns <chrisj@rtems.org>
30847 Joel Sherrill <joel.sherrill@oarcorp.com>
30849 * config.gcc: Add nios2-*-rtems*.
30850 * config/nios2/rtems.h: New file.
30851 * gcc/config/nios2/t-rtems: New file.
30853 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
30856 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
30857 constant numbers, not general constants.
30858 (rs6000_expand_vector_init): Ditto.
30860 2014-07-23 Nathan Sidwell <nathan@acm.org>
30862 * gcov-tool.c (gcov_list): Declare here.
30863 (set_gcov_list): Remove.
30864 (gcov_output_files): Set gcov_list directly.
30866 2014-07-23 Host Schirmeier <horst@schirmeier.com>
30868 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
30870 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30872 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
30873 callee-saved registers are available for padding purpose
30874 and r3 is not mandatory, then prefer use those callee-saved
30877 2014-07-23 Richard Biener <rguenther@suse.de>
30879 * params.def (PARAM_MAX_COMBINE_INSNS): New.
30880 * combine.c: Include statistics.h and params.h.
30881 (combine_instructions): Guard three and four insn combines
30882 with max-combine-insns value. Record statistics for combines
30884 * doc/invoke.texi (max-combine-insns): Document new param.
30886 2014-07-23 Roman Gareev <gareevroman@gmail.com>
30888 * graphite-isl-ast-to-gimple.c:
30889 (translate_isl_ast_node_block): New function.
30890 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
30892 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
30893 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
30895 2014-07-23 Roman Gareev <gareevroman@gmail.com>
30897 * graphite-isl-ast-to-gimple.c:
30898 (get_max_schedule_dimensions): New function.
30899 (extend_schedule): Likewise.
30900 (generate_isl_schedule): Add calling of extend_schedule and
30901 get_max_schedule_dimensions.
30903 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30905 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
30906 (case UNSPEC): Handle UNSPEC_RBIT.
30908 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30910 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
30911 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
30913 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30915 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
30917 2014-07-22 Roman Gareev <gareevroman@gmail.com>
30919 * graphite-isl-ast-to-gimple.c:
30920 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
30921 (ivs_params_clear):
30922 (build_iv_mapping): New function.
30923 (translate_isl_ast_node_user): Likewise.
30924 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
30926 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
30927 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
30928 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
30930 2014-07-21 Bin Cheng <bin.cheng@arm.com>
30933 * config/arm/arm.md (setmem): New pattern.
30934 * config/arm/arm-protos.h (struct tune_params): New fields.
30935 (arm_gen_setmem): New prototype.
30936 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
30937 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
30938 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
30939 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
30940 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
30941 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
30942 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
30943 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
30944 (arm_const_inline_cost): New function.
30945 (arm_block_set_max_insns): New function.
30946 (arm_block_set_non_vect_profit_p): New function.
30947 (arm_block_set_vect_profit_p): New function.
30948 (arm_block_set_unaligned_vect): New function.
30949 (arm_block_set_aligned_vect): New function.
30950 (arm_block_set_unaligned_non_vect): New function.
30951 (arm_block_set_aligned_non_vect): New function.
30952 (arm_block_set_vect, arm_gen_setmem): New functions.
30954 2014-07-21 Bin Cheng <bin.cheng@arm.com>
30956 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
30958 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
30961 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
30962 out of #ifdef __OPTIMIZE__.
30964 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
30966 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
30967 different trapping status if -fnon-call-exceptions is enabled.
30969 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
30971 * expr.c (store_field): Handle VOIDmode for calls that return values
30972 in multiple locations.
30974 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30976 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
30977 (altivec_vsldoi_<mode>): Likewise.
30979 2014-07-20 Roman Gareev <gareevroman@gmail.com>
30981 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
30982 to the number of characters in the line.
30984 2014-07-20 Roman Gareev <gareevroman@gmail.com>
30986 * graphite-isl-ast-to-gimple.c: Add using of
30987 build_nonstandard_integer_type instead of int128_integer_type_node.
30989 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
30991 * toplev.c (output_stack_usage): Adjust the location of the warning.
30993 2014-07-19 Daniel Cederman <cederman@gaisler.com>
30995 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
30996 (*membar_storeload): Disable for LEON3.
30998 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
31000 PR rtl-optimization/61461
31001 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
31003 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
31006 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
31007 Fix instruction constraint.
31008 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
31010 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
31012 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
31014 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
31016 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
31017 GNU coding standards.
31018 (nds32_register_move_cost): Likewise.
31019 (nds32_memory_move_cost): Likewise.
31020 (nds32_address_cost): Likewise.
31022 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31024 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
31026 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
31028 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
31029 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
31030 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
31031 (HAVE_sync_compare_and_swapqi): Define.
31032 (HAVE_sync_compare_and_swaphi): Likewise.
31033 (HAVE_sync_compare_and_swapsi): Likewise.
31035 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
31037 * config/mips/p5600.md: Add missing cpu tests.
31039 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31041 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
31042 (vmla_f64): Likewise.
31043 (vfms_f64): Likewise.
31044 (vmls_f64): Likewise.
31046 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31048 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
31049 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
31051 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31053 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
31054 (vmlal_high_lane_s32): Likewise.
31055 (vmlal_high_lane_u16): Likewise.
31056 (vmlal_high_lane_u32): Likewise.
31057 (vmlsl_high_lane_s16): Likewise.
31058 (vmlsl_high_lane_s32): Likewise.
31059 (vmlsl_high_lane_u16): Likewise.
31060 (vmlsl_high_lane_u32): Likewise.
31062 2014-07-17 Terry Guo <terry.guo@arm.com>
31064 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
31065 (alus_reg): Renamed to alus_sreg.
31066 * config/arm/arm-fixed.md: Change type of non-dsp instructions
31067 from alu_reg to alu_sreg. Change type of dsp instructions from
31068 alu_reg to alu_dsp_reg.
31069 * config/arm/thumb1.md: Likewise.
31070 * config/arm/thumb2.md: Likewise.
31071 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
31072 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
31073 with alu_sreg and alus_sreg.
31074 * config/arm/arm1026ejs.md (alu_op): Likewise.
31075 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
31076 * config/arm/arm926ejs.md (9_alu_op): Likewise.
31077 * config/arm/fa526.md (526_alu_op): Likewise.
31078 * config/arm/fa606te.md (606te_alu_op): Likewise.
31079 * config/arm/fa626te.md (626te_alu_op): Likewise.
31080 * config/arm/fa726te.md (726te_alu_op): Likewise.
31081 * config/arm/fmp626.md (mp626_alu_op): Likewise.
31082 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
31083 alu_sreg, alu_dsp_reg and alus_sreg.
31084 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
31085 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
31086 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
31087 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
31088 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
31089 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
31090 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
31091 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
31092 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
31093 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
31094 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
31095 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
31096 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
31097 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
31098 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
31099 alus_reg to alus_sreg.
31101 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
31103 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
31106 2014-07-17 Richard Biener <rguenther@suse.de>
31108 PR rtl-optimization/61801
31109 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
31110 don't set reg_pending_barrier if it appears in a debug-insn.
31112 2014-07-16 DJ Delorie <dj@redhat.com>
31114 * config/rx/rx.c (rx_option_override): Fix alignment values.
31115 (rx_align_for_label): Likewise.
31117 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
31120 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
31121 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
31122 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
31124 (cris_print_index, cris_print_operand, cris_constant_index_p)
31125 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
31126 (cris_address_cost): Ditto last CONSTANT_P.
31127 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
31128 callers changed. Yield cris_offsettable_symbol for non-PIC
31129 constant symbolic expressions including labels. Yield cris_unspec
31131 (cris_expand_pic_call_address): New parameter MARKERP. Set its
31132 target to pic_offset_table_rtx for calls that will likely go
31133 through PLT, const0_rtx when they can't. All callers changed.
31134 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
31135 symbolic expressions to be PICified. Remove second, redundant,
31136 assert on can_create_pseudo_p returning non-zero. Use
31137 replace_equiv_address_nv, not replace_equiv_address, for final
31139 * config/cris/cris.md ("movsi"): Move variable t to pattern
31140 toplevel. Adjust assert for new cris_symbol_type member. Use
31141 CONSTANT_P instead of CONSTANT_ADDRESS_P.
31142 ("*movsi_internal") <case 9>: Make check for valid unspec operands
31144 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
31145 ("call", "call_value"): Use second incoming operand as a marker
31146 for pic-offset-table-register being used.
31147 ("*expanded_call_non_v32", "*expanded_call_v32")
31148 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
31149 second incoming operand to CALL, match cris_call_type_marker.
31150 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
31151 ("*expanded_call_side"): Ditto. Fix typo in comment.
31152 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
31154 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
31155 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
31156 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
31157 users changed. Add members cris_offsettable_symbol and cris_unspec.
31158 (cris_symbol_type): Rename from cris_pic_symbol_type.
31159 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
31161 * config/cris/cris-protos.h (cris_symbol_type_of,
31162 cris_expand_pic_call_address): Adjust prototypes.
31163 (cris_legitimate_constant_p): New prototype.
31165 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
31166 an existing tmake_file. Don't add t-slibgcc and t-linux.
31168 2014-07-17 Jason Merrill <jason@redhat.com>
31171 * symtab.c (symtab_remove_from_same_comdat_group): Also
31172 set_comdat_group to NULL_TREE.
31173 (verify_symtab): Fix diagnostic.
31175 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
31178 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
31180 2014-07-16 Dodji Seketeli <dodji@redhat.com>
31182 Support location tracking for built-in macro tokens
31183 * input.h (is_location_from_builtin_token): New function declaration.
31184 * input.c (is_location_from_builtin_token): New function definition.
31185 * toplev.c (general_init): Tell libcpp what the pre-defined
31186 spelling location for built-in tokens is.
31188 2014-07-16 Jakub Jelinek <jakub@redhat.com>
31190 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
31191 on the FUNCTION_DECL.
31193 2014-07-16 Richard Biener <rguenther@suse.de>
31196 * doc/extend.texi (always_inline): Clarify.
31198 2014-07-15 Eric Christopher <echristo@gmail.com>
31200 * doc/invoke.texi (Link Options): Document -z option.
31202 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
31204 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
31205 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
31207 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
31209 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
31211 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
31213 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
31214 varpool_assemble_decl.
31215 * varpool.c (varpool_assemble_decl): Assert that node->definition is
31218 2014-07-15 Michael Matz <matz@suse.de>
31220 PR rtl-optimization/61772
31221 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
31223 2014-07-15 Richard Biener <rguenther@suse.de>
31225 * opts.c (default_options_table): Disable bit-ccp at -Og.
31227 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
31229 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
31231 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
31233 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
31234 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
31235 call langhook for unknown declaration.
31236 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
31237 * tree.h (DECL_ARGUMENTS): Update.
31238 * print-tree.c (print_node): Update.
31239 * tree-core.h (tree_decl_non_common): Remove arguments.
31240 (tree_function_decl): Add arguments.
31242 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
31244 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
31246 2014-07-14 Richard Biener <rguenther@suse.de>
31248 PR tree-optimization/61779
31249 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
31250 simplifying a condition.
31252 2014-07-14 Richard Biener <rguenther@suse.de>
31254 * builtins.c (c_strlen): Make only_value == 2 really only
31255 affect warning generation.
31257 2014-07-14 Richard Biener <rguenther@suse.de>
31259 PR tree-optimization/61757
31260 PR tree-optimization/61783
31261 PR tree-optimization/61787
31262 * tree-ssa-dom.c (record_equality): Revert canonicalization
31263 change and add comment.
31264 (propagate_rhs_into_lhs): Revert previous fix, removing
31265 loop depth restriction again.
31267 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31269 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
31270 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
31271 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
31272 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
31273 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
31274 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
31275 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
31277 2014-07-14 Richard Biener <rguenther@suse.de>
31279 * cgraph.h (decl_in_symtab_p): Make inline.
31281 2014-07-14 Jakub Jelinek <jakub@redhat.com>
31283 PR middle-end/61294
31284 * doc/invoke.texi (-Wmemset-transposed-args): Document.
31287 * config/i386/i386.c (classify_argument): Don't merge classes above
31290 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
31292 * cgraph.h (symtab_node): Add nonzero_address.
31293 (decl_in_symtab_p): Break out from ...
31294 (symtab_get_node): ... here.
31295 * fold-const.c: Include cgraph.h
31296 (tree_single_nonzero_warnv_p): Use symtab to determine
31297 if symbol is non-zero.
31298 * symtab.c (symtab_node::nonzero_address): New method.
31300 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
31302 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
31303 forgotten in previous commit.
31305 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
31307 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
31309 * ipa-devirt.c: Include stor-layout.h and intl.h
31310 (odr_subtypes_equivalent_p): New function.
31311 (warn_odr): New function.
31312 (warn_type_mismatch): New function.
31313 (odr_types_equivalent_p): New function.
31314 (add_type_duplicate): Use it.
31315 * common.opt (Wodr): New flag.
31316 * doc/invoke.texi (Wodr): Document new warning.
31318 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
31320 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
31321 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
31322 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
31323 (varpool_get_constructor): Push CTORS_IN timevar.
31324 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
31326 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
31328 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
31329 Remove VOID_FTYPE_PUSHORT.
31330 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
31331 Change code to USHORT_FTYPE_VOID.
31332 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
31333 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
31334 (ix86_atomic_assign_expand_fenv): Update for
31335 __builtin_ia32_fnstsw changes.
31336 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
31337 (fnstsw): Change operand 0 to nonimmediate operand.
31339 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
31341 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
31342 (varpool_get_constructor): New function.
31343 (varpool_ctor_useable_for_folding_p): Break out from ...
31344 (ctor_for_folding): ... here; use varpool_get_constructor.
31345 (varpool_assemble_decl): Likewise.
31346 * lto-streamer.h (struct output_block): Turn cgraph_node
31348 (lto_input_variable_constructor): Declare.
31349 * ipa-visibility.c (function_and_variable_visibility): Use
31350 varpool_get_constructor.
31351 * cgraph.h (varpool_get_constructor): Declare.
31352 (varpool_ctor_useable_for_folding_p): New function.
31353 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
31354 parameter; return error_mark_node for non-trivial constructors.
31355 (lto_write_tree_1, DFS_write_tree): Update use of
31356 get_symbol_initial_value.
31357 (output_function): Update initialization of symbol.
31358 (output_constructor): New function.
31359 (copy_function): Rename to ..
31360 (copy_function_or_variable): ... this one; handle vars too.
31361 (lto_output): Output variable sections.
31362 * lto-streamer-in.c (input_constructor): New function.
31363 (lto_read_body): Rename from ...
31364 (lto_read_body_or_constructor): ... this one; handle vars too.
31365 (lto_input_variable_constructor): New function.
31366 * ipa-prop.c (ipa_prop_write_jump_functions,
31367 ipa_prop_write_all_agg_replacement): Update.
31368 * lto-cgraph.c (compute_ltrans_boundary): Use it.
31369 (output_cgraph_opt_summary): Set symbol to NULL.
31371 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
31373 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
31374 non-polymorphic types.
31375 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
31376 * ipa-devirt.c (types_same_for_odr): Do not explode when one
31377 of types is not polymorphic.
31379 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
31381 * lra-constraints.c (remove_inheritance_pseudos): Process
31382 destination pseudo too.
31384 2014-07-11 Rong Xu <xur@google.com>
31386 * gcov-tool.c (gcov_output_files): Fix build error introduced in
31389 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
31391 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
31392 * config/avr/avr-devices.c (AVR_MCU): Same.
31393 (avr_mcu_types): add text start value to end of device list.
31394 * config/avr/avr-mcus.def: Add text section start for all devices.
31395 (ata5782): Add new avr5 device.
31397 * config/avr/avr-tables.opt: Regenerate.
31398 * config/avr/avr.h: Add declaration for text section start handler.
31399 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
31401 (LINK_SPEC): Include text section start handler to linker spec.
31402 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
31403 pass -Ttext option to linker if the text section start for the device
31405 * config/avr/t-multilib: Regenerate.
31406 * doc/avr-mmcu.texi: Regenerate.
31408 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
31410 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
31411 * config/rs6000/aix52.h (LINK_SPEC): Same.
31412 * config/rs6000/aix53.h (LINK_SPEC): Same.
31413 * config/rs6000/aix61.h (LINK_SPEC): Same.
31414 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
31416 2014-07-11 Roman Gareev <gareevroman@gmail.com>
31418 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
31419 (graphite_verify): New function.
31420 (ivs_params_clear): New function.
31421 (gcc_expression_from_isl_ast_expr_id): New function.
31422 (gcc_expression_from_isl_expr_int): New function.
31423 (binary_op_to_tree): New function.
31424 (ternary_op_to_tree): New function.
31425 (unary_op_to_tree): New function.
31426 (nary_op_to_tree): New function.
31427 (gcc_expression_from_isl_expr_op): New function.
31428 (gcc_expression_from_isl_expression): New function.
31429 (graphite_create_new_loop): New function.
31430 (translate_isl_ast_for_loop): New function.
31431 (get_upper_bound): New function.
31432 (graphite_create_new_loop_guard): New function.
31433 (translate_isl_ast_node_for): New function.
31434 (translate_isl_ast): New function.
31435 (add_parameters_to_ivs_params): New function.
31436 (scop_to_isl_ast): New parameter ip.
31437 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
31439 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
31441 * config/xtensa/predicates.md (call expander): Update for
31442 DECL_SECTION_NAME being string.
31444 2014-07-11 Richard Biener <rguenther@suse.de>
31446 PR middle-end/61473
31447 * builtins.c (fold_builtin_memory_op): Inline memory moves that
31448 can be implemented with a single load followed by a single store.
31449 (c_strlen): Only warn when only_value is not 2.
31451 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
31453 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
31455 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
31458 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
31459 (*movhi_bytes): Likewise.
31460 (*arm_movqi_insn): Likewise.
31462 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
31465 * config/alpha/alpha.c: Include tree-pass.h, context.h
31466 and pass_manager.h.
31467 (pass_data_handle_trap_shadows): New pass.
31468 (pass_handle_trap_shadows::gate): New pass gate function.
31469 (make_pass_handle_trap_shadows): New function.
31470 (rest_of_handle_trap_shadows): Ditto.
31472 (alpha_align_insns_1): Rename from alpha_align_insns.
31473 (pass_data_align_insns): New pass.
31474 (pass_align_insns::gate): New pass gate function.
31475 (make_pass_aling_insns): New function.
31476 (rest_of_align_insns): Ditto.
31477 (alpha_align_insns): Ditto.
31479 (alpha_option_override): Declare handle_trap_shadows info
31480 and align_insns_info. Register handle_trap_shadows and align_insns
31482 (alpha_reorg): Do not call alpha_trap_shadows and
31483 alpha_align_insn from here.
31485 (alpha_pad_function_end): Do not skip BARRIERs.
31487 2014-07-10 Rong Xu <xur@google.com>
31489 Add gcov-tool: an offline gcda profile processing tool support.
31490 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
31491 (gcov_is_error): Ditto.
31492 (gcov_read_string): Ditto.
31493 (gcov_read_sync): Ditto.
31494 * gcov-io.h: Move counter defines to gcov-counter.def.
31495 * gcov-dump.c (tag_counters): Use gcov-counter.def.
31496 * coverage.c: Ditto.
31497 * gcov-tool.c: Offline gcda profile processing tool.
31498 (unlink_gcda_file): Remove one gcda file.
31499 (unlink_profile_dir): Remove gcda files from the profile path.
31500 (gcov_output_files): Output gcda files to an output dir.
31501 (profile_merge): Merge two profiles in directory.
31502 (print_merge_usage_message): Print merge usage.
31503 (merge_usage): Print merge usage and exit.
31504 (do_merge): Driver for profile merge sub-command.
31505 (profile_rewrite): Rewrite profile.
31506 (print_rewrite_usage_message): Print rewrite usage.
31507 (rewrite_usage): Print rewrite usage and exit.
31508 (do_rewrite): Driver for profile rewrite sub-command.
31509 (print_usage): Print gcov-info usage and exit.
31510 (print_version): Print gcov-info version.
31511 (process_args): Process arguments.
31512 (main): Main routine for gcov-tool.
31513 * Makefile.in: Build and install gcov-tool.
31514 * gcov-counter.def: New file split from gcov-io.h.
31515 * doc/gcc.texi: Include gcov-tool.texi.
31516 * doc/gcov-tool.texi: Document for gcov-tool.
31518 2014-07-10 Richard Biener <rguenther@suse.de>
31520 PR tree-optimization/61757
31521 * tree-ssa-dom.c (loop_depth_of_name): Restore.
31522 (propagate_rhs_into_lhs): Revert part of last change.
31524 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
31526 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
31529 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
31531 PR middle-end/53590
31532 * function.c (allocate_struct_function): Revert r188667 change.
31534 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
31536 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
31538 * doc/install.texi: Remove links to defunct package providers for
31541 2014-07-09 Tom de Vries <tom@codesourcery.com>
31543 * final.c (get_call_fndecl): Declare.
31544 (self_recursive_call_p): New function.
31545 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
31547 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31549 * ipa-devirt.c (record_node): Walk through aliases.
31551 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31553 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
31555 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31558 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
31560 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31562 * ipa-visibility.c (function_and_variable_visibility): Remove
31563 temporary hack disabling local aliases on AIX.
31565 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31567 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
31568 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
31570 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31572 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
31573 * rs6000/rs6000.c: Inline output of .set instruction.
31574 (declare_alias_data): New struct.
31575 (rs6000_declare_alias): New function.
31576 (rs6000_xcoff_declare_function_name): Use it.
31577 (rs6000_xcoff_declare_object_name): New function.
31578 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
31579 (ASM_OUTPUT_DEF): Turn to empty definition.
31581 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
31584 * hash-table.h: use hash_table::value_type instead of
31585 Descriptor::value_type in the return types of several methods.
31587 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
31589 * tree-pass.h (pass_data): Remove has_execute member.
31590 * passes.c (execute_one_pass): Don't check pass->has_execute.
31591 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
31592 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
31593 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
31594 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
31595 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
31596 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
31597 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
31598 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
31599 gimple-low.c, gimple-ssa-isolate-paths.c,
31600 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
31601 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
31602 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
31603 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
31604 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
31605 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
31606 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
31607 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
31608 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
31609 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
31610 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
31611 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
31612 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
31613 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
31614 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
31615 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
31616 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
31617 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
31618 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
31619 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
31620 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
31621 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
31622 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
31623 web.c: Remove initializer for pass_data::has_execute.
31625 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
31627 * graphite-htab.h: Use hash_map instead of hash_table.
31628 * graphite-clast-to-gimple.c: Adjust.
31629 * passes.c: Use hash_map instead of hash_table.
31630 * sese.c: Likewise.
31631 * sese.h: Remove now unused code.
31633 2014-07-08 Sriraman Tallam <tmsriram@google.com>
31636 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
31639 2014-07-08 Jakub Jelinek <jakub@redhat.com>
31641 PR rtl-optimization/61673
31642 * combine.c (simplify_comparison): Test just mode's sign bit
31643 in tmode rather than the sign bit and any bits above it.
31645 2014-07-08 Roman Gareev <gareevroman@gmail.com>
31647 * graphite-isl-ast-to-gimple.c (generate_isl_context):
31648 Add __isl_give to the declaration.
31649 (generate_isl_schedule): Likewise.
31650 (scop_to_isl_ast): Likewise.
31652 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31654 * config/arm/arm.c (cortexa5_extra_costs): New table.
31655 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
31657 2014-07-08 Jakub Jelinek <jakub@redhat.com>
31659 PR tree-optimization/61725
31660 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
31661 range, use range_includes_zerop_p instead of integer_zerop on
31662 vr0->min, only use log2 of max if min is not negative.
31664 2014-07-08 Richard Biener <rguenther@suse.de>
31666 * tree-ssa-dom.h (loop_depth_of_name): Remove.
31667 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
31668 restriction on loop depth difference.
31669 (record_equality): Likewise.
31670 (propagate_rhs_into_lhs): Likewise. Simplify condition.
31671 (loop_depth_of_name): Remove.
31672 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
31673 restriction on loop depth difference.
31674 (init_copy_prop): Likewise.
31676 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31678 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
31680 (walk_aliased_vdefs): Likewise.
31681 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
31682 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
31683 (detect_type_change_from_memory_writes): Check if entry was reached.
31685 2014-07-08 Richard Biener <rguenther@suse.de>
31687 PR tree-optimization/61681
31688 * tree-ssa-structalias.c (find_what_var_points_to): Expand
31689 NONLOCAL inside ESCAPED.
31691 2014-07-08 Richard Biener <rguenther@suse.de>
31693 PR tree-optimization/61680
31694 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31695 Handle properly all read-write dependences with group accesses.
31697 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
31699 PR tree-optimization/61576
31700 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
31701 block containing reduction statement is predecessor of phi basi block.
31703 2014-07-08 Marek Polacek <polacek@redhat.com>
31706 * fold-const.c (round_up_loc): Change the parameter type.
31708 * fold-const.h (round_up_loc): Adjust declaration.
31709 * stor-layout.c (finalize_record_size): Check for too large types.
31711 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
31713 * symtab.c: Include calls.h.
31714 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
31716 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
31718 * config/rs6000/rs6000.c (output_vec_const_move): Handle
31719 little-endian code generation.
31720 * config/rs6000/spe.md (spe_evmergehi): Rename to...
31721 (vec_perm00_v2si): ... this. Handle little-endian code generation.
31722 (spe_evmergehilo): Rename to...
31723 (vec_perm01_v2si): ... this. Handle little-endian code generation.
31724 (spe_evmergelo): Rename to...
31725 (vec_perm11_v2si): ... this. Handle little-endian code generation.
31726 (spe_evmergelohi): Rename to...
31727 (vec_perm10_v2si): ... this. Handle little-endian code generation.
31728 (spe_evmergehi, spe_evmergehilo): New expanders.
31729 (spe_evmergelo, spe_evmergelohi): Likewise.
31730 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
31731 (*frob_tf_ti): Likewise.
31732 (*frob_<mode>_di_2): Likewise.
31733 (*frob_tf_di_8_2): Likewise.
31734 (*frob_di_<mode>): Likewise.
31735 (*frob_ti_tf): Likewise.
31736 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
31737 (*frob_ti_<mode>_8_2): Likewise.
31738 (*frob_ti_tf_2): Likewise.
31739 (mov_si<mode>_e500_subreg0): Rename to...
31740 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
31742 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
31743 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
31744 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
31745 the big endianness only.
31746 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
31747 (*mov_si<mode>_e500_subreg0_2): Rename to...
31748 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
31749 big big endianness only.
31750 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
31751 (*mov_si<mode>_e500_subreg4): Rename to...
31752 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
31754 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
31755 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
31756 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
31757 the big endianness only.
31758 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
31760 (*mov_si<mode>_e500_subreg4_2): Rename to...
31761 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
31763 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
31764 (*mov_sitf_e500_subreg8): Rename to...
31765 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
31767 (*mov_sitf_e500_subreg8_le): New instruction pattern.
31768 (*mov_sitf_e500_subreg8_2): Rename to...
31769 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
31771 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
31772 (*mov_sitf_e500_subreg12): Rename to...
31773 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
31775 (*mov_sitf_e500_subreg12_le): New instruction pattern.
31776 (*mov_sitf_e500_subreg12_2): Rename to...
31777 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
31779 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
31781 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
31783 * asan.c (instrument_strlen_call): Do not instrument first byte
31784 in strlen if already instrumented.
31786 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31788 * config/arm/arm.opt (mwords-little-endian): Delete.
31789 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
31790 of TARGET_LITTLE_WORDS.
31791 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
31792 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
31794 * doc/invoke.texi: Remove references to -mwords-little-endian.
31796 2014-07-07 Jakub Jelinek <jakub@redhat.com>
31798 * expmed.c (struct init_expmed_rtl): Change all fields but
31799 pow2 and cint from struct rtx_def to rtx.
31800 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
31801 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
31804 2014-07-06 Marek Polacek <polacek@redhat.com>
31807 * doc/invoke.texi: Document -Wsizeof-array-argument.
31809 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
31811 * wide-int.h (wide_int_storage): Change declaration from struct
31814 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
31816 * cgraph.c (cgraph_create_indirect_edge): Update call of
31817 get_polymorphic_call_info.
31818 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
31819 (possible_polymorphic_call_targets): Add parameter call.
31820 (decl_maybe_in_construction_p): New predicate.
31821 (get_polymorphic_call_info): Add parameter call;
31822 use decl_maybe_in_construction_p.
31823 * gimple-fold.c (fold_gimple_assign): Update use of
31824 possible_polymorphic_call_targets.
31825 (gimple_fold_call): Likewise.
31826 * ipa-prop.c: Inlcude calls.h
31827 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
31828 (param_type_may_change_p): New predicate.
31829 (detect_type_change_from_memory_writes): Break out from ...
31830 (detect_type_change): ... this one; use param_type_may_change_p.
31831 (detect_type_change_ssa): Use param_type_may_change_p.
31832 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
31834 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
31837 * config/arm/arm-protos.h (arm_legitimate_address_p,
31838 arm_is_constant_pool_ref): Add prototypes.
31839 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
31840 (arm_is_constant_pool_ref) New function.
31841 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
31842 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
31843 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
31844 operand. Remove pool_range and neg_pool_range attributes.
31845 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
31846 pool_range and neg_pool_range attributes.
31847 * config/arm/constraints.md (Uh): New constraint.
31848 (Uq): Don't allow constant pool references.
31850 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
31852 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
31853 (move_lo_quad_internal_be_<mode>): Likewise.
31854 (move_lo_quad_<mode>): Convert to define_expand.
31855 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
31856 (aarch64_simd_move_hi_quad_be_<mode>): New.
31857 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
31858 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
31859 (aarch64_combinez_be<mode>): New.
31860 (aarch64_combine<mode>): Convert to define_expand.
31861 (aarch64_combine_internal<mode>): New.
31862 (aarch64_simd_combine<mode>): Remove bogus RTL description.
31864 2014-07-04 Tom de Vries <tom@codesourcery.com>
31866 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
31867 combination of earlyclobber and read/write modifiers.
31869 2014-07-04 Tom de Vries <tom@codesourcery.com>
31871 * config/aarch64/aarch64-simd.md
31872 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
31874 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
31877 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
31879 2014-07-04 Jakub Jelinek <jakub@redhat.com>
31881 PR middle-end/61654
31882 * cgraphunit.c (expand_thunk): Call free_dominance_info.
31884 PR tree-optimization/61684
31885 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
31886 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
31888 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
31889 Kito Cheng <kito@0xlab.org>
31890 Monk Chiang <sh.chiang04@gmail.com>
31892 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
31893 (nds32_symbol_load_store_p): Move to ...
31894 (nds32_fp_as_gp_check_available): Move to ...
31895 * config/nds32/nds32-fp-as-gp.c: ... here.
31896 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
31897 extern declaration.
31899 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
31900 Kito Cheng <kito@0xlab.org>
31901 Monk Chiang <sh.chiang04@gmail.com>
31903 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
31904 (nds32_expand_store_multiple): Move to ...
31905 (nds32_expand_movmemqi): Move to ...
31906 * config/nds32/nds32-memory-manipulation.c: ... here.
31908 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
31909 Kito Cheng <kito@0xlab.org>
31910 Monk Chiang <sh.chiang04@gmail.com>
31912 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
31913 (nds32_output_casesi_pc_relative): Move to ...
31914 (nds32_output_casesi): Move to ...
31915 (nds32_mem_format): Move to ...
31916 (nds32_output_16bit_store): Move to ...
31917 (nds32_output_16bit_load): Move to ...
31918 (nds32_output_32bit_store): Move to ...
31919 (nds32_output_32bit_load): Move to ...
31920 (nds32_output_32bit_load_s): Move to ...
31921 (nds32_output_stack_push): Move to ...
31922 (nds32_output_stack_pop): Move to ...
31923 * config/nds32/nds32-md-auxiliary.c: ... here.
31925 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
31926 Ling-Hua Tseng <uranus@tinlans.org>
31928 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
31929 the purpose of this file.
31931 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
31932 Kito Cheng <kito@0xlab.org>
31933 Monk Chiang <sh.chiang04@gmail.com>
31935 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
31936 (nds32_address_cost): Move implementation to ...
31937 * config/nds32/nds32-cost.c: ... here.
31938 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
31939 (nds32_address_cost_impl): Declare.
31941 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
31942 Kito Cheng <kito@0xlab.org>
31943 Monk Chiang <sh.chiang04@gmail.com>
31945 * config/nds32/nds32.c
31946 (nds32_consecutive_registers_load_store_p): Move to ...
31947 (nds32_valid_multiple_load_store): Move to ...
31948 (nds32_valid_stack_push_pop): Move to ...
31949 (nds32_can_use_bclr_p): Move to ...
31950 (nds32_can_use_bset_p): Move to ...
31951 (nds32_can_use_btgl_p): Move to ...
31952 (nds32_can_use_bitci_p): Move to ...
31953 * config/nds32/nds32-predicates.c: ... here.
31955 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
31956 Kito Cheng <kito@0xlab.org>
31957 Monk Chiang <sh.chiang04@gmail.com>
31959 * config/nds32/nds32.c
31960 (nds32_expand_builtin_null_ftype_reg): Move to ...
31961 (nds32_expand_builtin_reg_ftype_imm): Move to ...
31962 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
31963 (nds32_init_builtins): Move implementation to ...
31964 (nds32_expand_builtin): Move implementation to ...
31965 * config/nds32/nds32-intrinsic.c: ... here.
31966 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
31967 (nds32_expand_builtin_impl): Declare.
31969 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
31970 Kito Cheng <kito@0xlab.org>
31971 Monk Chiang <sh.chiang04@gmail.com>
31973 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
31974 (nds32_emit_section_tail_template): Move to ...
31975 (nds32_emit_isr_jmptbl_section): Move to ...
31976 (nds32_emit_isr_vector_section): Move to ...
31977 (nds32_emit_isr_reset_conten): Move to ...
31978 (nds32_check_isr_attrs_conflict): Move to ...
31979 (nds32_construct_isr_vectors_information): Move to ...
31980 (nds32_asm_file_start): Move implementation to ...
31981 (nds32_asm_file_end): Move implementation to ...
31982 * config/nds32/nds32-isr.c: ... here.
31983 * config/nds32/nds32-protos.h
31984 (nds32_check_isr_attrs_conflict): Declare.
31985 (nds32_construct_isr_vectors_information): Declare.
31986 (nds32_asm_file_start_for_isr): Declare.
31987 (nds32_asm_file_end_for_isr): Declare.
31989 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
31990 Kito Cheng <kito@0xlab.org>
31991 Monk Chiang <sh.chiang04@gmail.com>
31993 * config.gcc (nds32*): Add new modules to extra_objs.
31994 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
31995 (nds32be-*-*): Likewise.
31996 * config/nds32/nds32-cost.c: New file.
31997 * config/nds32/nds32-fp-as-gp.c: New file.
31998 * config/nds32/nds32-intrinsic.c: New file.
31999 * config/nds32/nds32-isr.c: New file.
32000 * config/nds32/nds32-md-auxiliary.c: New file.
32001 * config/nds32/nds32-memory-manipulation.c: New file.
32002 * config/nds32/nds32-pipelines-auxiliary.c: New file.
32003 * config/nds32/nds32-predicates.c: New file.
32004 * config/nds32/t-nds32: New file.
32006 2014-07-03 Jakub Jelinek <jakub@redhat.com>
32008 PR tree-optimization/61682
32009 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
32010 using cases and when one of the operands is equal to 1.
32012 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
32014 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
32015 ashr<mode>3): Correct mode of operands[2].
32016 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
32017 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
32018 Correct mode of operands[2]. Fix split condition.
32020 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
32022 * arm.md (arch): Add armv6_or_vfpv3.
32023 (arch_enabled): Add test for the above.
32024 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
32026 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
32028 2014-07-03 Jakub Jelinek <jakub@redhat.com>
32030 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
32031 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
32032 HWI 1 and negate the unsigned value.
32033 * expmed.c (expand_sdiv_pow2): For modes wider than word always
32034 use AND instead of shift.
32035 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
32037 2014-07-03 Marek Polacek <polacek@redhat.com>
32039 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
32040 (-fsanitize=float-divide-by-zero): Move to the table with
32041 -fsanitize=undefined suboptions.
32042 (-fsanitize=float-cast-overflow): Likewise.
32044 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
32046 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
32047 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
32050 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32052 * loop-invariant.c (struct invariant): Add a new member: eqno;
32053 (find_identical_invariants): Update eqno;
32054 (create_new_invariant): Init eqno;
32055 (get_inv_cost): Compute comp_cost with eqno;
32057 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
32059 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
32060 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
32061 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
32062 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
32063 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
32065 2014-07-02 Christian Bruel <christian.bruel@st.com>
32069 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
32070 (make_preds_opaque): Delete.
32071 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
32072 (commit_mode_sets): New function.
32073 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
32074 Process all modes at once.
32075 * basic-block.h (pre_edge_lcm_avs): Declare.
32076 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
32077 Call clear_aux_for_edges. Fix comments.
32078 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
32079 (pre_edge_rev_lcm): Idem.
32080 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
32082 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
32083 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
32085 * config/i386/i386.c (x96_emit_mode_set): Idem.
32086 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
32087 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
32088 (fpscr_toggle) Disallow from delay slot.
32089 * target.def (emit_mode_set): Add prev_mode parameter.
32090 * doc/tm.texi: Regenerate.
32092 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32094 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
32097 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
32099 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
32100 vtable_pointer_value_to_vtable): Constify.
32101 (contains_polymorphic_type_p): Declare.
32102 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
32103 vtable_pointer_value_to_vtable): Constify.
32104 (contains_polymorphic_type_p): New predicate.
32105 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
32107 (ipa_set_ancestor_jf): Likewise.
32108 (detect_type_change): Return false in easy cases.
32109 (compute_complex_assign_jump_func): Require type to contain
32111 (compute_known_type_jump_func): Likewise.
32113 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
32115 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
32117 (type_in_anonymous_namespace_p): Constify argument.
32118 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
32119 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
32120 (main_odr_variant): New function.
32121 (hash_type_name): Make static; update assert; do not ICE on
32123 (types_same_for_odr): Bring here from tree.c; simplify and remove
32124 old structural comparing code that doesn't work for templates.
32125 (odr_hasher::equal): Update assert.
32126 (add_type_duplicate): Return true when bases should be computed;
32127 replace incomplete loader by complete; do not output duplicated
32128 warnings; do not ICE on non-records; set odr_violated flag.
32129 (get_odr_type): Be ready to replace incomplete type by complete
32130 one; work on ODR variants instead of main variants; reorder item
32131 in array so bases have still smaller indexes.
32132 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
32133 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
32135 2014-07-01 Cary Coutant <ccoutant@google.com>
32137 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
32139 (resolve_addr_in_expr): When replacing the rtx in a location list
32140 entry, get a new address table entry.
32141 (dwarf2out_finish): Call index_location_lists even if there are no
32142 addr_index_table entries yet.
32144 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
32146 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
32147 change for not being obvious.
32149 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
32151 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
32154 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32156 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
32157 (vcagt_f64): Likewise.
32158 (vcale_f64): Likewise.
32159 (vcaled_f64): Likewise.
32160 (vcales_f32): Likewise.
32161 (vcalt_f64): Likewise.
32162 (vcaltd_f64): Likewise.
32163 (vcalts_f32): Likewise.
32165 2014-07-01 Marek Polacek <polacek@redhat.com>
32167 * doc/invoke.texi: Document -Wint-conversion.
32169 2014-07-01 Marek Polacek <polacek@redhat.com>
32172 * doc/invoke.texi: Document -Wincompatible-pointer-types.
32174 2014-07-01 Martin Liska <mliska@suse.cz>
32176 IPA REF alias refactoring
32177 * cgraph.h (iterate_direct_aliases): New function.
32178 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
32179 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
32180 FOR_EACH_ALIAS added.
32181 (cgraph_for_node_and_aliases): Likewise.
32182 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
32183 * ipa-inline.c (reset_edge_caches): Likewise.
32184 (update_caller_keys): Likewise.
32185 * trans-mem.c (ipa_tm_execute): Likewise.
32186 *varpool.c (varpool_analyze_node): Likewise.
32187 (varpool_for_node_and_aliases): Likewise.
32188 * ipa-ref.h (first_alias): New function.
32189 (last_alias): Likewise.
32190 (has_aliases_p): Likewise.
32191 * ipa-ref.c (ipa_ref::remove_reference): Removal function
32192 is sensitive to IPA_REF_ALIASes.
32193 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
32194 are put at the beginning of the list.
32195 (symtab_node::iterate_direct_aliases): New function.
32197 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32200 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
32202 (write_ts_type_common_tree_pointers): Do not stream fields not set
32203 for incomplete types; do not stream duplicated fields for variants;
32204 sanity check that variant and type match.
32205 (write_ts_type_non_common_tree_pointers): Likewise.
32206 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
32207 TYPE_SIZE whether type is complete.
32208 (lto_input_ts_type_common_tree_pointers): Do same changes as in
32209 write_ts_type_common_tree_pointers
32210 (lto_input_ts_type_non_common_tree_pointers): Likewise.
32212 2014-06-30 Joseph Myers <joseph@codesourcery.com>
32214 * var-tracking.c (add_stores): Return instead of asserting if old
32215 and new values for conditional store are the same.
32217 2014-06-30 Richard Henderson <rth@redhat.com>
32221 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
32222 the cfg if there were any changes.
32223 * passes.def: Revert move of peephole2 after reorder_blocks;
32224 move duplicate_computed_gotos before peephole2.
32226 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
32228 * except.c (emit_note_eh_region_end): New helper function.
32229 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
32230 emit EH_REGION_END note.
32231 * jump.c (cleanup_barriers): Do not split a call and its
32232 corresponding CALL_ARG_LOCATION note.
32234 2014-06-30 Jeff Law <law@redhat.com>
32236 PR tree-optimization/61607
32237 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
32238 deeper into the SSA_NAME_VALUE chain.
32240 2014-06-30 Marek Polacek <polacek@redhat.com>
32242 * convert.c (convert_to_integer): Don't instrument conversions if the
32243 function has no_sanitize_undefined attribute.
32244 * ubsan.c: Don't run the ubsan pass if the function has
32245 no_sanitize_undefined attribute.
32247 2014-06-30 Jakub Jelinek <jakub@redhat.com>
32249 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
32250 -fsanitize=undefined suboptions.
32252 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
32254 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
32255 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
32256 against bigendian and adjust indices.
32258 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
32260 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
32262 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
32265 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
32266 Add alternative; make early clobber. Adjust both split patterns
32267 to use operand 0 as the working register.
32269 2014-06-30 Jakub Jelinek <jakub@redhat.com>
32271 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
32272 as ira_object_id_map might be NULL, or 1.
32274 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32276 * loop-invariant.c (get_inv_cost): Handle register class.
32277 (gain_for_invariant): Check the register pressure of the inv
32278 and its overlapped register class, other than all.
32280 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
32282 * doc/invoke.texi (Optimize Options): Fix descriptions of
32283 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
32285 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
32287 * doc/extend.texi (Function Attributes): Update 'naked' attribute
32290 2014-06-29 Tobias Grosser <tobias@grosser.es>
32293 * graphite-isl-ast-to-gimple.c: Add missing guards.
32295 2014-06-29 Roman Gareev <gareevroman@gmail.com>
32297 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
32298 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
32299 * flag-types.h: Add new enum fgraphite_generator.
32300 * graphite-isl-ast-to-gimple.c: New.
32301 * graphite-isl-ast-to-gimple.h: New.
32302 * graphite.c (graphite_transform_loops): Add choice of Graphite
32303 code generator, which depends on flag_graphite_code_gen.
32305 2014-06-29 Roman Gareev <gareevroman@gmail.com>
32307 * graphite-dependences.c (subtract_commutative_associative_deps):
32308 Add NULL checking of the following variables: must_raw_no_source,
32309 may_raw_no_source, must_war_no_source, may_war_no_source,
32310 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
32311 must_war, may_war, must_waw, may_waw.
32313 2014-06-29 Roman Gareev <gareevroman@gmail.com>
32315 * graphite-clast-to-gimple.c: gloog is renamed to
32316 graphite_regenerate_ast_cloog. gloog_error is renamed to
32317 graphite_regenerate_error.
32318 * graphite-clast-to-gimple.h: The definition of the struct
32319 bb_pbb_def is moved to graphite-htab.h.
32320 Add inclusion of the hash-table.h.
32321 * graphite-htab.h: The declaration of the function gloog is moved
32322 to graphite-clast-to-gimple.h and renamed to
32323 graphite_regenerate_ast_cloog.
32324 * graphite.c (graphite_transform_loops): gloog is renamed
32325 to graphite_regenerate_ast_cloog.
32327 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32329 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
32331 (write_ts_type_common_tree_pointers): Do not stream fields not set
32332 for incomplete types; do not stream duplicated fields for variants;
32333 sanity check that variant and type match.
32334 (write_ts_type_non_common_tree_pointers): Likewise.
32335 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
32336 TYPE_SIZE whether type is complete.
32337 (lto_input_ts_type_common_tree_pointers): Do same changes as in
32338 write_ts_type_common_tree_pointers
32339 (lto_input_ts_type_non_common_tree_pointers): Likewise.
32341 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32343 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
32345 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32347 * tree-inline.c (remap_type_1): Do not duplicate fields
32348 that are shared in between type and its main variant.
32350 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32352 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
32354 (ipa_set_ancestor_jf) Likewise.
32355 (check_stmt_for_type_change): Check that we work on main variant.
32356 (detect_type_change): Look into main variant.
32357 (compute_known_type_jump_func): Check that main variant has BINFO.
32359 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32361 * ipa-devirt.c (set_type_binfo): New function.
32362 (add_type_duplicate): Use it.
32363 (get_odr_type): Sanity check that binfos points to main variants.
32364 (get_class_context): Be sure the context's outer_type is main variant.
32365 (contains_type_p): Walk main variant.
32366 (get_polymorphic_call_info_for_decl): Set outer_type to be
32368 (get_polymorphic_call_info): Likewise.
32369 (possible_polymorphic_call_targets): Sanity check that we operate
32372 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32374 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
32376 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32378 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
32379 accidental change due to wide-int branch merge.
32381 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32383 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
32384 compressed debug support.
32385 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
32386 * configure: Regenerate.
32387 * config.in: Regenerate.
32388 * common.opt (compressed_debug_sections): New enum.
32389 (gz, gz=): New options.
32390 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
32391 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
32392 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
32393 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
32394 LINK_COMPRESS_DEBUG_SPEC.
32395 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
32396 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
32397 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
32398 (Debugging Options): Document -gz[=type].
32400 2014-06-27 Martin Jambor <mjambor@suse.cz>
32403 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
32404 args_to_skip, use those from node instead. Copy args_to_skip and
32405 combined_args_to_skip from node to the new thunk.
32406 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
32407 (cgraph_create_virtual_clone): Moved computation of
32408 combined_args_to_skip...
32409 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
32411 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
32413 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
32414 redundant diagnostic machinary.
32416 2014-06-27 Richard Biener <rguenther@suse.de>
32418 * tree-ssa-math-opts.c (bswap_replace): Fix
32419 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
32421 2014-06-27 Martin Liska <mliska@suse.cz>
32423 * gimple.h (gimple_location_safe): New function introduced.
32424 * cgraphunit.c (walk_polymorphic_call_targets): Usage
32425 of gimple_location_safe replaces gimple_location.
32426 (gimple_fold_call): Likewise.
32427 * ipa-devirt.c (ipa_devirt): Likewise.
32428 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32429 * ipa.c (walk_polymorphic_call_targets): Likewise.
32430 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
32432 2014-06-27 Jakub Jelinek <jakub@redhat.com>
32434 PR tree-optimization/57233
32435 PR tree-optimization/61299
32436 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
32438 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
32439 would be lowered to scalar shifts, check if corresponding
32440 shifts and vector BIT_IOR_EXPR are supported and don't lower
32441 or lower just to narrower vector type in that case.
32442 * expmed.c (expand_shift_1): Fix up handling of vector
32443 shifts and rotates.
32445 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
32448 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
32450 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
32452 * doc/invoke.texi (-fsemantic-interposition): Document.
32453 * common.opt (fsemantic-interposition): New flag.
32454 * varasm.c (decl_replaceable_p): Use it.
32456 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32459 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
32460 extraction other than index 3.
32462 2014-06-26 Teresa Johnson <tejohnson@google.com>
32464 * doc/invoke.texi: Fix typo.
32465 * dumpfile.c: Add support for documented -fdump-* options
32466 optimized/missed/note/optall.
32468 2014-06-26 Martin Jambor <mjambor@suse.cz>
32470 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
32471 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
32472 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
32473 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
32474 * opts.c (default_options_optimization): Set
32475 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
32476 * doc/invoke.texi (allow-load-data-races)
32477 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
32478 (allow-store-data-races): Document the new default.
32480 2014-06-26 Martin Jambor <mjambor@suse.cz>
32482 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
32483 renamed to ipa_impossible_devirt_target. Fix typo.
32484 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
32485 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
32486 ipa_impossible_devirt_target.
32488 2014-06-26 Richard Biener <rguenther@suse.de>
32490 PR tree-optimization/61607
32491 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
32492 explaining why we restrict copies on loop depth.
32493 * tree-ssa-dom.c (cprop_operand): Remove restriction on
32495 (record_equivalences_from_phis): Instead add it here.
32497 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
32499 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
32500 (LTO_WRAPPER_OBJS): New variable.
32501 (lto-wrapper$(exeext)): Use it.
32502 * collect2.c: Include "collect-utils.h".
32503 (verbose, debug): Remove variables.
32504 (at_file_supplied): No longer static.
32505 (tool_name): New variable.
32506 (do_wait, fork_execute, maybe_unlink): Don't declare.
32507 (tool_cleanup): No longer static.
32508 (notice): Remove function.
32509 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
32510 fork_execute calls.
32511 (collect_wait, do_wait, collect_execute): Remove functions.
32512 (maybe_unlink): No longer static.
32513 * collect2.h (verbose, debug): Don't declare.
32514 (at_file_supplied): Declare.
32515 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
32517 (collect_execute): Replace with implementation from collect2, plus a
32518 new arg use_atfile. All callers changed.
32519 (collect_wait): Replace with implementation from collect2.
32520 (maybe_unlink_file): Remove function.
32521 (fork_execute): Replace with implementation from collect2, plus a
32522 new arg use_atfile. All callers changed.
32523 (do_wait): Add call to utils_cleanup to the error path.
32524 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
32525 (tool_cleanup): Adjust declarations.
32526 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
32527 * tlink.c: Include "collect-utils.h".
32528 (tlink_execute): New arg use_atfile. All callers changed.
32529 (tlink_init, tlink_execute): Remove declarations.
32531 * collect-utils.c (save_temps): New variable.
32532 (do_wait): Use it instead of debug. Use fatal_error.
32533 * collect-utils.h (save_temps): Declare.
32534 * collect2.c (verbose): Rename from vflag. All uses changed.
32535 (tool_cleanup): New function, copied from collect_atexit.
32536 (collect_atexit, handler): Just call it.
32537 * collect2.h (verbose): Declaration renamed from vflag.
32538 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
32541 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
32542 (lto-wrapper$(exeext)): Link with collect-utils.o.
32543 * collect-utils.c: New file.
32544 * collect-utils.h: New file.
32545 * lto-wrapper.c: Include "collect-utils.h".
32546 (args_name): Delete variable.
32547 (tool_name): New variable.
32548 (tool_cleanup): New function.
32549 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
32550 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
32551 (fork_execute): Remove functions.
32553 2014-06-26 Nick Clifton <nickc@redhat.com>
32555 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
32557 * doc/extend.texi (Function Attributes): Fix typo in description
32558 of RX vector attribute.
32560 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
32562 * config.gcc (supported_defaults): Error when passing either
32563 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
32565 2014-06-26 Richard Biener <rguenther@suse.de>
32567 * tree-ssa-dom.c (cprop_operand): Remove restriction on
32568 propagating volatile pointers.
32570 2014-06-26 Richard Biener <rguenther@suse.de>
32572 PR tree-optimization/61607
32573 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
32574 loop if we redirected its latch edge.
32575 (thread_block_1): Do not cancel loops prematurely.
32577 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
32579 * toplev.c (backend_init_target): Move init_emit_regs and
32581 (backend_init) ... here; skip ira_init_once and backend_init_target.
32582 (target_reinit) ... and here; clear
32583 this_target_rtl->lang_dependent_initialized.
32584 (lang_dependent_init_target): Clear
32585 this_target_rtl->lang_dependent_initialized;
32586 break out rtl initialization to ...
32587 (initialize_rtl): ... here; call also backend_init_target
32589 * toplev.h (initialize_rtl): New function.
32590 * function.c: Include toplev.h
32591 (init_function_start): Call initialize_rtl.
32592 * rtl.h (target_rtl): Add target_specific_initialized,
32593 lang_dependent_initialized.
32595 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
32596 Jakub Jelinek <jakub@redhat.com>
32598 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
32600 2014-06-25 Tom de Vries <tom@codesourcery.com>
32602 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
32604 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
32606 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
32607 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
32608 Issue a strict overflow warning if appropriate.
32610 2014-06-25 Martin Liska <mliska@suse.cz>
32612 IPA REF refactoring
32613 * Makefile.in: Removed header file (ipa-ref-inline.h).
32614 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
32616 (cgraph_speculative_call_info): Likewise.
32617 (cgraph_for_node_thunks_and_aliases): Likewise.
32618 (cgraph_for_node_and_aliases): Likewise.
32619 (verify_cgraph_node): Likewise.
32620 * cgraph.h: Batch of IPA REF functions become member functions of
32621 symtab_node: add_reference, maybe_add_reference, clone_references,
32622 clone_referring, clone_reference, find_reference,
32623 remove_stmt_references, remove_all_references,
32624 remove_all_referring, dump_references, dump_referring,
32625 has_alias_p, iterate_reference, iterate_referring.
32626 * cgraphbuild.c (record_reference): New IPA REF function used.
32627 (record_type_list): Likewise.
32628 (record_eh_tables): Likewise.
32629 (mark_address): Likewise.
32630 (mark_load): Likewise.
32631 (mark_store): Likewise.
32632 (pass_build_cgraph_edges): Likewise.
32633 (rebuild_cgraph_edge): Likewise.
32634 (cgraph_rebuild_references): Likewise.
32635 (pass_remove_cgraph_callee_edges): Likewise.
32636 * cgraphclones.c (cgraph_clone_node): Likewise.
32637 (cgraph_create_virtual_clone): Likewise.
32638 (cgraph_materialize_clone): Likewise.
32639 (cgraph_materialize_all_clones): Likewise.
32640 * cgraphunit.c (cgraph_reset_node): Likewise.
32641 (cgraph_reset_node): Likewise.
32642 (analyze_function): Likewise.
32643 (assemble_thunks_and_aliases): Likewise.
32644 (expand_function): Likewise.
32645 * ipa-comdats.c (propagate_comdat_group): Likewise.
32646 (enqueue_references): Likewise.
32647 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
32648 (create_specialized_node): Likewise.
32649 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
32650 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
32651 * ipa-inline.c (reset_edge_caches): Likewise.
32652 (update_caller_keys): Likewise.
32653 (execute): Likewise.
32654 * ipa-prop.c (remove_described_reference): Likewise.
32655 (propagate_controlled_uses): Likewise.
32656 (ipa_edge_duplication_hook): Likewise.
32657 (ipa_modify_call_arguments): Likewise.
32658 * ipa-pure-const.c (propagate_pure_const): Likewise.
32659 * ipa-ref-inline.h: Header file removed, functions moved
32660 to symtab_node class.
32661 * ipa-ref.c (remove_reference): New class member function.
32662 (cannot_lead_to_return): New class member function.
32663 (referring_ref_list): Likewise.
32664 (referred_ref_list): Likewise.
32665 Rest of functions moved to symtab_node class.
32666 * ipa-ref.h: New member functions remove_reference,
32667 cannot_lead_to_return, referring_ref_list, referred_ref_list added
32669 ipa_ref_list class has new member functions: first_reference,
32670 first_referring, clear, nreferences.
32671 * ipa-reference.c (analyze_function): New IPA REF function used.
32672 (write_node_summary_p): Likewise.
32673 (ipa_reference_write_optimization_summary): Likewise.
32674 * ipa-split.c (split_function): Likewise.
32675 * ipa-utils.c (ipa_reverse_postorder): Likewise.
32676 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
32677 (function_and_variable_visibility): Likewise.
32678 * ipa.c (has_addr_references_p): Likewise.
32679 (process_references): Argument type changed.
32680 (symtab_remove_unreachable_nodes): New IPA REF function used.
32681 (process_references): Likewise.
32682 (set_writeonly_bit): Likewise.
32683 * lto-cgraph.c: Implementation of new symtab_node member functions
32684 that uses new IPA REF functions.
32685 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
32687 * lto-streamer-out.c (output_symbol_p): Likewise.
32688 * lto-streamer.h (referenced_from_this_partition_p): Argument type
32690 * symtab.c: Implementation of new IPA REF API.
32691 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
32692 (ipa_tm_create_version): Likewise.
32693 (ipa_tm_execute): Likewise.
32694 * tree-emutls.c (gen_emutls_addr): Likewise.
32695 * tree-inline.c (copy_bb): Likewise.
32696 (delete_unreachable_blocks_update_callgraph): Likewise.
32697 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
32698 (varpool_for_node_and_aliases): Likewise.
32700 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
32702 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
32704 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
32707 * fold-const.c (fold_checksum_tree): Use a hash_table of const
32708 tree_node * instead of tree_node *.
32710 (print_fold_checksum): Likewise.
32711 (fold_check_failed): Likewise.
32712 (debug_fold_checksum): Likewise.
32713 (fold_build1_stat_loc): Likewise.
32714 (fold_build2_stat_loc): Likewise.
32715 (fold_build3_stat_loc): Likewise.
32716 (fold_build_call_array_loc): Likewise.
32718 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
32720 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
32721 implementation with call to...
32722 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
32724 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
32727 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
32729 PR tree-optimization/57742
32730 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
32731 after replacing the statement.
32733 2014-06-25 Nick Clifton <nickc@redhat.com>
32735 * config/v850/v850.c (GHS_default_section_names): Change to const
32737 (GHS_current_section_names): Likewise.
32738 (v850_insert_attributes): Do not build strings, just assign the
32739 names directly. Change the type of 'chosen_section' to const
32741 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
32742 directly to the array entry.
32743 * config/v850/v850.h (GHS_default_section_names): Change to const
32745 (GHS_current_section_names): Likewise.
32747 2014-06-25 Jakub Jelinek <jakub@redhat.com>
32749 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
32750 (LANG_HOOKS_DECLS): Add it.
32751 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
32753 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
32754 * langhooks.h (struct lang_hooks_for_decls): Add
32755 omp_clause_linear_ctor hook.
32756 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
32757 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
32758 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
32759 combined simd loop use omp_clause_linear_ctor hook.
32761 2014-06-24 Cong Hou <congh@google.com>
32763 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
32764 pattern recognition.
32765 (type_conversion_p): PROMOTION is true if it's a type promotion
32766 conversion, and false otherwise. Return true if the given expression
32767 is a type conversion one.
32768 * tree-vectorizer.h: Adjust the number of patterns.
32769 * tree.def: Add SAD_EXPR.
32770 * optabs.def: Add sad_optab.
32771 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
32772 * expr.c (expand_expr_real_2): Likewise.
32773 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
32774 * gimple.c (get_gimple_rhs_num_ops): Likewise.
32775 * optabs.c (optab_for_tree_code): Likewise.
32776 * tree-cfg.c (estimate_operator_cost): Likewise.
32777 * tree-ssa-operands.c (get_expr_operands): Likewise.
32778 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
32779 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
32780 * doc/generic.texi: Add document for SAD_EXPR.
32781 * doc/md.texi: Add document for ssad and usad.
32783 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32785 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
32786 qualification in cast.
32788 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
32790 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
32791 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
32792 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
32793 (tree_function_decl): ... here.
32794 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
32795 streaming of vindex to ...
32796 (write_ts_function_decl_tree_pointers): ... here.
32797 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
32798 Do not stream DECL_VINDEX.
32799 (lto_input_ts_function_decl_tree_pointers): Stream it here.
32801 2014-06-24 Catherine Moore <clm@codesourcery.com>
32802 Sandra Loosemore <sandra@codesourcery.com>
32804 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
32805 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
32806 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
32808 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
32810 * doc/invoke.texi (Warning Options): Remove duplicated
32811 -Wmaybe-uninitialized.
32813 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
32815 PR tree-optimization/57742
32816 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
32817 (handle_builtin_malloc, handle_builtin_memset): New functions.
32818 (strlen_optimize_stmt): Call them.
32819 * passes.def: Move strlen after loop+dom but before vrp.
32821 2014-06-24 Jakub Jelinek <jakub@redhat.com>
32824 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
32825 model family 6 CPU with has_longmode never use a CPU without
32828 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
32831 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
32834 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32836 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
32837 * dominance.c (iterate_fix_dominators): Use hash_map instead of
32839 * hash-map.h: New file.
32840 * ipa-comdats.c: Use hash_map instead of pointer_map.
32842 * lto-section-out.c: Adjust.
32843 * lto-streamer.h: Replace pointer_map with hash_map.
32844 * symtab.c (verify_symtab): Likewise.
32845 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
32846 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
32847 * tree-streamer.h: Likewise.
32848 * tree-streamer.c: Adjust.
32849 * pointer-set.h: Remove pointer_map.
32851 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32853 * hash-table.h: Add a template arg to choose between storing values
32854 and storing pointers to values, and then provide partial
32855 specializations for both.
32856 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
32857 should store, not the type values should point to.
32858 * tree-into-ssa.c (var_info_hasher): Likewise.
32859 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
32860 * tree-complex.c: Adjust.
32861 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
32862 table instead of int_tree_map *.
32863 * tree-parloops.c: Adjust.
32864 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
32865 type is being stored.
32866 * tree-vectorizer.c: Adjust.
32868 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32870 * hash-table.h: Remove a layer of indirection from hash_table so that
32871 it contains the hash table's data instead of a pointer to the data.
32872 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
32873 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
32874 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
32875 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
32876 fold-const.c, gcse.c, ggc-common.c,
32877 gimple-ssa-strength-reduction.c, gimplify.c,
32878 graphite-clast-to-gimple.c, graphite-dependences.c,
32879 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
32880 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
32881 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
32882 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
32883 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
32884 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
32885 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
32886 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
32887 tree-ssa-live.c, tree-ssa-loop-im.c,
32888 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
32889 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
32890 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
32891 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
32892 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
32893 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
32894 vtable-verify.c, vtable-verify.h: Adjust.
32896 2014-06-24 Richard Biener <rguenther@suse.de>
32898 PR tree-optimization/61572
32899 * tree-ssa-sink.c (statement_sink_location): Do not sink
32900 loads from hard registers.
32902 2014-06-24 Jakub Jelinek <jakub@redhat.com>
32904 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
32905 not mentioned in clauses use private clause if the iterator is
32906 declared in #pragma omp for simd, and when adding lastprivate
32907 instead, add it to the outer #pragma omp for too. Diagnose
32908 if the variable is private in outer context. For simd collapse > 1
32909 loops, replace all iterators with temporaries.
32910 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
32911 same even in collapse > 1 loops.
32913 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
32914 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
32916 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
32917 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
32919 (gimplify_adjust_omp_clauses): Likewise.
32920 * omp-low.c (lower_rec_simd_input_clauses,
32921 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
32922 safelen the same as safelen(1).
32923 * tree-nested.c (convert_nonlocal_omp_clauses,
32924 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
32925 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
32926 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
32927 Fixup handling of GIMPLE_OMP_TARGET.
32928 (convert_tramp_reference_stmt, convert_gimple_call): Handle
32931 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
32933 PR tree-optimization/61554
32934 * tree-ssa-propagate.c: Include "bitmap.h".
32935 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
32936 properly update constructor/destructor.
32937 (substitute_and_fold_dom_walker::before_dom_children):
32938 Remove call to gimple_purge_dead_eh_edges, add bb->index to
32939 need_eh_cleaup instead.
32940 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
32943 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
32945 * varpool.c (dump_varpool_node): Dump used_by_single_function.
32946 * tree-pass.h (make_pass_ipa_single_use): New pass.
32947 * cgraph.h (used_by_single_function): New flag.
32948 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
32950 * passes.def (pass_ipa_single_use): Scedule.
32951 * ipa.c (BOTTOM): New macro.
32952 (meet): New function
32953 (propagate_single_user): New function.
32954 (ipa_single_use): New function.
32955 (pass_data_ipa_single_use): New pass.
32956 (pass_ipa_single_use): New pass.
32957 (pass_ipa_single_use::gate): New gate.
32958 (make_pass_ipa_single_use): New function.
32960 2014-06-23 Kai Tietz <ktietz@redhat.com>
32963 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
32964 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
32966 2014-06-23 Richard Biener <rguenther@suse.de>
32968 * tree-ssa-loop.c (gate_loop): New function.
32969 (pass_tree_loop::gate): Call it.
32970 (pass_data_tree_no_loop, pass_tree_no_loop,
32971 make_pass_tree_no_loop): New.
32972 * tree-vectorizer.c: Include tree-scalar-evolution.c
32973 (pass_slp_vectorize::execute): Initialize loops and SCEV if
32975 (pass_slp_vectorize::clone): New method.
32976 * timevar.def (TV_TREE_NOLOOP): New.
32977 * tree-pass.h (make_pass_tree_no_loop): Declare.
32978 * passes.def (pass_tree_no_loop): New pass group with
32981 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
32984 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
32985 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
32987 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
32989 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
32990 "yes" where needed.
32992 2014-06-23 Alan Modra <amodra@gmail.com>
32995 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
32996 to zero on debug statements.
32998 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
33001 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
33002 Ignore third operand if present by marking qualifier_internal.
33004 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
33006 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
33008 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
33009 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
33010 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
33011 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
33012 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
33013 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
33014 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
33015 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
33016 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
33017 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
33018 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
33019 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
33020 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
33021 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
33022 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
33023 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
33024 logic in GCC vector extensions
33026 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
33027 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
33028 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
33029 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
33030 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
33031 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
33032 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
33033 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
33034 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
33035 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
33037 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
33039 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
33042 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
33043 (vget_low_s64): Use __GET_LOW macro.
33044 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
33045 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
33046 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
33047 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
33048 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
33050 (vcombine_s64): Use GCC vector extensions; remove cast.
33051 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
33052 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
33053 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
33054 Fix type signature; remove cast.
33056 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
33059 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
33061 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
33063 (BUILTIN_VD1): New.
33064 (BUILTIN_VD_RE): Remove.
33065 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
33066 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
33067 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
33068 variant but not df.
33069 (vreinterpretv1df*, vreinterpret*v1df): New.
33070 (vreinterpretdf*, vreinterpret*df): Remove.
33071 * config/aarch64/aarch64-simd.md (aarch64_create,
33072 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
33073 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
33075 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
33076 (vcreate_f64): Remove cast, use v1df builtin.
33077 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
33078 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
33079 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
33080 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
33081 vmov_n_f64, vst1_f64): Use gcc vector extensions.
33082 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
33083 add range check using __builtin_aarch64_im_lane_boundsi.
33084 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
33085 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
33086 type signature, use gcc vector extensions.
33087 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
33088 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
33089 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
33090 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
33091 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
33092 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
33093 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
33094 vreinterpret_u64_f64): Use v1df builtin not df.
33096 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
33098 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
33101 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
33103 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
33106 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33108 * loop-invariant.c (pre_check_invariant_p): New function.
33109 (find_invariant_insn): Call pre_check_invariant_p.
33111 2014-06-22 Richard Henderson <rth@redhat.com>
33114 * compare-elim.c (struct comparison): Add eh_note.
33115 (find_comparison_dom_walker::before_dom_children): Don't eliminate
33116 a redundant comparison in a different EH region. Purge EH edges if
33119 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33121 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
33122 (var_shift): Use it.
33123 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
33124 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
33125 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
33126 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
33127 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
33128 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
33129 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
33130 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
33131 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
33132 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
33133 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
33134 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
33135 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
33136 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
33137 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
33138 *rotldi3_internal15be): Use the new attribute. Merge register and
33139 integer alternatives.
33141 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33143 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
33144 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
33145 split, *ashrdi3_internal3 and split): Delete, merge into...
33146 (ashr<mode>3): New expander.
33147 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
33148 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
33150 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33152 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
33153 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
33154 *rotldi3_internal3 and split): Delete, merge into...
33155 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
33156 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
33157 Use "rotlw" extended mnemonic.
33159 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33161 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
33162 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
33163 and split, *ashldi3_internal3 and split): Delete, merge into...
33164 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
33165 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
33167 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33169 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
33170 (lshrsi3, two anonymous define_insns and define_splits,
33171 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
33172 *lshrdi3_internal3 and split): Delete, merge into...
33173 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
33174 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
33176 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33178 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
33179 Remove "O" alternative.
33181 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
33183 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
33184 (mips_move_from_gpr_cost): Likewise.
33185 (mips_register_move_cost): Update accordingly.
33186 (mips_secondary_reload_class): Remove name of in_p.
33188 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
33191 * config/i386/i386.md (x86_64_shrd, x86_shrd,
33192 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
33194 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
33196 * config/nios2/nios2.c: Include "builtins.h".
33198 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
33200 * cgraph.h (tls_model_names): New variable.
33201 * print-tree.c (print_node): Simplify.
33202 * varpool.c (tls_model_names): New variable.
33203 (dump_varpool_node): Output tls model.
33205 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
33207 * ipa-visibility.c (function_and_variable_visibility): Disable
33208 temporarily local aliases for some targets.
33210 2014-06-20 Marek Polacek <polacek@redhat.com>
33212 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
33213 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
33214 into SANITIZE_UNDEFINED.
33215 * doc/invoke.texi: Describe -fsanitize=bounds.
33216 * gimplify.c (gimplify_call_expr): Add gimplification of internal
33217 functions created in the FEs.
33218 * internal-fn.c: Move "internal-fn.h" after "tree.h".
33219 (expand_UBSAN_BOUNDS): New function.
33220 * internal-fn.def (UBSAN_BOUNDS): New internal function.
33221 * internal-fn.h: Don't define internal functions here.
33222 * opts.c (common_handle_option): Add -fsanitize=bounds.
33223 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
33224 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
33225 * tree-core.h: Define internal functions here.
33226 (struct tree_base): Add ifn field.
33227 * tree-pretty-print.c: Include "internal-fn.h".
33228 (dump_generic_node): Handle functions without CALL_EXPR_FN.
33229 * tree.c (get_callee_fndecl): Likewise.
33230 (build_call_expr_internal_loc): New function.
33231 * tree.def (CALL_EXPR): Update description.
33232 * tree.h (CALL_EXPR_IFN): Define.
33233 (build_call_expr_internal_loc): Declare.
33234 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
33236 (ubsan_type_descriptor): Change bool parameter to enum
33237 ubsan_print_style. Adjust the code. Add handling of
33239 (ubsan_expand_bounds_ifn): New function.
33240 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
33241 (ubsan_build_overflow_builtin): Likewise.
33242 (instrument_bool_enum_load): Likewise.
33243 (ubsan_instrument_float_cast): Likewise.
33244 * ubsan.h (enum ubsan_print_style): New enum.
33245 (ubsan_expand_bounds_ifn): Declare.
33246 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
33248 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
33250 * config/rs6000/rs6000.md: Append `DONE' to preparation
33251 statements of `bswap' pattern splitters.
33253 2014-06-20 Tom de Vries <tom@codesourcery.com>
33255 * target.def (call_fusage_contains_non_callee_clobbers): Update
33257 * doc/tm.texi: Regenerate.
33259 2014-06-20 Yury Gribov <y.gribov@samsung.com>
33260 Max Ostapenko <m.ostapenko@partner.samsung.com>
33263 * asan.c (instrument_strlen_call): Fixed instrumentation of
33266 2014-06-20 Martin Jambor <mjambor@suse.cz>
33269 * ipa-prop.c (impossible_devirt_target): New function.
33270 (try_make_edge_direct_virtual_call): Use it, also instead of
33273 2014-06-20 Yury Gribov <y.gribov@samsung.com>
33274 Max Ostapenko <m.ostapenko@partner.samsung.com>
33277 * asan.c (build_check_stmt): Add condition.
33279 2014-06-20 Martin Jambor <mjambor@suse.cz>
33282 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
33285 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33287 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
33289 (VCONQ): Make comment more helpful.
33291 * config/aarch64/aarch64-simd.md
33292 (aarch64_sqdmulh_lane<mode>):
33293 Use VCOND for operands 2. Update lane checking and flipping logic.
33294 (aarch64_sqrdmulh_lane<mode>): Likewise.
33295 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
33296 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
33297 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
33298 attribute of operand 3 to VCOND.
33299 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
33300 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
33301 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
33302 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
33303 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
33304 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
33306 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
33307 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
33308 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
33309 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
33310 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
33311 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
33312 operand to VCOND. Update lane flipping and bounds checking logic.
33313 (aarch64_sqdmlal2_lane<mode>): Likewise.
33314 (aarch64_sqdmlsl_lane<mode>): Likewise.
33315 (aarch64_sqdmull_lane<mode>): Likewise.
33316 (aarch64_sqdmull2_lane<mode>): Likewise.
33317 (aarch64_sqdmlal_laneq<mode>):
33318 Replace VCON usage with VCONQ.
33319 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
33320 (aarch64_sqdmlal2_laneq<mode>): Emit
33321 aarch64_sqdmlal2_laneq<mode>_internal insn.
33322 Replace VCON with VCONQ.
33323 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
33324 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
33325 (aarch64_sqdmull_laneq<mode>): Emit
33326 aarch64_sqdmull_laneq<mode>_internal insn.
33327 Replace VCON with VCONQ.
33328 (aarch64_sqdmull2_laneq<mode>): Emit
33329 aarch64_sqdmull2_laneq<mode>_internal insn.
33330 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
33331 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
33332 of 3rd argument to int16x4_t.
33333 (vqdmlalh_lane_s16): Likewise.
33334 (vqdmlslh_lane_s16): Likewise.
33335 (vqdmull_high_lane_s16): Likewise.
33336 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
33337 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
33338 (vqdmlsl_lane_s16): Likewise.
33339 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
33340 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
33341 (vqdmlals_lane_s32): Likewise.
33342 (vqdmlsls_lane_s32): Likewise.
33343 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
33344 (vqdmulls_lane_s32): Likewise.
33345 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
33346 (vqdmlsl_lane_s32): Likewise.
33347 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
33348 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
33349 (vqrdmulhh_lane_s16): Likewise.
33350 (vqdmlsl_high_lane_s16): Likewise.
33351 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
33352 (vqdmlsl_high_lane_s32): Likewise.
33353 (vqrdmulhs_lane_s32): Likewise.
33355 2014-06-20 Tom de Vries <tom@codesourcery.com>
33357 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
33358 get_call_reg_set_usage.
33360 2014-06-20 Tom de Vries <tom@codesourcery.com>
33362 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
33363 it contains all call_used_regs.
33365 2014-06-20 Tom de Vries <tom@codesourcery.com>
33367 * final.c (collect_fn_hard_reg_usage): Add and use variable
33368 function_used_regs.
33370 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
33372 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
33373 (set_init_priority, get_init_priority, set_fini_priority,
33374 get_fini_priority): New methods.
33375 * tree.c (init_priority_for_decl): Remove.
33376 (init_ttree): Do not initialize init priority.
33377 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
33378 (decl_priority_info): Remove.
33379 (decl_init_priority_insert): Rewrite.
33380 (decl_fini_priority_insert): Rewrite.
33381 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
33382 tree_priority_map_marked_p): Remove.
33383 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
33384 * lto-streamer-out.c (hash_tree): Do not hash priorities.
33385 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
33386 not output priorities.
33387 (pack_ts_function_decl_value_fields): Likewise.
33388 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
33389 not input priorities.
33390 (unpack_ts_function_decl_value_fields): Likewise.
33391 * symtab.c (symbol_priority_map): Declare.
33392 (init_priority_hash): Declare.
33393 (symtab_unregister_node): Unregister from priority hash, too.
33394 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
33396 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
33397 (symbol_priority_info): New function.
33398 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
33400 * tree-core.h (tree_priority_map): Remove.
33402 2014-06-20 Jakub Jelinek <jakub@redhat.com>
33404 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
33405 0xff to uint64_t before shifting it up.
33407 2014-06-20 Julian Brown <julian@codesourcery.com>
33408 Chung-Lin Tang <cltang@codesourcery.com>
33410 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
33411 TARGET_THUMB1_ONLY. Add comments.
33413 2014-06-19 Tom de Vries <tom@codesourcery.com>
33415 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
33416 return type to void.
33417 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
33419 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33421 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
33422 as "move", from depends_on.
33424 2014-06-19 Terry Guo <terry.guo@arm.com>
33426 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
33429 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
33431 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
33433 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
33435 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
33438 * config/sh/sh.c (prepare_move_operands): Don't process TLS
33439 addresses here if reload in progress or completed.
33441 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
33443 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
33444 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
33445 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
33446 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
33447 (mips_register_priority): New function that implements the target
33448 hook TARGET_REGISTER_PRIORITY.
33449 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
33450 (mips_lra_p): Likewise for TARGET_LRA_P.
33451 (TARGET_REGISTER_PRIORITY): Define macro.
33452 (TARGET_SPILL_CLASS): Likewise.
33453 (TARGET_LRA_P): Likewise.
33454 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
33456 (REG_CLASS_NAMES): Likewise.
33457 (REG_CLASS_CONTENTS): Likewise.
33458 (BASE_REG_CLASS): Use M16_SP_REGS.
33459 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
33460 New set attribute to enable alternatives depending on the register
33462 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
33463 (*lea64): Disable pattern for MIPS16.
33464 * config/mips/mips.opt (mlra): New option.
33466 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
33468 * lra-constraints.c (base_to_reg): New function.
33469 (process_address): Use new function.
33471 2014-06-18 Tom de Vries <tom@codesourcery.com>
33473 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
33474 * config/aarch64/aarch64.c
33475 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
33476 (aarch64_emit_call_insn): New function.
33477 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
33479 * config/aarch64/aarch64.md (define_expand "call_internal")
33480 (define_expand "call_value_internal", define_expand "sibcall_internal")
33481 (define_expand "sibcall_value_internal"): New.
33482 (define_expand "call", define_expand "call_value")
33483 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
33484 expand variant and aarch64_emit_call_insn.
33486 2014-06-18 Radovan Obradovic <robradovic@mips.com>
33487 Tom de Vries <tom@codesourcery.com>
33489 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
33490 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
33492 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
33493 clobbers to CALL_INSN_FUNCTION_USAGE.
33494 (define_expand "sibcall_internal")
33495 (define_expand "sibcall_value_internal"): New.
33496 (define_expand "call", define_expand "call_value"): Add argument to
33497 arm_emit_call_insn.
33498 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
33499 (define_expand "sibcall_value"): Use sibcall_value_internal and
33500 arm_emit_call_insn.
33502 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33504 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
33506 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33508 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
33511 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33513 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
33514 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
33515 annotations. Fix DWARF information.
33517 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33519 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
33520 __udivmoddi4, and fixups for negative operands.
33522 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33524 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
33526 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33528 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
33531 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33533 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
33536 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33538 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
33539 describing register usage on function entry and exit.
33541 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33543 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
33544 (__aeabi_ldivmod): Fix whitespace.
33546 2014-06-18 Andreas Schwab <schwab@suse.de>
33548 * doc/md.texi (Standard Names): Use @itemx for grouped items.
33549 Remove blank line after @item.
33551 2014-06-18 Richard Henderson <rth@redhat.com>
33554 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
33556 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33558 * config/arm/arm.c (neon_vector_mem_operand): Allow register
33559 POST_MODIFY for neon loads and stores.
33560 (arm_print_operand): Output post-index register for neon loads and
33563 2014-06-18 Richard Biener <rguenther@suse.de>
33565 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
33567 2014-06-18 Richard Biener <rguenther@suse.de>
33569 * tree-pass.h (make_pass_dce_loop): Remove.
33570 * passes.def: Replace pass_dce_loop with pass_dce.
33571 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
33572 changed free niter estimates and reset the scev cache.
33573 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
33574 make_pass_dce_loop): Remove.
33575 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
33576 (fini_copy_prop): Return whether something changed. Always
33577 let substitute_and_fold perform DCE and free niter estimates
33578 and reset the scev cache if so.
33579 (execute_copy_prop): If sth changed schedule cleanup-cfg.
33580 (pass_data_copy_prop): Do not unconditionally schedule
33581 cleanup-cfg or update-ssa.
33583 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
33585 PR tree-optimization/61518
33586 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
33587 reduction var is used in reduction stmt or phi-function only.
33589 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33591 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
33593 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
33595 PR tree-optimization/61517
33596 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
33597 whose rhs's first tree is the source expression instead of the
33599 (find_bswap_or_nop): Likewise.
33600 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
33601 gimple stmt whose rhs's first tree is the source. In the memory source
33602 case, move the stmt to be replaced close to one of the original load to
33603 avoid the problem of a store between the load and the stmt's original
33605 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
33608 2014-06-18 Andreas Schwab <schwab@suse.de>
33610 PR rtl-optimization/54555
33611 * postreload.c (move2add_use_add2_insn): Substitute
33612 STRICT_LOW_PART only if it is cheaper.
33614 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
33616 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
33617 Do not use unspec as call operand. Use memory_operand instead of
33618 memory_nox32_operand and add "m" operand constraint. Disable
33619 pattern for TARGET_X32.
33620 (*sibcall_pop_memory): Ditto.
33621 (*sibcall_value_memory): Ditto.
33622 (*sibcall_value_pop_memory): Ditto.
33623 (sibcall peepholes): Merge SImode and DImode patterns using
33624 W mode iterator. Use memory_operand instead of memory_nox32_operand.
33625 Disable pattern for TARGET_X32. Check if eliminated register is
33626 really dead after call insn. Generate call RTX without unspec operand.
33627 (sibcall_value peepholes): Ditto.
33628 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
33629 instead of memory_nox32_operand. Check if eliminated register is
33630 really dead after call insn. Generate call RTX without unspec operand.
33631 (sibcall_value_pop peepholes): Ditto.
33632 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
33634 2014-06-18 Terry Guo <terry.guo@arm.com>
33637 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
33640 2014-06-18 Olivier Hainque <hainque@adacore.com>
33642 * tree-core.h (tree_block): Add an "end_locus" field, allowing
33643 memorization of the end of block source location.
33644 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
33645 * gimplify.c (gimplify_bind_expr): Propagate the block start and
33646 end source location info we have on the block entry/exit code we
33649 2014-06-18 Richard Biener <rguenther@suse.de>
33651 * common.opt (fssa-phiopt): New option.
33652 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
33654 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
33655 * doc/invoke.texi (-fssa-phiopt): Document.
33657 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33659 * genattrtab.c (n_bypassed): New variable.
33660 (process_bypasses): Initialise n_bypassed.
33661 Count number of bypassed reservations.
33662 (make_automaton_attrs): Allocate space for bypassed reservations
33663 rather than number of bypasses.
33665 2014-06-18 Richard Biener <rguenther@suse.de>
33667 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
33668 we propagated anything.
33669 (substitute_and_fold_dom_walker::before_dom_children): Something
33670 changed if we propagated into PHI arguments.
33671 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
33674 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
33676 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
33678 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
33679 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
33680 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
33681 Introduces alternative way of loads group permutaions.
33682 (vect_transform_grouped_load): Try alternative way of permutations.
33684 2014-06-18 Jakub Jelinek <jakub@redhat.com>
33686 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
33687 changed in ORT_TARGET region, don't jump to do_outer.
33688 (struct gimplify_adjust_omp_clauses_data): New type.
33689 (gimplify_adjust_omp_clauses_1): Adjust for data being
33690 a struct gimplify_adjust_omp_clauses_data pointer instead
33691 of tree *. Pass pre_p as a new argument to
33692 lang_hooks.decls.omp_finish_clause hook.
33693 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
33694 splay_tree_foreach to pass both list_p and pre_p.
33695 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
33696 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
33697 gimplify_adjust_omp_clauses callers.
33698 * langhooks.c (lhd_omp_finish_clause): New function.
33699 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
33700 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
33701 * langhooks.h (struct lang_hooks_for_decls): Add a new
33702 gimple_seq * argument to omp_finish_clause hook.
33703 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
33704 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
33705 (scan_omp_parallel, lower_omp_for): When adding
33706 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
33707 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
33708 * tree-nested.c (convert_nonlocal_omp_clauses,
33709 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
33710 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
33712 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
33714 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
33715 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
33717 2014-06-17 Xinliang David Li <davidxl@google.com>
33719 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
33720 * passes.c (pass_init_dump_file): Do not set initialize
33721 flag to false unconditionally.
33723 2014-06-17 Richard Biener <rguenther@suse.de>
33725 * genopinit.c (main): Use vec<>::qsort method.
33726 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
33728 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
33730 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
33732 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
33733 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
33734 (mips_move_to_gpr_cost): Remove ST_REGS case.
33735 (mips_move_from_gpr_cost): Likewise.
33736 (mips_register_move_cost): Likewise.
33737 (mips_secondary_reload_class): Likewise.
33739 2014-06-17 Richard Biener <rguenther@suse.de>
33741 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
33742 (pass_all_optimizations): Move 3rd copy-prop pass from after
33743 fre to before ifcombine/phiopt.
33745 2014-06-17 Richard Biener <rguenther@suse.de>
33747 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
33748 and allow all blocks to be forwarders.
33750 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
33753 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
33754 variable 'size'; calculate 'size' right in the front; use
33755 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
33756 pcum->aapcs_stack_words.
33758 2014-06-17 Nick Clifton <nickc@redhat.com>
33760 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
33761 (umulhi3, mulsidi3, umulsidi3): Likewise.
33763 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
33765 PR middle-end/61508
33766 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
33767 check for section name.
33769 2014-06-17 Richard Biener <rguenther@suse.de>
33771 * tree-ssa-propagate.c: Include domwalk.h.
33772 (substitute_and_fold): Outline main worker into a domwalker ...
33773 (substitute_and_fold_dom_walker::before_dom_children): ... here.
33774 Schedule stmts we can fully propagate for removal. Remove
33776 (substitute_and_fold): Apply a dominator walk to perform
33777 substitution. Process stmts scheduled for removal here.
33779 2014-06-17 Richard Biener <rguenther@suse.de>
33781 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
33782 of PHI node moving.
33784 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
33786 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
33787 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
33788 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
33789 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
33790 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
33792 (get_fpscr) : Likewise.
33794 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
33796 PR rtl-optimization/61325
33797 * lra-constraints.c (valid_address_p): Add forward declaration.
33798 (simplify_operand_subreg): Check address validity before and after
33799 alter_reg of memory subreg.
33801 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
33803 * config/i386/i386.c (decide_alg): Correctly handle
33804 maximum size of stringop algorithm.
33806 2014-06-16 Yury Gribov <y.gribov@samsung.com>
33808 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
33810 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
33812 PR rtl-optimization/61522
33813 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
33815 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
33818 * symtab.c (symtab_node::reset_section): New method.
33819 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
33821 * cgraph.h (reset_section): Declare.
33822 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
33823 do not consider comdat locals.
33824 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
33826 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
33827 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
33828 reset sections of symbols dragged out of the comdats.
33829 (function_and_variable_visibility): Reset sections of
33832 2014-06-16 Richard Biener <rguenther@suse.de>
33834 PR tree-optimization/61482
33835 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
33836 [-INF(OVF), +INF(OVF)] range.
33838 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
33840 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
33841 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
33842 handling 32-bit multiplication.
33844 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
33846 PR middle-end/61430
33847 * lra-lives.c (process_bb_lives): Skip creating copy during
33848 insn scan when src/dest has constrained to same regno.
33850 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
33852 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
33853 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
33855 2014-06-16 Yury Gribov <y.gribov@samsung.com>
33857 * asan.c (check_func): New function.
33858 (maybe_create_ssa_name): Likewise.
33859 (build_check_stmt_with_calls): Likewise.
33860 (use_calls_p): Likewise.
33861 (report_error_func): Change interface.
33862 (build_check_stmt): Allow non-integer lengths; add support
33864 (asan_instrument): Likewise.
33865 (instrument_mem_region_access): Moved code to build_check_stmt.
33866 (instrument_derefs): Likewise.
33867 (instrument_strlen_call): Likewise.
33868 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
33869 * doc/invoke.texi: Describe new parameter.
33870 * params.def: Define new parameter.
33871 * params.h: Likewise.
33872 * sanitizer.def: Describe new builtins.
33874 2014-06-16 Richard Biener <rguenther@suse.de>
33876 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33877 Make all defs available at the end.
33878 (eliminate): If we remove a PHI node schedule cfg-cleanup.
33880 2014-06-18 Jakub Jelinek <jakub@redhat.com>
33883 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
33885 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
33888 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
33889 initialization. Replace remaining use of uid.
33891 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
33893 * c-family/c-common.c (handle_tls_model_attribute): Use
33894 set_decl_tls_model.
33895 * c-family/c-common.c (handle_tls_model_attribute): Use
33896 set_decl_tls_model.
33897 * cgraph.h (struct varpool_node): Add tls_model.
33898 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
33899 * tree.h (DECL_TLS_MODEL): Update.
33900 (DECL_THREAD_LOCAL_P): Check that variable is static.
33901 (decl_tls_model): Declare.
33902 (set_decl_tls_model): Declare.
33903 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
33904 set symbol prorperties.
33905 (get_emutls_init_templ_addr): Cleanup.
33906 (new_emutls_decl): Update.
33907 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
33908 (lto_input_varpool_node): Likewise.
33909 * lto-streamer-out.c (hash_tree): Likewise.
33910 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
33911 not stream DECL_TLS_MODEL.
33912 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
33913 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
33915 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
33917 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
33919 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
33921 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
33922 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
33924 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
33925 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
33926 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
33927 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
33928 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
33929 (df_get_artificial_defs, df_get_artificial_uses)
33930 (df_single_def, df_single_use): Update accordingly.
33931 (df_refs_chain_dump): Take the first element in a linked list as
33932 parameter, rather than a pointer to an array of pointers.
33933 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
33934 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
33935 (df_chain_create_bb_process_use): Likewise.
33936 (df_md_bb_local_compute_process_def): Likewise.
33937 * fwprop.c (process_defs, process_uses): Likewise.
33938 (register_active_defs, update_uses): Likewise.
33939 (forward_propagate_asm): Update for new df_ref linking.
33940 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
33941 (df_null_ref_rec, df_null_mw_rec): Likewise.
33942 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
33944 (df_scan_free_bb_info): Remove check for null artificial_defs.
33945 (df_install_ref_incremental): Adjust for new df_ref linking.
33946 Use a single-element insertion rather than a full sort.
33947 (df_ref_chain_delete_du_chain): Take the first element
33948 in a linked list as parameter, rather than a pointer to an array of
33950 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
33951 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
33952 (df_insn_info_delete): Remove check for null defs and call to
33953 df_scan_free_mws_vec.
33954 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
33955 null rather than df_null_*_rec.
33956 (df_insn_rescan_debug_internal): Likewise, and update null
33957 checks in the same way. Remove check for null defs.
33958 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
33959 Move a single element rather doing a full sort.
33960 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
33962 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
33963 Initialize df_ref and df_mw_hardreg lists to null rather than
33965 (df_ref_compare): Take df_refs as parameter, transferring the
33966 old interface to...
33967 (df_ref_ptr_compare): ...this new function.
33968 (df_sort_and_compress_refs): Update accordingly.
33969 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
33970 old interface to...
33971 (df_mw_ptr_compare): ...this new function.
33972 (df_sort_and_compress_mws): Update accordingly.
33973 (df_install_refs, df_install_mws): Return a linked list rather than
33974 an array of pointers.
33975 (df_refs_add_to_chains): Assert that old lists are empty rather
33977 (df_insn_refs_verify): Don't handle null defs speciailly.
33978 * web.c (union_match_dups): Update for new df_ref linking.
33980 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
33982 * df.h (df_ref_create, df_ref_remove): Delete.
33983 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
33984 (df_ref_remove): Likewise.
33986 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
33988 * df.h (df_single_def, df_single_use): New functions.
33989 * ira.c (find_moveable_pseudos): Use them.
33991 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
33993 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
33994 * df-problems.c (df_note_bb_compute): Use it.
33995 * regstat.c (regstat_bb_compute_ri): Likewise.
33997 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
33999 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
34000 * cse.c (cse_extended_basic_block): Use them.
34001 * dce.c (mark_artificial_use): Likewise.
34002 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
34003 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
34004 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
34005 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
34006 (df_simulate_initialize_backwards): Likewise.
34007 (df_simulate_finalize_backwards): Likewise.
34008 (df_simulate_initialize_forwards): Likewise.
34009 (df_md_simulate_artificial_defs_at_top): Likewise.
34010 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
34011 * regrename.c (init_rename_info): Likewise.
34012 * regstat.c (regstat_bb_compute_ri): Likewise.
34013 (regstat_bb_compute_calls_crossed): Likewise.
34015 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34017 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
34018 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
34019 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
34020 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
34021 * combine.c (create_log_links): Likewise.
34022 * compare-elim.c (find_flags_uses_in_insn): Likewise.
34023 (try_eliminate_compare): Likewise.
34024 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
34025 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
34026 (remove_reg_equal_equiv_notes_for_defs): Likewise.
34027 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
34028 (word_dce_process_block, dce_process_block): Likewise.
34029 * ddg.c (def_has_ccmode_p): Likewise.
34030 * df-core.c (df_bb_regno_first_def_find): Likewise.
34031 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
34032 * df-problems.c (df_rd_simulate_one_insn): Likewise.
34033 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
34034 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
34035 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
34036 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
34037 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
34038 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
34039 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
34040 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
34041 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
34042 * fwprop.c (local_ref_killed_between_p): Likewise.
34043 (all_uses_available_at, free_load_extend): Likewise.
34044 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
34045 * hw-doloop.c (scan_loop): Likewise.
34046 * ifcvt.c (dead_or_predicable): Likewise.
34047 * init-regs.c (initialize_uninitialized_regs): Likewise.
34048 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
34049 (process_bb_node_lives): Likewise.
34050 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
34051 (find_moveable_pseudos): Likewise.
34052 * loop-invariant.c (check_dependencies, record_uses): Likewise.
34053 * recog.c (peep2_find_free_register): Likewise.
34054 * ree.c (get_defs): Likewise.
34055 * regstat.c (regstat_bb_compute_ri): Likewise.
34056 (regstat_bb_compute_calls_crossed): Likewise.
34057 * sched-deps.c (find_inc, find_mem): Likewise.
34058 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
34059 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
34060 * shrink-wrap.c (requires_stack_frame_p): Likewise.
34061 (prepare_shrink_wrap): Likewise.
34062 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
34063 * web.c (union_defs, pass_web::execute): Likewise.
34064 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
34065 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
34067 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
34069 * lra-assign.c (assign_by_spills): Add code to assign vector regs
34070 to inheritance pseudos.
34071 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
34073 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
34076 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
34077 (BU_MISC_2): Rename to ...
34078 (BU_LDBL128_2): ... this.
34079 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
34080 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
34081 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
34082 RS6000_BTM_LDBL128.
34083 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
34084 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
34085 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
34086 (unpacktf_1): Likewise.
34087 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
34088 (__builtin_longdouble_dw1): Likewise.
34089 * doc/sourcebuild.texi (longdouble128): Document.
34091 2014-06-13 Jeff Law <law@redhat.com>
34093 PR rtl-optimization/61094
34094 PR rtl-optimization/61446
34095 * ree.c (combine_reaching_defs): Get the mode for the copy from
34096 the extension insn rather than the defining insn.
34098 2014-06-13 Dehao Chen <dehao@google.com>
34100 * dwarf2out.c (add_linkage_name): Emit more linkage name.
34102 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
34104 * doc/install.texi (--enable-linker-plugin-configure-flags)
34105 (--enable-linker-plugin-flags): Document new flags.
34107 2014-06-13 Martin Jambor <mjambor@suse.cz>
34110 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
34111 cache_token if returning early.
34113 2014-06-13 Nick Clifton <nickc@redhat.com>
34115 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
34116 requested alignment is active.
34117 (LABEL_ALIGN): Likewise.
34118 (LOOP_ALIGN): Likewise.
34120 2014-06-13 Richard Biener <rguenther@suse.de>
34122 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
34123 Rewrite to propagate the VN result into all uses where
34124 possible and to remove stmts becoming dead because of that.
34125 (eliminate): Generalize stmt removal handling, remove in
34126 reverse dominator order to support proper debug stmt
34127 generation. Update stmts before removing stmts.
34128 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
34130 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
34132 PR tree-optimization/61375
34133 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
34134 symbolic number cannot be represented in an uint64_t.
34135 (find_bswap_or_nop_1): Likewise.
34137 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
34139 * symtab.c (symtab_node::reset_section): New method.
34140 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
34142 * cgraph.h (reset_section): Declare.
34143 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
34144 do not consider comdat locals.
34145 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
34147 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
34148 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
34149 reset sections of symbols dragged out of the comdats.
34150 (function_and_variable_visibility): Reset sections of
34153 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
34155 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
34156 to use symtab and decl_binds_to_current_def_p
34157 * tree-vectorizer.c (increase_alignment): Increase alignment
34158 of alias target, too.
34160 2014-06-12 Jakub Jelinek <jakub@redhat.com>
34162 PR middle-end/61486
34163 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
34164 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
34165 if outer combined construct is distribute.
34166 (gimplify_omp_for): For OMP_DISTRIBUTE set
34167 gimplify_omp_ctxp->distribute.
34168 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
34169 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
34170 mapping into decl map.
34172 2014-06-12 Jason Merrill <jason@redhat.com>
34174 * common.opt (fabi-version): Change default to 0.
34176 2014-06-12 Jason Merrill <jason@redhat.com>
34178 * toplev.c (process_options): Reject -fabi-version=1.
34180 2014-06-12 Jeff Law <law@redhat.com>
34182 PR tree-optimization/61009
34183 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
34184 value when we stop processing a block due to problematic PHIs.
34186 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
34188 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
34189 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
34190 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
34191 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
34192 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
34193 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
34194 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
34195 are not in the spec.
34197 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
34200 * config/aarch64/aarch64-modes.def: Add V1DFmode.
34201 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
34204 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
34206 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
34208 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
34211 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
34212 loading from address spaces.
34214 2014-06-12 Martin Liska <mliska@suse.cz>
34217 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
34218 statement is reachable.
34220 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
34222 * symtab.c (section_hash): New hash.
34223 (symtab_unregister_node): Clear section before freeing.
34224 (hash_section_hash_entry): New haser.
34225 (eq_sections): New function.
34226 (symtab_node::set_section_for_node): New method.
34227 (set_section_1): Update.
34228 (symtab_node::set_section): Take string instead of tree as parameter.
34229 (symtab_resolve_alias): Update.
34230 * cgraph.h (section_hash_entry_d): New structure.
34231 (section_hash_entry): New typedef.
34232 (cgraph_node): Change comdat_group_ to x_comdat_group,
34233 change section_ to x_section and turn into section_hash_entry;
34234 update accestors; put set_section_for_node offline.
34235 * tree.c (decl_section_name): Turn into string.
34236 (set_decl_section_name): Change parameter to be string.
34237 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
34238 * sdbout.c (sdbout_one_type): Update.
34239 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
34240 * varasm.c (IN_NAMED_SECTION, get_named_section,
34241 resolve_unique_section, hot_function_section, get_named_text_section,
34242 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
34243 make_decl_rtl, default_unique_section): Update.
34244 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
34245 (c6x_elf_unique_section): Update.
34246 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
34247 * config/pa/pa.c (pa_function_section): Update.
34248 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
34249 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
34250 * config/arc/arc.c (arc_in_small_data_p): Update.
34251 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
34252 * config/mcore/mcore.c (mcore_unique_section): Update.
34253 * config/mips/mips.c (mips16_build_function_stub): Update.
34254 (mips16_build_call_stub): Update.
34255 (mips_function_rodata_section): Update.
34256 (mips_in_small_data_p): Update.
34257 * config/score/score.c (score_in_small_data_p): Update.
34258 * config/rx/rx.c (rx_in_small_data): Update.
34259 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
34260 (rs6000_xcoff_asm_named_section): Update.
34261 (rs6000_xcoff_unique_section): Update.
34262 * config/frv/frv.c (frv_string_begins_with): Update.
34263 (frv_in_small_data_p): Update.
34264 * config/v850/v850.c (v850_encode_data_area): Update.
34265 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
34266 (bfin_handle_l1_data_attribute): Update.
34267 (bfin_handle_l2_attribute): Update.
34268 * config/mep/mep.c (mep_unique_section): Update.
34269 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
34271 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
34272 (h8300_handle_tiny_data_attribute): Update.
34273 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
34274 (m32r_in_small_data_p): Update.
34275 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
34276 * config/i386/i386.c (ix86_in_large_data_p): Update.
34277 * config/i386/winnt.c (i386_pe_unique_section): Update.
34278 * config/darwin.c (darwin_function_section): Update.
34279 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
34280 * tree-emutls.c (get_emutls_init_templ_addr): Update.
34281 (new_emutls_decl): Update.
34282 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
34283 input_varpool_node): Update.
34284 (ead_string_cst): Turn to ...
34285 (read_string): ... this one.
34286 * dwarf2out.c (secname_for_decl): Update.
34287 * asan.c (asan_protect_global): Update.
34289 2014-06-11 DJ Delorie <dj@redhat.com>
34291 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
34293 * config/rx/rx.c (rx_option_override): Likewise.
34294 (rx_align_for_label): Likewise.
34296 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
34298 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
34300 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
34303 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34305 * common.md: New file.
34306 * doc/md.texi: Update description of generic, machine-independent
34308 * config/s390/constraints.md (e): Delete.
34309 * Makefile.in (md_file): Include common.md.
34310 * config/m32c/t-m32c (md_file): Likewise.
34311 * genpreds.c (general_mem): New array.
34312 (generic_constraint_letters): Remove constraints now defined by
34314 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
34315 Allow the first character to be '<' or '>' as well.
34316 * genoutput.c (general_mem): New array.
34317 (indep_constraints): Remove constraints now defined by common.md.
34318 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
34319 Remove special handling of 'm'.
34320 * ira-costs.c (record_reg_classes): Remove special handling of
34321 constraints now defined by common.md.
34322 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
34323 * ira-lives.c (single_reg_class): Likewise.
34324 (ira_implicitly_set_insn_hard_regs): Likewise.
34325 * lra-constraints.c (reg_class_from_constraints): Likewise.
34326 (process_alt_operands, process_address, curr_insn_transform): Likewise.
34327 * postreload.c (reload_cse_simplify_operands): Likewise.
34328 * reload.c (push_secondary_reload, scratch_reload_class)
34329 (find_reloads, alternative_allows_const_pool_ref): Likewise.
34330 * reload1.c (maybe_fix_stack_asms): Likewise.
34331 * targhooks.c (default_secondary_reload): Likewise.
34332 * stmt.c (parse_output_constraint): Likewise.
34333 * recog.c (preprocess_constraints): Likewise.
34334 (constrain_operands, peep2_find_free_register): Likewise.
34335 (asm_operand_ok): Likewise, but add a comment saying why 'o'
34336 must be handled specially.
34338 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34340 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
34341 * genpreds.c (have_const_dbl_constraints): Delete.
34342 (add_constraint): Don't set it.
34343 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
34344 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
34345 constraints using the lookup_constraint logic.
34346 * ira-lives.c (single_reg_class): Likewise.
34347 * ira.c (ira_setup_alts): Likewise.
34348 * lra-constraints.c (process_alt_operands): Likewise.
34349 * recog.c (asm_operand_ok, constrain_operands): Likewise.
34350 * reload.c (find_reloads): Likewise.
34352 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34354 * genpreds.c (const_int_start, const_int_end): New variables.
34355 (choose_enum_order): Output CONST_INT constraints before memory
34357 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
34359 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
34360 * ira.c (ira_setup_alts): Likewise.
34361 * lra-constraints.c (process_alt_operands): Likewise.
34362 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
34363 * reload.c (find_reloads): Likewise.
34365 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34367 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
34368 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
34369 * recog.c (preprocess_constraints): Update accordingly.
34371 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34373 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
34374 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
34375 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
34376 * genpreds.c (print_type_tree): New function.
34377 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
34378 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
34379 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
34380 Write out enum constraint_type and get_constraint_type.
34381 * lra-constraints.c (satisfies_memory_constraint_p): Take a
34382 constraint_num rather than a constraint string.
34383 (satisfies_address_constraint_p): Likewise.
34384 (reg_class_from_constraints): Avoid old constraint macros.
34385 (process_alt_operands, process_address_1): Likewise.
34386 (curr_insn_transform): Likewise.
34387 * ira-costs.c (record_reg_classes): Likewise.
34388 (record_operand_costs): Likewise.
34389 * ira-lives.c (single_reg_class): Likewise.
34390 (ira_implicitly_set_insn_hard_regs): Likewise.
34391 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
34392 * postreload.c (reload_cse_simplify_operands): Likewise.
34393 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
34394 (constrain_operands, peep2_find_free_register): Likewise.
34395 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
34396 (find_reloads, alternative_allows_const_pool_ref): Likewise.
34397 * reload1.c (maybe_fix_stack_asms): Likewise.
34398 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
34399 * targhooks.c (default_secondary_reload): Likewise.
34400 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
34401 to EXTRA_CONSTRAINT_STR.
34402 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
34404 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34406 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
34407 (write_constraint_satisfied_p_array): ...this new function.
34408 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
34410 (write_insn_preds_c): Update accordingly.
34412 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34414 * genpreds.c (write_lookup_constraint): Rename to...
34415 (write_lookup_constraint_1): ...this.
34416 (write_lookup_constraint_array): New function.
34417 (write_tm_preds_h): Define lookup_constraint as an inline function
34418 that uses write_lookup_constraint_array where possible.
34419 (write_insn_preds_c): Update for the changes above.
34421 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34423 * doc/md.texi (regclass_for_constraint): Rename to...
34424 (reg_class_for_constraint): ...this.
34425 * genpreds.c (num_constraints, enum_order, register_start)
34426 (register_end, satisfied_start, memory_start, memory_end)
34427 (address_start, address_end): New variables.
34428 (add_constraint): Count the number of constraints.
34429 (choose_enum_order): New function.
34430 (write_enum_constraint_num): Iterate over enum_order.
34431 (write_regclass_for_constraint): Rename to...
34432 (write_reg_class_for_constraint_1): ...this and update output
34434 (write_constraint_satisfied_p): Rename to...
34435 (write_constraint_satisfied_p_1): ...this and update output
34436 accordingly. Do nothing if all extra constraints are register
34438 (write_insn_extra_memory_constraint): Delete.
34439 (write_insn_extra_address_constraint): Delete.
34440 (write_range_function): New function.
34441 (write_tm_preds_h): Define constraint_satisfied_p and
34442 reg_class_for_constraint as inline functions that do a range check
34443 before calling the out-of-line function. Use write_range_function
34444 to implement insn_extra_{register,memory,address}_constraint,
34445 the first of which is new.
34446 (write_insn_preds_c): Update after above changes to write_* functions.
34447 (main): Call choose_enum_order.
34449 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
34451 PR tree-optimization/61306
34452 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
34453 expression instead of its size.
34454 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
34455 false to prevent optimization when the result is unpredictable due to
34456 arithmetic right shift of signed type with highest byte is set.
34457 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
34458 (init_symbolic_number): Likewise.
34459 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
34460 when the result is unpredictable due to sign extension.
34462 2014-06-11 Terry Guo <terry.guo@arm.com>
34464 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
34465 (*thumb1_addsi3): Ditto.
34466 (*thumb_subdi3): Ditto.
34467 (thumb1_subsi3_insn): Ditto.
34468 (*thumb_mulsi3): Ditto.
34469 (*thumb_mulsi3_v6): Ditto.
34470 (*thumb1_andsi3_insn): Ditto.
34471 (thumb1_bicsi3): Ditto.
34472 (*thumb1_iorsi3_insn): Ditto.
34473 (*thumb1_xorsi3_insn): Ditto.
34474 (*thumb1_ashlsi3): Ditto.
34475 (*thumb1_ashrsi3): Ditto.
34476 (*thumb1_lshrsi3): Ditto.
34477 (*thumb1_rotrsi3): Ditto.
34478 (*thumb1_negdi2): Ditto.
34479 (*thumb1_negsi2): Ditto.
34480 (*thumb1_abssi2): Ditto.
34481 (*thumb1_neg_abssi2): Ditto.
34482 (*thumb1_one_cmplsi2): Ditto.
34483 (*thumb1_zero_extendhisi2): Ditto.
34484 (*thumb1_zero_extendqisi2): Ditto.
34485 (*thumb1_zero_extendqisi2_v6): Ditto.
34486 (thumb1_extendhisi2): Ditto.
34487 (thumb1_extendqisi2): Ditto.
34488 (*thumb1_movdi_insn): Ditto.
34489 (*thumb1_movsi_insn): Ditto.
34490 (*thumb1_movhi_insn): Ditto.
34491 (thumb_movhi_clobber): Ditto.
34492 (*thumb1_movqi_insn): Ditto.
34493 (*thumb1_movhf): Ditto.
34494 (*thumb1_movsf_insn): Ditto.
34495 (*thumb_movdf_insn): Ditto.
34496 (movmem12b): Ditto.
34498 (cbranchqi4): Ditto.
34499 (cbranchsi4_insn): Ditto.
34500 (cbranchsi4_scratch): Ditto.
34501 (*negated_cbranchsi4): Ditto.
34502 (*tbit_cbranch): Ditto.
34503 (*tlobits_cbranch): Ditto.
34504 (*tstsi3_cbranch): Ditto.
34505 (*cbranchne_decr1): Ditto.
34506 (*addsi3_cbranch): Ditto.
34507 (*addsi3_cbranch_scratch): Ditto.
34508 (*thumb_cmpdi_zero): Ditto.
34509 (cstoresi_eq0_thumb1): Ditto.
34510 (cstoresi_ne0_thumb1): Ditto.
34511 (*cstoresi_eq0_thumb1_insn): Ditto.
34512 (*cstoresi_ne0_thumb1_insn): Ditto.
34513 (cstoresi_nltu_thumb1): Ditto.
34514 (cstoresi_ltu_thumb1): Ditto.
34515 (thumb1_addsi3_addgeu): Ditto.
34516 (*thumb_jump): Ditto.
34517 (*call_reg_thumb1_v5): Ditto.
34518 (*call_reg_thumb1): Ditto.
34519 (*call_value_reg_thumb1_v5): Ditto.
34520 (*call_value_reg_thumb1): Ditto.
34521 (*call_insn): Ditto.
34522 (*call_value_insn): Ditto.
34523 (thumb1_casesi_internal_pic): Ditto.
34524 (thumb1_casesi_dispatch): Ditto.
34525 (*thumb1_indirect_jump): Ditto.
34526 (prologue_thumb1_interwork): Ditto.
34527 (*epilogue_insns): Ditto.
34528 (consttable_1): Ditto.
34529 (consttable_2): Ditto.
34530 (tablejump): Ditto.
34531 (*thumb1_tablejump): Ditto.
34532 (thumb_eh_return): Ditto.
34533 (define_peephole2): Two of them are thumb1 only and got moved into
34534 new file thumb1.md.
34535 (define_split): Six of them are thumb1 only and got moved into new
34537 * config/arm/thumb1.md: New file comprised of above thumb1 only
34540 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34542 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
34543 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
34545 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
34546 (aarch64_crc_builtin_datum): New struct.
34547 (aarch64_crc_builtin_data): New.
34548 (aarch64_init_crc32_builtins): New function.
34549 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
34550 (aarch64_crc32_expand_builtin): New.
34551 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
34552 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
34553 __ARM_FEATURE_CRC32 when appropriate.
34554 (TARGET_CRC32): Define.
34555 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
34556 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
34557 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
34558 (aarch64_<crc_variant>): New pattern.
34559 * config/aarch64/arm_acle.h: New file.
34560 * config/aarch64/iterators.md (CRC): New int iterator.
34561 (crc_variant, crc_mode): New int attributes.
34562 * doc/aarch64-acle-intrinsics.texi: New file.
34563 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
34564 Include aarch64-acle-intrinsics.texi.
34566 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
34568 * tree-vect-data-refs.c (vect_grouped_store_supported): New
34569 check for stores group of length 3.
34570 (vect_permute_store_chain): New permutations for stores group of
34572 * tree-vect-stmts.c (vect_model_store_cost): Change cost
34573 of vec_perm_shuffle for the new permutations.
34575 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
34577 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
34578 table rewriting temporarily on targets not supporting ONE_ONLY.
34580 2014-06-11 Richard Biener <rguenther@suse.de>
34582 PR middle-end/61437
34584 2014-06-04 Richard Biener <rguenther@suse.de>
34586 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
34587 TREE_PUBLIC and DECL_EXTERNAL decls.
34589 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
34591 * varasm.c (set_implicit_section): New function.
34592 (resolve_unique_section): Use it to set implicit section
34594 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
34595 (default_function_section): Likewise.
34596 (decl_binds_to_current_def_p): Constify argument.
34597 * varasm.h (decl_binds_to_current_def_p): Update prototype.
34598 * asan.c (asan_protect_global): Use
34599 symtab_get_node (decl)->implicit_section.
34600 * symtab.c (dump_symtab_base): Dump implicit sections.
34601 (verify_symtab_base): Verify sanity of sectoins and comdats.
34602 (symtab_resolve_alias): Alias share the section of its target.
34603 (set_section_1): New function.
34604 (symtab_node::set_section): Move here, recurse to aliases.
34605 (verify_symtab): Check for duplicated symtab lists.
34606 * tree-core.h (implicit_section_name_p): Remove.
34607 * tree-vect-data-refs.c: Include varasm.h.
34608 (vect_can_force_dr_alignment_p): Fix conditional on when
34609 decl bints to current definition; use
34610 symtab_get_node (decl)->implicit_section.
34611 * cgraph.c (cgraph_make_node_local_1): Fix section set.
34612 * cgraph.h (struct symtab_node): Add implicit_section.
34613 (set_section): Rename to ...
34614 (set_section_for_node): ... this one.
34615 (set_section): Declare.
34616 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
34617 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
34618 input_overwrite_node, input_varpool_node): Stream implicit_section.
34619 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
34620 removal; it will fail in LTO.
34622 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34624 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
34625 Change second alternative type to f_mcr.
34626 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
34627 and 12th alternatives' types to f_mcr and f_mrc.
34628 (*movdi_aarch64): Same for 12th and 13th alternatives.
34629 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
34630 (aarch64_movtilow_tilow): Change type to fmov.
34632 2014-06-10 Jiong Wang <jiong.wang@arm.com>
34634 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
34635 (aarch64_save_or_restore_callee_save_registers): Fix layout.
34637 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34639 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
34641 (aarch64_sqrdmulh_lane<mode>): Likewise.
34642 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
34643 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
34644 (aarch64_sqdmulh_laneq<mode>): New expander.
34645 (aarch64_sqrdmulh_laneq<mode>): Likewise.
34646 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
34647 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
34648 (aarch64_sqdmulh_lane<mode>): New expander.
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_sqdmlal_lane<mode>): Add lane flip for big-endian.
34653 (aarch64_sqdmlal_laneq<mode>): Likewise.
34654 (aarch64_sqdmlsl_lane<mode>): Likewise.
34655 (aarch64_sqdmlsl_laneq<mode>): Likewise.
34656 (aarch64_sqdmlal2_lane<mode>): Likewise.
34657 (aarch64_sqdmlal2_laneq<mode>): Likewise.
34658 (aarch64_sqdmlsl2_lane<mode>): Likewise.
34659 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
34660 (aarch64_sqdmull_lane<mode>): Likewise.
34661 (aarch64_sqdmull_laneq<mode>): Likewise.
34662 (aarch64_sqdmull2_lane<mode>): Likewise.
34663 (aarch64_sqdmull2_laneq<mode>): Likewise.
34665 2014-06-10 Richard Biener <rguenther@suse.de>
34667 PR tree-optimization/61438
34668 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
34669 (eliminate_dom_walker::before_dom_children): Only try to inhibit
34670 insertion of IVs if running PRE.
34671 (eliminate): Adjust.
34672 (pass_pre::execute): Likewise.
34673 (pass_fre::execute): Likewise.
34675 2014-06-10 Richard Biener <rguenther@suse.de>
34677 PR middle-end/61456
34678 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
34679 Do not use the main variant for the type comparison.
34680 (ncr_compar): Likewise.
34681 (nonoverlapping_component_refs_p): Likewise.
34683 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
34685 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
34686 REG_CFA_RESTORE mode.
34688 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
34690 * config/i386/i386.c (expand_vec_perm_pblendv): New.
34691 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
34692 expand_vec_perm_pblendv.
34694 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34696 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
34698 Simplify description of __crc32d and __crc32cd intrinsics.
34699 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
34702 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
34705 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
34706 * config.in: Regenerate.
34707 * configure: Likewise.
34709 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
34711 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
34713 (intersect_static_var_sets): Remove.
34714 (propagate): Do not prune local statics.
34716 2014-06-10 Jakub Jelinek <jakub@redhat.com>
34719 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
34720 Set lastprivate_firstprivate even if omp_private_outer_ref
34721 langhook returns true.
34722 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
34723 langhook, call unshare_expr on new_var and call
34724 build_outer_var_ref to get the last argument.
34726 2014-06-10 Marek Polacek <polacek@redhat.com>
34729 * doc/extend.texi: Add cindex for transparent_union.
34731 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
34733 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
34734 init_symbolic_number ().
34736 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
34738 PR middle-end/61141
34739 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
34740 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
34741 (verify_rtl_sharing): Likewise.
34743 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
34746 * tree.c (build_qualified_type): Use a canonical type for
34749 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34751 * config/arm/arm-modes.def: Remove XFmode.
34753 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
34756 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
34757 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
34758 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
34759 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
34760 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
34761 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
34762 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
34763 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
34764 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
34766 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
34768 * tree-core.h (tree_decl_with_vis): Remove section_name.
34770 2014-06-09 Kito Cheng <kito@0xlab.org>
34772 * ira.c (ira): Don't call init_caller_save if LRA enabled
34773 since LRA use its own infrastructure to handle that.
34775 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34777 * symtab.c (dump_symtab_base): Update dumping.
34778 (symtab_make_decl_local): Clear only DECL_COMDAT.
34779 * tree-vect-data-refs.c (Check that variable is static before
34780 tampering with sections.
34781 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
34782 (cgraph_create_virtual_clone): Likewise.
34783 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
34784 (decl_section_name, set_decl_section_name): New accessors.
34785 (find_decls_types_r): Do not walk section name
34786 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
34787 (decl_comdat_group, decl_comdat_group_id): Constify.
34788 (decl_section_name, set_decl_section_name): Update.
34789 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
34790 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
34791 (cgraph_make_node_local_1): Clear section and comdat group.
34792 * cgraph.h (set_comdat_group): Sanity check.
34793 (get_section, set_section): New.
34794 * ipa-comdats.c (ipa_comdats): Use get_section.
34795 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
34796 * lto-streamer-out.c: Do not follow section names.
34797 * c-family/c-common.c (handle_section_attribute): Update.
34798 * lto-cgraph.c (lto_output_node): Output section.
34799 (lto_output_varpool_node): Likewise.
34800 (read_comdat_group): Rename to ...
34801 (read_identifier): ... this one.
34802 (read_string_cst): New function.
34803 (input_node, input_varpool_node): Input section names.
34804 * tree-emutls.c (get_emutls_init_templ_addr): Update.
34805 (new_emutls_decl): Update.
34806 (secname_for_decl): Check section names only of static vars.
34807 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
34808 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
34809 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
34810 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
34811 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
34812 * config/mcore/mcore.c (mcore_unique_section): Likewise.
34813 * config/mips/mips.c (mips16_build_function_stub): Likewise.
34814 * config/v850/v850.c (v850_insert_attributes): Likewise.
34815 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
34817 (h8300_handle_tiny_data_attribute): Likewise.
34818 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
34819 (bfin_handle_l2_attribute): Likewise.
34821 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34823 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
34824 remove static initializer.
34826 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34828 * varasm.c (use_blocks_for_decl_p): Check symbol table
34829 instead of alias attribute.
34830 (place_block_symbol): Recurse on aliases.
34832 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34834 * ipa-visibility.c: Include varasm.h
34835 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
34837 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34839 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
34840 outputting aliases.
34842 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
34844 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
34845 from test_insn into GGC space escape via SET_SRC.
34847 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
34849 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
34850 call statement, if any.
34851 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
34852 statements, if any. Tidy up.
34854 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34857 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
34858 iterators, VSX_D that handles 64-bit types, and VSX_LE that
34859 handles swapping the two 64-bit double words on little endian
34860 systems. Include V1TImode and optionally TImode in VSX_LE so that
34861 these types are properly swapped. Change all of the insns and
34862 splits that do the 64-bit swaps to use VSX_LE.
34863 (vsx_le_perm_load_<mode>): Likewise.
34864 (vsx_le_perm_store_<mode>): Likewise.
34865 (splitters for little endian memory operations): Likewise.
34866 (vsx_xxpermdi2_le_<mode>): Likewise.
34867 (vsx_lxvd2x2_le_<mode>): Likewise.
34868 (vsx_stxvd2x2_le_<mode>): Likewise.
34870 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
34873 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
34874 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
34875 and corresponding splitters. Zero extend general register
34876 or memory input operand to XMM temporary. Enable for
34877 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
34878 (floatunssi<mode>2): Update expander predicate.
34880 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
34882 PR rtl-optimization/61325
34883 * lra-constraints.c (process_address_1): Check scale equal to one
34884 to prevent transformation: base + scale * index => base + new_reg.
34886 2014-06-06 Richard Biener <rguenther@suse.de>
34888 PR tree-optimization/59299
34889 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
34891 (nearest_common_dominator_of_uses): Likewise.
34892 (statement_sink_location): Adjust. Support sinking loads.
34894 2014-06-06 Martin Jambor <mjambor@suse.cz>
34896 * ipa-prop.c (get_place_in_agg_contents_list): New function.
34897 (build_agg_jump_func_from_list): Likewise.
34898 (determine_known_aggregate_parts): Renamed to
34899 determine_locally_known_aggregate_parts. Moved some functionality
34900 to the two functions above, removed bound checks.
34902 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
34904 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
34905 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
34906 (aarch64_progress_pointer): Likewise.
34907 (aarch64_copy_one_part_and_move_pointers): Likewise.
34908 (aarch64_expand_movmen): Likewise.
34909 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
34910 * config/aarch64/aarch64.md (movmem<mode>): New.
34912 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
34914 * targhooks.c (default_add_stmt_cost): Call target specific
34915 hook instead of default one.
34917 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
34919 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
34920 endianness instead of host endianness.
34921 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
34924 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
34927 * function.c (instantiate_decls): Process the saved static chain.
34928 (expand_function_start): If not optimizing, save the static chain
34930 * tree-nested.c (convert_all_function_calls): Always create the static
34931 chain for nested functions if not optimizing.
34933 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
34935 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
34937 2014-06-06 Richard Biener <rguenther@suse.de>
34939 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
34940 (construct_init_block): Likewise.
34941 (construct_exit_block): Likewise.
34942 (pass_expand::execute): Likewise.
34943 * graphite.c (graphite_transforms): Replace check for current_loops
34944 with a check for > 1 loops.
34945 (pass_graphite_transforms::execute): Adjust.
34946 * ipa-split.c (split_function): Remove check for current_loops.
34947 * omp-low.c (expand_parallel_call): Likewise.
34948 (expand_omp_for_init_counts): Likewise.
34949 (extract_omp_for_update_vars): Likewise.
34950 (expand_omp_for_generic): Likewise.
34951 (expand_omp_sections): Likewise.
34952 (expand_omp_target): Likewise.
34953 * tracer.c (tail_duplicate): Likewise.
34954 (pass_tracer::execute): Likewise.
34955 * trans-mem.c (expand_transaction): Likewise.
34956 * tree-complex.c (expand_complex_div_wide): Likewise.
34957 * tree-eh.c (lower_resx): Likewise.
34958 (cleanup_empty_eh_merge_phis): Likewise.
34959 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
34960 current_loops with a check for > 1 loops.
34961 (pass_predcom::execute): Adjust.
34962 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
34963 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
34964 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
34965 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
34966 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
34967 * tree-switch-conversion.c (process_switch): Likewise.
34968 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
34969 * tree-vrp.c (vrp_visit_phi_node): Likewise.
34970 (execute_vrp): Likewise.
34971 * ubsan.c (ubsan_expand_null_ifn): Likewise.
34973 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
34975 * rtl.h (insn_location): Declare.
34976 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
34977 with UNKNOWN_LOCATION.
34978 * emit-rtl.c (insn_location): New function.
34979 * final.c (notice_source_line): Check that the instruction has a
34980 location before retrieving it and use insn_location.
34981 * modulo-sched.c (loop_single_full_bb_p): Likewise.
34982 * print-rtl.c (print_rtx): Likewise.
34984 2014-06-06 Richard Biener <rguenther@suse.de>
34986 * passes.def: Move 2nd VRP pass before phi-only-cprop.
34988 2014-06-06 Christian Bruel <christian.bruel@st.com>
34990 PR tree-optimization/43934
34991 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
34994 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
34996 * ira-lives.c (single_reg_class): Add missing break. Explicitly
34997 return NO_REGS for extra address and memory constraints. Handle
34998 operands that match (or are equivalent to something that matches)
34999 extra constant constraints. Ignore other non-register operands.
35001 2014-06-06 Alan Modra <amodra@gmail.com>
35004 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
35005 * doc/tm.texi: Regenerate.
35006 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
35007 Use throughout in place of REG_PARM_STACK_SPACE.
35008 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
35009 "incoming" param. Pass to rs6000_function_parms_need_stack.
35010 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
35011 prototype_p when incoming. Use function decl when incoming
35012 to handle K&R style functions.
35013 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
35014 (INCOMING_REG_PARM_STACK_SPACE): Define.
35016 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
35019 * cfgexpand.c (expand_debug_expr): Use address space of nested
35020 TREE_TYPE for ADDR_EXPR and MEM_REF.
35022 2014-06-05 Jeff Law <law@redhat.com>
35024 PR tree-optimization/61289
35025 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
35026 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
35027 looking for those which match LHS. All callers changed.
35028 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
35029 parameters and code which manipulated them. All callers changed.
35030 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
35031 and DST_MAP parameters. Simplify invalidation code by just calling
35032 invalidate_equivalences. All callers changed.
35033 (thread_across_edge): Simplify now that we don't need to maintain
35034 the map of equivalences to invalidate.
35036 2014-06-05 Kai Tietz <ktietz@redhat.com>
35037 Richard Henderson <rth@redhat.com>
35040 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
35041 checking for !TARGET_X32.
35042 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
35043 (sibcall_intern): New define_insn, plus required peepholes.
35044 (sibcall_pop_intern): Likewise.
35045 (sibcall_value_intern): Likewise.
35046 (sibcall_value_pop_intern): Likewise.
35048 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
35050 * tree-inline.c (tree_function_versioning): Check DF info existence
35051 before accessing it.
35053 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35055 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
35057 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
35058 aarch64_frame hard_fp_offset and frame_size.
35059 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
35060 frame_size; remove original_frame_size.
35061 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
35062 (aarch64_initial_elimination_offset): Remove frame_size and
35063 offset. Use aarch64_frame frame_size.
35065 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35066 Jiong Wang <jiong.wang@arm.com>
35067 Renlin <renlin.li@arm.com>
35069 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
35070 initialization of R30 offset. Update offset. Iterate core
35071 regisers upto X30. Remove X29, X30 specific code.
35073 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35074 Jiong Wang <jiong.wang@arm.com>
35076 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
35077 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
35078 (aarch64_register_saved_on_entry): Adjust test.
35080 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35082 * config/aarch64/aarch64.h (machine_function): Move
35083 saved_varargs_size from here...
35084 (aarch64_frame): ... to here.
35086 * config/aarch64/aarch64.c (aarch64_expand_prologue)
35087 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
35088 (aarch64_initial_elimination_offset)
35089 (aarch64_setup_incoming_varargs): Adjust location of
35090 saved_varargs_size.
35092 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35094 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
35097 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
35098 Prachi Godbole <Prachi.Godbole@imgtec.com>
35100 * config/mips/mips-cpus.def: Add definition for p5600. Updated
35101 mips32r5 entry to use PROCESSOR_P5600.
35102 * config/mips/mips-tables.opt: Regenerate.
35103 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
35104 * config/mips/mips.c (mips_fmadd_bypass): New function.
35105 (mips_rtx_cost_data): Add costs for p5600.
35106 (mips_issue_rate): Add support for p5600.
35107 (mips_multipass_dfa_lookahead): Likewise.
35108 * config/mips/mips.h (TUNE_P5600): New define.
35109 (TUNE_MACC_CHAINS): Add TUNE_P5600.
35110 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
35111 * config/mips/mips.md: Include p5600.md.
35112 (processor): Add p5600.
35113 * config/mips/p5600.md: New file.
35115 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
35117 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
35118 * config/i386/predicates.md (palignr_operand): New.
35119 Indicates if permutation is suitable for palignr instruction.
35121 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
35123 PR tree-optimization/61319
35124 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
35125 stmt belongs to loop.
35127 2014-06-05 Richard Biener <rguenther@suse.de>
35129 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
35130 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
35131 (lookup_tmp_var): Adjust.
35132 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
35134 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35136 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
35138 2014-06-05 Marek Polacek <polacek@redhat.com>
35141 * doc/invoke.texi: Document -Wlogical-not-parentheses.
35143 2014-06-04 Tom de Vries <tom@codesourcery.com>
35145 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
35148 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
35150 PR tree-optimization/61385
35151 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
35153 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
35155 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
35156 changed to use fatal_error.
35157 (main): Ensure lto_wrapper_cleanup is run atexit.
35159 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35161 * lra-constraints.c (valid_address_p): Move earlier in file.
35162 (address_eliminator): New structure.
35163 (satisfies_memory_constraint_p): New function.
35164 (satisfies_address_constraint_p): Likewise.
35165 (process_alt_operands, process_address, curr_insn_transform): Use them.
35167 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35169 * lra-int.h (lra_static_insn_data): Make operand_alternative a
35171 (target_lra_int, default_target_lra_int, this_target_lra_int)
35172 (op_alt_data): Delete.
35173 * lra.h (lra_init): Delete.
35174 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
35175 (init_insn_code_data_once): Remove op_alt_data handling.
35176 (finish_insn_code_data_once): Likewise.
35177 (init_op_alt_data): Delete.
35178 (get_static_insn_data): Initialize operand_alternative to null.
35179 (free_insn_recog_data): Cast operand_alternative before freeing it.
35180 (setup_operand_alternative): Take the operand_alternative as
35181 parameter and assume it isn't already cached in the static
35183 (lra_set_insn_recog_data): Update accordingly.
35184 (lra_init): Delete.
35185 * ira.c (ira_init): Don't call lra_init.
35186 * target-globals.h (this_target_lra_int): Declare.
35187 (target_globals): Remove lra_int.
35188 (restore_target_globals): Update accordingly.
35189 * target-globals.c: Don't include lra-int.h.
35190 (default_target_globals, save_target_globals): Remove lra_int.
35192 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35194 * recog.h (operand_alternative): Convert reg_class, reject,
35195 matched and matches into bitfields.
35196 (preprocess_constraints): New overload.
35197 (preprocess_insn_constraints): New function.
35198 (preprocess_constraints): Take the insn as parameter.
35199 (recog_op_alt): Change into a pointer.
35200 (target_recog): Add x_op_alt.
35201 * recog.c (asm_op_alt): New variable.
35202 (recog_op_alt): Change into a pointer.
35203 (preprocess_constraints): New overload, replacing the old function
35204 definition with one that doesn't use global state.
35205 (preprocess_insn_constraints): New function.
35206 (preprocess_constraints): Use them. Take the insn as parameter.
35207 Use asm_op_alt for asms.
35208 (recog_init): Free existing x_op_alt entries.
35209 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
35211 (make_early_clobber_and_input_conflicts): Likewise.
35212 (process_bb_node_lives): Pass the insn to process_constraints.
35213 * reg-stack.c (check_asm_stack_operands): Likewise.
35214 (subst_asm_stack_regs): Likewise.
35215 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
35216 * regrename.c (build_def_use): Likewise.
35217 * sched-deps.c (sched_analyze_insn): Likewise.
35218 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
35219 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
35220 (note_invalid_constants): Likewise.
35221 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
35222 (ix86_legitimate_combined_insn): Make operand_alternative pointer
35225 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35227 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
35228 * ira-lives.c (check_and_make_def_conflict): Check for disabled
35230 (make_early_clobber_and_input_conflicts): Likewise.
35231 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
35233 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35235 * recog.h (alternative_class): New function.
35236 (which_op_alt): Return a const recog_op_alt.
35237 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
35238 (subst_asm_stack_regs): Likewise.
35239 * config/arm/arm.c (note_invalid_constants): Likewise.
35240 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
35241 the operand_alternative; use alternative class instead.
35242 * sel-sched.c (get_reg_class): Likewise.
35243 * regrename.c (build_def_use): Likewise.
35244 (hide_operands, restore_operands, record_out_operands): Update type
35247 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35249 * recog.h (recog_op_alt): Convert to a flat array.
35250 (which_op_alt): New function.
35251 * recog.c (recog_op_alt): Convert to a flat array.
35252 (preprocess_constraints): Update accordingly, grouping all
35253 operands of the same alternative together, rather than the
35255 * ira-lives.c (check_and_make_def_conflict): Likewise.
35256 (make_early_clobber_and_input_conflicts): Likewise.
35257 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
35258 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
35259 (subst_asm_stack_regs): Likewise.
35260 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
35261 * regrename.c (hide_operands, record_out_operands): Likewise.
35262 (build_def_use): Likewise.
35263 * sel-sched.c (get_reg_class): Likewise.
35264 * config/arm/arm.c (note_invalid_constants): Likewise.
35266 2014-06-04 Jason Merrill <jason@redhat.com>
35270 * gimplify.c (gimplify_arg): Non-static.
35271 * gimplify.h: Declare it.
35273 2014-06-04 Richard Biener <rguenther@suse.de>
35275 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
35276 TREE_PUBLIC and DECL_EXTERNAL decls.
35278 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
35280 * regcprop.c (copyprop_hardreg_forward_1): Account for
35281 HARD_REGNO_CALL_PART_CLOBBERED.
35283 2014-06-04 Richard Biener <rguenther@suse.de>
35285 * configure.ac: Check whether the underlying type of int64_t
35286 is long or long long.
35287 * configure: Regenerate.
35288 * config.in: Likewise.
35289 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
35290 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
35292 2014-06-04 Richard Biener <rguenther@suse.de>
35294 PR tree-optimization/60098
35295 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
35297 (dse_optimize_stmt): Simplify, now that we found a kill
35300 2014-06-04 Richard Biener <rguenther@suse.de>
35302 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
35303 of accesses with non-invariant address.
35305 2014-06-04 Martin Liska <mliska@suse.cz>
35307 * cgraph.h (cgraph_make_wrapper): New function introduced.
35308 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
35309 * ipa-inline.h (inline_analyze_function): The function is global.
35310 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
35312 2014-06-04 Martin Liska <mliska@suse.cz>
35314 * tree.h (private_lookup_attribute_starting): New function.
35315 (lookup_attribute_starting): Likewise.
35316 * tree.c (private_lookup_attribute_starting): Likewise.
35318 2014-06-04 Martin Liska <mliska@suse.cz>
35320 * cgraph.h (expand_thunk): New argument added.
35321 (address_taken_from_non_vtable_p): New global function.
35322 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
35323 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
35324 * cgraphunit.c (analyze_function): Likewise.
35325 (assemble_thunks_and_aliases): Argument added to call.
35326 (expand_thunk): New argument forces to produce GIMPLE thunk.
35328 2014-06-04 Martin Liska <mliska@suse.cz>
35330 * coverage.h (coverage_compute_cfg_checksum): Argument added.
35331 * coverage.c (coverage_compute_cfg_checksum): Likewise.
35332 * profile.c (branch_prob): Likewise.
35334 2014-06-04 Martin Jambor <mjambor@suse.cz>
35337 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
35338 handler for switch on an ipa_ref_use enum.
35339 * ipa-reference.c (analyze_function): Likewise.
35341 2014-06-04 Kai Tietz <ktietz@redhat.com>
35343 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
35344 from old call-instruction.
35346 2014-06-04 Bin Cheng <bin.cheng@arm.com>
35348 * config/aarch64/aarch64.c (aarch64_classify_address)
35349 (aarch64_legitimize_reload_address): Support full addressing modes
35351 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
35352 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
35354 2014-06-03 Andrew Pinski <apinski@cavium.com>
35356 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
35359 2014-06-03 Andrew Pinski <apinski@cavium.com>
35361 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
35362 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
35364 2014-06-03 Kai Tietz <ktietz@redhat.com>
35366 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
35369 2014-06-03 Dehao Chen <dehao@google.com>
35371 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
35374 2014-06-03 Marek Polacek <polacek@redhat.com>
35377 * doc/invoke.texi: Document -Wswitch-bool.
35378 * function.c (stack_protect_epilogue): Cast controlling expression of
35380 * gengtype.c (walk_type): Generate switch expression with its
35381 controlling expression cast to int.
35383 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
35385 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
35387 * config/avr/avr-tables.opt: Regenerate.
35388 * config/avr/t-multilib: Regenerate.
35389 * doc/avr-mmcu.texi: Regenerate.
35391 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
35392 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
35394 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
35395 (ata6617c, ata664251): Add new avr35 devices.
35396 (ata6612c): Add new avr4 device.
35397 (ata6613c, ata6614q): Add new avr5 devices.
35398 * config/avr/avr-tables.opt: Regenerate.
35399 * config/avr/t-multilib: Regenerate.
35400 * doc/avr-mmcu.texi: Regenerate.
35402 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35404 * gcc/config/aarch64/aarch64-builtins.c
35405 (aarch64_types_binop_ssu_qualifiers): New static data.
35406 (TYPES_BINOP_SSU): Define.
35407 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
35408 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
35409 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
35410 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
35411 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
35412 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
35413 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
35414 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
35415 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
35416 suffix to builtin function name, remove cast.
35417 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
35418 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
35419 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
35421 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35423 * gcc/config/aarch64/aarch64-builtins.c
35424 (aarch64_types_binop_uus_qualifiers,
35425 aarch64_types_shift_to_unsigned_qualifiers,
35426 aarch64_types_unsigned_shiftacc_qualifiers): Define.
35427 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
35428 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
35429 sqshlu_n, uqshl_n): Update qualifiers.
35430 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
35431 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
35432 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
35433 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
35434 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
35435 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
35436 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
35437 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
35438 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
35439 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
35440 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
35441 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
35442 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
35443 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
35444 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
35445 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
35446 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
35447 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
35448 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
35449 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
35450 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
35451 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
35452 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
35453 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
35454 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
35455 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
35456 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
35458 2014-06-03 Teresa Johnson <tejohnson@google.com>
35460 * tree-sra.c (modify_function): Record caller nodes after rebuild.
35462 2014-06-02 Jason Merrill <jason@redhat.com>
35465 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
35467 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35469 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
35472 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35474 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
35476 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
35477 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
35478 * config/aarch64/iterators.md (REVERSE): New iterator.
35479 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
35480 (rev_op): New int_attribute.
35481 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
35482 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
35483 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
35484 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
35485 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
35486 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
35487 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
35488 Replace temporary __asm__ with __builtin_shuffle.
35490 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
35492 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
35494 * config/mips/mips-tables.opt: Regenerate.
35495 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
35496 to use mips_isa_rev rather than ISA_MIPS32R2.
35497 * config/mips/mips.h (ISA_MIPS32R3): New define.
35498 (ISA_MIPS32R5): New define.
35499 (ISA_MIPS64R3): New define.
35500 (ISA_MIPS64R5): New define.
35501 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
35502 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
35503 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
35505 (MIPS_ISA_SYNCI_SPEC): Likewise.
35506 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
35507 (LINK_SPEC): Added mips32r3 and mips32r5.
35508 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
35509 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
35510 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
35511 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
35512 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
35513 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
35514 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
35516 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
35518 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
35520 * config/mips/mips.opt (mxpa): New option.
35521 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
35524 2014-06-03 Martin Jambor <mjambor@suse.cz>
35527 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
35530 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
35532 PR tree-optimization/61328
35533 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
35534 initialization from find_bswap_or_nop_1.
35535 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
35536 in source_expr2 before using the size value the function sets. Also
35537 make use of init_symbolic_number () in both the old place and
35538 find_bswap_or_nop_load () to avoid reading uninitialized memory when
35539 doing recursion in the GIMPLE_BINARY_RHS case.
35541 2014-06-03 Richard Biener <rguenther@suse.de>
35543 PR tree-optimization/61383
35544 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
35547 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
35549 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
35550 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
35551 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
35552 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
35554 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
35555 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
35556 * system.h: ...here and make it unconditional.
35557 * target.def (conditional_register_usage): Mention
35558 define_register_constraint instead of old-style constraint macros.
35559 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
35560 * doc/tm.texi: Regenerate.
35561 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
35562 protected by !USE_MD_CONSTRAINTS.
35563 * config/frv/frv.md: Remove quote from old version of documentation.
35564 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
35565 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
35566 CONST_DOUBLE_OK_FOR_LETTER.
35567 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
35569 2014-06-02 Andrew Pinski <apinski@cavium.com>
35571 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
35572 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
35573 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
35574 file whose name depends on -mabi= and -mbig-endian.
35575 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
35576 Handle LP64 better and handle ilp32 too.
35577 (MULTILIB_OPTIONS): Delete.
35578 (MULTILIB_DIRNAMES): Delete.
35580 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
35582 * expr.h: Remove prototypes of functions defined in builtins.c.
35583 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
35584 Remove prototypes of functions defined in builtins.c.
35585 * builtins.h: Update prototype list to include all exported functions.
35586 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
35587 no_c99_libc_has_function): Move to targhooks.c
35588 (build_string_literal, build_call_expr_loc_array,
35589 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
35591 (expand_builtin_object_size, fold_builtin_object_size): Make static.
35592 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
35593 no_c99_libc_has_function): Relocate from builtins.c.
35594 * tree.c: Include builtins.h.
35595 (build_call_expr_loc_array, build_call_expr_loc_vec,
35596 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
35598 * fold-const.h (fold_fma): Move prototype to builtins.h.
35599 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
35600 * asan.c: Include builtins.h.
35601 * cfgexpand.c: Likewise.
35602 * convert.c: Likewise.
35603 * emit-rtl.c: Likewise.
35604 * except.c: Likewise.
35605 * expr.c: Likewise.
35606 * fold-const.c: Likewise.
35607 * gimple-fold.c: Likewise.
35608 * gimple-ssa-strength-reduction.c: Likewise.
35609 * gimplify.c: Likewise.
35610 * ipa-inline.c: Likewise.
35611 * ipa-prop.c: Likewise.
35612 * lto-streamer-out.c: Likewise.
35613 * stmt.c: Likewise.
35614 * tree-inline.c: Likewise.
35615 * tree-object-size.c: Likewise.
35616 * tree-sra.c: Likewise.
35617 * tree-ssa-ccp.c: Likewise.
35618 * tree-ssa-forwprop.c: Likewise.
35619 * tree-ssa-loop-ivcanon.c: Likewise.
35620 * tree-ssa-loop-ivopts.c: Likewise.
35621 * tree-ssa-math-opts.c: Likewise.
35622 * tree-ssa-reassoc.c: Likewise.
35623 * tree-ssa-threadedge.c: Likewise.
35624 * tree-streamer-in.c: Likewise.
35625 * tree-vect-data-refs.c: Likewise.
35626 * tree-vect-patterns.c: Likewise.
35627 * tree-vect-stmts.c: Likewise.
35628 * config/aarch64/aarch64.c: Likewise.
35629 * config/alpha/alpha.c: Likewise.
35630 * config/arc/arc.c: Likewise.
35631 * config/arm/arm.c: Likewise.
35632 * config/avr/avr.c: Likewise.
35633 * config/bfin/bfin.c: Likewise.
35634 * config/c6x/c6x.c: Likewise.
35635 * config/cr16/cr16.c: Likewise.
35636 * config/cris/cris.c: Likewise.
35637 * config/epiphany/epiphany.c: Likewise.
35638 * config/fr30/fr30.c: Likewise.
35639 * config/frv/frv.c: Likewise.
35640 * config/h8300/h8300.c: Likewise.
35641 * config/i386/i386.c: Likewise.
35642 * config/i386/winnt.c: Likewise.
35643 * config/ia64/ia64.c: Likewise.
35644 * config/iq2000/iq2000.c: Likewise.
35645 * config/lm32/lm32.c: Likewise.
35646 * config/m32c/m32c.c: Likewise.
35647 * config/m32r/m32r.c: Likewise.
35648 * config/m68k/m68k.c: Likewise.
35649 * config/mcore/mcore.c: Likewise.
35650 * config/mep/mep.c: Likewise.
35651 * config/microblaze/microblaze.c: Likewise.
35652 * config/mips/mips.c: Likewise.
35653 * config/mmix/mmix.c: Likewise.
35654 * config/mn10300/mn10300.c: Likewise.
35655 * config/moxie/moxie.c: Likewise.
35656 * config/msp430/msp430.c: Likewise.
35657 * config/nds32/nds32.c: Likewise.
35658 * config/pa/pa.c: Likewise.
35659 * config/pdp11/pdp11.c: Likewise.
35660 * config/picochip/picochip.c: Likewise.
35661 * config/rl78/rl78.c: Likewise.
35662 * config/rs6000/rs6000.c: Likewise.
35663 * config/rx/rx.c: Likewise.
35664 * config/s390/s390.c: Likewise.
35665 * config/score/score.c: Likewise.
35666 * config/sh/sh.c: Likewise.
35667 * config/sparc/sparc.c: Likewise.
35668 * config/spu/spu.c: Likewise.
35669 * config/stormy16/stormy16.c: Likewise.
35670 * config/tilegx/tilegx.c: Likewise.
35671 * config/tilepro/tilepro.c: Likewise.
35672 * config/v850/v850.c: Likewise.
35673 * config/vax/vax.c: Likewise.
35674 * config/xtensa/xtensa.c: Likewise.
35676 2014-06-02 Jeff Law <law@redhat.com>
35678 PR rtl-optimization/61094
35679 * ree.c (combine_reaching_defs): Do not reextend an insn if it
35680 was marked as do_no_reextend. If a copy is needed to eliminate
35681 an extension, then mark it as do_not_reextend.
35683 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
35685 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
35687 2014-06-02 Richard Henderson <rth@redhat.com>
35690 * config/alpha/alpha.c (print_operand_address): Allow symbolic
35691 addresses inside asms. Use output_operand_lossage instead of
35694 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
35697 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
35698 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
35700 2014-06-02 Tom de Vries <tom@codesourcery.com>
35702 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
35703 case that x has VOIDmode.
35705 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
35707 * varasm.c (copy_constant): Delete function.
35708 (build_constant_desc): Don't call it.
35710 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35713 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
35714 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
35715 with immediate_operand.
35717 2014-06-02 Andreas Schwab <schwab@suse.de>
35719 * config/ia64/ia64.c
35720 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
35721 pending_data_specs first.
35723 2014-06-02 Richard Biener <rguenther@suse.de>
35725 PR tree-optimization/61378
35726 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
35727 valueized_anything.
35729 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
35731 * config/i386/constraints.md (Bw): Rename from 'w'.
35732 (Bz): Rename from 'z'.
35733 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
35735 2014-06-01 Kai Tietz <ktietz@redhat.com>
35738 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
35739 * config/i386/i386.md (sibcall_insn_operand): Use Bs
35740 instead of m constraint.
35742 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
35744 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
35745 a separate alternative where the scratch operand 2 is marked as
35748 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
35750 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
35751 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
35752 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
35753 and __builtins_arm_get_fpscr.
35754 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
35755 __builtins_arm_get_fpscr.
35756 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
35757 __builtins_arm_ldfpscr.
35758 (arm_atomic_assign_expand_fenv): New function.
35759 * config/arm/vfp.md (set_fpscr): New pattern.
35760 (get_fpscr) : Likewise.
35761 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
35763 * doc/extend.texi (AARCH64 Built-in Functions) : Document
35764 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
35766 2014-05-30 Jakub Jelinek <jakub@redhat.com>
35768 * asan.c (report_error_func): Add SLOW_P argument, use
35769 BUILT_IN_ASAN_*_N if set.
35770 (build_check_stmt): Likewise.
35771 (instrument_derefs): If T has insufficient alignment,
35772 force same handling as for odd sizes.
35774 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
35775 BUILT_IN_ASAN_REPORT_STORE_N): New.
35776 * asan.c (struct asan_mem_ref): Change access_size type to
35778 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
35779 update_mem_ref_hash_table): Likewise.
35780 (asan_mem_ref_hasher::hash): Hash in a HWI.
35781 (report_error_func): Change size_in_bytes argument to HWI.
35782 Use *_N builtins if size_in_bytes is larger than 16 or not power of
35784 (build_shadow_mem_access): New function.
35785 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
35786 Handle size_in_bytes not power of two or larger than 16.
35787 (instrument_derefs): Don't give up if size_in_bytes is not
35788 power of two or is larger than 16.
35790 2014-05-30 Kai Tietz <ktietz@redhat.com>
35793 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
35794 for sibling-tail-calls.
35795 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
35797 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
35798 (sibcall_insn_operand): Add check for sibcall_memory_operand.
35800 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
35802 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
35803 * config/avr/avr-tables.opt: Regenerate.
35804 * config/avr/t-multilib: Regenerate.
35805 * doc/avr-mmcu.texi: Regenerate.
35807 2014-05-30 Ian Lance Taylor <iant@google.com>
35809 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
35812 2014-05-30 Tom de Vries <tom@codesourcery.com>
35814 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
35817 2014-05-30 Tom de Vries <tom@codesourcery.com>
35819 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
35820 * lra.c (initialize_lra_reg_info_element): Add init of
35821 actual_call_used_reg_set field.
35822 (lra): Call lra_create_live_ranges before lra_inheritance for
35824 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
35826 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
35827 instead of call_used_reg_set for -fuse-caller-save.
35828 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
35830 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35832 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
35834 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
35836 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
35838 * ira.c (ira_get_dup_out_num): Check for output operands at
35839 the start of the loop. Handle cases where an included alternative
35840 follows an excluded one.
35842 2014-05-29 Mike Stump <mikestump@comcast.net>
35845 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
35846 post ld passes when lto is used.
35848 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
35850 PR rtl-optimization/61325
35851 * lra-constraints.c (process_address): Rename to process_address_1.
35852 (process_address): New function.
35854 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
35856 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
35857 TYPES_BINOPV): New static data.
35858 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
35860 * config/aarch64/aarch64-simd.md (aarch64_ext,
35861 aarch64_im_lane_boundsi): New patterns.
35862 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
35864 (aarch64_evpc_ext): New function.
35866 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
35868 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
35869 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
35870 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
35871 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
35872 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
35874 2014-05-29 Tom de Vries <tom@codesourcery.com>
35876 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
35878 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
35879 Richard Sandiford <rdsandiford@googlemail.com>
35881 * arm/iterators.md (shiftable_ops): New code iterator.
35882 (t2_binop0, arith_shift_insn): New code attributes.
35883 * arm/predicates.md (shift_nomul_operator): New predicate.
35884 * arm/arm.md (insn_enabled): Delete.
35885 (enabled): Remove insn_enabled test.
35886 (*arith_shiftsi): Delete. Replace with ...
35887 (*<arith_shift_insn>_multsi): ... new pattern.
35888 (*<arith_shift_insn>_shiftsi): ... new pattern.
35889 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
35891 2014-05-29 Radovan Obradovic <robradovic@mips.com>
35892 Tom de Vries <tom@codesourcery.com>
35894 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
35895 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
35897 (mips_split_call): Use POST_CALL_TMP_REG.
35898 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
35900 2014-05-29 Tom de Vries <tom@codesourcery.com>
35902 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
35903 with #ifdef STACK_REGS.
35905 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
35907 * varasm.c (get_variable_section): Walk aliases.
35908 (place_block_symbol): Walk aliases.
35910 2014-05-28 Tom de Vries <tom@codesourcery.com>
35913 2014-05-28 Tom de Vries <tom@codesourcery.com>
35915 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
35916 * lra.c (initialize_lra_reg_info_element): Add init of
35917 actual_call_used_reg_set field.
35918 (lra): Call lra_create_live_ranges before lra_inheritance for
35920 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
35922 * lra-constraints.c (need_for_call_save_p): Use
35923 actual_call_used_reg_set instead of call_used_reg_set for
35925 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
35927 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
35929 * doc/md.texi: Document that the % constraint character must
35930 be at the beginning of the string.
35931 * genoutput.c (validate_insn_alternatives): Check that '=',
35932 '+' and '%' only appear at the beginning of a constraint.
35933 * ira.c (commutative_constraint_p): Delete.
35934 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
35935 at the start of the string.
35936 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
35938 * config/arm/neon.md (bicdi3_neon): Likewise.
35939 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
35940 (slt_si, sltu_si): Likewise.
35941 * config/vax/vax.md (sbcdi3): Likewise.
35942 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
35943 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
35944 (mul64): Move '%' to beginning of constraint.
35945 * config/arm/arm.md (*xordi3_insn): Likewise.
35946 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
35947 (xorsi3): Likewise.
35949 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
35951 * doc/md.texi: Document the restrictions on the "enabled" attribute.
35953 2014-05-28 Jason Merrill <jason@redhat.com>
35956 * cgraph.h (symtab_node::get_comdat_group_id): New.
35957 * cgraphunit.c (analyze_functions): Call it.
35958 * symtab.c (dump_symtab_node): Likewise.
35959 * tree.c (decl_comdat_group_id): New.
35960 * tree.h: Declare it.
35961 * lto-streamer-out.c (write_symbol): Use it.
35962 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
35964 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
35966 PR bootstrap/PR61146
35967 * wide-int.cc: Do not include longlong.h when compiling with clang.
35969 2014-05-28 Richard Biener <rguenther@suse.de>
35971 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
35972 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
35973 (vrp_visit_assignment_or_call): Print less vertical space.
35974 (vrp_visit_stmt): Likewise.
35975 (vrp_visit_phi_node): Likewise. For a PHI argument with
35976 VR_VARYING range consider recording it as copy.
35978 2014-05-28 Richard Biener <rguenther@suse.de>
35981 2014-05-28 Richard Biener <rguenther@suse.de>
35983 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
35985 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
35987 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
35988 sufficiently aligned and an offset is used at the same time.
35989 (expand_expr_real_1): Likewise.
35991 2014-05-28 Richard Biener <rguenther@suse.de>
35993 PR middle-end/61045
35994 * fold-const.c (fold_comparison): When folding
35995 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
35996 the sign of the remaining constant operand stays the same.
35998 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
36000 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
36001 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
36002 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
36004 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
36005 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
36006 (m32bit-doubles) Likewise.
36007 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
36008 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
36011 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36013 * configure.ac ($gcc_cv_ld_clearcap): New test.
36014 * configure: Regenerate.
36015 * config.in: Regenerate.
36016 * config/sol2.opt (mclear-hwcap): New option.
36017 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
36018 * config/sol2-clearcap.map: Moved here from
36019 testsuite/gcc.target/i386/clearcap.map.
36020 * config/sol2-clearcapv2.map: Move here from
36021 gcc.target/i386/clearcapv2.map.
36022 * config/t-sol2 (install): Depend on install-clearcap-map.
36023 (install-clearcap-map): New target.
36024 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
36027 2014-05-28 Richard Biener <rguenther@suse.de>
36029 * hwint.h (*_HALF_WIDE_INT*): Move to ...
36030 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
36031 ... here and remove the rest.
36032 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
36034 2014-05-28 Richard Biener <rguenther@suse.de>
36036 PR tree-optimization/61335
36037 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
36038 new range fails, drop to varying.
36040 2014-05-28 Olivier Hainque <hainque@adacore.com>
36042 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
36043 (CPP_SPEC): Add entry for -mcpu=8548.
36044 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
36045 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
36047 2014-05-28 Tom de Vries <tom@codesourcery.com>
36049 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
36050 * lra.c (initialize_lra_reg_info_element): Add init of
36051 actual_call_used_reg_set field.
36052 (lra): Call lra_create_live_ranges before lra_inheritance for
36054 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
36056 * lra-constraints.c (need_for_call_save_p): Use
36057 actual_call_used_reg_set instead of call_used_reg_set for
36059 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
36061 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36062 Tom de Vries <tom@codesourcery.com>
36064 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
36066 (@item -fuse-caller-save): New item.
36068 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36069 Tom de Vries <tom@codesourcery.com>
36071 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
36072 OPT_fuse_caller_save.
36074 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36075 Tom de Vries <tom@codesourcery.com>
36077 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
36078 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
36079 get_call_reg_set_usage.
36080 * resource.c (mark_set_resources, mark_target_live_regs): Use
36081 get_call_reg_set_usage.
36082 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
36084 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
36085 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
36086 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
36087 * ira-build.c (ira_create_allocno): Init
36088 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
36089 (create_cap_allocno, propagate_allocno_info)
36090 (propagate_some_info_from_allocno)
36091 (copy_info_to_removed_store_destinations): Handle
36092 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
36093 * ira-costs.c (ira_tune_allocno_costs): Use
36094 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
36096 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36097 Tom de Vries <tom@codesourcery.com>
36099 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
36100 and function_used_regs_valid fields.
36101 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
36102 find_all_hard_reg_sets.
36103 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
36104 (get_call_reg_set_usage): New function.
36105 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
36106 * regs.h (get_call_reg_set_usage): Declare.
36108 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
36111 * config/dbx.h (License): Add Runtime Library Exception.
36112 * config/newlib-stdint.h (License): Same.
36113 * config/rtems.h (License): Same
36114 * config/initfini-array.h (License): Same
36115 * config/v850/v850.h (License): Same.
36116 * config/v850/v850-opts.h (License): Same
36117 * config/v850/rtems.h (License): Same.
36119 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
36122 * doc/extend.texi (Local Labels): Note that label differences are
36123 not supported for AVR.
36125 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
36126 Olivier Hainque <hainque@adacore.com>
36128 * rtl.h (set_for_reg_notes): Declare.
36129 * emit-rtl.c (set_for_reg_notes): New function.
36130 (set_unique_reg_note): Use it.
36131 * optabs.c (add_equal_note): Likewise
36133 2014-05-27 Andrew Pinski <apinski@cavium.com>
36135 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
36136 Use <w> for the register in assembly template.
36137 (stack_protect_test): Use the mode of operands[0] for the result.
36138 (stack_protect_test_<mode>): Use <w> for the register
36139 in assembly template.
36141 2014-05-27 DJ Delorie <dj@redhat.com>
36143 * config/rx/rx.c (add_vector_labels): New.
36144 (rx_output_function_prologue): Call it.
36145 (rx_handle_func_attribute): Don't require empty arguments.
36146 (rx_handle_vector_attribute): New.
36147 (rx_attribute_table): Add "vector" attribute.
36148 * doc/extend.texi (interrupt, vector): Document new/changed
36149 RX-specific attributes.
36151 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
36153 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
36155 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
36156 predicate to detect a negative quotient.
36158 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
36160 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
36161 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
36162 Add X - Y CMP 0 to X CMP Y transformation.
36163 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
36165 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
36167 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
36170 2014-05-27 Steve Ellcey <sellcey@mips.com>
36172 * config/mips/mips.c: Add include of cgraph.h.
36174 2014-05-27 Richard Biener <rguenther@suse.de>
36176 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
36178 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
36181 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
36182 * config/arm/arm-cores.def (License): Same.
36183 * config/arm/arm-opts.h (License): Same.
36184 * config/arm/aout.h (License): Same.
36185 * config/arm/bpabi.h (License): Same.
36186 * config/arm/elf.h (License): Same.
36187 * config/arm/linux-elf.h (License): Same.
36188 * config/arm/linux-gas.h (License): Same.
36189 * config/arm/netbsd-elf.h (License): Same.
36190 * config/arm/uclinux-eabi.h (License): Same.
36191 * config/arm/uclinux-elf.h (License): Same.
36192 * config/arm/vxworks.h (License): Same.
36194 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36196 * config/arm/neon.md (neon_bswap<mode>): New pattern.
36197 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
36198 (arm_init_neon_builtins): Handle NEON_BSWAP.
36199 Define required type nodes.
36200 (arm_expand_neon_builtin): Handle NEON_BSWAP.
36201 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
36202 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
36203 * config/arm/iterators.md (VDQHSD): New mode iterator.
36205 2014-05-27 Richard Biener <rguenther@suse.de>
36207 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
36208 Try using literal operands when comparing value-ranges failed.
36210 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
36212 * ira.c (commutative_operand): Adjust for change to recog_data.
36213 [Missing from previous commit.]
36215 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
36217 * system.h (TEST_BIT): New macro.
36218 * recog.h (alternative_mask): New type.
36219 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
36220 (recog_data_d): Replace alternative_enabled_p array with
36221 enabled_alternatives.
36222 (target_recog): New structure.
36223 (default_target_recog, this_target_recog): Declare.
36224 (get_enabled_alternatives, recog_init): Likewise.
36225 * recog.c (default_target_recog, this_target_recog): New variables.
36226 (get_enabled_alternatives): New function.
36227 (extract_insn): Use it.
36228 (recog_init): New function.
36229 (preprocess_constraints, constrain_operands): Adjust for change to
36231 * postreload.c (reload_cse_simplify_operands): Likewise.
36232 * reload.c (find_reloads): Likewise.
36233 * ira-costs.c (record_reg_classes): Likewise.
36234 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
36235 all alternatives after a disabled one would be skipped.
36236 (ira_implicitly_set_insn_hard_regs): Likewise.
36237 * ira.c (ira_setup_alts): Adjust for change to recog_data.
36238 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
36239 with enabled_alternatives.
36240 * lra.c (free_insn_recog_data): Update accordingly.
36241 (lra_update_insn_recog_data): Likewise.
36242 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
36243 * lra-constraints.c (process_alt_operands): Likewise. Handle
36244 only_alternative as part of the enabled mask.
36245 * target-globals.h (this_target_recog): Declare.
36246 (target_globals): Add a recog field.
36247 (restore_target_globals): Restore this_target_recog.
36248 * target-globals.c: Include recog.h.
36249 (default_target_globals): Initialize recog field.
36250 (save_target_globals): Likewise.
36251 * reginfo.c (reinit_regs): Call recog_init.
36252 * toplev.c (backend_init_target): Likewise.
36254 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
36256 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
36257 rather than any named insn's code.
36259 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
36262 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
36263 * config/arm/arm-cores.def (License): Same.
36265 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
36267 * tree.h (decl_comdat_group): Declare.
36268 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
36269 * tree.c (decl_comdat_group): Here.
36271 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
36273 PR rtl-optimization/61222
36274 * combine.c (simplify_shift_const_1): When moving a PLUS outside
36275 the shift, truncate the PLUS operand to the result mode.
36277 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
36280 * config/i386/i386.c (ix86_rtx_costs)
36281 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
36284 2014-05-26 Martin Jambor <mjambor@suse.cz>
36286 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
36289 2014-05-26 Richard Biener <rguenther@suse.de>
36291 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
36292 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
36293 Provide specializations.
36294 (wi::int_traits <HOST_WIDE_INT>,
36295 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
36297 2014-05-26 Alan Modra <amodra@gmail.com>
36300 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
36301 params and return a bool. Remove dead code. Update comment.
36302 Assert we have a const_int source. Remove bogus code from
36303 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
36304 handling of constants > 2G and reg_equal note, from..
36305 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
36306 return value. Update comment. If we can, use a new pseudo
36307 for intermediate calculations.
36308 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
36310 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
36311 call to rs6000_emit_set_const in splitter.
36312 (movdi_internal64+2, +3): Likewise.
36314 2014-05-26 Richard Biener <rguenther@suse.de>
36316 * system.h: Define __STDC_FORMAT_MACROS before
36317 including inttypes.h.
36318 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
36319 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
36320 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
36321 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
36322 HOST_WIDEST_INT_C): Remove.
36323 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
36324 if C99 inttypes.h is not available.
36325 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
36326 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
36327 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
36328 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
36329 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
36330 (struct output_info): Likewise.
36331 (print_statistics): Adjust.
36332 (dump_bitmap_statistics): Likewise.
36333 * bt-load.c (migrate_btr_defs): Print with PRId64.
36334 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
36335 (MAX_SAFE_MULTIPLIER): Adjust.
36336 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
36337 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
36338 dump_cgraph_node): Likewise.
36339 * final.c (dump_basic_block_info): Likewise.
36340 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
36341 * gcov.c (format_gcov): Likewise.
36342 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
36344 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
36345 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
36346 (inline_small_functions, dump_overall_stats, dump_inline_stats):
36347 Use PRId64 for dumping.
36348 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
36349 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
36350 (add_allocno_hard_regs): Adjust.
36351 * loop-doloop.c (doloop_modify): Print using PRId64.
36352 * loop-iv.c (inverse): Compute in uint64_t.
36353 (determine_max_iter, iv_number_of_iterations): Likewise.
36354 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
36355 Print using PRId64.
36356 * lto-streamer-out.c (write_symbol): Use uint64_t.
36357 * mcf.c (CAP_INFINITY): Use int64_t maximum.
36358 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
36359 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
36360 * modulo-sched.c (const_iteration_count): Use int64_t.
36361 (sms_schedule): Dump using PRId64.
36362 * predict.c (dump_prediction): Likewise.
36363 * pretty-print.h (pp_widest_integer): Remove.
36364 * profile.c (get_working_sets, is_edge_inconsistent,
36365 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
36366 * tree-pretty-print.c (pp_double_int): Remove case handling
36367 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
36368 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
36370 (pass_optimize_bswap::execute): Remove restriction on hosts.
36371 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
36372 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
36373 * tree.c (widest_int_cst_value): Remove.
36374 * tree.h (widest_int_cst_value): Likewise.
36375 * value-prof.c (dump_histogram_value): Print using PRId64.
36376 * gengtype.c (main): Also inject int64_t.
36377 * ggc-page.c (struct max_alignment): Use int64_t.
36378 * alloc-pool.c (struct allocation_object_def): Likewise.
36379 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
36381 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
36382 * doc/tm.texi: Regenerated.
36383 * gengtype-lex.l (IWORD): Handle [u]int64_t.
36384 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
36385 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
36386 mmix_output_register_setting): Use [u]int64_t in prototypes.
36387 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
36388 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
36389 mmix_output_octa, mmix_output_shifted_value): Adjust.
36390 (mmix_intval): Adjust. Remove unreachable case.
36391 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
36393 2014-05-26 Richard Biener <rguenther@suse.de>
36395 * configure.ac: Drop __int64 type check. Insist that we
36396 found uint64_t and int64_t.
36397 * hwint.h (HOST_BITS_PER___INT64): Remove.
36398 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
36399 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
36400 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
36401 (HOST_WIDEST_FAST_INT): Remove __int64 case.
36402 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
36403 for dst_q_src_df_rms_cdt.
36404 * configure: Regenerate.
36405 * config.in: Likewise.
36407 2014-05-26 Michael Tautschnig <mt@debian.org>
36410 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
36411 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
36413 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
36415 PR rtl-optimization/61278
36416 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
36418 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
36420 PR rtl-optimization/61220
36421 Part of PR rtl-optimization/61225
36422 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
36423 insn; skip split_edge for a block with only one successor.
36425 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36427 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
36430 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36432 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
36433 (update_vtable_references): New function.
36434 (function_and_variable_visibility): Rewrite also vtable initializers.
36435 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
36437 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36439 * ggc.h (ggc_grow): New function.
36440 * ggc-none.c (ggc_grow): New function.
36441 * ggc-page.c (ggc_grow): Likewise.
36443 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36445 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
36446 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
36447 comdat_can_be_unshared_p, cgraph_externally_visible_p,
36448 varpool_externally_visible_p, can_replace_by_local_alias,
36449 update_visibility_by_resolution_info, function_and_variable_visibility,
36450 pass_data_ipa_function_and_variable_visibility,
36451 make_pass_ipa_function_and_variable_visibility,
36452 whole_program_function_and_variable_visibility,
36453 pass_data_ipa_whole_program_visibility,
36454 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
36455 * cgraph.h (cgraph_local_node_p): Declare.
36456 * ipa-visibility.c: New file.
36457 * Makefile.in (OBJS): Add ipa-visiblity.o
36459 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36461 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
36462 that var decl is available.
36464 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36466 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
36467 symtab_node pointer.
36468 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
36469 (find_decls_types_r): Do not walk COMDAT_GROUP.
36470 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
36471 * varasm.c (make_decl_one_only): Use set_comdat_group;
36472 create node if needed.
36473 * ipa-inline-transform.c (save_inline_function_body): Update
36474 way we decl->symtab mapping.
36475 * symtab.c (symtab_hash, hash_node, eq_node
36476 symtab_insert_node_to_hashtable): Remove.
36477 (symtab_register_node): Update.
36478 (symtab_unregister_node): Update.
36479 (symtab_get_node): Reimplement as inline function.
36480 (symtab_add_to_same_comdat_group): Update.
36481 (symtab_dissolve_same_comdat_group_list): Update.
36482 (dump_symtab_base): Update.
36483 (verify_symtab_base): Update.
36484 (symtab_make_decl_local): Update.
36485 (fixup_same_cpp_alias_visibility): Update.
36486 (symtab_nonoverwritable_alias): Update.
36487 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
36488 * ipa.c (update_visibility_by_resolution_info): UPdate.
36489 * bb-reorder.c: Include cgraph.h
36490 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
36491 with comdat groups.
36492 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
36493 * cgraph.c (cgraph_get_create_node): Update.
36494 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
36496 (symtab_get_node): Make inline.
36497 (symtab_insert_node_to_hashtable): Remove.
36498 (symtab_can_be_discarded): Update.
36499 (decl_comdat_group): New function.
36500 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
36502 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
36504 (read_comdat_group): New function.
36505 (input_node, input_varpool_node): Use it.
36506 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
36508 * mips.c (mips_start_unique_function): Likewise.
36509 (ix86_code_end): Likewise.
36510 (rs6000_code_end): Likweise.
36511 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
36513 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36515 * gengtype-state.c (fatal_reading_state): Bring offline.
36516 * optabs.c (widening_optab_handler): Bring offline.
36517 * optabs.h (widening_optab_handler): Likewise.
36518 * final.c (get_attr_length_1): Likewise.
36520 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36522 * sched-int.h (sd_iterator_cond): Manually tail recurse.
36524 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36526 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
36527 (ppc440-compare): Include shift with dot.
36528 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
36529 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
36531 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
36533 (e6500_sfx2): Include it.
36534 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
36535 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
36536 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
36537 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
36538 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
36539 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
36540 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
36541 *lshiftrt_internal1le, *lshiftrt_internal1be,
36542 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
36543 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
36544 *rotldi3_internal10le, *rotldi3_internal10be,
36545 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
36546 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
36547 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
36548 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
36549 define_insns): Use type "shift" in the appropriate alternatives.
36551 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36553 * config/rs6000/rs6000.md (type): Add "logical". Delete
36555 (dot): Adjust comment.
36556 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
36557 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
36558 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
36559 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
36560 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
36561 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
36562 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
36563 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
36565 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
36566 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
36567 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
36568 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
36569 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
36570 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
36571 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
36572 * config/rs6000/8540.md (ppc8540_su): Adjust.
36573 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
36574 cell-cmp-microcoded): Adjust.
36575 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
36576 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36577 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
36578 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
36579 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
36580 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
36581 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
36582 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
36583 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
36585 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
36586 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
36587 Adjust. Adjust comment.
36588 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
36589 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
36591 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36593 * config/rs6000/rs6000.md (type): Add "add".
36594 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
36595 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
36596 define_insns): Use it.
36597 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
36599 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
36600 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
36601 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
36602 * config/rs6000/601.md (ppc601-integer): Adjust.
36603 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
36604 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
36605 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
36606 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
36607 * config/rs6000/8540.md (ppc8540_su): Adjust.
36608 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
36609 cell-cmp-microcoded): Adjust.
36610 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
36611 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36612 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
36613 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
36614 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
36615 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
36616 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
36617 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
36618 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
36620 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
36621 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
36622 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
36623 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
36625 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36627 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
36628 "delayed_compare", "var_delayed_compare".
36629 (var_shift): New attribute.
36630 (cell_micro): Adjust.
36631 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
36632 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
36633 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
36634 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
36635 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
36636 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
36637 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
36638 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
36639 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
36640 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
36641 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
36642 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
36643 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
36644 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
36645 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
36646 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
36647 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
36648 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
36649 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
36650 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
36651 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
36652 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
36653 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
36654 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36655 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
36657 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
36658 * config/rs6000/440.md (ppc440-integer): Adjust.
36659 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
36660 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
36661 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
36662 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
36663 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
36664 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
36665 * config/rs6000/8540.md (ppc8540_su): Adjust.
36666 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
36667 cell-cmp-microcoded): Adjust.
36668 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
36669 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36670 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
36671 e500mc64_delayed): Adjust.
36672 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
36673 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
36674 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
36675 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
36676 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
36677 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
36678 power6-delayed-compare, power6-var-delayed-compare): Adjust.
36679 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
36680 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
36682 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
36683 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
36685 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36687 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
36688 (bits): New mode_attr.
36689 (idiv_ldiv): Delete mode_attr.
36690 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
36691 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36692 rs6000_adjust_priority, is_nonpipeline_insn,
36693 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
36695 * config/rs6000/40x.md (ppc403-idiv): Adjust.
36696 * config/rs6000/440.md (ppc440-idiv): Adjust.
36697 * config/rs6000/476.md (ppc476-idiv): Adjust.
36698 * config/rs6000/601.md (ppc601-idiv): Adjust.
36699 * config/rs6000/603.md (ppc603-idiv): Adjust.
36700 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
36701 ppc620-ldiv): Adjust.
36702 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
36703 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
36704 * config/rs6000/8540.md (ppc8540_divide): Adjust.
36705 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
36706 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
36707 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
36708 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
36709 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
36710 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
36711 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
36712 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
36713 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
36714 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
36715 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
36716 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
36717 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
36718 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
36719 * config/rs6000/titan.md (titan_fxu_div): Adjust.
36721 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36723 * config/rs6000/rs6000.md (type): Delete "insert_word",
36724 "insert_dword". Add "insert".
36725 (size): Update comment.
36726 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36727 insn_must_be_first_in_group): Adjust.
36728 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
36729 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
36730 *insvsi_internal6, insvdi_internal): Adjust.
36732 * config/rs6000/40x.md (ppc403-integer): Adjust.
36733 * config/rs6000/440.md (ppc440-integer): Adjust.
36734 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
36735 * config/rs6000/601.md (ppc601-integer): Adjust.
36736 * config/rs6000/603.md (ppc603-integer): Adjust.
36737 * config/rs6000/6xx.md (ppc604-integer): Adjust.
36738 * config/rs6000/7450.md (ppc7450-integer): Adjust.
36739 * config/rs6000/7xx.md (ppc750-integer): Adjust.
36740 * config/rs6000/8540.md (ppc8540_su): Adjust.
36741 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
36742 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
36743 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36744 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
36745 * config/rs6000/e5500.md (e5500_sfx): Adjust.
36746 * config/rs6000/e6500.md (e6500_sfx): Adjust.
36747 * config/rs6000/mpc.md (mpccore-integer): Adjust.
36748 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
36749 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
36750 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
36751 * config/rs6000/power7.md (power7-integer): Adjust.
36752 * config/rs6000/power8.md (power8-1cyc): Adjust.
36753 * config/rs6000/rs64.md (rs64a-integer): Adjust.
36754 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
36756 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36758 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
36759 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
36760 (size): New attribute.
36761 (dot): New attribute.
36762 (cell_micro): Adjust.
36763 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
36764 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
36765 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
36766 umuldi3_highpart): Adjust.
36767 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36768 rs6000_adjust_priority, is_nonpipeline_insn,
36769 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
36771 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
36772 ppc405-imul3): Adjust.
36773 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
36774 * config/rs6000/476.md (ppc476-imul): Adjust.
36775 * config/rs6000/601.md (ppc601-imul): Adjust.
36776 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
36777 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
36778 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
36779 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
36780 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
36782 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
36783 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
36784 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
36785 cell-imul): Adjust.
36786 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
36787 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
36788 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
36789 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
36790 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
36791 * config/rs6000/mpc.md (mpccore-imul): Adjust.
36792 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
36793 power4-lmul, power4-imul, power4-imul3): Adjust.
36794 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
36795 power5-lmul, power5-imul, power5-imul3): Adjust.
36796 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
36797 power6-lmul, power6-imul, power6-imul3): Adjust.
36798 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
36799 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
36801 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
36802 rs64a-lmul): Adjust.
36803 * config/rs6000/titan.md (titan_imul): Adjust.
36805 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36807 * config/rs6000/rs6000.md (type): Add new value "halfmul".
36808 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
36809 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
36810 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
36811 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
36812 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
36813 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
36814 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
36815 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
36816 * config/rs6000/titan.md: Delete nonsensical comment.
36817 (titan_imul): Add type imul3.
36818 (titan_mulhw): Remove type imul3; add type halfmul.
36820 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36822 * config/rs6000/rs6000.md (type): Reorder, reformat.
36824 2014-05-23 Martin Jambor <mjambor@suse.cz>
36826 PR tree-optimization/53787
36827 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
36828 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
36829 analysis_done, update all uses.
36830 * ipa-prop.c: Include domwalk.h
36831 (param_analysis_info): Removed.
36832 (param_aa_status): New type.
36833 (ipa_bb_info): Likewise.
36834 (func_body_info): Likewise.
36835 (ipa_get_bb_info): New function.
36836 (aa_overwalked): Likewise.
36837 (find_dominating_aa_status): Likewise.
36838 (parm_bb_aa_status_for_bb): Likewise.
36839 (parm_preserved_before_stmt_p): Changed to use new param AA info.
36840 (load_from_unmodified_param): Accept func_body_info as a parameter
36841 instead of parms_ainfo.
36842 (parm_ref_data_preserved_p): Changed to use new param AA info.
36843 (parm_ref_data_pass_through_p): Likewise.
36844 (ipa_load_from_parm_agg_1): Likewise. Update callers.
36845 (compute_complex_assign_jump_func): Changed to use new param AA info.
36846 (compute_complex_ancestor_jump_func): Likewise.
36847 (ipa_compute_jump_functions_for_edge): Likewise.
36848 (ipa_compute_jump_functions): Removed.
36849 (ipa_compute_jump_functions_for_bb): New function.
36850 (ipa_analyze_indirect_call_uses): Likewise, moved variable
36852 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
36853 and info, moved variable declarations down.
36854 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
36856 (ipa_analyze_stmt_uses): Likewise.
36857 (ipa_analyze_params_uses): Removed.
36858 (ipa_analyze_params_uses_in_bb): New function.
36859 (ipa_analyze_controlled_uses): Likewise.
36860 (free_ipa_bb_info): Likewise.
36861 (analysis_dom_walker): New class.
36862 (ipa_analyze_node): Handle node-specific forbidden analysis,
36863 initialize and free func_body_info, use dominator walker.
36864 (ipcp_modif_dom_walker): New class.
36865 (ipcp_transform_function): Create and free func_body_info, use
36866 ipcp_modif_dom_walker, moved a lot of functionality there.
36868 2014-05-23 Marek Polacek <polacek@redhat.com>
36869 Jakub Jelinek <jakub@redhat.com>
36871 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
36872 * gcc.c (sanitize_spec_function): Likewise.
36873 * convert.c (convert_to_integer): Include "ubsan.h". Add
36874 floating-point to integer instrumentation.
36875 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
36876 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
36877 SANITIZE_NONDEFAULT.
36878 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
36879 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
36880 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
36881 * ubsan.c: Include "realmpfr.h" and "dfp.h".
36882 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
36883 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
36884 float/double/long double.
36885 (ubsan_instrument_float_cast): New function.
36886 * ubsan.h (ubsan_instrument_float_cast): Declare.
36888 2014-05-23 Jiong Wang <jiong.wang@arm.com>
36890 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
36892 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
36893 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
36894 Adjust for tailcalling through registers.
36895 * config/aarch64/aarch64.h (enum reg_class): New caller save
36897 (REG_CLASS_NAMES): Likewise.
36898 (REG_CLASS_CONTENTS): Likewise.
36899 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
36900 Allow tailcalling without decls.
36902 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
36904 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
36905 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
36907 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
36908 gsi, and variables v_* to v*.
36910 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
36912 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
36914 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
36916 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
36917 * omp-low.c: Update accordingly.
36919 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
36920 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
36921 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
36922 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
36923 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
36924 GF_OMP_TARGET_KIND_UPDATE.
36926 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
36927 Explicitly enumerate the expected region types.
36929 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
36932 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
36933 documentation; the old documentation didn't clearly state the
36934 constraints on the contents of the pointed-to storage.
36936 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36938 Fix bootstrap error on ia64
36939 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
36940 Return default value.
36942 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
36944 PR tree-optimization/54733
36945 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
36947 (find_bswap_or_nop_load): New.
36948 (find_bswap_1): Renamed to ...
36949 (find_bswap_or_nop_1): This. Also add support for memory source.
36950 (find_bswap): Renamed to ...
36951 (find_bswap_or_nop): This. Also add support for memory source and
36952 detection of bitwise operations equivalent to load in target
36954 (execute_optimize_bswap): Likewise. Also move its leading comment back
36955 in place and split statement transformation into ...
36956 (bswap_replace): This.
36958 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
36960 PR rtl-optimization/61215
36961 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
36962 simplify_gen_subreg until final substitution.
36964 2014-05-23 Alan Modra <amodra@gmail.com>
36967 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
36968 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
36969 Use "Y" constraint rather than "m".
36971 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
36973 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
36975 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
36976 New function declaration.
36977 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
36978 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
36979 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
36980 (aarch64_init_builtins) : Initialize builtins
36981 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
36982 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
36983 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
36984 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
36985 and __builtins_aarch64_set_fpsr.
36986 (aarch64_atomic_assign_expand_fenv): New function.
36987 * config/aarch64/aarch64.md (set_fpcr): New pattern.
36988 (get_fpcr) : Likewise.
36989 (set_fpsr) : Likewise.
36990 (get_fpsr) : Likewise.
36991 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
36992 and UNSPECV_SET_FPSR.
36993 * doc/extend.texi (AARCH64 Built-in Functions) : Document
36994 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
36995 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
36997 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
36999 PR rtl-optimization/60969
37000 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
37001 constraints. Set up mem cost for NO_REGS case.
37003 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
37005 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
37007 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
37009 * config/darwin.c: Include "lto-section-names.h".
37010 (LTO_SEGMENT_NAME): Don't define.
37011 * config/i386/winnt.c: Include "lto-section-names.h".
37012 * lto-streamer.c: Include "lto-section-names.h".
37013 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
37014 * lto-wrapper.c: Include "lto-section-names.h".
37015 (LTO_SECTION_NAME_PREFIX): Don't define.
37016 * lto-section-names.h: New file.
37017 * cgraphunit.c: Include "lto-section-names.h".
37019 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
37021 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
37023 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
37026 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
37028 2014-05-22 Nick Clifton <nickc@redhat.com>
37030 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
37032 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
37034 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
37035 -> (T)A transformation to integer types.
37037 2014-05-22 Teresa Johnson <tejohnson@google.com>
37039 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
37040 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
37041 (gcov_rewrite): Use gcov_nonruntime_assert.
37042 (gcov_open): Ditto.
37043 (gcov_write_words): Ditto.
37044 (gcov_write_length): Ditto.
37045 (gcov_read_words): Use gcov_nonruntime_assert, and remove
37046 gcc_assert from IN_LIBGCOV code.
37047 (gcov_read_summary): Use gcov_error to flag profile corruption.
37048 (gcov_sync): Use gcov_nonruntime_assert.
37049 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
37050 (gcov_histo_index): Use gcov_nonruntime_assert.
37051 (static void gcov_histogram_merge): Ditto.
37052 (compute_working_sets): Ditto.
37053 * gcov-io.h (gcov_nonruntime_assert): Define.
37054 (gcov_error): Define for !IN_LIBGCOV
37056 2014-05-22 Richard Biener <rguenther@suse.de>
37058 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
37059 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
37060 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
37061 and deallocation site.
37062 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
37063 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
37064 passing through the incoming points-to set.
37065 (handle_lhs_call): Use flags argument instead of recomputing it.
37066 (find_func_aliases_for_call): Call handle_lhs_call with proper
37069 2014-05-22 Jakub Jelinek <jakub@redhat.com>
37071 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
37072 all padding bits in REAL_VALUE_TYPE are cleared.
37074 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37076 Cleanup and improve multipass_dfa_lookahead_guard
37077 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
37078 (core2i7_first_cycle_multipass_begin,)
37079 (core2i7_first_cycle_multipass_issue,)
37080 (core2i7_first_cycle_multipass_backtrack): Update signature.
37081 * config/ia64/ia64.c
37082 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
37083 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
37084 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
37086 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
37087 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
37089 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
37091 * doc/tm.texi: Regenerate.
37093 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
37094 * haifa-sched.c (ready_try): Make signed to allow negative values.
37095 (rebug_ready_list_1): Update.
37096 (choose_ready): Simplify.
37097 (sched_extend_ready_list): Update.
37099 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37101 Remove IA64 speculation tweaking flags
37102 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
37103 speculation tuning flags.
37104 (msched-prefer-non-data-spec-insns,)
37105 (msched-prefer-non-control-spec-insns): Obsolete options.
37106 * haifa-sched.c (choose_ready): Remove handling of
37107 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
37108 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
37109 and PREFER_NON_DATA_SPEC.
37110 * sel-sched.c (process_spec_exprs): Remove handling of
37111 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
37113 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37115 Improve scheduling debug output
37116 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
37117 (advance_one_cycle): Update.
37118 (schedule_insn, queue_to_ready): Add debug printouts.
37119 (debug_ready_list_1): New static function.
37120 (debug_ready_list): Update.
37121 (max_issue): Add debug printouts.
37122 (dump_insn_stream): New static function.
37123 (schedule_block): Use it. Also better indent printouts.
37125 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37127 Fix sched_insn debug counter
37128 * haifa-sched.c (schedule_insn): Update.
37129 (struct haifa_saved_data): Add nonscheduled_insns_begin.
37130 (save_backtrack_point, restore_backtrack_point): Update.
37131 (first_nonscheduled_insn): New static function.
37132 (queue_to_ready, choose_ready): Use it.
37133 (schedule_block): Init nonscheduled_insns_begin.
37134 (sched_emit_insn): Update.
37137 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
37139 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
37141 (aarch64_secondary_reload) : LikeWise.
37142 (aarch64_class_max_nregs) : Remove CORE_REGS.
37143 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
37144 (REG_CLASS_NAMES) : Likewise.
37145 (REG_CLASS_CONTENTS) : LikeWise.
37146 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
37148 2014-05-21 Guozhi Wei <carrot@google.com>
37151 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
37153 (vqdmulhq_n_s16): Likewise.
37155 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
37157 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
37159 2014-05-21 Marek Polacek <polacek@redhat.com>
37162 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
37164 2014-05-21 Martin Jambor <mjambor@suse.cz>
37166 * doc/invoke.texi (Optimize Options): Document parameters
37167 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
37168 ipa-cp-array-index-hint-bonus.
37170 2014-05-21 Mark Wielaard <mjw@redhat.com>
37173 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
37174 version >= 3 or not strict DWARF.
37175 * langhooks.h (struct lang_hooks_for_types): Add
37176 enum_underlying_base_type.
37177 * langhooks.c (lhd_enum_underlying_base_type): New function.
37178 * gcc/langhooks.h (struct lang_hooks_for_types): Add
37179 enum_underlying_base_type.
37180 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
37181 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
37182 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
37184 2014-05-21 Richard Biener <rguenther@suse.de>
37186 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
37188 2014-05-21 John Marino <gnugcc@marino.st>
37190 * config.gcc (*-*-dragonfly*): New target.
37191 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
37192 * configure: Regenerate.
37193 * config/dragonfly-stdint.h: New.
37194 * config/dragonfly.h: New.
37195 * config/dragonfly.opt: New.
37196 * config/i386/dragonfly.h: New.
37197 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
37199 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
37201 * tree.def (VOID_CST): New.
37202 * tree-core.h (TI_VOID): New.
37203 * tree.h (void_node): New.
37204 * tree.c (tree_node_structure_for_code, tree_code_size)
37205 (iterative_hash_expr): Handle VOID_CST.
37206 (build_common_tree_nodes): Initialize void_node.
37208 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
37210 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
37212 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
37214 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
37217 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
37218 flag_reorder_blocks_and_partition.
37219 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
37221 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
37224 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
37226 (*addc_r_t): Add new insn_and_split.
37228 2014-05-21 Jakub Jelinek <jakub@redhat.com>
37230 PR middle-end/61252
37231 * omp-low.c (handle_simd_reference): New function.
37232 (lower_rec_input_clauses): Use it. Defer adding reference
37233 initialization even for reduction without placeholder if in simd,
37234 handle it properly later on.
37236 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37238 PR tree-optimization/60899
37239 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
37240 assume all static symbols will have definition wile parsing and
37241 check the do have definition later in compilation; check that
37242 variable referring symbol will be output before concluding that
37243 reference is safe; be conservative for referring local statics;
37244 be more precise about when comdat is output in other partition.
37246 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37249 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
37251 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
37252 (ipa_inline): Loop inline_to_all_callers until no more aliases
37255 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37257 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
37258 set writeonly flag only for vars actually written to.
37260 2014-05-20 Dehao Chen <dehao@google.com>
37262 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
37263 and callee count to get clone count.
37264 * tree-inline.c (expand_call_inline): Use callee count instead of bb
37265 count in copy_body.
37267 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
37269 PR rtl-optimization/61243
37270 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
37272 2014-05-20 Xinliang David Li <davidxl@google.com>
37274 * cgraphunit.c (walk_polymorphic_call_targets): Add
37275 dbgcnt and fopt-info support.
37276 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
37277 * ipa-devirt.c (ipa_devirt): Ditto.
37278 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
37279 * ipa.c (walk_polymorphic_call_targets): Ditto.
37280 * gimple-fold.c (fold_gimple_assign): Ditto.
37281 (gimple_fold_call): Ditto.
37282 * dbgcnt.def: New counter.
37284 2014-05-20 DJ Delorie <dj@redhat.com>
37286 * config/msp430/msp430.md (split): Don't allow subregs when
37287 splitting SImode adds.
37288 (andneghi): Fix subtraction logic.
37289 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
37291 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37293 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
37295 * except.c (switch_to_exception_section, resolve_unique_section,
37296 get_named_text_section, default_function_rodata_section,
37297 align_variable, get_block_for_decl, default_section_type_flags):
37298 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
37299 * symtab.c (symtab_add_to_same_comdat_group,
37300 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
37301 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
37303 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
37304 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
37305 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
37306 (c6x_function_in_section_p): Likewise.
37307 * config/darwin.c (machopic_select_section): Likewise.
37308 * config/arm/arm.c (arm_function_in_section_p): Likewise.
37309 * config/mips/mips.c (mips_function_rodata_section): Likewise.
37310 * config/mep/mep.c (mep_select_section): LIkewise.
37311 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
37313 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
37315 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
37316 EH region of calls to pure functions that can throw an exception.
37317 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
37318 (copy_reference_ops_from_call): Also copy the EH region of the call if
37319 it can throw an exception.
37321 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37323 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
37324 nested VEC_SELECTs that are inverses of each other.
37326 2014-05-20 Richard Biener <rguenther@suse.de>
37328 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
37329 (extract_and_process_scc_for_name): not here.
37330 (cond_dom_walker::before_dom_children): Only process
37331 stmts that end the BB in interesting ways.
37332 (run_scc_vn): Mark param uses as visited.
37334 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37336 * config/arm/arm.md (arith_shiftsi): Do not predicate for
37339 2014-05-20 Nick Clifton <nickc@redhat.com>
37341 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
37342 (msp430_gimplify_va_arg_expr): New function.
37343 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
37345 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
37346 operand 0 in order to prevent confusion about the number of
37347 registers involved.
37349 2014-05-20 Richard Biener <rguenther@suse.de>
37351 PR tree-optimization/61221
37352 * tree-ssa-pre.c (el_to_update): Remove.
37353 (eliminate_dom_walker::before_dom_children): Handle released
37354 VDEFs by value-numbering them to the associated VUSE. Update
37355 stmt immediately for substituted call address.
37356 (eliminate): Remove delayed stmt updating code.
37357 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
37358 possibly late re-numbered vuses.
37359 (vn_reference_lookup_2): Adjust.
37360 (vn_reference_lookup_pieces): Likewise.
37361 (vn_reference_lookup): Likewise.
37363 2014-05-20 Richard Biener <rguenther@suse.de>
37365 * config.gcc: Remove need_64bit_hwint.
37366 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
37367 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
37369 * config.in: Regenerate.
37370 * configure: Likewise.
37372 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
37374 * doc/extend.texi: Create Label Attributes section,
37375 move all label attributes into it and reference it.
37377 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
37379 * arm.c (thumb1_reorg): When scanning backwards skip anything
37380 that's not a proper insn.
37382 2014-05-19 Richard Biener <rguenther@suse.de>
37384 PR tree-optimization/61221
37385 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
37386 Do nothing for unreachable blocks.
37387 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
37388 Improve unreachability detection.
37390 2014-05-19 Richard Biener <rguenther@suse.de>
37392 PR tree-optimization/61209
37393 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
37395 2014-05-19 Nick Clifton <nickc@redhat.com>
37397 * except.c (init_eh): Fix computation of builtin setjmp buffer
37398 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
37400 2014-05-19 Richard Biener <rguenther@suse.de>
37402 PR tree-optimization/61184
37403 * tree-vrp.c (is_negative_overflow_infinity): Use
37404 TREE_OVERFLOW_P and do that check first.
37405 (is_positive_overflow_infinity): Likewise.
37406 (is_overflow_infinity): Likewise.
37407 (vrp_operand_equal_p): Properly treat operands with
37408 differing overflow as not equal.
37410 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
37412 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
37413 shift simplification where it was intended.
37415 2014-05-19 Christian Bruel <christian.bruel@st.com>
37418 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
37420 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
37423 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
37426 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
37428 * reg-notes.def (CROSSING_JUMP): Likewise.
37429 * rtl.h (rtx_def): Update comment for jump flag.
37430 (CROSSING_JUMP_P): Define.
37431 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
37432 of a REG_CROSSING_JUMP note.
37433 * cfghooks.c (tidy_fallthru_edges): Likewise.
37434 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
37435 * emit-rtl.c (try_split): Likewise.
37436 * haifa-sched.c (sched_create_recovery_edges): Likewise.
37437 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
37438 * jump.c (redirect_jump_2): Likewise.
37439 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
37440 (relax_delay_slots): Likewise.
37441 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
37442 (bbit_di): Likewise.
37443 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
37444 * config/sh/sh.md (jump_compact): Likewise.
37445 * bb-reorder.c (rotate_loop): Likewise.
37446 (pass_duplicate_computed_gotos::execute): Likewise.
37447 (add_reg_crossing_jump_notes): Rename to...
37448 (update_crossing_jump_flags): ...this.
37449 (pass_partition_blocks::execute): Update accordingly.
37451 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
37453 * tree.h: Remove extraneous template <>.
37455 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37457 * ipa.c (symtab_remove_unreachable_nodes): Remove
37458 symbol from comdat group if its body was eliminated.
37459 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
37460 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
37461 (symtab_unregister_node): ... this one.
37462 (verify_symtab_base): More strict checking of comdats.
37463 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
37465 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37467 * tree-pass.h (make_pass_ipa_comdats): New pass.
37468 * timevar.def (TV_IPA_COMDATS): New timevar.
37469 * passes.def (pass_ipa_comdats): Add.
37470 * Makefile.in (OBJS): Add ipa-comdats.o
37471 * ipa-comdats.c: New file.
37473 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37475 * ipa.c (update_visibility_by_resolution_info): New function.
37476 (function_and_variable_visibility): Use it.
37478 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37480 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
37482 (FOR_EACH_DEFINED_SYMBOL): New macro.
37483 (varpool_first_static_initializer, varpool_next_static_initializer,
37484 varpool_first_defined_variable, varpool_next_defined_variable):
37486 (symtab_in_same_comdat_p): Correctly deal with inline functions.
37488 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37490 * ggc-page.c (ggc_handle_finalizers): Add comment.
37492 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37494 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
37495 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
37496 (ggc_internal_cleared_alloc): Likewise.
37497 * ggc-page.c (finalizer): New class.
37498 (vec_finalizer): Likewise.
37499 (globals::finalizers): New member.
37500 (globals::vec_finalizers): Likewise.
37501 (ggc_internal_alloc): Record the finalizer if any for the block being
37503 (ggc_handle_finalizers): New function.
37504 (ggc_collect): Call ggc_handle_finalizers.
37505 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
37507 (ggc_internal_cleared_alloc): Likewise.
37508 (finalize): New function.
37509 (need_finalization_p): Likewise.
37510 (ggc_alloc): Install the type's destructor as the finalizer if it
37511 might do something.
37512 (ggc_cleared_alloc): Likewise.
37513 (ggc_vec_alloc): Likewise.
37514 (ggc_cleared_vec_alloc): Likewise.
37516 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37518 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
37520 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37522 * alias.c (record_alias_subset): Adjust.
37523 * bitmap.c (bitmap_element_allocate): Likewise.
37524 (bitmap_gc_alloc_stat): Likewise.
37525 * cfg.c (init_flow): Likewise.
37526 (alloc_block): Likewise.
37527 (unchecked_make_edge): Likewise.
37528 * cfgloop.c (alloc_loop): Likewise.
37529 (flow_loops_find): Likewise.
37530 (rescan_loop_exit): Likewise.
37531 * cfgrtl.c (init_rtl_bb_info): Likewise.
37532 * cgraph.c (insert_new_cgraph_node_version): Likewise.
37533 (cgraph_allocate_node): Likewise.
37534 (cgraph_create_edge_1): Likewise.
37535 (cgraph_allocate_init_indirect_info): Likewise.
37536 * cgraphclones.c (cgraph_clone_edge): Likewise.
37537 * cgraphunit.c (add_asm_node): Likewise.
37538 (init_lowered_empty_function): Likewise.
37539 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
37540 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
37541 (alpha_use_linkage): Likewise.
37542 * config/arc/arc.c (arc_init_machine_status): Likewise.
37543 * config/arm/arm.c (arm_init_machine_status): Likewise.
37544 * config/avr/avr.c (avr_init_machine_status): Likewise.
37545 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
37546 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
37547 * config/cris/cris.c (cris_init_machine_status): Likewise.
37548 * config/darwin.c (machopic_indirection_name): Likewise.
37549 (darwin_build_constant_cfstring): Likewise.
37550 (darwin_enter_string_into_cfstring_table): Likewise.
37551 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
37552 * config/frv/frv.c (frv_init_machine_status): Likewise.
37553 * config/i386/i386.c (get_dllimport_decl): Likewise.
37554 (ix86_init_machine_status): Likewise.
37555 (assign_386_stack_local): Likewise.
37556 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
37557 (i386_pe_maybe_record_exported_symbol): Likewise.
37558 (i386_pe_record_stub): Likewise.
37559 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
37560 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
37561 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
37562 (m32c_note_pragma_address): Likewise.
37563 * config/mep/mep.c (mep_init_machine_status): Likewise.
37564 (mep_note_pragma_flag): Likewise.
37565 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
37566 (mips16_local_alias): Likewise.
37567 (mips_init_machine_status): Likewise.
37568 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
37569 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
37570 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
37571 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
37572 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
37573 * config/pa/pa.c (pa_init_machine_status): Likewise.
37574 (pa_get_deferred_plabel): Likewise.
37575 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
37576 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
37577 (rs6000_init_machine_status): Likewise.
37578 (output_toc): Likewise.
37579 * config/s390/s390.c (s390_init_machine_status): Likewise.
37580 * config/score/score.c (score_output_external): Likewise.
37581 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
37582 * config/spu/spu.c (spu_init_machine_status): Likewise.
37583 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
37584 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
37585 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
37586 * coverage.c (coverage_end_function): Likewise.
37587 * dbxout.c (dbxout_init): Likewise.
37588 * doc/gty.texi: Don't mention variable_size attribute.
37589 * dwarf2cfi.c (new_cfi): Adjust.
37590 (new_cfi_row): Likewise.
37591 (copy_cfi_row): Likewise.
37592 (create_cie_data): Likewise.
37593 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
37594 (new_loc_descr): Likewise.
37595 (find_AT_string_in_table): Likewise.
37596 (add_addr_table_entry): Likewise.
37597 (new_die): Likewise.
37598 (add_var_loc_to_decl): Likewise.
37599 (clone_die): Likewise.
37600 (clone_as_declaration): Likewise.
37601 (break_out_comdat_types): Likewise.
37602 (new_loc_list): Likewise.
37603 (add_loc_descr_to_each): Likewise.
37604 (add_location_or_const_value_attribute): Likewise.
37605 (add_linkage_name): Likewise.
37606 (lookup_filename): Likewise.
37607 (dwarf2out_var_location): Likewise.
37608 (new_line_info_table): Likewise.
37609 (dwarf2out_init): Likewise.
37610 (mem_loc_descriptor): Likewise.
37611 (loc_descriptor): Likewise.
37612 (add_const_value_attribute): Likewise.
37613 (tree_add_const_value_attribute): Likewise.
37614 (comp_dir_string): Likewise.
37615 (dwarf2out_vms_debug_main_pointer): Likewise.
37616 (string_cst_pool_decl): Likewise.
37617 * emit-rtl.c (set_mem_attrs): Likewise.
37618 (get_reg_attrs): Likewise.
37619 (start_sequence): Likewise.
37620 (init_emit): Likewise.
37621 (init_emit_regs): Likewise.
37622 * except.c (init_eh_for_function): Likewise.
37623 (gen_eh_region): Likewise.
37624 (gen_eh_region_catch): Likewise.
37625 (gen_eh_landing_pad): Likewise.
37626 (add_call_site): Likewise.
37627 * function.c (add_frame_space): Likewise.
37628 (insert_temp_slot_address): Likewise.
37629 (assign_stack_temp_for_type): Likewise.
37630 (get_hard_reg_initial_val): Likewise.
37631 (allocate_struct_function): Likewise.
37632 (prepare_function_start): Likewise.
37633 (types_used_by_var_decl_insert): Likewise.
37634 * gengtype.c (variable_size_p): Remove function.
37635 (enum alloc_quantity): Remove enum.
37636 (write_typed_alloc_def): Remove function.
37637 (write_typed_struct_alloc_def): Likewise.
37638 (write_typed_typedef_alloc_def): Likewise.
37639 (write_typed_alloc_defns): Likewise.
37641 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
37642 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
37643 * ggc.h (ggc_alloc): new function.
37644 (ggc_cleared_alloc): Likewise.
37645 (ggc_vec_alloc): Template on type of vector element, and remove
37646 element size argument.
37647 (ggc_cleared_vec_alloc): Likewise.
37648 * gimple.c (gimple_build_omp_for): Adjust.
37649 (gimple_copy): Likewise.
37650 * ipa-cp.c (get_replacement_map): Likewise.
37651 (find_aggregate_values_for_callers_subset): Likewise.
37652 (known_aggs_to_agg_replacement_list): Likewise.
37653 * ipa-devirt.c (get_odr_type): Likewise.
37654 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
37655 (read_agg_replacement_chain): Likewise.
37656 * loop-iv.c (get_simple_loop_desc): Likewise.
37657 * lto-cgraph.c (input_node_opt_summary): Likewise.
37658 * lto-section-in.c (lto_new_in_decl_state): Likewise.
37659 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
37660 (input_eh_region): Likewise.
37661 (input_eh_lp): Likewise.
37662 (input_cfg): Likewise.
37663 * optabs.c (set_optab_libfunc): Likewise.
37664 (init_tree_optimization_optabs): Likewise.
37665 (set_conv_libfunc): Likewise.
37666 * passes.c (do_per_function_toporder): Likewise.
37667 * rtl.h: Don't use variable_size gty attribute.
37668 * sese.c (if_region_set_false_region): Adjust.
37669 * stringpool.c (gt_pch_save_stringpool): Likewise.
37670 * target-globals.c (save_target_globals): Likewise.
37671 * toplev.c (general_init): Likewise.
37672 * trans-mem.c (record_tm_replacement): Likewise.
37673 (split_bb_make_tm_edge): Likewise.
37674 * tree-cfg.c (move_sese_region_to_fn): Likewise.
37675 * tree-data-ref.h (lambda_vector_new): Likewise.
37676 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
37677 * tree-iterator.c (tsi_link_before): Likewise.
37678 (tsi_link_after): Likewise.
37679 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
37680 * tree-ssa-loop-niter.c (record_estimate): Likewise.
37681 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
37682 * tree-ssa-operands.h: Don't use variable_size gty attribute.
37683 * tree-ssa.c (init_tree_ssa): Adjust.
37684 * tree-ssanames.c (set_range_info): Likewise.
37685 (get_ptr_info): Likewise.
37686 (duplicate_ssa_name_ptr_info): Likewise.
37687 (duplicate_ssa_name_range_info): Likewise.
37688 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
37689 (unpack_ts_fixed_cst_value_fields): Likewise.
37690 * tree.c (build_fixed): Likewise.
37691 (build_real): Likewise.
37692 (build_string): Likewise.
37693 (decl_priority_info): Likewise.
37694 (decl_debug_expr_insert): Likewise.
37695 (decl_value_expr_insert): Likewise.
37696 (decl_debug_args_insert): Likewise.
37697 (type_hash_add): Likewise.
37698 (build_omp_clause): Likewise.
37699 * ubsan.c (decl_for_type_insert): Likewise.
37700 * varasm.c (get_unnamed_section): Likewise.
37701 (get_noswitch_section): Likewise.
37702 (get_section): Likewise.
37703 (get_block_for_section): Likewise.
37704 (create_block_symbol): Likewise.
37705 (build_constant_desc): Likewise.
37706 (create_constant_pool): Likewise.
37707 (force_const_mem): Likewise.
37708 (record_tm_clone_pair): Likewise.
37709 * varpool.c (varpool_create_empty_node): Likewise.
37711 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37713 * dwarf2out.c (tree_add_const_value_attribute): Call
37714 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
37715 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
37716 instead of ggc_internal_<x>alloc_stat.
37717 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
37718 (ggc_realloc): Likewise.
37719 * ggc-none.c (ggc_internal_alloc): Likewise.
37720 (ggc_internal_cleared_alloc): Likewise.
37721 * ggc-page.c: Likewise.
37722 * ggc.h (ggc_internal_alloc_stat): Likewise.
37723 (ggc_internal_alloc): Remove macro.
37724 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
37725 (ggc_internal_cleared_alloc): Remove macro.
37726 (GGC_RESIZEVEC): Adjust.
37727 (ggc_resizevar): Remove macro.
37728 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
37729 (ggc_internal_cleared_vec_alloc_stat): Likewise.
37730 (ggc_internal_vec_cleared_alloc): Remove macro.
37731 (ggc_alloc_atomic_stat): Drop _stat suffix.
37732 (ggc_alloc_atomic): Remove macro.
37733 (ggc_alloc_cleared_atomic): Remove macro.
37734 (ggc_alloc_string_stat): Drop _stat suffix.
37735 (ggc_alloc_string): Remove macro.
37736 (ggc_alloc_rtx_def_stat): Adjust.
37737 (ggc_alloc_tree_node_stat): Likewise.
37738 (ggc_alloc_cleared_tree_node_stat): Likewise.
37739 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
37740 (ggc_alloc_cleared_simd_clone_stat): Likewise.
37741 * gimple.c (gimple_build_omp_for): Likewise.
37742 (gimple_copy): Likewise.
37743 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
37744 * toplev.c (realloc_for_line_map): Adjust.
37745 * tree-data-ref.h (lambda_vector_new): Likewise.
37746 * tree-phinodes.c (allocate_phi_node): Likewise.
37747 * tree.c (grow_tree_vec_stat): Likewise.
37748 * vec.h (va_gc::reserve): Adjust.
37750 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
37752 * config/microblaze/microblaze.c (break_handler): New Declaration.
37753 (microblaze_break_function_p,microblaze_is_break_handler): New.
37754 (compute_frame_size): Use microblaze_break_function_p.
37755 Add the test of break_handler.
37756 (microblaze_function_prologue) : Add the test of variable
37757 break_handler. Check the fnname by BREAK_HANDLER_NAME.
37758 (microblaze_function_epilogue) : Add the test of break_handler.
37759 (microblaze_globalize_label) : Add the test of break_handler.
37760 Check the name by BREAK_HANDLER_NAME.
37762 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
37764 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
37765 microblaze_is_break_handler test.
37766 (call_internal1,call_value_intern): Use microblaze_break_function_p.
37767 Use SYMBOL_REF_DECL.
37769 * config/microblaze/microblaze-protos.h
37770 (microblaze_break_function_p,microblaze_is_break_handler):
37773 * doc/extend.texi (MicroBlaze break_handler Functions): Document
37774 new MicroBlaze break_handler functions.
37776 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
37778 * doc/extend.texi (Size of an asm): Move node text according
37779 to its @menu entry position.
37781 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
37783 PR tree-optimization/61140
37784 PR tree-optimization/61150
37785 PR tree-optimization/61197
37786 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
37788 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
37790 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
37792 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
37794 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
37795 __SIZEOF_INT128__ is defined.
37797 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
37799 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
37800 (rs6000_delegitimize_address): Use it.
37802 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
37804 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
37805 inplace argument. Store the new address in the original MEM when true.
37806 * emit-rtl.c (change_address_1): Likewise.
37807 (adjust_address_1, adjust_automodify_address_1, offset_address):
37808 Update accordingly.
37809 * rtl.h (plus_constant): Add an inplace argument.
37810 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
37811 when true. Avoid generating (plus X (const_int 0)).
37812 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
37813 in-place. Pass true to plus_constant.
37814 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
37816 2014-05-16 Dehao Chen <dehao@google.com>
37818 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
37820 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
37823 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
37825 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
37827 2014-05-16 Dehao Chen <dehao@google.com>
37829 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
37830 optimize_function_for_size_p.
37831 * regs.h (REG_FREQ_FROM_BB): Likewise.
37833 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
37836 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
37837 negt_reg_operand cases.
37838 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
37840 * config/sh/predicates.md (cbranch_treg_value): Simplify.
37842 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
37844 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
37847 2014-05-16 David Malcolm <dmalcolm@redhat.com>
37850 2014-04-29 David Malcolm <dmalcolm@redhat.com>
37852 * tree-cfg.c (dump_function_to_file): Dump the return type of
37853 functions, in a line to itself before the function body, mimicking
37854 the layout of a C function.
37856 2014-05-16 Dehao Chen <dehao@google.com>
37858 * cfghooks.c (make_forwarder_block): Use direct computation to
37859 get fall-through edge's count and frequency.
37861 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
37863 * config/arc/arc.c (arc_init): Fix typo in error message.
37864 * config/i386/i386.c (ix86_expand_builtin): Likewise.
37865 (split_stack_prologue_scratch_regno): Likewise.
37866 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
37867 word from error message.
37869 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
37871 * ira-costs.c: Fix typo in comment.
37873 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
37875 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
37877 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
37879 * varpool.c (dump_varpool_node): Dump write-only flag.
37880 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
37882 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
37883 write-only variables.
37884 * ipa.c (process_references): New function.
37885 (set_readonly_bit): New function.
37886 (set_writeonly_bit): New function.
37887 (clear_addressable_bit): New function.
37888 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
37889 fix handling of aliases.
37890 * cgraph.h (struct varpool_node): Add writeonly flag.
37892 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
37894 PR rtl-optimization/60969
37895 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
37896 Calculate costs for this case.
37898 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
37900 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
37901 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
37903 2014-05-16 Richard Biener <rguenther@suse.de>
37905 PR tree-optimization/61194
37906 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
37907 bool patterns ending in a COND_EXPR.
37909 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37911 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
37913 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37915 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
37916 where we were unable to cost an RTX.
37918 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37920 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
37923 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37924 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37926 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
37928 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37929 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37931 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
37932 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
37934 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37935 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37937 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
37940 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37941 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37943 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
37946 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37947 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37949 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
37950 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
37952 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37953 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37955 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
37956 rotates and shifts.
37958 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37959 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37961 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
37962 ZERO_EXTEND and SIGN_EXTEND better.
37964 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37965 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37967 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
37968 logical operations.
37970 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37971 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37973 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
37974 costs when costing loads and stores to memory.
37976 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37977 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
37979 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
37982 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37984 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
37986 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37987 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37989 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
37991 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
37993 (aarch64_rtx_mult_cost): New.
37994 (aarch64_rtx_costs): Use it, refactor as appropriate.
37996 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37997 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37999 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
38000 emit instructions, return number of instructions which would
38002 (aarch64_add_constant): Update call to aarch64_build_constant.
38003 (aarch64_output_mi_thunk): Likewise.
38004 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
38007 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38009 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
38010 (TARGET_RTX_COSTS): Call it.
38012 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38014 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
38015 (cortexa57_vector_cost): Likewise.
38016 (cortexa57_tunings): Use them.
38018 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38020 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
38021 (cpu_addrcost_table): Use it.
38022 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
38023 (aarch64_address_cost): Rewrite using aarch64_classify_address,
38026 2014-05-16 Richard Biener <rguenther@suse.de>
38028 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
38029 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
38030 (visit_phi): Ignore edges marked as not executable.
38031 (class cond_dom_walker): New.
38032 (cond_dom_walker::before_dom_children): Value-number
38033 control statements and mark successor edges as not
38034 executable if possible.
38035 (run_scc_vn): First walk all control statements in
38036 dominator order, marking edges as not executable.
38037 * tree-inline.c (copy_edges_for_bb): Be not confused
38038 about random edge flags.
38040 2014-05-16 Richard Biener <rguenther@suse.de>
38042 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
38044 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
38047 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
38048 (__TM_simple_begin): Use it.
38049 (__TM_begin): Likewise.
38051 2014-05-15 Martin Jambor <mjambor@suse.cz>
38054 * ipa-prop.c (update_indirect_edges_after_inlining): Check
38055 type_preserved flag when the indirect edge is polymorphic.
38057 2014-05-15 Martin Jambor <mjambor@suse.cz>
38059 PR tree-optimization/61090
38060 * tree-sra.c (sra_modify_expr): Pass the current gsi to
38061 build_ref_for_model.
38063 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38065 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
38066 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
38068 2014-05-15 Jakub Jelinek <jakub@redhat.com>
38070 PR tree-optimization/61158
38071 * fold-const.c (fold_binary_loc): If X is zero-extended and
38072 shiftc >= prec, make sure zerobits is all ones instead of
38073 invoking undefined behavior.
38075 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38077 * regcprop.h: New file.
38078 * regcprop.c (skip_debug_insn_p): New decl.
38079 (replace_oldest_value_reg): Check skip_debug_insn_p.
38080 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
38081 * shrink-wrap.c: Include regcprop.h.
38082 (prepare_shrink_wrap): Call
38083 copyprop_hardreg_forward_bb_without_debug_insn.
38085 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38087 * shrink-wrap.h: Update comment.
38088 * shrink-wrap.c: Update comment.
38089 (next_block_for_reg): Rename to live_edge_for_reg.
38090 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
38091 (move_insn_for_shrink_wrap): Split live_edge.
38092 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
38094 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
38096 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
38098 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
38099 * config/sparc/sparc.md (fptype_ut699): New attribute.
38100 (in_branch_delay): Return false if -mfix-ut699 is specified and
38101 fptype_ut699 is set to single.
38102 (truncdfsf2): Add fptype_ut699 attribute.
38103 (fix_truncdfsi2): Likewise.
38104 (floatsisf2): Change fptype attribute.
38105 (fix_truncsfsi2): Likewise.
38106 (negtf2_notv9): Delete.
38107 (negtf2_v9): Likewise.
38108 (negtf2_hq): New instruction.
38109 (negtf2): New instruction and splitter.
38110 (negdf2_notv9): Rewrite.
38111 (abstf2_notv9): Delete.
38112 (abstf2_hq_v9): Likewise.
38113 (abstf2_v9): Likewise.
38114 (abstf2_hq): New instruction.
38115 (abstf2): New instruction and splitter.
38116 (absdf2_notv9): Rewrite.
38118 2014-05-14 Cary Coutant <ccoutant@google.com>
38121 * opts.c (common_handle_option): Don't special-case "-g".
38122 (set_debug_level): Default to at least level 2 with "-g".
38124 2014-05-14 DJ Delorie <dj@redhat.com>
38126 * config/msp430/msp430.c (msp430_builtin): Add
38127 MSP430_BUILTIN_DELAY_CYCLES.
38128 (msp430_init_builtins): Register void __delay_cycles(long long).
38129 (msp430_builtin_decl): Add it.
38130 (cg_magic_constant): New.
38131 (msp430_expand_delay_cycles): New.
38132 (msp430_expand_builtin): Call it.
38133 (msp430_print_operand_raw): Change integer printing from "int" to
38135 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
38136 (delay_cycles_start): New.
38137 (delay_cycles_end): New.
38138 (delay_cycles_32): New.
38139 (delay_cycles_32x): New.
38140 (delay_cycles_16): New.
38141 (delay_cycles_16x): New.
38142 (delay_cycles_2): New.
38143 (delay_cycles_1): New.
38144 * doc/extend.texi: Document __delay_cycles().
38146 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
38148 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
38149 length attribute computation.
38151 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
38154 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
38156 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
38159 * config/sparc/sparc.md: Fix types of low and high in DI constant
38160 splitter. Use gen_int_mode in some other splitters.
38162 2014-05-14 Martin Jambor <mjambor@suse.cz>
38165 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
38167 2014-05-14 James Norris <jnorris@codesourcery.com>
38169 * omp-low.c (expand_parallel_call): Remove shadow variable.
38170 (expand_omp_taskreg): Likewise.
38172 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
38174 * common/config/i386/i386-common.c
38175 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
38176 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
38177 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
38178 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
38179 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
38180 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
38181 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
38182 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
38183 xsavecintrin.h, xsavesintrin.h.
38184 (x86_64-*-*): Ditto.
38185 * config/i386/clflushoptintrin.h: New.
38186 * config/i386/xsavecintrin.h: Ditto.
38187 * config/i386/xsavesintrin.h: Ditto.
38188 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
38189 (bit_XSAVES): Ditto.
38190 (bit_XSAVES): Ditto.
38191 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
38192 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
38194 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
38195 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
38196 OPTION_MASK_ISA_XSAVES.
38197 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
38198 -mxsavec, -mxsaves.
38199 (PTA_CLFLUSHOPT) Define.
38200 (PTA_XSAVEC): Ditto.
38201 (PTA_XSAVES): Ditto.
38202 (ix86_option_override_internal): Handle new options.
38203 (ix86_valid_target_attribute_inner_p): Ditto.
38204 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
38205 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
38206 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
38207 (bdesc_special_args): Add __builtin_ia32_xsaves,
38208 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
38209 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
38210 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
38211 (ix86_expand_builtin): Handle new builtins.
38212 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
38213 (TARGET_CLFLUSHOPT_P): Ditto.
38214 (TARGET_XSAVEC): Ditto.
38215 (TARGET_XSAVEC_P): Ditto.
38216 (TARGET_XSAVES): Ditto.
38217 (TARGET_XSAVES_P): Ditto.
38218 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
38219 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
38220 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
38222 (ANY_XRSTOR64): Ditto.
38224 (xrstor): Change into <xrstor>.
38225 (xrstor_rex64): Change into <xrstor>_rex64.
38226 (xrstor64): Change into <xrstor>64
38228 * config/i386/i386.opt (mclflushopt): New.
38231 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
38233 * doc/invoke.texi: Document new options.
38235 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
38237 PR rtl-optimization/60866
38238 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
38239 Default it to -1. Pass it down to init_simplejump_data.
38240 (init_simplejump_data): New parameter old_seqno. Pass it down
38241 to get_seqno_for_a_jump.
38242 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
38243 initializing new jump seqno as a last resort. Add comment.
38244 (sel_redirect_edge_and_branch): Save old seqno of the conditional
38245 jump and pass it down to sel_init_new_insn.
38246 (sel_redirect_edge_and_branch_force): Likewise.
38248 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
38250 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
38251 shifted values to avoid build warning.
38253 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
38255 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
38256 * cfgrtl.c (rtl_merge_blocks): Fix comment.
38257 (cfg_layout_merge_blocks): Likewise.
38258 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
38260 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
38262 PR rtl-optimization/60901
38263 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
38264 bb predecessor belongs to the same scheduling region. Adjust comment.
38266 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
38268 * doc/sourcebuild.texi: (dfp_hw): Document.
38269 (p8vector_hw): Likewise.
38270 (powerpc_eabi_ok): Likewise.
38271 (powerpc_elfv2): Likewise.
38272 (powerpc_htm_ok): Likewise.
38273 (ppc_recip_hw): Likewise.
38274 (vsx_hw): Likewise.
38276 2014-05-13 Cary Coutant <ccoutant@google.com>
38278 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
38280 2014-05-13 David Malcolm <dmalcolm@redhat.com>
38282 * gengtype-parse.c (require3): Eliminate in favor of...
38284 (require_template_declaration): Update to support optional single *
38287 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
38288 (create_user_defined_type): Handle a single level of explicit
38289 pointerness within template arguments.
38290 (struct write_types_data): Add field "kind".
38291 (filter_type_name): Handle "*" character.
38292 (write_user_func_for_structure_ptr): Require a write_types_data
38293 rather than just a prefix string, so that we can look up the kind
38294 of the wtd and use it as an index into wrote_user_func_for_ptr,
38295 ensuring that such functions are written at most once. Support
38296 subclasses by invoking the marking function of the ultimate base class.
38297 (write_user_func_for_structure_body): Require a write_types_data
38298 rather than just a prefix string, so that we can pass this to
38299 write_user_func_for_structure_ptr.
38300 (write_func_for_structure): Likewise.
38301 (ggc_wtd): Add initializer of new "kind" field.
38302 (pch_wtd): Likewise.
38304 * gengtype.h (enum write_types_kinds): New.
38305 (struct type): Add field wrote_user_func_for_ptr to the "s"
38308 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
38310 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
38311 instead of const_binop.
38312 (fold_binary_loc): Likewise.
38314 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
38316 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
38317 calculation to match get_ref_base_and_extent.
38319 2014-05-13 Catherine Moore <clm@codesourcery.com>
38320 Sandra Loosemore <sandra@codesourcery.com>
38322 * configure.ac: Fix assembly for explicit JALR relocation check.
38323 * configure: Regenerate.
38325 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38327 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
38328 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
38329 Remove associated type declarations and initialisations.
38330 (arm_expand_neon_builtin): Likewise.
38331 (neon_emit_pair_result_insn): Delete.
38332 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
38333 * config/arm/neon.md (neon_vtrn<mode>): Delete.
38334 (neon_vzip<mode>): Likewise.
38335 (neon_vuzp<mode>): Likewise.
38337 2014-05-13 Richard Biener <rguenther@suse.de>
38340 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
38341 it needs revisiting whether the call still may be tail-called.
38343 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38345 * rtl.def (SYMBOL_REF): Remove middle "0" field.
38346 * rtl.h (block_symbol): Reduce number of fields to 2.
38347 (rtx_def): Add u2.symbol_ref_flags.
38348 (SYMBOL_REF_FLAGS): Use it.
38349 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
38350 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
38351 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
38352 Lower index of SYMBOL_REF_DATA.
38353 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
38354 Print SYMBOL_REF_FLAGS at the same time.
38355 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
38357 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38359 * rtl.def (VAR_LOCATION): Remove "i" field.
38360 * rtl.h (rtx_def): Add u2.var_location_status.
38361 (PAT_VAR_LOCATION_STATUS): Use it.
38362 (gen_rtx_VAR_LOCATION): Declare.
38363 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
38364 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
38365 * var-tracking.c (emit_note_insn_var_location): Remove casts.
38367 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38369 * rtl.def (scratch): Fix outdated comment and remove "0" field.
38370 * gengtype.c (adjust_field_rtx_def): Update accordingly.
38372 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38374 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
38375 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
38376 * rtl.h (rtx_def): Add insn_uid to u2 field.
38377 (RTX_FLAG_CHECK8): Delete in favor of...
38378 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
38379 (INSN_DELETED_P): Update accordingly.
38380 (INSN_UID): Use u2.insn_uid.
38381 (INSN_CHAIN_CODE_P): Define.
38382 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
38383 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
38384 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
38385 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
38386 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
38387 indices accordingly.
38388 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
38389 Update indices for insn-chain rtxes.
38390 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
38391 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
38392 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
38393 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
38394 * combine.c (try_combine): Likewise.
38395 * ira.c (setup_prohibited_mode_move_regs): Likewise.
38397 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38399 * rtl.def (REG): Remove middle field.
38400 * rtl.h (rtx_def): Add orignal_regno to u2.
38401 (ORIGINAL_REGNO): Use it instead of field 1.
38402 (REG_ATTRS): Lower field index accordingly.
38403 * gengtype.c (adjust_field_rtx_def): Remove handling of
38404 ORIGINAL_REGNO. Move REG_ATTRS index down.
38405 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
38406 code that prints the REGNO.
38408 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38410 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
38413 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38415 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
38417 2014-05-13 Bin Cheng <bin.cheng@arm.com>
38419 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
38420 (alloc_iv): Lower base expressions containing ADDR_EXPR.
38422 2014-05-13 Ian Bolton <ian.bolton@arm.com>
38424 * config/aarch64/aarch64-protos.h
38425 (aarch64_hard_regno_caller_save_mode): New prototype.
38426 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
38428 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
38430 2014-05-13 Christian Bruel <christian.bruel@st.com>
38432 * target.def (mode_switching): New hook vector.
38433 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
38434 (mode_exit, modepriority_to_mode): Likewise.
38435 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
38436 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38437 * target.h: Include tm.h and hard-reg-set.h.
38438 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
38439 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
38440 * doc/tm.texi Regenerate.
38441 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
38442 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38443 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
38444 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
38445 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
38446 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38447 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
38448 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
38449 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
38450 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
38451 (ix86_emit_mode_set): Hookify.
38452 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
38454 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38455 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
38456 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
38457 (epiphany_mode_priority_to_mode): Remove declaration.
38458 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
38459 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
38460 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
38462 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
38463 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
38464 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
38466 2014-05-13 Jakub Jelinek <jakub@redhat.com>
38469 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
38470 is const0_rtx, return immediately. Don't test count == 0 when
38473 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38475 * Makefile.in: add shrink-wrap.o.
38476 * config/i386/i386.c: include "shrink-wrap.h"
38477 * function.c: Likewise.
38478 (requires_stack_frame_p, next_block_for_reg,
38479 move_insn_for_shrink_wrap, prepare_shrink_wrap,
38480 dup_block_and_redirect): Move to shrink-wrap.c
38481 (thread_prologue_and_epilogue_insns): Extract three code segments
38482 as functions in shrink-wrap.c
38483 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
38485 * shrink-wrap.c: New file.
38486 * shrink-wrap.h: New file.
38488 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
38490 * doc/extend.texi: Reflect current numbers of pragmas. Remove
38491 reference to Solaris.
38493 2014-05-12 Mike Stump <mikestump@comcast.net>
38496 * genattrtab.c (filename): Add.
38497 (convert_set_attr_alternative): Improve error message.
38498 (check_defs): Restore read_md_filename for error messages.
38499 (gen_insn): Save filename.
38501 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
38503 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
38504 -fno-local-ivars and -fivar-visibility.
38505 * c-family/c.opt: Make -Wshadow also implicitly enable
38508 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
38510 * doc/tm.texi: Remove reference to deleted macro.
38511 * doc/tm.texi.in: Likewise.
38513 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
38516 * config/avr/avr.c (avr_out_store_psi): Use correct constant
38519 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
38522 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
38523 * config/arm/aout.h (License): Same.
38524 * config/arm/bpabi.h (License): Same.
38525 * config/arm/elf.h (License): Same.
38526 * config/arm/linux-elf.h (License): Same.
38527 * config/arm/linux-gas.h (License): Same.
38528 * config/arm/netbsd-elf.h (License): Same.
38529 * config/arm/uclinux-eabi.h (License): Same.
38530 * config/arm/uclinux-elf.h (License): Same.
38531 * config/arm/vxworks.h (License): Same.
38533 2014-05-11 Jakub Jelinek <jakub@redhat.com>
38535 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
38536 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
38537 number of operands to 3.
38538 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
38539 * tree-nested.c (convert_nonlocal_omp_clauses,
38540 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
38541 * gimplify.c (gimplify_scan_omp_clauses): Handle
38542 OMP_CLAUSE_LINEAR_STMT.
38543 * omp-low.c (lower_rec_input_clauses): Fix typo.
38544 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
38545 cast between Fortran boolean_type_node and C _Bool if
38548 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
38550 PR tree-optimization/61136
38551 * wide-int.h (multiple_of_p): Define a version that doesn't return
38553 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
38554 integer_zerop/const_binop pair.
38555 (multiple_of_p): Likewise, converting both operands to widest_int
38558 2014-05-09 Teresa Johnson <tejohnson@google.com>
38560 * cgraphunit.c (analyze_functions): Use correct dump file.
38562 2014-05-09 Florian Weimer <fweimer@redhat.com>
38564 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
38566 (stack_protect_return_slot_p): New function.
38567 (expand_used_vars): Call stack_protect_decl_p and
38568 stack_protect_return_slot_p for -fstack-protector-strong.
38570 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
38571 Andrew Haley <aph@redhat.com>
38572 Richard Sandiford <rdsandiford@googlemail.com>
38574 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
38577 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
38579 PR middle-end/61111
38580 * fold-const.c (fold_binary_loc): Changed width of mask.
38582 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
38584 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
38585 unsigned int initializers for regno_in, regno_out.
38587 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
38590 * config/avr/avr.md (cc): Add new attribute set_vzn.
38591 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
38592 Set cc insn attribute to set_vzn instead of set_zn for alternatives
38593 with INC, DEC or NEG.
38594 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
38595 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
38596 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
38598 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38601 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38603 * wide-int.cc (UTItype): Define.
38604 (UDWtype): Define for appropriate W_TYPE_SIZE.
38606 2014-05-09 Richard Biener <rguenther@suse.de>
38608 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
38609 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
38610 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
38611 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
38612 ssa_propagate): Adjust.
38614 2014-05-08 Jeff Law <law@redhat.com>
38616 PR tree-optimization/61009
38617 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
38618 tri-state rather than a boolean. When a block is too big to
38619 thread through, inform caller via negative return value.
38620 (thread_across_edge): If a block was too big for normal threading,
38621 then it's too big for a joiner too, so remove temporary equivalences
38622 and return immediately.
38624 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
38625 Matthias Klose <doko@ubuntu.com>
38628 * optc-gen.awk: Fix option handling for -Wunused-parameter.
38630 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
38633 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
38635 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
38638 * config/alpha/alpha.c: Include gimple-iterator.h.
38639 (alpha_gimple_fold_builtin): New function. Move
38640 ALPHA_BUILTIN_UMULH folding from ...
38641 (alpha_fold_builtin): ... here.
38642 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
38644 2014-05-08 Wei Mi <wmi@google.com>
38647 * config/i386/i386.c (ix86_compute_frame_layout): Update
38648 preferred_stack_boundary for call, expanded from tls descriptor.
38649 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
38650 to depend on SP register.
38651 (*tls_local_dynamic_base_32_gnu): Ditto.
38652 (*tls_local_dynamic_32_once): Ditto.
38653 (tls_global_dynamic_64_<mode>): Set
38654 ix86_tls_descriptor_calls_expanded_in_cfun.
38655 (tls_local_dynamic_base_64_<mode>): Ditto.
38656 (tls_global_dynamic_32): Set
38657 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
38658 to depend on SP register.
38659 (tls_local_dynamic_base_32): Ditto.
38661 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38663 * config/arm/arm_neon.h: Update comment.
38664 * config/arm/neon-docgen.ml: Delete.
38665 * config/arm/neon-gen.ml: Delete.
38666 * doc/arm-neon-intrinsics.texi: Update comment.
38668 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38670 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
38672 (vand, vorr, veor, vorn, vbic): Remove.
38673 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
38675 (neon_vsub_unspec): Likewise.
38676 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
38678 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38680 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
38681 (vadd_s16): Likewise.
38682 (vadd_s32): Likewise.
38683 (vadd_f32): Likewise.
38684 (vadd_u8): Likewise.
38685 (vadd_u16): Likewise.
38686 (vadd_u32): Likewise.
38687 (vadd_s64): Likewise.
38688 (vadd_u64): Likewise.
38689 (vaddq_s8): Likewise.
38690 (vaddq_s16): Likewise.
38691 (vaddq_s32): Likewise.
38692 (vaddq_s64): Likewise.
38693 (vaddq_f32): Likewise.
38694 (vaddq_u8): Likewise.
38695 (vaddq_u16): Likewise.
38696 (vaddq_u32): Likewise.
38697 (vaddq_u64): Likewise.
38698 (vmul_s8): Likewise.
38699 (vmul_s16): Likewise.
38700 (vmul_s32): Likewise.
38701 (vmul_f32): Likewise.
38702 (vmul_u8): Likewise.
38703 (vmul_u16): Likewise.
38704 (vmul_u32): Likewise.
38705 (vmul_p8): Likewise.
38706 (vmulq_s8): Likewise.
38707 (vmulq_s16): Likewise.
38708 (vmulq_s32): Likewise.
38709 (vmulq_f32): Likewise.
38710 (vmulq_u8): Likewise.
38711 (vmulq_u16): Likewise.
38712 (vmulq_u32): Likewise.
38713 (vsub_s8): Likewise.
38714 (vsub_s16): Likewise.
38715 (vsub_s32): Likewise.
38716 (vsub_f32): Likewise.
38717 (vsub_u8): Likewise.
38718 (vsub_u16): Likewise.
38719 (vsub_u32): Likewise.
38720 (vsub_s64): Likewise.
38721 (vsub_u64): Likewise.
38722 (vsubq_s8): Likewise.
38723 (vsubq_s16): Likewise.
38724 (vsubq_s32): Likewise.
38725 (vsubq_s64): Likewise.
38726 (vsubq_f32): Likewise.
38727 (vsubq_u8): Likewise.
38728 (vsubq_u16): Likewise.
38729 (vsubq_u32): Likewise.
38730 (vsubq_u64): Likewise.
38731 (vand_s8): Likewise.
38732 (vand_s16): Likewise.
38733 (vand_s32): Likewise.
38734 (vand_u8): Likewise.
38735 (vand_u16): Likewise.
38736 (vand_u32): Likewise.
38737 (vand_s64): Likewise.
38738 (vand_u64): Likewise.
38739 (vandq_s8): Likewise.
38740 (vandq_s16): Likewise.
38741 (vandq_s32): Likewise.
38742 (vandq_s64): Likewise.
38743 (vandq_u8): Likewise.
38744 (vandq_u16): Likewise.
38745 (vandq_u32): Likewise.
38746 (vandq_u64): Likewise.
38747 (vorr_s8): Likewise.
38748 (vorr_s16): Likewise.
38749 (vorr_s32): Likewise.
38750 (vorr_u8): Likewise.
38751 (vorr_u16): Likewise.
38752 (vorr_u32): Likewise.
38753 (vorr_s64): Likewise.
38754 (vorr_u64): Likewise.
38755 (vorrq_s8): Likewise.
38756 (vorrq_s16): Likewise.
38757 (vorrq_s32): Likewise.
38758 (vorrq_s64): Likewise.
38759 (vorrq_u8): Likewise.
38760 (vorrq_u16): Likewise.
38761 (vorrq_u32): Likewise.
38762 (vorrq_u64): Likewise.
38763 (veor_s8): Likewise.
38764 (veor_s16): Likewise.
38765 (veor_s32): Likewise.
38766 (veor_u8): Likewise.
38767 (veor_u16): Likewise.
38768 (veor_u32): Likewise.
38769 (veor_s64): Likewise.
38770 (veor_u64): Likewise.
38771 (veorq_s8): Likewise.
38772 (veorq_s16): Likewise.
38773 (veorq_s32): Likewise.
38774 (veorq_s64): Likewise.
38775 (veorq_u8): Likewise.
38776 (veorq_u16): Likewise.
38777 (veorq_u32): Likewise.
38778 (veorq_u64): Likewise.
38779 (vbic_s8): Likewise.
38780 (vbic_s16): Likewise.
38781 (vbic_s32): Likewise.
38782 (vbic_u8): Likewise.
38783 (vbic_u16): Likewise.
38784 (vbic_u32): Likewise.
38785 (vbic_s64): Likewise.
38786 (vbic_u64): Likewise.
38787 (vbicq_s8): Likewise.
38788 (vbicq_s16): Likewise.
38789 (vbicq_s32): Likewise.
38790 (vbicq_s64): Likewise.
38791 (vbicq_u8): Likewise.
38792 (vbicq_u16): Likewise.
38793 (vbicq_u32): Likewise.
38794 (vbicq_u64): Likewise.
38795 (vorn_s8): Likewise.
38796 (vorn_s16): Likewise.
38797 (vorn_s32): Likewise.
38798 (vorn_u8): Likewise.
38799 (vorn_u16): Likewise.
38800 (vorn_u32): Likewise.
38801 (vorn_s64): Likewise.
38802 (vorn_u64): Likewise.
38803 (vornq_s8): Likewise.
38804 (vornq_s16): Likewise.
38805 (vornq_s32): Likewise.
38806 (vornq_s64): Likewise.
38807 (vornq_u8): Likewise.
38808 (vornq_u16): Likewise.
38809 (vornq_u32): Likewise.
38810 (vornq_u64): Likewise.
38812 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38814 * wide-int.cc (UTItype): Define.
38815 (UDWtype): Define for appropriate W_TYPE_SIZE.
38817 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
38819 PR tree-optimization/59100
38820 * tree-ssa-phiopt.c: Include tree-inline.h.
38821 (neutral_element_p, absorbing_element_p): New functions.
38822 (value_replacement): Handle conditional binary operations with a
38823 neutral or absorbing element.
38825 2014-05-08 Richard Biener <rguenther@suse.de>
38827 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
38828 folding the expression.
38829 (valueize_expr): Remove.
38830 (visit_reference_op_load): Do not valueize the result of
38832 (simplify_binary_expression): Likewise.
38833 (simplify_unary_expression): Likewise.
38835 2014-05-08 Richard Biener <rguenther@suse.de>
38837 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
38838 looking at TYPE_ARG_TYPES.
38840 2014-05-08 Richard Biener <rguenther@suse.de>
38842 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
38843 pointer propagation special-case.
38845 2014-05-08 Bin Cheng <bin.cheng@arm.com>
38847 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
38848 core part of address expressions.
38850 2014-05-08 Alan Modra <amodra@gmail.com>
38853 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
38854 loads and stores when -mno-strict-align at any alignment.
38855 (expand_block_clear): Similarly. Also correct calculation of
38858 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
38860 PR middle-end/39246
38861 * tree-complex.c (expand_complex_move): Keep line info when expanding
38863 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
38864 of complex expression. Use new argument to display correct location
38865 for values coming from phi statement.
38866 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
38867 (warn_uninitialized_phi): Pass location of phi argument to
38869 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
38870 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
38872 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
38874 * config/rs6000/predicates.md (indexed_address_mem): New.
38875 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
38876 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
38877 fpstore_ux, fpstore_u.
38878 (sign_extend, indexed, update): New.
38879 (cell_micro): Adjust.
38880 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
38881 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
38882 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
38883 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
38884 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
38885 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
38886 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
38887 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
38888 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
38889 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
38890 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
38891 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
38892 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
38893 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
38894 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
38896 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
38897 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
38898 *vsx_extract_<mode>_store): Adjust.
38899 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
38900 is_cracked_insn, insn_must_be_first_in_group,
38901 insn_must_be_last_in_group): Adjust.
38903 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
38905 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
38906 ppc440-fpstore): Adjust.
38907 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
38908 ppc476-fpstore): Adjust.
38909 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
38910 ppc601-fpstore): Adjust.
38911 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
38913 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
38915 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
38916 ppc7450-fpstore): Adjust.
38917 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
38918 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
38919 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
38921 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
38922 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
38923 cell-fpstore, cell-fpstore-update): Adjust.
38924 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
38925 ppce300c3_store, ppce300c3_fpstore): Adjust.
38926 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
38927 e500mc_fpstore): Adjust.
38928 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
38929 e500mc64_store, e500mc64_fpstore): Adjust.
38930 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
38931 e5500_fpstore): Adjust.
38932 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
38933 e6500_fpstore): Adjust.
38934 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
38936 * config/rs6000/power4.md (power4-load, power4-load-ext,
38937 power4-load-ext-update, power4-load-ext-update-indexed,
38938 power4-load-update-indexed, power4-load-update, power4-fpload,
38939 power4-fpload-update, power4-store, power4-store-update,
38940 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
38942 * config/rs6000/power5.md (power5-load, power5-load-ext,
38943 power5-load-ext-update, power5-load-ext-update-indexed,
38944 power5-load-update-indexed, power5-load-update, power5-fpload,
38945 power5-fpload-update, power5-store, power5-store-update,
38946 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
38948 * config/rs6000/power6.md (power6-load, power6-load-ext,
38949 power6-load-update, power6-load-update-indexed,
38950 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
38951 power6-fpload-update, power6-store, power6-store-update,
38952 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
38954 * config/rs6000/power7.md (power7-load, power7-load-ext,
38955 power7-load-update, power7-load-update-indexed,
38956 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
38957 power7-fpload-update, power7-store, power7-store-update,
38958 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
38960 * config/rs6000/power8.md (power8-load, power8-load-update,
38961 power8-load-ext, power8-load-ext-update, power8-fpload,
38962 power8-fpload-update, power8-store, power8-store-update-indexed,
38963 power8-fpstore, power8-fpstore-update): Adjust.
38964 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
38966 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
38967 titan_lsu_store, titan_lsu_fpstore): Adjust.
38968 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
38970 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
38973 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
38974 unrolled byte insns. Emit address increments after move insns.
38976 2014-05-07 David Malcolm <dmalcolm@redhat.com>
38978 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
38979 const_gimple, rather than a gimple.
38980 (gimple_call_builtin_p): Likewise, for the three variants.
38982 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
38983 (gimple_call_builtin_p): Likewise, for the three variants.
38985 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
38987 PR tree-optimization/61095
38988 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
38990 2014-05-07 Richard Biener <rguenther@suse.de>
38992 PR tree-optimization/61034
38993 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
38994 (maybe_skip_until): Use translate to take into account
38995 lattices when trying to do disambiguations.
38996 (get_continuation_for_phi_1): Likewise.
38997 (get_continuation_for_phi): Adjust for added translate arguments.
38998 (walk_non_aliased_vuses): Likewise.
38999 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
39000 (walk_non_aliased_vuses): Likewise.
39001 (call_may_clobber_ref_p_1): Declare.
39002 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
39003 calls. Stop early if we are only supposed to disambiguate.
39004 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
39006 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
39008 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
39009 Emit an error when the function has arguments.
39011 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
39013 * cfgloop.h (unswitch_loops): Remove.
39014 * doc/passes.texi: Remove references to loop-unswitch.c
39015 * timevar.def (TV_LOOP_UNSWITCH): Remove.
39017 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
39019 * tree-vect-data-refs.c (vect_grouped_load_supported): New
39020 check for loads group of length 3.
39021 (vect_permute_load_chain): New permutations for loads group of
39023 * tree-vect-stmts.c (vect_model_load_cost): Change cost
39024 of vec_perm_shuffle for the new permutations.
39026 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
39028 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
39029 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
39030 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
39031 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
39032 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
39033 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
39034 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
39035 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
39037 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
39039 * loop-unswitch.c: Delete.
39041 2014-05-07 Richard Biener <rguenther@suse.de>
39043 * config.gcc: Always set need_64bit_hwint to yes.
39045 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
39047 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
39048 of using optimize_size.
39050 2014-05-06 Mike Stump <mikestump@comcast.net>
39052 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
39054 2014-05-06 Joseph Myers <joseph@codesourcery.com>
39056 * config/i386/sse.md (*mov<mode>_internal)
39057 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
39058 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
39059 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
39060 (*<code><mode>3, *andnot<mode>3<mask_name>)
39061 (<mask_codefor><code><mode>3<mask_name>): Only consider
39062 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
39064 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
39067 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
39069 * lra-constraints.c (valid_address_p): Move earlier in file.
39070 Add a constraint argument to the address_info version.
39071 (satisfies_memory_constraint_p): New function.
39072 (satisfies_address_constraint_p): Likewise.
39073 (process_alt_operands, curr_insn_transform): Use them.
39074 (process_address): Pass the constraint to valid_address_p when
39075 checking address operands.
39077 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
39079 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
39080 to their respective blocks. Fix inadvertent use of "node".
39082 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
39084 * emit-rtl.c (init_derived_machine_modes): New functionm, split
39086 (init_emit_once): ...here.
39087 * rtl.h (init_derived_machine_modes): Declare.
39088 * toplev.c (do_compile): Call it even if no_backend.
39090 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
39091 Mike Stump <mikestump@comcast.net>
39092 Richard Sandiford <rdsandiford@googlemail.com>
39093 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39095 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
39096 (rtx_equal_for_memref_p): Update comment.
39097 (adjust_offset_for_component_ref): Use wide-int interfaces.
39098 * builtins.c (get_object_alignment_2): Likewise.
39099 (c_readstr): Likewise.
39100 (target_char_cast): Add comment.
39101 (determine_block_size): Use wide-int interfaces.
39102 (expand_builtin_signbit): Likewise.
39103 (fold_builtin_int_roundingfn): Likewise.
39104 (fold_builtin_bitop): Likewise.
39105 (fold_builtin_bswap): Likewise.
39106 (fold_builtin_logarithm): Use signop.
39107 (fold_builtin_pow): Likewise.
39108 (fold_builtin_memory_op): Use wide-int interfaces.
39109 (fold_builtin_object_size): Likewise.
39110 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
39111 nb_iterations_estimate.
39112 (record_niter_bound): Use wide-int interfaces.
39113 (get_estimated_loop_iterations_int): Likewise.
39114 (get_estimated_loop_iterations): Likewise.
39115 (get_max_loop_iterations): Likewise.
39116 * cfgloop.h: Include wide-int.h.
39117 (struct nb_iter_bound): Change bound to widest_int.
39118 (struct loop): Change nb_iterations_upper_bound and
39119 nb_iterations_estimate to widest_int.
39120 (record_niter_bound): Switch to use widest_int.
39121 (get_estimated_loop_iterations): Likewise.
39122 (get_max_loop_iterations): Likewise.
39123 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
39124 update for wide-int.
39125 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
39126 * combine.c (try_combine): Likewise.
39127 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
39128 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
39130 (aarch64_float_const_representable_p): Likewise.
39131 * config/arc/arc.c: Include wide-int.h.
39132 (arc_can_use_doloop_p): Use wide-int interfaces.
39133 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
39134 (vfp3_const_double_index): Likewise.
39135 * config/avr/avr.c (avr_out_round): Likewise.
39136 (avr_fold_builtin): Likewise.
39137 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
39138 (bfin_can_use_doloop_p): Likewise.
39139 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
39140 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
39141 * config/i386/i386.c: Include wide-int.h.
39142 (ix86_data_alignment): Use wide-int interfaces.
39143 (ix86_local_alignment): Likewise.
39144 (ix86_emit_swsqrtsf): Update real_from_integer.
39145 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
39146 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
39147 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
39148 (zero_constant): Likewise.
39149 (input_operand): Likewise.
39150 (splat_input_operand): Likewise.
39151 (non_logical_cint_operand): Change const_double to const_wide_int.
39152 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
39153 (easy_altivec_constant): Remove comment.
39154 (paired_expand_vector_init): Use CONSTANT_P.
39155 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
39156 (rs6000_emit_move): Update checks.
39157 (rs6000_aggregate_candidate): Use wide-int interfaces.
39158 (rs6000_expand_ternop_builtin): Likewise.
39159 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
39160 (rs6000_assemble_integer): Likewise.
39161 (rs6000_hash_constant): Likewise.
39162 (output_toc): Likewise.
39163 (rs6000_rtx_costs): Likewise.
39164 (rs6000_emit_swrsqrt); Update call to real_from_integer.
39165 * config/rs6000/rs6000-c.c: Include wide-int.h.
39166 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
39167 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
39168 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
39169 Handle CONST_WIDE_INT.
39170 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
39171 Use tree_fits_uhwi_p.
39172 * config/sparc/sparc.c: Include wide-int.h.
39173 (sparc_fold_builtin): Use wide-int interfaces.
39174 * config/vax/vax.c: Include wide-int.h.
39175 (vax_float_literal): Use real_from_integer.
39176 * coretypes.h (struct hwivec_def): New.
39178 (const_hwivec): New.
39179 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
39180 (equiv_constant): Handle CONST_WIDE_INT.
39181 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
39182 (cselib_hash_rtx): Handle CONST_WIDE_INT.
39183 * dbxout.c (stabstr_U): Use wide-int interfaces.
39184 (dbxout_type): Update to use cst_fits_shwi_p.
39185 * defaults.h (LOG2_BITS_PER_UNIT): Define.
39186 (TARGET_SUPPORTS_WIDE_INT): Add default.
39187 * dfp.c: Include wide-int.h.
39188 (decimal_real_to_integer2): Use wide-int interfaces and rename to
39189 decimal_real_to_integer.
39190 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
39191 decimal_real_to_integer.
39192 * doc/generic.texi (Constant expressions): Update for wide_int.
39193 * doc/rtl.texi (const_double): Likewise.
39194 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
39195 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
39196 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
39197 (REAL_VALUE_FROM_INT): Remove.
39198 (TARGET_SUPPORTS_WIDE_INT): New.
39199 * doc/tm.texi: Regenerate.
39200 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
39201 * double-int.h: Include wide-int.h.
39202 (struct wi::int_traits): New.
39203 * dwarf2out.c (get_full_len): New.
39204 (dw_val_equal_p): Add case dw_val_class_wide_int.
39205 (size_of_loc_descr): Likewise.
39206 (output_loc_operands): Likewise.
39207 (insert_double): Remove.
39208 (insert_wide_int): New.
39209 (add_AT_wide): New.
39210 (print_die): Add case dw_val_class_wide_int.
39211 (attr_checksum): Likewise.
39212 (attr_checksum_ordered): Likewise.
39213 (same_dw_val_p): Likewise.
39214 (size_of_die): Likewise.
39215 (value_format): Likewise.
39216 (output_die): Likewise.
39217 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
39219 (clz_loc_descriptor): Use wide-int interfaces.
39220 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
39221 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
39222 (round_up_to_align): Use wide-int interfaces.
39223 (field_byte_offset): Likewise.
39224 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
39225 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
39226 CONST_DOUBLE handling. Use wide-int interfaces.
39227 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
39228 (gen_enumeration_type_die): Use add_AT_wide.
39229 (hash_loc_operands): Add case dw_val_class_wide_int.
39230 (compare_loc_operands): Likewise.
39231 * dwarf2out.h: Include wide-int.h.
39232 (wide_int_ptr): New.
39233 (enum dw_val_class): Add dw_val_class_wide_int.
39234 (struct dw_val_struct): Add val_wide.
39235 * emit-rtl.c (const_wide_int_htab): New.
39236 (const_wide_int_htab_hash): New.
39237 (const_wide_int_htab_eq): New.
39238 (lookup_const_wide_int): New.
39239 (const_double_htab_hash): Use wide-int interfaces.
39240 (const_double_htab_eq): Likewise.
39241 (rtx_to_double_int): Conditionally compile for wide-int.
39242 (immed_double_int_const): Rename to immed_wide_int_const and
39243 update for wide-int.
39244 (immed_double_const): Conditionally compile for wide-int.
39245 (init_emit_once): Use wide-int interfaces.
39246 * explow.c (plus_constant): Likewise.
39247 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
39248 (lshift_value): Use wide-int interfaces.
39249 (expand_mult): Likewise.
39250 (choose_multiplier): Likewise.
39251 (expand_smod_pow2): Likewise.
39252 (make_tree): Likewise.
39253 * expr.c (convert_modes): Consolidate handling of constants.
39254 Use wide-int interfaces.
39255 (emit_group_load_1): Add note.
39256 (store_expr): Update comment.
39257 (get_inner_reference): Use wide-int interfaces.
39258 (expand_constructor): Update comment.
39259 (expand_expr_real_2): Use wide-int interfaces.
39260 (expand_expr_real_1): Likewise.
39261 (reduce_to_bit_field_precision): Likewise.
39262 (const_vector_from_tree): Likewise.
39263 * final.c: Include wide-int-print.h.
39264 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
39265 * fixed-value.c: Include wide-int.h.
39266 (fixed_from_string): Use wide-int interfaces.
39267 (fixed_to_decimal): Likewise.
39268 (fixed_convert_from_real): Likewise.
39269 (real_convert_from_fixed): Likewise.
39270 * fold-const.h (mem_ref_offset): Return an offset_int.
39271 (div_if_zero_remainder): Remove code parameter.
39272 * fold-const.c (div_if_zero_remainder): Remove code parameter.
39273 Use wide-int interfaces.
39274 (may_negate_without_overflow_p): Use wide-int interfaces.
39275 (negate_expr_p): Likewise.
39276 (fold_negate_expr): Likewise.
39277 (int_const_binop_1): Likewise.
39278 (const_binop): Likewise.
39279 (fold_convert_const_int_from_int): Likewise.
39280 (fold_convert_const_int_from_real): Likewise.
39281 (fold_convert_const_int_from_fixed): Likewise.
39282 (fold_convert_const_fixed_from_int): Likewise.
39283 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
39284 (sign_bit_p): Use wide-int interfaces.
39285 (make_range_step): Likewise.
39286 (build_range_check): Likewise. Pass an integer of the correct type
39287 instead of using integer_one_node.
39288 (range_predecessor): Pass an integer of the correct type instead
39289 of using integer_one_node.
39290 (range_successor): Likewise.
39291 (merge_ranges): Likewise.
39292 (unextend): Use wide-int interfaces.
39293 (extract_muldiv_1): Likewise.
39294 (fold_div_compare): Likewise.
39295 (fold_single_bit_test): Likewise.
39296 (fold_sign_changed_comparison): Likewise.
39297 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
39298 (fold_plusminus_mult_expr): Use wide-int interfaces.
39299 (native_encode_int): Likewise.
39300 (native_interpret_int): Likewise.
39301 (fold_unary_loc): Likewise.
39302 (pointer_may_wrap_p): Likewise.
39303 (size_low_cst): Likewise.
39304 (mask_with_tz): Likewise.
39305 (fold_binary_loc): Likewise.
39306 (fold_ternary_loc): Likewise.
39307 (multiple_of_p): Likewise.
39308 (tree_call_nonnegative_warnv_p): Update calls to
39309 tree_int_cst_min_precision and real_from_integer.
39310 (fold_negate_const): Use wide-int interfaces.
39311 (fold_abs_const): Likewise.
39312 (fold_relational_const): Use tree_int_cst_lt.
39313 (round_up_loc): Use wide-int interfaces.
39314 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
39315 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
39316 * gengtype.c: Remove include of double-int.h.
39317 (do_typedef): Use wide-int interfaces.
39318 (open_base_files): Add wide-int.h.
39319 (main): Add offset_int and widest_int typedefs.
39320 * gengtype-lex.l: Handle "^".
39321 (CXX_KEYWORD): Add "static".
39322 * gengtype-parse.c (require3): New.
39323 (require_template_declaration): Handle constant template arguments
39324 and nested templates.
39325 * gengtype-state.c: Don't include "double-int.h".
39326 * genpreds.c (write_one_predicate_function): Update comment.
39327 (write_tm_constrs_h): Add check for hval and lval use in
39329 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
39330 (add_to_sequence): Likewise.
39331 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
39332 and const_double_operand.
39333 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
39335 * gimple-fold.c (get_base_constructor): Likewise.
39336 (fold_array_ctor_reference): Likewise.
39337 (fold_nonarray_ctor_reference): Likewise.
39338 (fold_const_aggregate_ref_1): Likewise.
39339 (gimple_val_nonnegative_real_p): Likewise.
39340 (gimple_fold_indirect_ref): Likewise.
39341 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
39342 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
39343 (struct slsr_cand_d): Change index to be widest_int.
39344 (struct incr_info_d): Change incr to be widest_int.
39345 (alloc_cand_and_find_basis): Use wide-int interfaces.
39346 (slsr_process_phi): Likewise.
39347 (backtrace_base_for_ref): Likewise. Return a widest_int.
39348 (restructure_reference): Take a widest_int instead of a double_int.
39349 (slsr_process_ref): Use wide-int interfaces.
39350 (create_mul_ssa_cand): Likewise.
39351 (create_mul_imm_cand): Likewise.
39352 (create_add_ssa_cand): Likewise.
39353 (create_add_imm_cand): Take a widest_int instead of a double_int.
39354 (slsr_process_add): Use wide-int interfaces.
39355 (slsr_process_cast): Likewise.
39356 (slsr_process_copy): Likewise.
39357 (dump_candidate): Likewise.
39358 (dump_incr_vec): Likewise.
39359 (replace_ref): Likewise.
39360 (cand_increment): Likewise. Return a widest_int.
39361 (cand_abs_increment): Likewise.
39362 (replace_mult_candidate): Take a widest_int instead of a double_int.
39363 (replace_unconditional_candidate): Use wide-int interfaces.
39364 (incr_vec_index): Take a widest_int instead of a double_int.
39365 (create_add_on_incoming_edge): Likewise.
39366 (create_phi_basis): Use wide-int interfaces.
39367 (replace_conditional_candidate): Likewise.
39368 (record_increment): Take a widest_int instead of a double_int.
39369 (record_phi_increments): Use wide-int interfaces.
39370 (phi_incr_cost): Take a widest_int instead of a double_int.
39371 (lowest_cost_path): Likewise.
39372 (total_savings): Likewise.
39373 (analyze_increments): Use wide-int interfaces.
39374 (ncd_with_phi): Take a widest_int instead of a double_int.
39375 (ncd_of_cand_and_phis): Likewise.
39376 (nearest_common_dominator_for_cands): Likewise.
39377 (insert_initializers): Use wide-int interfaces.
39378 (all_phi_incrs_profitable): Likewise.
39379 (replace_one_candidate): Likewise.
39380 (replace_profitable_candidates): Likewise.
39381 * godump.c: Include wide-int-print.h.
39382 (go_output_typedef): Use wide-int interfaces.
39383 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
39384 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
39385 (build_loop_iteration_domains): Likewise.
39386 * hooks.h: Include wide-int.h rather than double-int.h.
39387 (hook_bool_dint_dint_uint_bool_true): Delete.
39388 (hook_bool_wint_wint_uint_bool_true): Declare.
39389 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
39390 (hook_bool_wint_wint_uint_bool_true): New.
39391 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
39393 (ubsan_expand_si_overflow_mul_check): Likewise.
39394 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
39395 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
39396 (get_ancestor_addr_info): Likewise.
39397 (ipa_modify_call_arguments): Likewise.
39398 * loop-doloop.c (doloop_modify): Likewise.
39399 (doloop_optimize): Likewise.
39400 * loop-iv.c (iv_number_of_iterations): Likewise.
39401 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
39402 (unroll_loop_constant_iterations): Likewise.
39403 (decide_unroll_runtime_iterations): Likewise.
39404 (unroll_loop_runtime_iterations): Likewise.
39405 (decide_peel_simple): Likewise.
39406 (decide_unroll_stupid): Likewise.
39407 * lto-streamer-in.c (streamer_read_wi): Add.
39408 (input_cfg): Use wide-int interfaces.
39409 (lto_input_tree_1): Likewise.
39410 * lto-streamer-out.c (streamer_write_wi): Add.
39411 (hash_tree): Use wide-int interfaces.
39412 (output_cfg): Likewise.
39413 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
39414 (GTFILES): Add wide-int.h and signop.h.
39415 (TAGS): Look for .cc files too.
39416 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
39417 * optabs.c (expand_subword_shift): Likewise.
39418 (expand_doubleword_shift): Likewise.
39419 (expand_absneg_bit): Likewise.
39420 (expand_copysign_absneg): Likewise.
39421 (expand_copysign_bit): Likewise.
39422 * postreload.c (reload_cse_simplify_set): Likewise.
39423 * predict.c (predict_iv_comparison): Likewise.
39424 * pretty-print.h: Include wide-int-print.h.
39426 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
39427 * print-tree.c: Include wide-int-print.h.
39428 (print_node_brief): Use wide-int interfaces.
39429 (print_node): Likewise.
39430 * read-rtl.c (validate_const_wide_int): New.
39431 (read_rtx_code): Add CONST_WIDE_INT case.
39432 * real.c: Include wide-int.h.
39433 (real_to_integer2): Delete.
39434 (real_to_integer): New function, returning a wide_int.
39435 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
39436 (ten_to_ptwo): Update call to real_from_integer.
39437 (real_digit): Likewise.
39438 * real.h: Include signop.h, wide-int.h and insn-modes.h.
39439 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
39440 (REAL_VALUE_TO_INT): Delete.
39441 (real_to_integer): Declare a wide-int form.
39442 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
39443 * recog.c (const_int_operand): Improve comment.
39444 (const_scalar_int_operand): New.
39445 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
39446 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
39447 (split_double): Likewise.
39448 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
39449 (rtx_size): Likewise.
39450 (rtx_alloc_stat_v): New.
39451 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
39452 (cwi_output_hex): New.
39453 (iterative_hash_rtx): Handle CONST_WIDE_INT.
39454 (cwi_check_failed_bounds): New.
39455 * rtl.def (CONST_WIDE_INT): New.
39456 * rtl.h: Include <utility> and wide-int.h.
39457 (struct hwivec_def): New.
39458 (CWI_GET_NUM_ELEM): New.
39459 (CWI_PUT_NUM_ELEM): New.
39460 (struct rtx_def): Add num_elem and hwiv.
39461 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
39462 (CASE_CONST_UNIQUE): Likewise.
39463 (CASE_CONST_ANY): Likewise.
39464 (CONST_SCALAR_INT_P): Likewise.
39465 (CONST_WIDE_INT_P): New.
39467 (HWIVEC_CHECK): New.
39468 (cwi_check_failed_bounds): New.
39470 (HWIVEC_CHECK): New.
39471 (CONST_WIDE_INT_VEC) New.
39472 (CONST_WIDE_INT_NUNITS) New.
39473 (CONST_WIDE_INT_ELT) New.
39474 (rtx_mode_t): New type.
39475 (wi::int_traits <rtx_mode_t>): New.
39477 (wi::min_value): New.
39478 (wi::max_value): New.
39480 (const_wide_int_alloc): New.
39481 (immed_wide_int_const): New.
39482 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
39483 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
39484 * signop.h: New file.
39485 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
39486 (simplify_const_unary_operation): Use wide-int interfaces.
39487 (simplify_binary_operation_1): Likewise.
39488 (simplify_const_binary_operation): Likewise.
39489 (simplify_const_relational_operation): Likewise.
39490 (simplify_immed_subreg): Likewise.
39491 * stmt.c (expand_case): Likewise.
39492 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
39493 signop rather than a bool.
39494 * stor-layout.c (layout_type): Use wide-int interfaces.
39495 (initialize_sizetypes): Update calls to
39496 set_min_and_max_values_for_integral_type.
39497 (set_min_and_max_values_for_integral_type): Take a signop rather
39498 than a bool. Use wide-int interfaces.
39499 (fixup_signed_type): Update accordingly. Remove
39500 HOST_BITS_PER_DOUBLE_INT limit.
39501 (fixup_unsigned_type): Likewise.
39502 * system.h (STATIC_CONSTANT_P): New.
39503 (STATIC_ASSERT): New.
39504 * target.def (can_use_doloop_p): Take widest_ints rather than
39506 * target.h: Include wide-int.h rather than double-int.h.
39507 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
39509 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
39510 rather than INT_CST_LT_UNSIGNED.
39511 (can_use_doloop_if_innermost): Take widest_ints rather than
39513 * tree-affine.c: Include wide-int-print.h.
39514 (double_int_ext_for_comb): Delete.
39515 (wide_int_ext_for_comb): New.
39516 (aff_combination_zero): Use wide-int interfaces.
39517 (aff_combination_const): Take a widest_int instead of a double_int.
39518 (aff_combination_elt): Use wide-int interfaces.
39519 (aff_combination_scale): Take a widest_int instead of a double_int.
39520 (aff_combination_add_elt): Likewise.
39521 (aff_combination_add_cst): Likewise.
39522 (aff_combination_add): Use wide-int interfaces.
39523 (aff_combination_convert): Likewise.
39524 (tree_to_aff_combination): Likewise.
39525 (add_elt_to_tree): Take a widest_int instead of a double_int.
39526 (aff_combination_to_tree): Use wide-int interfaces.
39527 (aff_combination_remove_elt): Likewise.
39528 (aff_combination_add_product): Take a widest_int instead of
39530 (aff_combination_mult): Use wide-int interfaces.
39531 (aff_combination_expand): Likewise.
39532 (double_int_constant_multiple_p): Delete.
39533 (wide_int_constant_multiple_p): New.
39534 (aff_combination_constant_multiple_p): Take a widest_int pointer
39535 instead of a double_int pointer.
39536 (print_aff): Use wide-int interfaces.
39537 (get_inner_reference_aff): Take a widest_int pointer
39538 instead of a double_int pointer.
39539 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
39540 * tree-affine.h: Include wide-int.h.
39541 (struct aff_comb_elt): Change type of coef to widest_int.
39542 (struct affine_tree_combination): Change type of offset to widest_int.
39543 (double_int_ext_for_comb): Delete.
39544 (wide_int_ext_for_comb): New.
39545 (aff_combination_const): Use widest_int instead of double_int.
39546 (aff_combination_scale): Likewise.
39547 (aff_combination_add_elt): Likewise.
39548 (aff_combination_constant_multiple_p): Likewise.
39549 (get_inner_reference_aff): Likewise.
39550 (aff_comb_cannot_overlap_p): Likewise.
39551 (aff_combination_zero_p): Use wide-int interfaces.
39552 * tree.c: Include tree.h.
39553 (init_ttree): Use make_int_cst.
39554 (tree_code_size): Removed code for INTEGER_CST case.
39555 (tree_size): Add INTEGER_CST case.
39556 (make_node_stat): Update comment.
39557 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
39558 (build_int_cst_type): Use wide-int interfaces.
39559 (double_int_to_tree): Likewise.
39560 (double_int_fits_to_tree_p): Delete.
39561 (force_fit_type_double): Delete.
39562 (force_fit_type): New.
39563 (int_cst_hash_hash): Use wide-int interfaces.
39564 (int_cst_hash_eq): Likewise.
39565 (build_int_cst_wide): Delete.
39566 (wide_int_to_tree): New.
39567 (cache_integer_cst): Use wide-int interfaces.
39568 (build_low_bits_mask): Likewise.
39569 (cst_and_fits_in_hwi): Likewise.
39570 (real_value_from_int_cst): Likewise.
39571 (make_int_cst_stat): New.
39572 (integer_zerop): Use wide_int interfaces.
39573 (integer_onep): Likewise.
39574 (integer_all_onesp): Likewise.
39575 (integer_pow2p): Likewise.
39576 (integer_nonzerop): Likewise.
39577 (tree_log2): Likewise.
39578 (tree_floor_log2): Likewise.
39579 (tree_ctz): Likewise.
39580 (int_size_in_bytes): Likewise.
39581 (mem_ref_offset): Return an offset_int rather than a double_int.
39582 (build_type_attribute_qual_variant): Use wide_int interfaces.
39583 (type_hash_eq): Likewise
39584 (tree_int_cst_equal): Likewise.
39585 (tree_int_cst_lt): Delete.
39586 (tree_int_cst_compare): Likewise.
39587 (tree_fits_shwi_p): Use wide_int interfaces.
39588 (tree_fits_uhwi_p): Likewise.
39589 (tree_int_cst_sign_bit): Likewise.
39590 (tree_int_cst_sgn): Likewise.
39591 (tree_int_cst_min_precision): Take a signop rather than a bool.
39592 (simple_cst_equal): Use wide_int interfaces.
39593 (compare_tree_int): Likewise.
39594 (iterative_hash_expr): Likewise.
39595 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
39597 (get_type_static_bounds): Use wide_int interfaces.
39598 (tree_int_cst_elt_check_failed): New.
39599 (build_common_tree_nodes): Reordered to set prec before filling in
39601 (int_cst_value): Check cst_and_fits_in_hwi.
39602 (widest_int_cst_value): Use wide_int interfaces.
39603 (upper_bound_in_type): Likewise.
39604 (lower_bound_in_type): Likewise.
39605 (num_ending_zeros): Likewise.
39606 (drop_tree_overflow): Likewise.
39607 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
39608 (gen_conditions_for_pow_cst_base): Likewise.
39609 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
39610 (group_case_labels_stmt): Use wide-int interfaces.
39611 (verify_gimple_assign_binary): Likewise.
39612 (print_loop): Likewise.
39613 * tree-chrec.c (tree_fold_binomial): Likewise.
39614 * tree-core.h (struct tree_base): Add int_length.
39615 (struct tree_int_cst): Change rep of value.
39616 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
39617 (dr_may_alias_p): Likewise.
39618 (max_stmt_executions_tree): Likewise.
39619 * tree.def (INTEGER_CST): Update comment.
39620 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
39621 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
39622 * tree-dump.c: Include wide-int.h and wide-int-print.h.
39623 (dequeue_and_dump): Use wide-int interfaces.
39624 * tree.h: Include wide-int.h.
39625 (NULL_TREE): Moved to earlier loc in file.
39626 (TREE_INT_CST_ELT_CHECK): New.
39627 (tree_int_cst_elt_check_failed): New.
39629 (TREE_INT_CST): Delete.
39630 (TREE_INT_CST_LOW): Use wide-int interfaces.
39631 (TREE_INT_CST_HIGH): Delete.
39632 (TREE_INT_CST_NUNITS): New.
39633 (TREE_INT_CST_EXT_NUNITS): Likewise.
39634 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
39635 (TREE_INT_CST_ELT): Likewise.
39636 (INT_CST_LT): Delete.
39637 (tree_int_cst_elt_check): New (two forms).
39638 (type_code_size): Update comment.
39639 (make_int_cst_stat, make_int_cst): New.
39640 (tree_to_double_int): Delete.
39641 (double_int_fits_to_tree_p): Delete.
39642 (force_fit_type_double): Delete.
39643 (build_int_cstu): Replace with out-of-line function.
39644 (build_int_cst_wide): Delete.
39645 (tree_int_cst_lt): Define inline.
39646 (tree_int_cst_le): New.
39647 (tree_int_cst_compare): Define inline.
39648 (tree_int_cst_min_precision): Take a signop rather than a bool.
39649 (wi::int_traits <const_tree>): New.
39650 (wi::int_traits <tree>): New.
39651 (wi::extended_tree): New.
39652 (wi::int_traits <wi::extended_tree>): New.
39653 (wi::to_widest): New.
39654 (wi::to_offset): New.
39655 (wi::fits_to_tree_p): New.
39656 (wi::min_value): New.
39657 (wi::max_value): New.
39658 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
39659 (copy_tree_body_r): Likewise.
39660 * tree-object-size.c (compute_object_offset): Likewise.
39661 (addr_object_size): Likewise.
39662 * tree-predcom.c: Include wide-int-print.h.
39663 (struct dref_d): Change type of offset to widest_int.
39664 (dump_dref): Call wide-int printer.
39665 (aff_combination_dr_offset): Use wide-int interfaces.
39666 (determine_offset): Take a widest_int pointer rather than a
39667 double_int pointer.
39668 (split_data_refs_to_components): Use wide-int interfaces.
39669 (suitable_component_p): Likewise.
39670 (order_drefs): Likewise.
39671 (add_ref_to_chain): Likewise.
39672 (valid_initializer_p): Likewise.
39673 (determine_roots_comp): Likewise.
39674 * tree-pretty-print.c: Include wide-int-print.h.
39675 (dump_generic_node): Use wide-int interfaces.
39676 * tree-sra.c (sra_ipa_modify_expr): Likewise.
39677 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
39678 (move_fixed_address_to_symbol): Likewise.
39679 (move_hint_to_base): Likewise.
39680 (move_pointer_to_base): Likewise.
39681 (move_variant_to_index): Likewise.
39682 (most_expensive_mult_to_index): Likewise.
39683 (addr_to_parts): Likewise.
39684 (copy_ref_info): Likewise.
39685 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
39686 (indirect_refs_may_alias_p): Likewise.
39687 (stmt_kills_ref_p_1): Likewise.
39688 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
39689 * tree-ssa-ccp.c: Update comment at top of file. Include
39691 (struct prop_value_d): Change type of mask to widest_int.
39692 (extend_mask): New function.
39693 (dump_lattice_value): Use wide-int interfaces.
39694 (get_default_value): Likewise.
39695 (set_constant_value): Likewise.
39696 (set_value_varying): Likewise.
39697 (valid_lattice_transition): Likewise.
39698 (set_lattice_value): Likewise.
39699 (value_to_double_int): Delete.
39700 (value_to_wide_int): New.
39701 (get_value_from_alignment): Use wide-int interfaces.
39702 (get_value_for_expr): Likewise.
39703 (do_dbg_cnt): Likewise.
39704 (ccp_finalize): Likewise.
39705 (ccp_lattice_meet): Likewise.
39706 (bit_value_unop_1): Use widest_ints rather than double_ints.
39707 (bit_value_binop_1): Likewise.
39708 (bit_value_unop): Use wide-int interfaces.
39709 (bit_value_binop): Likewise.
39710 (bit_value_assume_aligned): Likewise.
39711 (evaluate_stmt): Likewise.
39712 (ccp_fold_stmt): Likewise.
39713 (visit_cond_stmt): Likewise.
39714 (ccp_visit_stmt): Likewise.
39715 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
39716 (constant_pointer_difference): Likewise.
39717 (associate_pointerplus): Likewise.
39718 (combine_conversions): Likewise.
39719 * tree-ssa-loop.h: Include wide-int.h.
39720 (struct tree_niter_desc): Change type of max to widest_int.
39721 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
39722 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
39723 (remove_redundant_iv_tests): Likewise.
39724 (canonicalize_loop_induction_variables): Likewise.
39725 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
39726 (constant_multiple_of): Take a widest_int pointer instead of
39727 a double_int pointer.
39728 (get_computation_aff): Use wide-int interfaces.
39729 (ptr_difference_cost): Likewise.
39730 (difference_cost): Likewise.
39731 (get_loop_invariant_expr_id): Likewise.
39732 (get_computation_cost_at): Likewise.
39733 (iv_elimination_compare_lt): Likewise.
39734 (may_eliminate_iv): Likewise.
39735 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
39736 instead of double_int.
39737 (max_loop_iterations): Likewise.
39738 (max_stmt_executions): Likewise.
39739 (estimated_stmt_executions): Likewise.
39740 * tree-ssa-loop-niter.c: Include wide-int-print.h.
39741 (split_to_var_and_offset): Use wide-int interfaces.
39742 (determine_value_range): Likewise.
39743 (bound_difference_of_offsetted_base): Likewise.
39744 (bounds_add): Take a widest_int instead of a double_int.
39745 (number_of_iterations_ne_max): Use wide-int interfaces.
39746 (number_of_iterations_ne): Likewise.
39747 (number_of_iterations_lt_to_ne): Likewise.
39748 (assert_loop_rolls_lt): Likewise.
39749 (number_of_iterations_lt): Likewise.
39750 (number_of_iterations_le): Likewise.
39751 (number_of_iterations_cond): Likewise.
39752 (number_of_iterations_exit): Likewise.
39753 (finite_loop_p): Likewise.
39754 (derive_constant_upper_bound_assign): Likewise.
39755 (derive_constant_upper_bound): Return a widest_int.
39756 (derive_constant_upper_bound_ops): Likewise.
39757 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
39758 (record_estimate): Take a widest_int rather than a double_int.
39759 (record_nonwrapping_iv): Use wide-int interfaces.
39760 (double_int_cmp): Delete.
39761 (wide_int_cmp): New.
39762 (bound_index): Take a widest_int rather than a double_int.
39763 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
39764 (maybe_lower_iteration_bound): Likewise.
39765 (estimate_numbers_of_iterations_loop): Likewise.
39766 (estimated_loop_iterations): Take a widest_int pointer than than
39767 a double_int pointer.
39768 (estimated_loop_iterations_int): Use wide-int interfaces.
39769 (max_loop_iterations): Take a widest_int pointer than than
39770 a double_int pointer.
39771 (max_loop_iterations_int): Use wide-int interfaces.
39772 (max_stmt_executions): Take a widest_int pointer than than
39773 a double_int pointer.
39774 (estimated_stmt_executions): Likewise.
39775 (n_of_executions_at_most): Use wide-int interfaces.
39776 (scev_probably_wraps_p): Likewise.
39777 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
39778 to real_to_integer.
39779 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
39781 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
39782 double_ints. Adjust for trailing_wide_ints <3> representation.
39783 (set_nonzero_bits): Likewise.
39784 (get_range_info): Return wide_ints rather than double_ints.
39785 Adjust for trailing_wide_ints <3> representation.
39786 (get_nonzero_bits): Likewise.
39787 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
39789 * tree-ssanames.h (struct range_info_def): Replace min, max and
39790 nonzero_bits with a trailing_wide_ints <3>.
39791 (set_range_info): Use wide_int_refs rather than double_ints.
39792 (set_nonzero_bits): Likewise.
39793 (get_range_info): Return wide_ints rather than double_ints.
39794 (get_nonzero_bits): Likewise.
39795 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
39796 * tree-ssa-pre.c (phi_translate_1): Likewise.
39797 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
39798 (acceptable_pow_call): Likewise.
39799 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
39801 (vn_reference_fold_indirect): Likewise.
39802 (vn_reference_maybe_forwprop_address): Likewise.
39803 (valueize_refs_1): Likewise.
39804 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
39805 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
39806 tree_int_cst_lt and tree_int_cst_le.
39807 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
39809 (streamer_alloc_tree): Likewise.
39810 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
39811 (streamer_write_tree_header): Likewise.
39812 (streamer_write_integer_cst): Likewise.
39813 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
39814 (build_constructors): Likewise.
39815 (array_value_type): Likewise.
39816 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
39817 (vect_check_gather): Likewise.
39818 * tree-vect-generic.c (build_replicated_const): Likewise.
39819 (expand_vector_divmod): Likewise.
39820 * tree-vect-loop.c (vect_transform_loop): Likewise.
39821 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
39822 (vect_do_peeling_for_alignment): Likewise.
39823 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
39824 * tree-vrp.c: Include wide-int.h.
39825 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
39826 (extract_range_from_assert): Use wide-int interfaces.
39827 (vrp_int_const_binop): Likewise.
39828 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
39829 double_int pointers.
39830 (ranges_from_anti_range): Use wide-int interfaces.
39831 (quad_int_cmp): Delete.
39832 (quad_int_pair_sort): Likewise.
39833 (extract_range_from_binary_expr_1): Use wide-int interfaces.
39834 (extract_range_from_unary_expr_1): Likewise.
39835 (adjust_range_with_scev): Likewise.
39836 (masked_increment): Take and return wide_ints rather than double_ints.
39837 (register_edge_assert_for_2): Use wide-int interfaces.
39838 (check_array_ref): Likewise.
39839 (search_for_addr_array): Likewise.
39840 (maybe_set_nonzero_bits): Likewise.
39841 (union_ranges): Pass an integer of the correct type instead of
39842 using integer_one_node.
39843 (intersect_ranges): Likewise.
39844 (simplify_truth_ops_using_ranges): Likewise.
39845 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
39846 (range_fits_type_p): Likewise.
39847 (simplify_cond_using_ranges): Likewise. Take a signop rather than
39849 (simplify_conversion_using_ranges): Use wide-int interfaces.
39850 (simplify_float_conversion_using_ranges): Likewise.
39851 (vrp_finalize): Likewise.
39852 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
39853 (gimple_stringops_transform): Likewise.
39854 * varasm.c (decode_addr_const): Likewise.
39855 (const_hash_1): Likewise.
39856 (const_rtx_hash_1): Likewise
39857 (output_constant): Likewise.
39858 (array_size_for_constructor): Likewise.
39859 (output_constructor_regular_field): Likewise.
39860 (output_constructor_bitfield): Likewise.
39861 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
39862 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
39864 * gencheck.c: Define BITS_PER_UNIT.
39865 * wide-int.cc: New.
39867 * wide-int-print.cc: New.
39868 * wide-int-print.h: New.
39870 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
39872 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
39874 2014-05-06 Richard Biener <rguenther@suse.de>
39876 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
39877 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
39878 (TODO_verify_all): Adjust.
39879 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
39880 TODO_verify_stmts and TODO_verify_rtl_sharing.
39881 * bb-reorder.c: Likewise.
39882 * cfgexpand.c: Likewise.
39883 * cprop.c: Likewise.
39885 * function.c: Likewise.
39886 * fwprop.c: Likewise.
39887 * gcse.c: Likewise.
39888 * gimple-ssa-isolate-paths.c: Likewise.
39889 * gimple-ssa-strength-reduction.c: Likewise.
39890 * ipa-split.c: Likewise.
39891 * loop-init.c: Likewise.
39892 * loop-unroll.c: Likewise.
39893 * lower-subreg.c: Likewise.
39894 * modulo-sched.c: Likewise.
39895 * postreload-gcse.c: Likewise.
39896 * predict.c: Likewise.
39897 * recog.c: Likewise.
39898 * sched-rgn.c: Likewise.
39899 * store-motion.c: Likewise.
39900 * tracer.c: Likewise.
39901 * trans-mem.c: Likewise.
39902 * tree-call-cdce.c: Likewise.
39903 * tree-cfg.c: Likewise.
39904 * tree-cfgcleanup.c: Likewise.
39905 * tree-complex.c: Likewise.
39906 * tree-eh.c: Likewise.
39907 * tree-emutls.c: Likewise.
39908 * tree-if-conv.c: Likewise.
39909 * tree-into-ssa.c: Likewise.
39910 * tree-loop-distribution.c: Likewise.
39911 * tree-object-size.c: Likewise.
39912 * tree-parloops.c: Likewise.
39913 * tree-pass.h: Likewise.
39914 * tree-sra.c: Likewise.
39915 * tree-ssa-ccp.c: Likewise.
39916 * tree-ssa-copy.c: Likewise.
39917 * tree-ssa-copyrename.c: Likewise.
39918 * tree-ssa-dce.c: Likewise.
39919 * tree-ssa-dom.c: Likewise.
39920 * tree-ssa-dse.c: Likewise.
39921 * tree-ssa-forwprop.c: Likewise.
39922 * tree-ssa-ifcombine.c: Likewise.
39923 * tree-ssa-loop-ch.c: Likewise.
39924 * tree-ssa-loop-ivcanon.c: Likewise.
39925 * tree-ssa-loop.c: Likewise.
39926 * tree-ssa-math-opts.c: Likewise.
39927 * tree-ssa-phiopt.c: Likewise.
39928 * tree-ssa-phiprop.c: Likewise.
39929 * tree-ssa-pre.c: Likewise.
39930 * tree-ssa-reassoc.c: Likewise.
39931 * tree-ssa-sink.c: Likewise.
39932 * tree-ssa-strlen.c: Likewise.
39933 * tree-ssa-tail-merge.c: Likewise.
39934 * tree-ssa-uncprop.c: Likewise.
39935 * tree-switch-conversion.c: Likewise.
39936 * tree-tailcall.c: Likewise.
39937 * tree-vect-generic.c: Likewise.
39938 * tree-vectorizer.c: Likewise.
39939 * tree-vrp.c: Likewise.
39940 * tsan.c: Likewise.
39941 * var-tracking.c: Likewise.
39942 * bt-load.c: Likewise.
39943 * cfgcleanup.c: Likewise.
39944 * combine-stack-adj.c: Likewise.
39945 * combine.c: Likewise.
39946 * compare-elim.c: Likewise.
39947 * config/epiphany/resolve-sw-modes.c: Likewise.
39948 * config/i386/i386.c: Likewise.
39949 * config/mips/mips.c: Likewise.
39950 * config/s390/s390.c: Likewise.
39951 * config/sh/sh_treg_combine.cc: Likewise.
39952 * config/sparc/sparc.c: Likewise.
39955 * final.c: Likewise.
39956 * ifcvt.c: Likewise.
39957 * mode-switching.c: Likewise.
39958 * passes.c: Likewise.
39959 * postreload.c: Likewise.
39961 * reg-stack.c: Likewise.
39962 * regcprop.c: Likewise.
39963 * regrename.c: Likewise.
39966 2014-05-06 Richard Biener <rguenther@suse.de>
39968 PR middle-end/61070
39969 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
39970 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
39972 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
39975 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
39977 2014-05-05 Radovan Obradovic <robradovic@mips.com>
39978 Tom de Vries <tom@codesourcery.com>
39980 * target.def (call_fusage_contains_non_callee_clobbers): New
39982 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
39984 (@node Miscellaneous Register Hooks): New node.
39985 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
39986 * doc/tm.texi: Regenerate.
39988 2014-05-05 Marek Polacek <polacek@redhat.com>
39991 * opts.c (common_handle_option): Call error_at instead of warning_at.
39993 2014-05-05 Richard Biener <rguenther@suse.de>
39995 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
39996 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
39997 under the TODO_verify_il umbrella.
39999 2014-05-05 Richard Biener <rguenther@suse.de>
40001 * passes.c (execute_function_todo): Move TODO_verify_flow under
40002 the TODO_verify_ul umbrella.
40004 2014-05-05 Richard Biener <rguenther@suse.de>
40006 PR middle-end/61010
40007 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
40008 X & CST away from a CST that is the mask of a mode.
40010 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40012 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
40013 int argument to enum machine_mode.
40014 (picochip_class_max_nregs): Ditto.
40015 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
40016 (picochip_class_max_nregs): Ditto.
40018 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40020 * target.def: Add new target hook.
40021 * doc/tm.texi: Regenerate.
40022 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
40023 * targhooks.c (default_keep_leaf_when_profiled): New function.
40025 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
40026 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
40028 2014-05-05 Bin Cheng <bin.cheng@arm.com>
40030 PR tree-optimization/60363
40031 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
40032 (copy_phi_args): New parameters. Call get_value_locus_in_path.
40033 (update_destination_phis): New parameter.
40034 (create_edge_and_update_destination_phis): Ditto.
40035 (ssa_fix_duplicate_block_edges): Pass new arguments.
40036 (thread_single_edge): Ditto.
40038 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
40040 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
40041 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
40042 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
40043 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
40044 Use RS6000_BTM_HARD_FLOAT.
40045 (BU_MISC_2): Likewise.
40046 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
40047 RS6000_BTM_HARD_FLOAT.
40048 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
40049 is explicitly used.
40050 (rs6000_invalid_builtin): Add hard floating builtin support.
40051 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
40052 hard float builtins.
40053 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
40055 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40057 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
40058 Add missing function* argument.
40060 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
40062 * lra-constraints.c (valid_address_p): Move earlier in file.
40063 Add a constraint argument to the address_info version.
40064 (satisfies_memory_constraint_p): New function.
40065 (satisfies_address_constraint_p): Likewise.
40066 (process_alt_operands, curr_insn_transform): Use them.
40067 (process_address): Pass the constraint to valid_address_p when
40068 checking address operands.
40070 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
40072 * config/mips/mips.c (mips_isa_rev): New variable.
40073 (mips_set_architecture): Set it.
40074 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
40076 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
40077 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
40078 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
40079 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
40080 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
40081 conditions in terms of mips_isa_rev.
40082 (mips_isa_rev): Declare.
40084 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40086 * config/sh/sh-mem.cc: Use tabs instead of spaces.
40087 (prob_unlikely, prob_likely): Make variables const.
40089 2014-05-03 Denis Chertykov <chertykov@gmail.com>
40091 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
40093 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40095 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
40097 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40099 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
40100 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
40101 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
40103 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
40104 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
40106 Replace usage of ROUND_REG with sh_round_reg.
40107 Use CEIL instead of ROUND_ADVANCE.
40109 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40112 * config/sh/sh.c: Include stdlib headers before everything else.
40114 2014-05-02 Jakub Jelinek <jakub@redhat.com>
40116 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
40117 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
40118 (gimplify_adjust_omp_clauses): Simd region is never
40119 directly nested in combined parallel. Instead, for linear
40120 with copyin/copyout, if in combined for simd loop, make decl
40121 firstprivate/lastprivate on OMP_FOR.
40122 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
40123 expand_omp_for_static_chunk): When setting endvar, also set
40124 fd->loop.v to the same value.
40126 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
40128 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
40130 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
40132 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
40135 2014-05-02 Marek Polacek <polacek@redhat.com>
40137 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
40139 2014-05-02 Kito Cheng <kito@0xlab.org>
40141 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
40142 to a C expression marco.
40143 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
40144 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
40145 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
40146 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
40147 HONOR_REG_ALLOC_ORDER.
40148 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
40150 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40152 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
40154 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40156 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
40158 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
40160 * tree-if-conv.c (is_cond_scalar_reduction): New function.
40161 (convert_scalar_cond_reduction): Likewise.
40162 (predicate_scalar_phi): Add recognition and transformation
40163 of simple conditioanl reduction to be vectorizable.
40165 2014-05-01 Marek Polacek <polacek@redhat.com>
40168 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
40170 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
40172 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
40173 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
40174 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
40175 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
40176 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
40177 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
40178 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
40179 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
40181 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
40183 * config/arc/arc.opt (mlra): Move comment above option name
40184 to avoid mis-parsing as language options.
40186 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40188 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
40189 * config/sol2.h: ... here.
40190 * config/sol2-10.h: Remove.
40192 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
40193 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
40194 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
40195 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
40196 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
40197 * config/sol2.h: ... here.
40198 (SECTION_NAME_FORMAT): Don't redefine.
40199 (STARTFILE_ARCH32_SPEC): Rename to ...
40200 (STARTFILE_ARCH_SPEC): ... this.
40201 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
40202 * config/sparc/sol2.h: ... here.
40203 (SECTION_NAME_FORMAT): Don't undef.
40204 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
40205 (SUBTARGET_EXTRA_SPECS): Remove.
40206 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
40208 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
40209 (MD_STARTFILE_PREFIX): Remove.
40210 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
40211 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
40212 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
40213 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
40214 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
40215 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
40216 * config/i386/sol2.h: ... here.
40217 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
40218 * config/i386/sol2-bi.h: Remove.
40219 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
40220 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
40222 * config/i386/t-sol2-64: Rename to ...
40223 * config/i386/t-sol2: ... this.
40224 * config/sparc/t-sol2-64: Rename to ...
40225 * config/sparc/t-sol2: ... this.
40227 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
40228 sol2_tm_file_head, sol2_tm_file_tail.
40229 Include ${cpu_type}/sol2.h before sol2.h.
40231 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
40232 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
40233 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
40234 Reflect i386/t-sol2-64 renaming.
40235 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
40236 Reflect sparc/t-sol2-64 renaming.
40238 2014-04-30 Richard Biener <rguenther@suse.de>
40240 * passes.c (execute_function_todo): Move TODO_verify_stmts
40241 and TODO_verify_ssa under the TODO_verify_il umbrella.
40242 * tree-ssa.h (verify_ssa): Adjust prototype.
40243 * tree-ssa.c (verify_ssa): Add parameter to tell whether
40244 we should verify SSA operands.
40245 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
40246 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
40247 whether we should verify whether not throwing stmts have EH info.
40248 * graphite-scop-detection.c (create_sese_edges): Adjust.
40249 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
40250 * tree-eh.c (lower_try_finally_switch): Do not add the
40251 default case label twice.
40253 2014-04-30 Marek Polacek <polacek@redhat.com>
40255 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
40256 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
40257 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
40258 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
40260 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
40262 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
40263 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
40264 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
40265 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
40266 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
40267 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
40268 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
40269 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
40271 2014-04-29 David Malcolm <dmalcolm@redhat.com>
40273 * tree-cfg.c (dump_function_to_file): Dump the return type of
40274 functions, in a line to itself before the function body, mimicking
40275 the layout of a C function.
40277 2014-04-29 Jakub Jelinek <jakub@redhat.com>
40279 PR tree-optimization/60971
40280 * tree-tailcall.c (process_assignment): Reject conversions which
40283 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
40285 * calls.c (initialize_argument_information): Always treat
40286 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
40287 (expand_call): Likewise.
40288 (emit_library_call_calue_1): Likewise.
40289 * expr.c (PUSH_ARGS_REVERSED): Do not define.
40290 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
40293 2014-04-29 Nick Clifton <nickc@redhat.com>
40295 * config/msp430/msp430.md (umulsidi): Fix typo.
40296 (mulhisi3): Enable even inside interrupt handlers.
40297 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
40298 bigger return address pushed in large mode.
40300 2014-04-29 Nick Clifton <nickc@redhat.com>
40302 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
40303 (arc_init_reg_tables): Use a machine_mode enum to iterate over
40305 * config/m32r/m32r.c (init_reg_tables): Likewise.
40306 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
40307 enum to hold the modes.
40309 2014-04-29 Richard Biener <rguenther@suse.de>
40311 * dominance.c (free_dominance_info): Add overload with
40312 function parameter.
40313 (dom_info_state): Likewise.
40314 (dom_info_available_p): Likewise.
40315 * basic-block.h (free_dominance_info, dom_info_state,
40316 dom_info_available_p): Declare overloads.
40317 * passes.c (execute_function_todo): Verify that verifiers
40318 don't change dominator info state. Drop dominator info
40319 for IPA pass invocations.
40320 * cgraph.c (release_function_body): Restore asserts that
40321 dominator information is released.
40323 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
40325 * doc/invoke.texi: Fix typo.
40326 * tree-vrp.c: Fix typos.
40327 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
40329 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
40331 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
40333 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
40335 * config/aarch64/aarch64-builtins.c
40336 (aarch64_types_storestruct_lane_qualifiers): New.
40337 (TYPES_STORESTRUCT_LANE): Likewise.
40338 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
40339 (st3_lane): Likewise.
40340 (st4_lane): Likewise.
40341 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
40342 (vec_store_lanesci_lane<mode>): Likewise.
40343 (vec_store_lanesxi_lane<mode>): Likewise.
40344 (aarch64_st2_lane<VQ:mode>): Likewise.
40345 (aarch64_st3_lane<VQ:mode>): Likewise.
40346 (aarch64_st4_lane<VQ:mode>): Likewise.
40347 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
40348 * config/aarch64/arm_neon.h
40349 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
40350 use new macro arguments.
40351 (__ST3_LANE_FUNC): Likewise.
40352 (__ST4_LANE_FUNC): Likewise.
40353 * config/aarch64/iterators.md (V_TWO_ELEM): New.
40354 (V_THREE_ELEM): Likewise.
40355 (V_FOUR_ELEM): Likewise.
40357 2014-04-28 David Malcolm <dmalcolm@redhat.com>
40359 * doc/gimple.texi: Replace the description of the now-defunct
40360 union gimple_statement_d with a diagram showing the
40361 gimple_statement_base class hierarchy and its relationships to
40362 the GSS_ and GIMPLE_ enums.
40364 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
40366 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
40367 * config/aarch64/aarch64.c
40368 (aarch64_cannot_change_mode_class): Weaken conditions.
40369 (aarch64_modes_tieable_p): New.
40370 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
40372 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
40374 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
40375 (loadsync_<mode>): Change mode.
40376 (load_quadpti, store_quadpti): New.
40377 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
40378 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
40380 2014-04-28 Martin Jambor <mjambor@suse.cz>
40382 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
40383 same alias type as the original statement.
40384 (subreplacement_assignment_data): New type.
40385 (handle_unscalarized_data_in_subtree): New type of parameter,
40386 generate new memory accesses with same alias type as the original
40388 (load_assign_lhs_subreplacements): Likewise.
40389 (sra_modify_constructor_assign): Generate new memory accesses with
40390 same alias type as the original statement.
40392 2014-04-28 Richard Biener <rguenther@suse.de>
40394 * tree-pass.h (TODO_verify_il): Define.
40395 (TODO_verify_all): Complete properly.
40396 * passes.c (execute_function_todo): Move existing loop-closed
40397 SSA verification under TODO_verify_il.
40398 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
40399 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
40400 Fix tree sharing issue.
40402 2014-04-28 Richard Biener <rguenther@suse.de>
40404 PR middle-end/60092
40405 * builtins.def (DEF_C11_BUILTIN): Add.
40406 (BUILT_IN_ALIGNED_ALLOC): Likewise.
40407 * coretypes.h (enum function_class): Add function_c11_misc.
40408 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
40409 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
40410 (call_may_clobber_ref_p_1): Likewise.
40411 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
40412 (mark_all_reaching_defs_necessary_1): Likewise.
40413 (propagate_necessity): Likewise.
40414 (eliminate_unnecessary_stmts): Likewise.
40415 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
40417 2014-04-28 Richard Biener <rguenther@suse.de>
40419 * tree-vrp.c (vrp_var_may_overflow): Remove.
40420 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
40421 with overflow immediately bump to one before that value and
40422 let iteration figure out overflow status.
40424 2014-04-28 Richard Biener <rguenther@suse.de>
40426 * configure.ac: Do valgrind header checks unconditionally.
40427 Add --enable-valgrind-annotations.
40428 * system.h: Guard valgrind header inclusion with
40429 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
40430 * alloc-pool.c (pool_alloc, pool_free): Use
40431 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
40432 to guard possibly dead code.
40433 * config.in: Regenerated.
40434 * configure: Likewise.
40436 2014-04-28 Jeff Law <law@redhat.com>
40438 PR tree-optimization/60902
40439 * tree-ssa-threadedge.c
40440 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
40441 over real defs when invalidating outputs from statements that do not
40442 produce useful outputs for threading.
40444 2014-04-28 Richard Biener <rguenther@suse.de>
40446 PR tree-optimization/60979
40447 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
40448 SCOPs that end in a block with a successor with abnormal
40451 2014-04-28 Richard Biener <rguenther@suse.de>
40453 * tree-pass.h (execute_pass_list): Adjust prototype.
40454 * passes.c (pass_manager::execute_early_local_passes): Adjust.
40455 (do_per_function): Change callback signature, push all actual
40456 work to the callbals.
40457 (do_per_function_toporder): Likewise.
40458 (execute_function_dump): Adjust.
40459 (execute_function_todo): Likewise.
40460 (clear_last_verified): Likewise.
40461 (verify_curr_properties): Likewise.
40462 (update_properties_after_pass): Likewise.
40463 (execute_pass_list_1): Split out from ...
40464 (execute_pass_list): ... here. Adjust.
40465 (execute_ipa_pass_list): Likewise.
40466 * cgraphunit.c (cgraph_add_new_function): Adjust.
40467 (analyze_function): Likewise.
40468 (expand_function): Likewise.
40469 * cgraph.c (release_function_body): Free dominance info
40470 here instead of asserting it was magically freed elsewhere.
40472 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
40474 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
40475 * configure: Regenerate.
40476 * config/sparc/sparc.opt (muser-mode): New option.
40477 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
40479 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
40480 * doc/invoke.texi (SPARC options): Document -muser-mode.
40482 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
40484 * cselib.c (find_slot_memmode): Delete.
40485 (cselib_hasher): Change compare_type to a struct.
40486 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
40488 (preserve_constants_and_equivs): Adjust for new compare_type.
40489 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
40490 (wrap_constant): Delete.
40491 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
40493 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
40495 * doc/install.texi (Building with profile feedback): Remove
40498 2014-04-26 Tom de Vries <tom@codesourcery.com>
40500 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
40503 2014-04-25 Cary Coutant <ccoutant@google.com>
40506 * dwarf2out.c (should_move_die_to_comdat): A type definition
40507 can contain a subprogram definition, but don't move it to a
40509 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
40510 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
40512 (clone_tree_hash): Rename to...
40513 (clone_tree_partial): ...this; change callers. Copy
40514 DW_TAG_subprogram DIEs as declarations.
40515 (copy_decls_walk): Don't copy children of a declaration into a
40518 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
40521 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
40524 2014-04-25 Jiong Wang <jiong.wang@arm.com>
40526 * config/arm/predicates.md (call_insn_operand): Add long_call check.
40527 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
40529 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
40532 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40534 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
40536 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40538 PR tree-optimization/60930
40539 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
40540 creating a multiply candidate by folding two constant
40541 multiplicands when the result overflows.
40543 2014-04-25 Jakub Jelinek <jakub@redhat.com>
40545 PR tree-optimization/60960
40546 * tree-vect-generic.c (expand_vector_operation): Only call
40547 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
40549 2014-04-25 Tom de Vries <tom@codesourcery.com>
40551 * expr.c (clobber_reg_mode): New function.
40552 * expr.h (clobber_reg): New function.
40554 2014-04-25 Tom de Vries <tom@codesourcery.com>
40556 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
40559 2014-04-25 Radovan Obradovic <robradovic@mips.com>
40560 Tom de Vries <tom@codesourcery.com>
40562 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
40564 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
40565 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
40566 new argument to find_all_hard_reg_sets call.
40568 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40570 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
40571 Use HOST_WIDE_INT_C for mask literal.
40572 (aarch_rev16_shleft_mask_imm_p): Likewise.
40574 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
40577 * config/sparc/sparc.md (ashlsi3_extend): Delete.
40579 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
40581 PR preprocessor/56540
40582 * config/i386/i386-c.c (ix86_target_macros): Define
40583 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
40585 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40587 * configure.ac (tga_func): Remove.
40588 (LIB_TLS_SPEC): Remove.
40589 * configure: Regenerate.
40590 * config.in: Regenerate.
40591 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
40593 2014-04-25 Richard Biener <rguenther@suse.de>
40596 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
40597 call stmt use/clobber sets during stmt walk instead of
40598 walking the possibly incomplete set of caller edges.
40600 2014-04-25 Richard Biener <rguenther@suse.de>
40603 * passes.c (apply_ipa_transforms): Inline into only caller ...
40604 (execute_one_pass): ... here. Properly bring in function
40605 bodies for nodes we want to apply IPA transforms to.
40607 2014-04-24 Cong Hou <congh@google.com>
40609 PR tree-optimization/60896
40610 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
40611 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
40612 (vect_mark_pattern_stmts): Set the def type of all statements in
40613 PATTERN_DEF_SEQ as vect_internal_def.
40615 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
40617 * doc/extend.texi (PowerPC Built-in Functions): Document new
40618 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
40619 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
40621 * config/rs6000/predicates.md (const_0_to_3_operand): New
40622 predicate to match 0..3 integer constants.
40624 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
40625 to support adding miscellaneous builtin functions.
40626 (BU_DFP_MISC_2): Likewise.
40627 (BU_P7_MISC_1): Likewise.
40628 (BU_P7_MISC_2): Likewise.
40629 (BU_P8V_MISC_3): Likewise.
40630 (BU_MISC_1): Likewise.
40631 (BU_MISC_2): Likewise.
40632 (DIVWE): Add extended divide builtin functions.
40633 (DIVWEO): Likewise.
40634 (DIVWEU): Likewise.
40635 (DIVWEUO): Likewise.
40637 (DIVDEO): Likewise.
40638 (DIVDEU): Likewise.
40639 (DIVDEUO): Likewise.
40640 (DXEX): Add decimal floating-point builtin functions.
40642 (DDEDPD): Likewise.
40643 (DDEDPDQ): Likewise.
40644 (DENBCD): Likewise.
40645 (DENBCDQ): Likewise.
40649 (DSCLIQ): Likewise.
40651 (DSCRIQ): Likewise.
40652 (CDTBCD): Add new BCD builtin functions.
40653 (CBCDTD): Likewise.
40654 (ADDG6S): Likewise.
40655 (BCDADD): Likewise.
40656 (BCDADD_LT): Likewise.
40657 (BCDADD_EQ): Likewise.
40658 (BCDADD_GT): Likewise.
40659 (BCDADD_OV): Likewise.
40660 (BCDSUB): Likewise.
40661 (BCDSUB_LT): Likewise.
40662 (BCDSUB_EQ): Likewise.
40663 (BCDSUB_GT): Likewise.
40664 (BCDSUB_OV): Likewise.
40665 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
40666 (UNPACK_TD): Likewise.
40667 (PACK_TF): Likewise.
40668 (UNPACK_TF): Likewise.
40669 (UNPACK_TF_0): Likewise.
40670 (UNPACK_TF_1): Likewise.
40671 (PACK_V1TI): Likewise.
40672 (UNPACK_V1TI): Likewise.
40674 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
40675 support for decimal floating point builtin functions.
40676 (rs6000_expand_ternop_builtin): Add checks for the new builtin
40677 functions that take constant arguments.
40678 (rs6000_invalid_builtin): Add decimal floating point builtin support.
40679 (rs6000_init_builtins): Setup long double, _Decimal64, and
40680 _Decimal128 types for new builtin functions.
40681 (builtin_function_type): Set the unsigned flags appropriately for
40682 the new builtin functions.
40683 (rs6000_opt_masks): Add support for decimal floating point builtin
40686 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
40687 floating point builtin functions.
40688 (RS6000_BTM_COMMON): Likewise.
40689 (RS6000_BTI_long_double): Likewise.
40690 (RS6000_BTI_dfloat64): Likewise.
40691 (RS6000_BTI_dfloat128): Likewise.
40692 (long_double_type_internal_node): Likewise.
40693 (dfloat64_type_internal_node): Likewise.
40694 (dfloat128_type_internal_node): Likewise.
40696 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
40697 2.07 bcd arithmetic instructions.
40698 (UNSPEC_BCDSUB): Likewise.
40699 (UNSPEC_BCD_OVERFLOW): Likewise.
40700 (UNSPEC_BCD_ADD_SUB): Likewise.
40701 (bcd_add_sub): Likewise.
40702 (BCD_TEST): Likewise.
40703 (bcd<bcd_add_sub>): Likewise.
40704 (bcd<bcd_add_sub>_test): Likewise.
40705 (bcd<bcd_add_sub>_test2): Likewise.
40706 (bcd<bcd_add_sub>_<code>): Likewise.
40707 (peephole2 for combined bcd ops): Likewise.
40709 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
40710 decimal floating point builtin functions.
40711 (UNSPEC_DENBCD): Likewise.
40712 (UNSPEC_DXEX): Likewise.
40713 (UNSPEC_DIEX): Likewise.
40714 (UNSPEC_DSCLI): Likewise.
40715 (UNSPEC_DSCRI): Likewise.
40716 (D64_D128): Likewise.
40717 (dfp_suffix): Likewise.
40718 (dfp_ddedpd_<mode>): Likewise.
40719 (dfp_denbcd_<mode>): Likewise.
40720 (dfp_dxex_<mode>): Likewise.
40721 (dfp_diex_<mode>): Likewise.
40722 (dfp_dscli_<mode>): Likewise.
40723 (dfp_dscri_<mode>): Likewise.
40725 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
40727 (UNSPEC_CDTBCD): Likewise.
40728 (UNSPEC_CBCDTD): Likewise.
40729 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
40730 (UNSPEC_DIVEO): Likewise.
40731 (UNSPEC_DIVEU): Likewise.
40732 (UNSPEC_DIVEUO): Likewise.
40733 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
40734 pack/unpack 128-bit types.
40735 (UNSPEC_PACK_128BIT): Likewise.
40736 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
40737 (udiv<mode>3): Use idiv_ldiv mode attribute.
40738 (div<mode>3): Likewise.
40739 (addg6s): Add new BCD builtin functions.
40740 (cdtbcd): Likewise.
40741 (cbcdtd): Likewise.
40742 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
40743 (div_extend): Likewise.
40744 (div<div_extend>_<mode>"): Likewise.
40745 (FP128_64): Add support for new builtin functions to pack/unpack
40747 (unpack<mode>): Likewise.
40748 (unpacktf_0): Likewise.
40749 (unpacktf_1): Likewise.
40750 (unpack<mode>_dm): Likewise.
40751 (unpack<mode>_nodm): Likewise.
40752 (pack<mode>): Likewise.
40753 (unpackv1ti): Likewise.
40754 (packv1ti): Likewise.
40756 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
40758 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
40761 2014-04-24 Jakub Jelinek <jakub@redhat.com>
40763 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
40764 * gimplify.c (omp_is_private): Change last argument's type to int.
40765 Only diagnose lastprivate if the simd argument is 1, only diagnose
40766 linear if the simd argument is 2.
40767 (gimplify_omp_for): Adjust omp_is_private callers. When adding
40768 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
40769 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
40770 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
40771 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
40772 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
40773 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
40774 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
40775 * tree-nested.c (convert_nonlocal_omp_clauses,
40776 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
40778 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
40781 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
40784 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
40786 * flag-types.h (enum ivar_visibility): Add.
40788 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
40790 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
40791 function * argument.
40793 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
40795 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
40797 2014-04-24 Radovan Obradovic <robradovic@mips.com>
40798 Tom de Vries <tom@codesourcery.com>
40800 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
40801 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
40803 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
40804 * emit-rtl.c (try_split): Same.
40806 2014-04-24 Radovan Obradovic <robradovic@mips.com>
40807 Tom de Vries <tom@codesourcery.com>
40809 * common.opt (fuse-caller-save): New option.
40811 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
40813 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
40814 elements for big-endian.
40816 2014-04-24 Richard Biener <rguenther@suse.de>
40818 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
40819 during TER and instead use the sepops interface for expanding
40820 non-GIMPLE_SINGLE_RHS.
40822 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40824 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
40825 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
40827 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40829 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
40830 assembler 64-bit option.
40831 * configure: Regenerate.
40833 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40835 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
40836 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
40837 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
40838 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
40839 (TARGET_CRYPTO): Take TARGET_SIMD into account.
40841 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40843 * config/aarch64/aarch64-builtins.c
40844 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
40845 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
40846 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
40847 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
40849 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
40850 (Vrevsuff): New mode attribute.
40852 2014-04-24 Terry Guo <terry.guo@arm.com>
40854 * config/arm/arm.h (machine_function): Define variable
40855 after_arm_reorg here.
40856 * config/arm/arm.c (after_arm_reorg): Remove the definition.
40857 (arm_split_constant): Update the way to access variable
40859 (arm_reorg): Ditto.
40860 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
40862 2014-04-23 Tom de Vries <tom@codesourcery.com>
40864 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
40866 2014-04-23 David Malcolm <dmalcolm@redhat.com>
40868 * is-a.h: Update comments to reflect the following changes to the
40869 "pointerness" of the API, making the template parameter match the
40870 return type, allowing use of is-a.h with typedefs of pointers.
40871 (is_a_helper::cast): Return a T rather then a pointer to a T, so
40872 that the return type matches the parameter to the is_a_helper.
40874 (dyn_cast): Likewise.
40876 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
40877 pointer from the is-a.h API.
40879 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
40880 (is_a_helper <cgraph_node *>::test): ...this, matching change to
40882 (is_a_helper <varpool_node>::test): Likewise, convert to...
40883 (is_a_helper <varpool_node *>::test): ...this.
40885 (varpool_first_variable): Update for removal of implicit pointer
40886 from the is-a.h API.
40887 (varpool_next_variable): Likewise.
40888 (varpool_first_static_initializer): Likewise.
40889 (varpool_next_static_initializer): Likewise.
40890 (varpool_first_defined_variable): Likewise.
40891 (varpool_next_defined_variable): Likewise.
40892 (cgraph_first_defined_function): Likewise.
40893 (cgraph_next_defined_function): Likewise.
40894 (cgraph_first_function): Likewise.
40895 (cgraph_next_function): Likewise.
40896 (cgraph_first_function_with_gimple_body): Likewise.
40897 (cgraph_next_function_with_gimple_body): Likewise.
40898 (cgraph_alias_target): Likewise.
40899 (varpool_alias_target): Likewise.
40900 (cgraph_function_or_thunk_node): Likewise.
40901 (varpool_variable_node): Likewise.
40902 (symtab_real_symbol_p): Likewise.
40903 * cgraphunit.c (referred_to_p): Likewise.
40904 (analyze_functions): Likewise.
40905 (handle_alias_pairs): Likewise.
40906 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
40907 * gimple-ssa.h (gimple_vuse_op): Likewise.
40908 (gimple_vdef_op): Likewise.
40909 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
40910 * gimple.c (gimple_build_asm_1): Likewise.
40911 (gimple_build_try): Likewise.
40912 (gimple_build_resx): Likewise.
40913 (gimple_build_eh_dispatch): Likewise.
40914 (gimple_build_omp_for): Likewise.
40915 (gimple_omp_for_set_clauses): Likewise.
40917 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
40918 (is_a_helper <gimple_statement_asm *>::test): ...this.
40919 (is_a_helper <gimple_statement_bind>::test): Convert to...
40920 (is_a_helper <gimple_statement_bind *>::test): ...this.
40921 (is_a_helper <gimple_statement_call>::test): Convert to...
40922 (is_a_helper <gimple_statement_call *>::test): ...this.
40923 (is_a_helper <gimple_statement_catch>::test): Convert to...
40924 (is_a_helper <gimple_statement_catch *>::test): ...this.
40925 (is_a_helper <gimple_statement_resx>::test): Convert to...
40926 (is_a_helper <gimple_statement_resx *>::test): ...this.
40927 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
40928 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
40929 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
40930 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
40931 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
40932 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
40933 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
40934 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
40935 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
40936 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
40937 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
40938 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
40939 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
40940 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
40941 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
40942 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
40943 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
40944 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
40945 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
40946 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
40947 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
40948 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
40949 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
40950 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
40951 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
40952 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
40953 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
40954 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
40955 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
40956 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
40957 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
40958 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
40959 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
40960 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
40961 (is_a_helper <gimple_statement_phi>::test): Convert to...
40962 (is_a_helper <gimple_statement_phi *>::test): ...this.
40963 (is_a_helper <gimple_statement_transaction>::test): Convert to...
40964 (is_a_helper <gimple_statement_transaction *>::test): ...this.
40965 (is_a_helper <gimple_statement_try>::test): Convert to...
40966 (is_a_helper <gimple_statement_try *>::test): ...this.
40967 (is_a_helper <gimple_statement_wce>::test): Convert to...
40968 (is_a_helper <gimple_statement_wce *>::test): ...this.
40969 (is_a_helper <const gimple_statement_asm>::test): Convert to...
40970 (is_a_helper <const gimple_statement_asm *>::test): ...this.
40971 (is_a_helper <const gimple_statement_bind>::test): Convert to...
40972 (is_a_helper <const gimple_statement_bind *>::test): ...this.
40973 (is_a_helper <const gimple_statement_call>::test): Convert to...
40974 (is_a_helper <const gimple_statement_call *>::test): ...this.
40975 (is_a_helper <const gimple_statement_catch>::test): Convert to...
40976 (is_a_helper <const gimple_statement_catch *>::test): ...this.
40977 (is_a_helper <const gimple_statement_resx>::test): Convert to...
40978 (is_a_helper <const gimple_statement_resx *>::test): ...this.
40979 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
40980 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
40981 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
40982 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
40983 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
40985 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
40987 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
40989 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
40991 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
40992 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
40993 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
40995 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
40996 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
40998 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
40999 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
41000 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
41001 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
41002 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
41003 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
41005 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
41006 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
41007 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
41008 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
41010 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
41011 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
41012 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
41013 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
41014 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
41015 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
41016 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
41017 (is_a_helper <const gimple_statement_phi>::test): Convert to...
41018 (is_a_helper <const gimple_statement_phi *>::test): ...this.
41019 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
41020 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
41021 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
41022 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
41023 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
41024 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
41025 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
41027 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
41029 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
41030 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
41032 (gimple_use_ops): Update for removal of implicit pointer from the
41034 (gimple_set_use_ops): Likewise.
41035 (gimple_vuse): Likewise.
41036 (gimple_vdef): Likewise.
41037 (gimple_vuse_ptr): Likewise.
41038 (gimple_vdef_ptr): Likewise.
41039 (gimple_set_vuse): Likewise.
41040 (gimple_set_vdef): Likewise.
41041 (gimple_omp_return_set_lhs): Likewise.
41042 (gimple_omp_return_lhs): Likewise.
41043 (gimple_omp_return_lhs_ptr): Likewise.
41044 (gimple_call_fntype): Likewise.
41045 (gimple_call_set_fntype): Likewise.
41046 (gimple_call_set_internal_fn): Likewise.
41047 (gimple_call_use_set): Likewise.
41048 (gimple_call_clobber_set): Likewise.
41049 (gimple_bind_vars): Likewise.
41050 (gimple_bind_set_vars): Likewise.
41051 (gimple_bind_body_ptr): Likewise.
41052 (gimple_bind_set_body): Likewise.
41053 (gimple_bind_add_stmt): Likewise.
41054 (gimple_bind_block): Likewise.
41055 (gimple_bind_set_block): Likewise.
41056 (gimple_asm_ninputs): Likewise.
41057 (gimple_asm_noutputs): Likewise.
41058 (gimple_asm_nclobbers): Likewise.
41059 (gimple_asm_nlabels): Likewise.
41060 (gimple_asm_input_op): Likewise.
41061 (gimple_asm_input_op_ptr): Likewise.
41062 (gimple_asm_output_op): Likewise.
41063 (gimple_asm_output_op_ptr): Likewise.
41064 (gimple_asm_set_output_op): Likewise.
41065 (gimple_asm_clobber_op): Likewise.
41066 (gimple_asm_set_clobber_op): Likewise.
41067 (gimple_asm_label_op): Likewise.
41068 (gimple_asm_set_label_op): Likewise.
41069 (gimple_asm_string): Likewise.
41070 (gimple_catch_types): Likewise.
41071 (gimple_catch_types_ptr): Likewise.
41072 (gimple_catch_handler_ptr): Likewise.
41073 (gimple_catch_set_types): Likewise.
41074 (gimple_catch_set_handler): Likewise.
41075 (gimple_eh_filter_types): Likewise.
41076 (gimple_eh_filter_types_ptr): Likewise.
41077 (gimple_eh_filter_failure_ptr): Likewise.
41078 (gimple_eh_filter_set_types): Likewise.
41079 (gimple_eh_filter_set_failure): Likewise.
41080 (gimple_eh_must_not_throw_fndecl): Likewise.
41081 (gimple_eh_must_not_throw_set_fndecl): Likewise.
41082 (gimple_eh_else_n_body_ptr): Likewise.
41083 (gimple_eh_else_e_body_ptr): Likewise.
41084 (gimple_eh_else_set_n_body): Likewise.
41085 (gimple_eh_else_set_e_body): Likewise.
41086 (gimple_try_eval_ptr): Likewise.
41087 (gimple_try_cleanup_ptr): Likewise.
41088 (gimple_try_set_eval): Likewise.
41089 (gimple_try_set_cleanup): Likewise.
41090 (gimple_wce_cleanup_ptr): Likewise.
41091 (gimple_wce_set_cleanup): Likewise.
41092 (gimple_phi_capacity): Likewise.
41093 (gimple_phi_num_args): Likewise.
41094 (gimple_phi_result): Likewise.
41095 (gimple_phi_result_ptr): Likewise.
41096 (gimple_phi_set_result): Likewise.
41097 (gimple_phi_arg): Likewise.
41098 (gimple_phi_set_arg): Likewise.
41099 (gimple_resx_region): Likewise.
41100 (gimple_resx_set_region): Likewise.
41101 (gimple_eh_dispatch_region): Likewise.
41102 (gimple_eh_dispatch_set_region): Likewise.
41103 (gimple_omp_critical_name): Likewise.
41104 (gimple_omp_critical_name_ptr): Likewise.
41105 (gimple_omp_critical_set_name): Likewise.
41106 (gimple_omp_for_clauses): Likewise.
41107 (gimple_omp_for_clauses_ptr): Likewise.
41108 (gimple_omp_for_set_clauses): Likewise.
41109 (gimple_omp_for_collapse): Likewise.
41110 (gimple_omp_for_index): Likewise.
41111 (gimple_omp_for_index_ptr): Likewise.
41112 (gimple_omp_for_set_index): Likewise.
41113 (gimple_omp_for_initial): Likewise.
41114 (gimple_omp_for_initial_ptr): Likewise.
41115 (gimple_omp_for_set_initial): Likewise.
41116 (gimple_omp_for_final): Likewise.
41117 (gimple_omp_for_final_ptr): Likewise.
41118 (gimple_omp_for_set_final): Likewise.
41119 (gimple_omp_for_incr): Likewise.
41120 (gimple_omp_for_incr_ptr): Likewise.
41121 (gimple_omp_for_set_incr): Likewise.
41122 (gimple_omp_for_pre_body_ptr): Likewise.
41123 (gimple_omp_for_set_pre_body): Likewise.
41124 (gimple_omp_parallel_clauses): Likewise.
41125 (gimple_omp_parallel_clauses_ptr): Likewise.
41126 (gimple_omp_parallel_set_clauses): Likewise.
41127 (gimple_omp_parallel_child_fn): Likewise.
41128 (gimple_omp_parallel_child_fn_ptr): Likewise.
41129 (gimple_omp_parallel_set_child_fn): Likewise.
41130 (gimple_omp_parallel_data_arg): Likewise.
41131 (gimple_omp_parallel_data_arg_ptr): Likewise.
41132 (gimple_omp_parallel_set_data_arg): Likewise.
41133 (gimple_omp_task_clauses): Likewise.
41134 (gimple_omp_task_clauses_ptr): Likewise.
41135 (gimple_omp_task_set_clauses): Likewise.
41136 (gimple_omp_task_child_fn): Likewise.
41137 (gimple_omp_task_child_fn_ptr): Likewise.
41138 (gimple_omp_task_set_child_fn): Likewise.
41139 (gimple_omp_task_data_arg): Likewise.
41140 (gimple_omp_task_data_arg_ptr): Likewise.
41141 (gimple_omp_task_set_data_arg): Likewise.
41142 (gimple_omp_taskreg_clauses): Likewise.
41143 (gimple_omp_taskreg_clauses_ptr): Likewise.
41144 (gimple_omp_taskreg_set_clauses): Likewise.
41145 (gimple_omp_taskreg_child_fn): Likewise.
41146 (gimple_omp_taskreg_child_fn_ptr): Likewise.
41147 (gimple_omp_taskreg_set_child_fn): Likewise.
41148 (gimple_omp_taskreg_data_arg): Likewise.
41149 (gimple_omp_taskreg_data_arg_ptr): Likewise.
41150 (gimple_omp_taskreg_set_data_arg): Likewise.
41151 (gimple_omp_task_copy_fn): Likewise.
41152 (gimple_omp_task_copy_fn_ptr): Likewise.
41153 (gimple_omp_task_set_copy_fn): Likewise.
41154 (gimple_omp_task_arg_size): Likewise.
41155 (gimple_omp_task_arg_size_ptr): Likewise.
41156 (gimple_omp_task_set_arg_size): Likewise.
41157 (gimple_omp_task_arg_align): Likewise.
41158 (gimple_omp_task_arg_align_ptr): Likewise.
41159 (gimple_omp_task_set_arg_align): Likewise.
41160 (gimple_omp_single_clauses): Likewise.
41161 (gimple_omp_single_clauses_ptr): Likewise.
41162 (gimple_omp_single_set_clauses): Likewise.
41163 (gimple_omp_target_clauses): Likewise.
41164 (gimple_omp_target_clauses_ptr): Likewise.
41165 (gimple_omp_target_set_clauses): Likewise.
41166 (gimple_omp_target_child_fn): Likewise.
41167 (gimple_omp_target_child_fn_ptr): Likewise.
41168 (gimple_omp_target_set_child_fn): Likewise.
41169 (gimple_omp_target_data_arg): Likewise.
41170 (gimple_omp_target_data_arg_ptr): Likewise.
41171 (gimple_omp_target_set_data_arg): Likewise.
41172 (gimple_omp_teams_clauses): Likewise.
41173 (gimple_omp_teams_clauses_ptr): Likewise.
41174 (gimple_omp_teams_set_clauses): Likewise.
41175 (gimple_omp_sections_clauses): Likewise.
41176 (gimple_omp_sections_clauses_ptr): Likewise.
41177 (gimple_omp_sections_set_clauses): Likewise.
41178 (gimple_omp_sections_control): Likewise.
41179 (gimple_omp_sections_control_ptr): Likewise.
41180 (gimple_omp_sections_set_control): Likewise.
41181 (gimple_omp_for_set_cond): Likewise.
41182 (gimple_omp_for_cond): Likewise.
41183 (gimple_omp_atomic_store_set_val): Likewise.
41184 (gimple_omp_atomic_store_val): Likewise.
41185 (gimple_omp_atomic_store_val_ptr): Likewise.
41186 (gimple_omp_atomic_load_set_lhs): Likewise.
41187 (gimple_omp_atomic_load_lhs): Likewise.
41188 (gimple_omp_atomic_load_lhs_ptr): Likewise.
41189 (gimple_omp_atomic_load_set_rhs): Likewise.
41190 (gimple_omp_atomic_load_rhs): Likewise.
41191 (gimple_omp_atomic_load_rhs_ptr): Likewise.
41192 (gimple_omp_continue_control_def): Likewise.
41193 (gimple_omp_continue_control_def_ptr): Likewise.
41194 (gimple_omp_continue_set_control_def): Likewise.
41195 (gimple_omp_continue_control_use): Likewise.
41196 (gimple_omp_continue_control_use_ptr): Likewise.
41197 (gimple_omp_continue_set_control_use): Likewise.
41198 (gimple_transaction_body_ptr): Likewise.
41199 (gimple_transaction_label): Likewise.
41200 (gimple_transaction_label_ptr): Likewise.
41201 (gimple_transaction_set_body): Likewise.
41202 (gimple_transaction_set_label): Likewise.
41204 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
41205 * ipa-inline-analysis.c (inline_write_summary): Likewise.
41206 * ipa-ref.c (ipa_record_reference): Likewise.
41207 * ipa-reference.c (analyze_function): Likewise.
41208 (ipa_reference_write_optimization_summary): Likewise.
41209 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
41210 (address_taken_from_non_vtable_p): Likewise.
41211 (comdat_can_be_unshared_p_1): Likewise.
41212 * lto-cgraph.c (lto_output_ref): Likewise.
41213 (add_references): Likewise.
41214 (compute_ltrans_boundary): Likewise.
41215 (output_symtab): Likewise.
41216 (input_ref): Likewise.
41217 (input_cgraph_1): Likewise.
41218 (output_cgraph_opt_summary): Likewise.
41219 * lto-streamer-out.c (lto_output): Likewise.
41220 (output_symbol_p): Likewise.
41221 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
41222 (lsei_start_function_in_partition): Likewise.
41223 (lsei_next_variable_in_partition): Likewise.
41224 (lsei_start_variable_in_partition): Likewise.
41225 * symtab.c (insert_to_assembler_name_hash): Likewise.
41226 (unlink_from_assembler_name_hash): Likewise.
41227 (symtab_unregister_node): Likewise.
41228 (symtab_remove_node): Likewise.
41229 (dump_symtab_node): Likewise.
41230 (verify_symtab_base): Likewise.
41231 (verify_symtab_node): Likewise.
41232 (symtab_make_decl_local): Likewise.
41233 (symtab_alias_ultimate_target): Likewise.
41234 (symtab_resolve_alias): Likewise.
41235 (symtab_get_symbol_partitioning_class): Likewise.
41236 * tree-phinodes.c (allocate_phi_node): Likewise.
41237 (reserve_phi_args_for_new_edge): Likewise.
41238 (remove_phi_args): Likewise.
41239 * varpool.c (varpool_node_for_asm): Likewise.
41240 (varpool_remove_unreferenced_decls): Likewise.
41242 2014-04-23 Jeff Law <law@redhat.com>
41244 PR tree-optimization/60902
41245 * tree-ssa-threadedge.c
41246 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
41247 invalidate outputs from statements that do not produce useful
41248 outputs for threading.
41250 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
41252 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
41253 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
41254 machine descriptions for Stack Smashing Protector.
41256 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
41258 * aarch64.md (<optab>_rol<mode>3): New pattern.
41259 (<optab>_rolsi3_uxtw): Likewise.
41260 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
41262 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
41264 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
41265 (arm_cortex_a12_tune): Likewise.
41267 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41269 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
41271 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41273 * config/arm/arm.md (arm_rev16si2): New pattern.
41274 (arm_rev16si2_alt): Likewise.
41275 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
41277 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41279 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
41280 (rev16<mode>2_alt): Likewise.
41281 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
41282 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
41283 (aarch_rev16_shleft_mask_imm_p): Likewise.
41284 (aarch_rev16_p_1): Likewise.
41285 (aarch_rev16_p): Likewise.
41286 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
41287 (aarch_rev16_shright_mask_imm_p): Likewise.
41288 (aarch_rev16_shleft_mask_imm_p): Likewise.
41290 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41292 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
41293 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
41295 (cortex_a53_extra_costs): Likewise.
41296 (cortex_a57_extra_costs): Likewise.
41297 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
41298 (cortexa7_extra_costs): Likewise.
41299 (cortexa8_extra_costs): Likewise.
41300 (cortexa12_extra_costs): Likewise.
41301 (cortexa15_extra_costs): Likewise.
41302 (v7m_extra_costs): Likewise.
41303 (arm_new_rtx_costs): Handle BSWAP.
41305 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41307 * config/arm/arm.c (cortexa8_extra_costs): New table.
41308 (arm_cortex_a8_tune): New tuning struct.
41309 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
41311 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41313 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
41315 2014-04-23 Richard Biener <rguenther@suse.de>
41317 * Makefile.in (OBJS): Remove loop-unswitch.o.
41318 * tree-pass.h (make_pass_rtl_unswitch): Remove.
41319 * passes.def (pass_rtl_unswitch): Likewise.
41320 * loop-init.c (gate_rtl_unswitch): Likewise.
41321 (rtl_unswitch): Likewise.
41322 (pass_data_rtl_unswitch): Likewise.
41323 (pass_rtl_unswitch): Likewise.
41324 (make_pass_rtl_unswitch): Likewise.
41325 * rtl.h (reversed_condition): Likewise.
41326 (compare_and_jump_seq): Likewise.
41327 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
41329 * loop-unroll.c (compare_and_jump_seq): Likewise.
41331 2014-04-23 Richard Biener <rguenther@suse.de>
41333 PR tree-optimization/60903
41334 * tree-ssa-loop-im.c (analyze_memory_references): Remove
41335 commented code block.
41336 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
41337 loop flags to newly created BBs and edges.
41339 2014-04-23 Nick Clifton <nickc@redhat.com>
41341 * config/msp430/msp430.c (msp430_handle_option): Move function
41343 (msp430_option_override): Simplify mcu and mcpu option handling.
41344 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
41345 support for -mhwmult command line option.
41346 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
41347 -mhwmult command line option.
41348 (msp430_hwmult_enabled): Delete.
41349 (msp43o_output_labelref): Add support for -mhwmult command line option.
41350 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
41351 (umulsidi3): Likewise.
41352 * config/msp430/msp430.opt (mmcu): Add Report attribute.
41353 (mcpu, mlarge, msmall): Likewise.
41354 (mhwmult): New option.
41355 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
41357 (msp430_is_f5_mcu): Remove prototype.
41358 (msp430_use_f5_series_hwmult): Add prototype.
41359 * config/msp430/msp430-opts.h: New file.
41360 * common/config/msp430: New directory.
41361 * common/config/msp430/msp430-common.c: New file.
41362 * config.gcc (msp430): Remove target_has_targetm_common.
41363 * doc/invoke.texi: Document -mhwmult command line option.
41365 2014-04-23 Nick Clifton <nickc@redhat.com>
41367 * config/i386/cygwin.h (ENDFILE_SPEC): Include
41368 default-manifest.o if it can be found in the search path.
41369 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
41371 2014-04-23 Terry Guo <terry.guo@arm.com>
41373 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
41375 2014-04-23 Richard Biener <rguenther@suse.de>
41377 PR middle-end/60895
41378 * tree-inline.c (declare_return_variable): Use mark_addressable.
41380 2014-04-23 Richard Biener <rguenther@suse.de>
41382 PR middle-end/60891
41383 * loop-init.c (loop_optimizer_init): Make sure to apply
41384 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
41386 2014-04-22 Jakub Jelinek <jakub@redhat.com>
41389 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
41391 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
41392 if flag_sanitize_undefined_trap_on_error.
41393 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
41394 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
41395 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
41396 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
41397 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
41398 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
41399 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
41400 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
41401 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
41402 * ubsan.c (ubsan_instrument_unreachable): Return
41403 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
41404 (ubsan_expand_null_ifn): Emit __builtin_trap ()
41405 if flag_sanitize_undefined_trap_on_error and
41406 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
41407 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
41408 instrument_bool_enum_load): Emit __builtin_trap () if
41409 flag_sanitize_undefined_trap_on_error and
41410 __builtin_handle_*_abort () if !flag_sanitize_recover.
41411 * doc/invoke.texi (-fsanitize-recover,
41412 -fsanitize-undefined-trap-on-error): Document.
41414 2014-04-22 Christian Bruel <christian.bruel@st.com>
41416 * config/sh/sh.md (mov<mode>): Replace movQIHI.
41417 Force immediates to SImode.
41419 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
41421 * config/nios2/nios2.md (UNSPEC_ROUND): New.
41422 (lroundsfsi2): New.
41423 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
41424 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
41425 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
41426 (nios2_fpu_insn): Add entry for round.
41427 (N2FPU_NO_ERRNO_P): Define.
41428 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
41430 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
41432 2014-04-22 Richard Henderson <rth@redhat.com>
41434 * config/aarch64/aarch64 (addti3, subti3): New expanders.
41435 (add<GPI>3_compare0): Remove leading * from name.
41436 (add<GPI>3_carryin): Likewise.
41437 (sub<GPI>3_compare0): Likewise.
41438 (sub<GPI>3_carryin): Likewise.
41439 (<su_optab>mulditi3): New expander.
41440 (multi3): New expander.
41441 (madd<GPI>): Remove leading * from name.
41443 2014-04-22 Martin Jambor <mjambor@suse.cz>
41445 * cgraphclones.c (cgraph_function_versioning): Copy
41446 ipa_transforms_to_apply instead of asserting it is empty.
41448 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
41451 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
41452 on count_exp to get mode.
41454 2014-04-22 Andrew Pinski <apinski@cavium.com>
41456 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
41457 Handle TLS for ILP32.
41458 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
41459 (tlsie_small_<mode>): this and handle PTR.
41460 (tlsie_small_sidi): New pattern.
41461 (tlsle_small): Change to an expand to handle ILP32.
41462 (tlsle_small_<mode>): New pattern.
41463 (tlsdesc_small): Rename to ...
41464 (tlsdesc_small_<mode>): this and handle PTR.
41466 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41468 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
41470 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41472 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
41473 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
41474 (aarch64_types_signed_poly_qualifiers): Likewise.
41475 (aarch64_types_unsigned_signed_qualifiers): Likewise.
41476 (aarch64_types_poly_signed_qualifiers): Likewise.
41477 (TYPES_REINTERP_SS): Type macro added.
41478 (TYPES_REINTERP_SU): Likewise.
41479 (TYPES_REINTERP_SP): Likewise.
41480 (TYPES_REINTERP_US): Likewise.
41481 (TYPES_REINTERP_PS): Likewise.
41482 (aarch64_fold_builtin): New expression folding added.
41483 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
41484 Declarations removed.
41485 (REINTERP_SS): Declarations added.
41486 (REINTERP_US): Likewise.
41487 (REINTERP_PS): Likewise.
41488 (REINTERP_SU): Likewise.
41489 (REINTERP_SP): Likewise.
41490 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
41491 (vreinterpretq_p8_f64): Likewise.
41492 (vreinterpret_p16_f64): Likewise.
41493 (vreinterpretq_p16_f64): Likewise.
41494 (vreinterpret_f32_f64): Likewise.
41495 (vreinterpretq_f32_f64): Likewise.
41496 (vreinterpret_f64_f32): Likewise.
41497 (vreinterpret_f64_p8): Likewise.
41498 (vreinterpret_f64_p16): Likewise.
41499 (vreinterpret_f64_s8): Likewise.
41500 (vreinterpret_f64_s16): Likewise.
41501 (vreinterpret_f64_s32): Likewise.
41502 (vreinterpret_f64_s64): Likewise.
41503 (vreinterpret_f64_u8): Likewise.
41504 (vreinterpret_f64_u16): Likewise.
41505 (vreinterpret_f64_u32): Likewise.
41506 (vreinterpret_f64_u64): Likewise.
41507 (vreinterpretq_f64_f32): Likewise.
41508 (vreinterpretq_f64_p8): Likewise.
41509 (vreinterpretq_f64_p16): Likewise.
41510 (vreinterpretq_f64_s8): Likewise.
41511 (vreinterpretq_f64_s16): Likewise.
41512 (vreinterpretq_f64_s32): Likewise.
41513 (vreinterpretq_f64_s64): Likewise.
41514 (vreinterpretq_f64_u8): Likewise.
41515 (vreinterpretq_f64_u16): Likewise.
41516 (vreinterpretq_f64_u32): Likewise.
41517 (vreinterpretq_f64_u64): Likewise.
41518 (vreinterpret_s64_f64): Likewise.
41519 (vreinterpretq_s64_f64): Likewise.
41520 (vreinterpret_u64_f64): Likewise.
41521 (vreinterpretq_u64_f64): Likewise.
41522 (vreinterpret_s8_f64): Likewise.
41523 (vreinterpretq_s8_f64): Likewise.
41524 (vreinterpret_s16_f64): Likewise.
41525 (vreinterpretq_s16_f64): Likewise.
41526 (vreinterpret_s32_f64): Likewise.
41527 (vreinterpretq_s32_f64): Likewise.
41528 (vreinterpret_u8_f64): Likewise.
41529 (vreinterpretq_u8_f64): Likewise.
41530 (vreinterpret_u16_f64): Likewise.
41531 (vreinterpretq_u16_f64): Likewise.
41532 (vreinterpret_u32_f64): Likewise.
41533 (vreinterpretq_u32_f64): Likewise.
41535 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41537 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
41538 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
41539 (vreinterpret_p8_s8): Likewise.
41540 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
41541 (vreinterpret_p8_s16): Likewise.
41542 (vreinterpret_p8_s32): Likewise.
41543 (vreinterpret_p8_s64): Likewise.
41544 (vreinterpret_p8_f32): Likewise.
41545 (vreinterpret_p8_u8): Likewise.
41546 (vreinterpret_p8_u16): Likewise.
41547 (vreinterpret_p8_u32): Likewise.
41548 (vreinterpret_p8_u64): Likewise.
41549 (vreinterpret_p8_p16): Likewise.
41550 (vreinterpretq_p8_s8): Likewise.
41551 (vreinterpretq_p8_s16): Likewise.
41552 (vreinterpretq_p8_s32): Likewise.
41553 (vreinterpretq_p8_s64): Likewise.
41554 (vreinterpretq_p8_f32): Likewise.
41555 (vreinterpretq_p8_u8): Likewise.
41556 (vreinterpretq_p8_u16): Likewise.
41557 (vreinterpretq_p8_u32): Likewise.
41558 (vreinterpretq_p8_u64): Likewise.
41559 (vreinterpretq_p8_p16): Likewise.
41560 (vreinterpret_p16_s8): Likewise.
41561 (vreinterpret_p16_s16): Likewise.
41562 (vreinterpret_p16_s32): Likewise.
41563 (vreinterpret_p16_s64): Likewise.
41564 (vreinterpret_p16_f32): Likewise.
41565 (vreinterpret_p16_u8): Likewise.
41566 (vreinterpret_p16_u16): Likewise.
41567 (vreinterpret_p16_u32): Likewise.
41568 (vreinterpret_p16_u64): Likewise.
41569 (vreinterpret_p16_p8): Likewise.
41570 (vreinterpretq_p16_s8): Likewise.
41571 (vreinterpretq_p16_s16): Likewise.
41572 (vreinterpretq_p16_s32): Likewise.
41573 (vreinterpretq_p16_s64): Likewise.
41574 (vreinterpretq_p16_f32): Likewise.
41575 (vreinterpretq_p16_u8): Likewise.
41576 (vreinterpretq_p16_u16): Likewise.
41577 (vreinterpretq_p16_u32): Likewise.
41578 (vreinterpretq_p16_u64): Likewise.
41579 (vreinterpretq_p16_p8): Likewise.
41580 (vreinterpret_f32_s8): Likewise.
41581 (vreinterpret_f32_s16): Likewise.
41582 (vreinterpret_f32_s32): Likewise.
41583 (vreinterpret_f32_s64): Likewise.
41584 (vreinterpret_f32_u8): Likewise.
41585 (vreinterpret_f32_u16): Likewise.
41586 (vreinterpret_f32_u32): Likewise.
41587 (vreinterpret_f32_u64): Likewise.
41588 (vreinterpret_f32_p8): Likewise.
41589 (vreinterpret_f32_p16): Likewise.
41590 (vreinterpretq_f32_s8): Likewise.
41591 (vreinterpretq_f32_s16): Likewise.
41592 (vreinterpretq_f32_s32): Likewise.
41593 (vreinterpretq_f32_s64): Likewise.
41594 (vreinterpretq_f32_u8): Likewise.
41595 (vreinterpretq_f32_u16): Likewise.
41596 (vreinterpretq_f32_u32): Likewise.
41597 (vreinterpretq_f32_u64): Likewise.
41598 (vreinterpretq_f32_p8): Likewise.
41599 (vreinterpretq_f32_p16): Likewise.
41600 (vreinterpret_s64_s8): Likewise.
41601 (vreinterpret_s64_s16): Likewise.
41602 (vreinterpret_s64_s32): Likewise.
41603 (vreinterpret_s64_f32): Likewise.
41604 (vreinterpret_s64_u8): Likewise.
41605 (vreinterpret_s64_u16): Likewise.
41606 (vreinterpret_s64_u32): Likewise.
41607 (vreinterpret_s64_u64): Likewise.
41608 (vreinterpret_s64_p8): Likewise.
41609 (vreinterpret_s64_p16): Likewise.
41610 (vreinterpretq_s64_s8): Likewise.
41611 (vreinterpretq_s64_s16): Likewise.
41612 (vreinterpretq_s64_s32): Likewise.
41613 (vreinterpretq_s64_f32): Likewise.
41614 (vreinterpretq_s64_u8): Likewise.
41615 (vreinterpretq_s64_u16): Likewise.
41616 (vreinterpretq_s64_u32): Likewise.
41617 (vreinterpretq_s64_u64): Likewise.
41618 (vreinterpretq_s64_p8): Likewise.
41619 (vreinterpretq_s64_p16): Likewise.
41620 (vreinterpret_u64_s8): Likewise.
41621 (vreinterpret_u64_s16): Likewise.
41622 (vreinterpret_u64_s32): Likewise.
41623 (vreinterpret_u64_s64): Likewise.
41624 (vreinterpret_u64_f32): Likewise.
41625 (vreinterpret_u64_u8): Likewise.
41626 (vreinterpret_u64_u16): Likewise.
41627 (vreinterpret_u64_u32): Likewise.
41628 (vreinterpret_u64_p8): Likewise.
41629 (vreinterpret_u64_p16): Likewise.
41630 (vreinterpretq_u64_s8): Likewise.
41631 (vreinterpretq_u64_s16): Likewise.
41632 (vreinterpretq_u64_s32): Likewise.
41633 (vreinterpretq_u64_s64): Likewise.
41634 (vreinterpretq_u64_f32): Likewise.
41635 (vreinterpretq_u64_u8): Likewise.
41636 (vreinterpretq_u64_u16): Likewise.
41637 (vreinterpretq_u64_u32): Likewise.
41638 (vreinterpretq_u64_p8): Likewise.
41639 (vreinterpretq_u64_p16): Likewise.
41640 (vreinterpret_s8_s16): Likewise.
41641 (vreinterpret_s8_s32): Likewise.
41642 (vreinterpret_s8_s64): Likewise.
41643 (vreinterpret_s8_f32): Likewise.
41644 (vreinterpret_s8_u8): Likewise.
41645 (vreinterpret_s8_u16): Likewise.
41646 (vreinterpret_s8_u32): Likewise.
41647 (vreinterpret_s8_u64): Likewise.
41648 (vreinterpret_s8_p8): Likewise.
41649 (vreinterpret_s8_p16): Likewise.
41650 (vreinterpretq_s8_s16): Likewise.
41651 (vreinterpretq_s8_s32): Likewise.
41652 (vreinterpretq_s8_s64): Likewise.
41653 (vreinterpretq_s8_f32): Likewise.
41654 (vreinterpretq_s8_u8): Likewise.
41655 (vreinterpretq_s8_u16): Likewise.
41656 (vreinterpretq_s8_u32): Likewise.
41657 (vreinterpretq_s8_u64): Likewise.
41658 (vreinterpretq_s8_p8): Likewise.
41659 (vreinterpretq_s8_p16): Likewise.
41660 (vreinterpret_s16_s8): Likewise.
41661 (vreinterpret_s16_s32): Likewise.
41662 (vreinterpret_s16_s64): Likewise.
41663 (vreinterpret_s16_f32): Likewise.
41664 (vreinterpret_s16_u8): Likewise.
41665 (vreinterpret_s16_u16): Likewise.
41666 (vreinterpret_s16_u32): Likewise.
41667 (vreinterpret_s16_u64): Likewise.
41668 (vreinterpret_s16_p8): Likewise.
41669 (vreinterpret_s16_p16): Likewise.
41670 (vreinterpretq_s16_s8): Likewise.
41671 (vreinterpretq_s16_s32): Likewise.
41672 (vreinterpretq_s16_s64): Likewise.
41673 (vreinterpretq_s16_f32): Likewise.
41674 (vreinterpretq_s16_u8): Likewise.
41675 (vreinterpretq_s16_u16): Likewise.
41676 (vreinterpretq_s16_u32): Likewise.
41677 (vreinterpretq_s16_u64): Likewise.
41678 (vreinterpretq_s16_p8): Likewise.
41679 (vreinterpretq_s16_p16): Likewise.
41680 (vreinterpret_s32_s8): Likewise.
41681 (vreinterpret_s32_s16): Likewise.
41682 (vreinterpret_s32_s64): Likewise.
41683 (vreinterpret_s32_f32): Likewise.
41684 (vreinterpret_s32_u8): Likewise.
41685 (vreinterpret_s32_u16): Likewise.
41686 (vreinterpret_s32_u32): Likewise.
41687 (vreinterpret_s32_u64): Likewise.
41688 (vreinterpret_s32_p8): Likewise.
41689 (vreinterpret_s32_p16): Likewise.
41690 (vreinterpretq_s32_s8): Likewise.
41691 (vreinterpretq_s32_s16): Likewise.
41692 (vreinterpretq_s32_s64): Likewise.
41693 (vreinterpretq_s32_f32): Likewise.
41694 (vreinterpretq_s32_u8): Likewise.
41695 (vreinterpretq_s32_u16): Likewise.
41696 (vreinterpretq_s32_u32): Likewise.
41697 (vreinterpretq_s32_u64): Likewise.
41698 (vreinterpretq_s32_p8): Likewise.
41699 (vreinterpretq_s32_p16): Likewise.
41700 (vreinterpret_u8_s8): Likewise.
41701 (vreinterpret_u8_s16): Likewise.
41702 (vreinterpret_u8_s32): Likewise.
41703 (vreinterpret_u8_s64): Likewise.
41704 (vreinterpret_u8_f32): Likewise.
41705 (vreinterpret_u8_u16): Likewise.
41706 (vreinterpret_u8_u32): Likewise.
41707 (vreinterpret_u8_u64): Likewise.
41708 (vreinterpret_u8_p8): Likewise.
41709 (vreinterpret_u8_p16): Likewise.
41710 (vreinterpretq_u8_s8): Likewise.
41711 (vreinterpretq_u8_s16): Likewise.
41712 (vreinterpretq_u8_s32): Likewise.
41713 (vreinterpretq_u8_s64): Likewise.
41714 (vreinterpretq_u8_f32): Likewise.
41715 (vreinterpretq_u8_u16): Likewise.
41716 (vreinterpretq_u8_u32): Likewise.
41717 (vreinterpretq_u8_u64): Likewise.
41718 (vreinterpretq_u8_p8): Likewise.
41719 (vreinterpretq_u8_p16): Likewise.
41720 (vreinterpret_u16_s8): Likewise.
41721 (vreinterpret_u16_s16): Likewise.
41722 (vreinterpret_u16_s32): Likewise.
41723 (vreinterpret_u16_s64): Likewise.
41724 (vreinterpret_u16_f32): Likewise.
41725 (vreinterpret_u16_u8): Likewise.
41726 (vreinterpret_u16_u32): Likewise.
41727 (vreinterpret_u16_u64): Likewise.
41728 (vreinterpret_u16_p8): Likewise.
41729 (vreinterpret_u16_p16): Likewise.
41730 (vreinterpretq_u16_s8): Likewise.
41731 (vreinterpretq_u16_s16): Likewise.
41732 (vreinterpretq_u16_s32): Likewise.
41733 (vreinterpretq_u16_s64): Likewise.
41734 (vreinterpretq_u16_f32): Likewise.
41735 (vreinterpretq_u16_u8): Likewise.
41736 (vreinterpretq_u16_u32): Likewise.
41737 (vreinterpretq_u16_u64): Likewise.
41738 (vreinterpretq_u16_p8): Likewise.
41739 (vreinterpretq_u16_p16): Likewise.
41740 (vreinterpret_u32_s8): Likewise.
41741 (vreinterpret_u32_s16): Likewise.
41742 (vreinterpret_u32_s32): Likewise.
41743 (vreinterpret_u32_s64): Likewise.
41744 (vreinterpret_u32_f32): Likewise.
41745 (vreinterpret_u32_u8): Likewise.
41746 (vreinterpret_u32_u16): Likewise.
41747 (vreinterpret_u32_u64): Likewise.
41748 (vreinterpret_u32_p8): Likewise.
41749 (vreinterpret_u32_p16): Likewise.
41750 (vreinterpretq_u32_s8): Likewise.
41751 (vreinterpretq_u32_s16): Likewise.
41752 (vreinterpretq_u32_s32): Likewise.
41753 (vreinterpretq_u32_s64): Likewise.
41754 (vreinterpretq_u32_f32): Likewise.
41755 (vreinterpretq_u32_u8): Likewise.
41756 (vreinterpretq_u32_u16): Likewise.
41757 (vreinterpretq_u32_u64): Likewise.
41758 (vreinterpretq_u32_p8): Likewise.
41759 (vreinterpretq_u32_p16): Likewise.
41761 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41763 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
41765 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
41767 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
41768 (vqnegd_s64): Likewise.
41769 (vqabs_s64): Likewise.
41770 (vqabsd_s64): Likewise.
41772 2014-04-22 Richard Henderson <rth@redhat.com>
41774 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
41775 computation to the top of the loop.
41777 2014-04-22 Renlin <renlin.li@arm.com>
41778 Jiong Wang <jiong.wang@arm.com>
41780 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
41781 * config/aarch64/aarch64.c (aarch64_layout_frame)
41782 (aarch64_initial_elimination_offset): Likewise.
41784 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
41786 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
41789 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
41791 * machmode.h (bitwise_mode_for_mode): Declare.
41792 * stor-layout.h (bitwise_type_for_mode): Likewise.
41793 * stor-layout.c (bitwise_mode_for_mode): New function.
41794 (bitwise_type_for_mode): Likewise.
41795 * builtins.c (fold_builtin_memory_op): Use it instead of
41796 int_mode_for_mode and build_nonstandard_integer_type.
41798 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41800 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
41801 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
41802 (*-*-solaris2*): Simplify.
41803 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
41804 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
41805 *-*-solaris2.9* handling.
41807 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
41809 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
41810 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
41811 handling, simplify.
41812 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
41813 * configure: Regenerate.
41815 * config/i386/sol2-9.h: Remove.
41817 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
41818 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
41819 Remove Solaris 9 references.
41821 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
41823 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
41824 (floatuns<GPI:mode><GPF:mode>2): Remove.
41825 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
41826 and floatuns conversions.
41827 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
41828 and floatuns conversions.
41829 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
41830 (w1,w2): New mode attributes for inequal width conversions.
41832 2014-04-22 Renlin Li <Renlin.Li@arm.com>
41834 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
41835 the output asm format.
41837 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
41839 * config/aarch64/aarch64-simd.md
41840 (aarch64_cm<optab>di): Always split.
41841 (*aarch64_cm<optab>di): New.
41842 (aarch64_cmtstdi): Always split.
41843 (*aarch64_cmtstdi): New.
41845 2014-04-22 Jakub Jelinek <jakub@redhat.com>
41847 PR tree-optimization/60823
41848 * omp-low.c (ipa_simd_modify_function_body): Go through
41849 all SSA_NAMEs and for those refering to vector arguments
41850 which are going to be replaced adjust SSA_NAME_VAR and,
41851 if it is a default definition, change it into a non-default
41852 definition assigned at the beginning of function from new_decl.
41853 (ipa_simd_modify_stmt_ops): Rewritten.
41854 * tree-dfa.c (set_ssa_default_def): When removing default def,
41855 check for NULL loc instead of NULL *loc.
41857 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41859 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
41860 restrictions on core registers for DImode values in Thumb2.
41862 2014-04-22 Ian Bolton <ian.bolton@arm.com>
41864 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
41865 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
41867 2014-04-22 Ian Bolton <ian.bolton@arm.com>
41869 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
41870 (*iordi_notzesidi_di): Likewise.
41871 (*iordi_notsesidi_di): Likewise.
41873 2014-04-22 Ian Bolton <ian.bolton@arm.com>
41875 * config/arm/arm-protos.h (tune_params): New struct members.
41876 * config/arm/arm.c: Initialise tune_params per processor.
41877 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
41878 for speed, based on new tune_params.
41880 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41882 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
41883 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
41884 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
41885 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
41886 * config/aarch64/arm_neon.h (vrnd_f64): Added.
41887 (vrnda_f64): Likewise.
41888 (vrndi_f64): Likewise.
41889 (vrndm_f64): Likewise.
41890 (vrndn_f64): Likewise.
41891 (vrndp_f64): Likewise.
41892 (vrndx_f64): Likewise.
41894 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
41896 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
41897 GET_MODE_SIZE argument is enum machine_mode.
41899 2014-04-22 Jakub Jelinek <jakub@redhat.com>
41902 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
41903 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
41905 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
41907 PR middle-end/60281
41908 * asan.c (asan_emit_stack_protection): Force the base to align to
41909 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
41910 appropriate bits if STRICT_ALIGNMENT.
41911 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
41913 (expand_used_vars): Leave a space in the stack frame for alignment
41914 if STRICT_ALIGNMENT.
41916 2014-04-21 David Malcolm <dmalcolm@redhat.com>
41918 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
41920 (gimple_store_p): Likewise.
41921 (gimple_assign_load_p): Likewise.
41922 (gimple_assign_cast_p): Likewise.
41923 (gimple_clobber_p): Likewise.
41925 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
41926 rather than a gimple.
41927 (gimple_assign_cast_p): Likewise.
41929 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
41932 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
41933 If mode is DDmode and TARGET_E500_DOUBLE allow move.
41935 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
41936 more debug information for E500 if -mdebug=reg.
41938 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
41941 * config/i386/i386.c (ix86_expand_builtin)
41942 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
41943 register for target RTX.
41944 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
41946 2014-04-18 Cong Hou <congh@google.com>
41948 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
41949 the widen-mult pattern by handling two operands with different sizes,
41950 and operands whose size is smaller than half of the result type.
41952 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
41954 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
41955 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
41956 (do_estimate_edge_time): Compute it.
41957 * ipa-inline.c (want_inline_small_function_p): Bypass
41958 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
41960 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
41962 * ipa-inline.c (spec_rem): New static variable.
41963 (dump_overall_stats): New function.
41964 (dump_inline_stats): New function.
41966 2014-04-18 Richard Henderson <rth@redhat.com>
41968 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
41969 to GET_MODE_SIZE, not a reg_class_t.
41971 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41973 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
41974 (vsx_xxmrglw_<mode>): Likewise.
41976 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
41979 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
41980 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
41981 (rs6000_init_hard_regno_mode_ok): Likewise.
41983 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
41985 * ipa-inline.c (inline_small_functions): Account only non-cold
41987 * doc/invoke.texi (inline-unit-growth): Update documentation.
41989 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
41991 * config/rs6000/rs6000.md (addti3, subti3): New.
41993 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
41996 * config/i386/i386.c (ix86_expand_clear): Remove outdated
41997 comment. Check optimize_insn_for_size_p instead of
41998 optimize_insn_for_speed_p.
42000 2014-04-17 Martin Jambor <mjambor@suse.cz>
42002 * gimple-iterator.c (gsi_start_edge): New function.
42003 * gimple-iterator.h (gsi_start_edge): Declare.
42004 * tree-sra.c (single_non_eh_succ): New function.
42005 (disqualify_ops_if_throwing_stmt): Renamed to
42006 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
42007 having one non-EH successor BB.
42008 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
42009 generate loads into replacements.
42010 (sra_modify_assign): Likewise and and also use the simple path for
42012 (sra_modify_function_body): Commit statements on edges.
42014 2014-04-17 Richard Biener <rguenther@suse.de>
42016 PR middle-end/60849
42017 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
42018 comparison results and add clarifying comment.
42020 2014-04-17 Jakub Jelinek <jakub@redhat.com>
42022 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
42023 (blank_mode): Initialize it.
42024 (emit_mode_size_inline, emit_mode_nunits_inline,
42025 emit_mode_inner_inline): New functions.
42026 (emit_insn_modes_h): Call them and surround their output with
42027 #if GCC_VERSION >= 4001 ... #endif.
42028 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
42029 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
42030 mode_* arrays if the argument is __builtin_constant_p.
42031 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
42032 is enum machine_mode.
42034 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42036 * passes.c (opt_pass::execute): Adjust.
42037 (pass_manager::execute_pass_mode_switching): Likewise.
42038 (early_local_passes::execute): Likewise.
42039 (execute_one_pass): Pass cfun to the pass's execute method.
42040 * tree-pass.h (opt_pass::execute): Add function * argument.
42041 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
42042 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
42043 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
42044 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
42045 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
42046 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
42047 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
42048 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
42049 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
42050 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
42051 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
42052 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
42053 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
42054 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
42055 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
42056 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
42057 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
42058 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
42059 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
42060 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
42061 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
42062 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
42063 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
42064 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
42065 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
42066 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
42067 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
42068 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
42069 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
42072 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42074 * passes.c (opt_pass::gate): Take function * argument.
42075 (gate_all_early_local_passes): Merge into
42076 (early_local_passes::gate): this.
42077 (gate_all_early_optimizations): Merge into
42078 (all_early_optimizations::gate): this.
42079 (gate_all_optimizations): Mege into
42080 (all_optimizations::gate): this.
42081 (gate_all_optimizations_g): Merge into
42082 (all_optimizations_g::gate): this.
42083 (gate_rest_of_compilation): Mege into
42084 (rest_of_compilation::gate): this.
42085 (gate_postreload): Merge into
42086 (postreload::gate): this.
42087 (dump_one_pass): Pass cfun to the pass's gate method.
42088 (execute_ipa_summary_passes): Likewise.
42089 (execute_one_pass): Likewise.
42090 (ipa_write_summaries_2): Likewise.
42091 (ipa_write_optimization_summaries_1): Likewise.
42092 (ipa_read_summaries_1): Likewise.
42093 (ipa_read_optimization_summaries_1): Likewise.
42094 (execute_ipa_stmt_fixups): Likewise.
42095 * tree-pass.h (opt_pass::gate): Add function * argument.
42096 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
42097 combine-stack-adj.c, combine.c, compare-elim.c,
42098 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
42099 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
42100 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
42101 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
42102 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
42103 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
42104 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
42105 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
42106 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
42107 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
42108 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
42109 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
42110 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
42111 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
42112 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
42113 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
42114 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
42115 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
42116 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
42117 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
42118 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
42119 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
42120 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
42121 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
42122 var-tracking.c, vtable-verify.c, web.c: Adjust.
42124 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42126 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
42127 * configure: Regenerate.
42129 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42131 * passes.c (dump_one_pass): don't check pass->has_gate.
42132 (execute_ipa_summary_passes): Likewise.
42133 (execute_one_pass): Likewise.
42134 (ipa_write_summaries_2): Likewise.
42135 (ipa_write_optimization_summaries_1): Likewise.
42136 (ipa_read_optimization_summaries_1): Likewise.
42137 (execute_ipa_stmt_fixups): Likewise.
42138 * tree-pass.h (pass_data::has_gate): Remove.
42139 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
42140 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
42141 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
42142 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
42143 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
42144 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
42145 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
42146 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
42147 gimple-low.c, gimple-ssa-isolate-paths.c,
42148 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
42149 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
42150 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
42151 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
42152 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
42153 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
42154 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
42155 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
42156 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
42157 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
42158 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
42159 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
42160 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
42161 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
42162 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
42163 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
42164 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
42165 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
42166 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
42167 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
42168 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
42169 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
42172 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42174 * pass_manager.h (pass_manager::register_dump_files_1): Remove
42176 * passes.c (pass_manager::register_dump_files_1): Merge into
42177 (pass_manager::register_dump_files): this, and remove its handling of
42178 properties since the pass always has the properties anyway.
42179 (pass_manager::pass_manager): Adjust.
42181 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42183 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
42184 * passes.c (pass_manager::register_dump_files_1): Remove dead code
42185 dealing with properties.
42186 (pass_manager::register_dump_files): Adjust.
42188 2014-03-20 Mark Wielaard <mjw@redhat.com>
42190 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
42191 then represent the bound as normal constant value.
42193 2014-04-17 Jakub Jelinek <jakub@redhat.com>
42196 Forward port from 4.8 branch
42197 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
42199 * config/i386/bmiintrin.h (_blsi_u32): New.
42200 (_blsi_u64): Ditto.
42201 (_blsr_u32): Ditto.
42202 (_blsr_u64): Ditto.
42203 (_blsmsk_u32): Ditto.
42204 (_blsmsk_u64): Ditto.
42205 (_tzcnt_u32): Ditto.
42206 (_tzcnt_u64): Ditto.
42208 2014-04-17 Kito Cheng <kito@0xlab.org>
42210 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
42212 2014-04-17 Richard Biener <rguenther@suse.de>
42214 PR middle-end/60849
42215 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
42216 boolean results for comparisons.
42218 2014-04-17 Richard Biener <rguenther@suse.de>
42220 PR tree-optimization/60836
42221 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
42222 initial PHI args to be gimple values.
42224 2014-04-17 Richard Biener <rguenther@suse.de>
42226 PR tree-optimization/60841
42227 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
42228 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
42229 of stmts to SLP build.
42230 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
42231 (vect_analyze_slp): Likewise.
42232 (vect_analyze_slp_instance): Likewise.
42233 (vect_build_slp_tree): Limit overall SLP tree growth.
42234 * tree-vectorizer.h (vect_analyze_data_refs,
42235 vect_analyze_slp): Adjust prototypes.
42237 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
42239 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
42242 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
42244 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
42245 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
42246 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
42247 for TARGET_SLOW_PSHUFB
42249 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
42251 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
42252 * config/i386/i386.c (intel_cost): Ditto.
42254 2014-04-17 Joey Ye <joey.ye@arm.com>
42256 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
42258 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
42260 * opts.c (common_handle_option): Disable -fipa-reference coorectly
42261 with -fuse-profile.
42263 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
42265 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
42266 (type_all_derivations_known_p): New predicate.
42267 (type_all_ctors_visible_p): New predicate.
42268 (type_possibly_instantiated_p): New predicate.
42269 (get_odr_type): Compute all_derivations_known.
42270 (dump_odr_type): Dump the flag.
42271 (maybe_record_type): Cleanup.
42272 (record_target_from_binfo): Add bases_to_consider array;
42273 record bases for types w/o instances and skip CXX destructor.
42274 (possible_polymorphic_call_targets_1): Add bases_to_consider
42275 and consider_construction parameters; check if type may have instance.
42276 (get_polymorphic_call_info): Set maybe_in_construction to true
42277 when we know nothing.
42278 (record_targets_from_bases): Skip CXX destructors; they are
42279 never called for types in construction.
42280 (possible_polymorphic_call_targets): Do not record target when
42281 type may not have instance.
42283 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
42286 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
42287 external aliases alive, too.
42289 2014-04-16 Andrew Pinski <apinski@cavium.com>
42291 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
42294 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
42296 * final.c (compute_alignments): Do not apply loop alignment to a block
42297 falling through to the exit.
42299 2014-04-16 Catherine Moore <clm@codesourcery.com>
42301 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
42302 Adjust constraints for microMIPS store patterns.
42304 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
42306 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
42308 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
42310 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
42311 (append_use): Run at -O0.
42312 (append_vdef): Likewise.
42313 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
42314 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
42316 2014-04-16 Jakub Jelinek <jakub@redhat.com>
42318 PR tree-optimization/60844
42319 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
42320 (propagate_op_to_single_use, remove_visited_stmt_chain,
42321 linearize_expr, repropagate_negates, reassociate_bb): Use it
42322 instead of gsi_remove.
42324 2014-04-16 Martin Jambor <mjambor@suse.cz>
42326 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
42327 ipa_transforms_to_apply.
42328 (cgraph_function_versioning): Assert that old_node has empty
42329 ipa_transforms_to_apply.
42330 * trans-mem.c (ipa_tm_create_version): Likewise.
42331 * tree-inline.c (tree_function_versioning): Do not duplicate
42332 ipa_transforms_to_apply.
42334 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
42337 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
42339 Pass necessary as flags on 64-bit Solaris/x86.
42340 Use lowercase relocs for x86_64-*-*.
42341 * configure: Regenerate.
42343 2014-04-15 Jan Hubicka <jh@suse.cz>
42345 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
42346 (maybe_record_node, likely_target_p): Use it.
42348 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42351 Revert following patch
42353 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
42356 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
42357 software floating point or no floating point registers, do not
42358 allow any type in the FPRs. Eliminate a test for SPE SIMD types
42359 in GPRs that occurs after we tested for GPRs that would never be
42362 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
42363 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
42364 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
42365 specifically allow DDmode, since that does not use the SPE SIMD
42368 2014-03-21 Mark Wielaard <mjw@redhat.com>
42370 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
42371 as unsigned or int depending on type and value used.
42373 2014-04-15 Richard Biener <rguenther@suse.de>
42375 PR rtl-optimization/56965
42376 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
42377 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
42379 * alias.c (true_dependence_1): Do not call
42380 nonoverlapping_component_refs_p.
42381 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
42382 nonoverlapping_component_refs_p.
42383 (indirect_refs_may_alias_p): Likewise.
42385 2014-04-15 Teresa Johnson <tejohnson@google.com>
42387 * cfg.c (dump_bb_info): Fix flags check.
42388 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
42390 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42392 PR rtl-optimization/60663
42393 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
42396 2014-04-15 Richard Biener <rguenther@suse.de>
42398 * lto-streamer.h (LTO_major_version): Bump to 4.
42400 2014-04-15 Richard Biener <rguenther@suse.de>
42402 * common.opt (lto_partition_model): New enum.
42403 (flto-partition=): Merge separate options with a single with argument,
42404 add -flto-partition=one support.
42405 * flag-types.h (enum lto_partition_model): Declare.
42406 * opts.c (finish_options): Remove duplicate -flto-partition=
42408 * lto-wrapper.c (run_gcc): Adjust.
42410 2014-04-15 Richard Biener <rguenther@suse.de>
42412 * alias.c (ncr_compar): New function.
42413 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
42415 2014-04-15 Richard Biener <rguenther@suse.de>
42417 * alias.c (record_component_aliases): Do not walk BINFOs.
42419 2014-04-15 Richard Biener <rguenther@suse.de>
42421 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
42422 Add struct function argument and adjust.
42423 (find_func_aliases_for_call): Likewise.
42424 (find_func_aliases): Likewise.
42425 (find_func_clobbers): Likewise.
42426 (intra_create_variable_infos): Likewise.
42427 (compute_points_to_sets): Likewise.
42428 (ipa_pta_execute): Adjust. Do not push/pop cfun.
42430 2014-04-15 Richard Biener <rguenther@suse.de>
42432 * tree.c (iterative_hash_expr): Use enum tree_code_class
42433 to store TREE_CODE_CLASS.
42434 (tree_block): Likewise.
42435 (tree_set_block): Likewise.
42436 * tree.h (fold_build_pointer_plus_loc): Use
42437 convert_to_ptrofftype_loc.
42439 2014-04-15 Jakub Jelinek <jakub@redhat.com>
42442 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
42445 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
42447 * cfgloop.h (struct loop): Move force_vectorize down.
42448 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
42449 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
42450 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
42451 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
42452 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
42453 * tree-core.h (enum annot_expr_kind): Add new kind values.
42454 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
42455 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
42457 * tree.def (ANNOTATE_EXPR): Tweak comment.
42459 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
42461 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
42464 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
42466 * tree.h (TYPE_IDENTIFIER): Declare.
42467 * tree.c (subrange_type_for_debug_p): Use it.
42468 * godump.c (go_format_type): Likewise.
42469 * dwarf2out.c (is_cxx_auto, modified_type_die,
42470 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
42471 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
42473 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
42476 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
42478 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
42480 * config/i386/i386.c (examine_argument): Return bool. Return true if
42481 parameter should be passed in memory.
42482 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
42483 (construct_container): Update calls to examine_argument.
42484 (function_arg_advance_64): Ditto.
42485 (return_in_memory_32): Merge with ix86_return_in_memory.
42486 (return_in_memory_64): Ditto.
42487 (return_in_memory_ms_64): Ditto.
42489 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
42491 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
42492 * coverage.c (coverage_compute_profile_id): Handle externally visible
42495 2014-04-14 Martin Jambor <mjambor@suse.cz>
42497 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
42498 DECL_DISREGARD_INLINE_LIMITS functions.
42500 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
42503 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
42505 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
42508 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
42509 optimize_insn_for_speed_p instead of
42510 optimize_function_for_speed_p.
42512 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
42514 * doc/invoke.texi (free): Document AArch64.
42516 2014-04-14 Richard Biener <rguenther@suse.de>
42518 PR tree-optimization/60042
42519 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
42520 (insert_into_preds_of_block): Do not prevent PHI insertion
42521 for REFERENCE exprs here ...
42522 (eliminate_dom_walker::before_dom_children): ... but prevent
42523 their use here under similar conditions when applied to the
42524 IL after PRE optimizations.
42526 2014-04-14 Richard Biener <rguenther@suse.de>
42528 * passes.def: Move early points-to after early SRA.
42530 2014-04-14 Richard Biener <rguenther@suse.de>
42532 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
42533 check for which sign-changes we allow when forwarding
42534 a converted value into a switch.
42536 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
42538 * stor-layout.c (place_field): Finalize non-constant offset for the
42541 2014-04-14 Richard Biener <rguenther@suse.de>
42543 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
42545 (expand_switch_using_bit_tests_p): Likewise.
42546 (process_switch): Compute and pass on speed_p based on the
42548 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
42549 optimize_bb_for_speed_p.
42551 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
42553 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
42554 * function.h (struct function): Rename has_force_vect_loops into
42555 has_force_vectorize_loops.
42556 * lto-streamer-in.c (input_cfg): Adjust for renaming.
42557 (input_struct_function_base): Likewise.
42558 * lto-streamer-out.c (output_cfg): Likewise.
42559 (output_struct_function_base): Likewise.
42560 * omp-low.c (expand_omp_simd): Likewise.
42561 * tree-cfg.c (move_sese_region_to_fn): Likewise.
42562 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
42563 (version_loop_for_if_conversion): Likewise.
42564 (tree_if_conversion): Likewise.
42565 (main_tree_if_conversion): Likewise.
42566 (gate_tree_if_conversion): Likewise.
42567 * tree-inline.c (copy_loops): Likewise.
42568 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
42569 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
42570 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
42571 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
42572 * tree-vectorizer.c (vectorize_loops): Likewise.
42573 * tree-vectorizer.h (unlimited_cost_model): Likewise.
42575 2014-04-14 Richard Biener <rguenther@suse.de>
42578 * lto-streamer-out.c (wrap_refs): New function.
42579 (lto_output): Wrap symbol references in global initializes in
42580 type-preserving MEM_REFs.
42582 2014-04-14 Christian Bruel <christian.bruel@st.com>
42584 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
42586 2014-04-14 Christian Bruel <christian.bruel@st.com>
42588 * config/sh/sh.md (setmemqi): New expand pattern.
42589 * config/sh/sh.h (CLEAR_RATIO): Define.
42590 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
42591 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
42593 2014-04-14 Richard Biener <rguenther@suse.de>
42595 PR middle-end/55022
42596 * fold-const.c (negate_expr_p): Don't negate directional rounding
42598 (fold_negate_expr): Likewise.
42600 2014-04-14 Richard Biener <rguenther@suse.de>
42602 PR tree-optimization/59817
42603 PR tree-optimization/60453
42604 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
42605 recursion to catch all CHRECs in the scalar evolution and restrict
42606 the predicate for the remains appropriately.
42608 2014-04-12 Catherine Moore <clm@codesourcery.com>
42610 * config/mips/constraints.md: Add new register constraint "kb".
42611 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
42612 (*movhi_internal): Likewise.
42613 (*movqi_internal): Likewise.
42614 * config/mips/mips.h (M16_STORE_REGS): New register class.
42615 (REG_CLASS_NAMES): Add M16_STORE_REGS.
42616 (REG_CLASS_CONTENTS): Likewise.
42617 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
42619 2014-04-11 Tobias Burnus <burnus@net-b.de>
42622 * doc/invoke.texi (-Wformat-signedness): Document it.
42623 (Wformat=2): Mention that this enables -Wformat-signedness.
42625 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
42627 * common/config/epiphany/epiphany-common.c
42628 (epiphany_option_optimization_table): Enable section anchors by
42629 default at -O1 or higher.
42630 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
42631 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
42632 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
42633 carries no extra cost.
42634 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
42635 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
42636 * config/epiphany/predicates.md (memclob_operand): New predicate.
42637 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
42638 Use memclob_operand predicate and X constraint for operand 3.
42640 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
42642 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
42643 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
42646 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
42648 PR rtl-optimization/60651
42649 * mode-switching.c (optimize_mode_switching): Make sure to emit
42650 sets of a lower numbered entity before sets of a higher numbered
42651 entity to a mode of the same or lower priority.
42652 When creating a seginfo for a basic block that starts with a code
42653 label, move the insertion point past the code label.
42654 (new_seginfo): Document and enforce requirement that
42655 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
42656 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
42657 * doc/tm.texi: Regenerate.
42659 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
42662 * config/arc/arc.c (arc_save_restore): Fix assert typo.
42664 2013-04-11 Jakub Jelinek <jakub@redhat.com>
42666 * BASE-VER: Set to 4.10.0.
42668 2014-04-11 Tobias Burnus <burnus@net-b.de>
42671 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
42672 * doc/gcc.texi (Service): Update description in the @menu
42673 * doc/invoke.texi (Option Summary): Remove misplaced and
42676 2014-04-11 Steve Ellcey <sellcey@mips.com>
42677 Jakub Jelinek <jakub@redhat.com>
42679 PR middle-end/60556
42680 * expr.c (convert_move): Use emit_store_flag_force instead of
42681 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
42684 2014-04-11 Richard Biener <rguenther@suse.de>
42686 PR middle-end/60797
42687 * varasm.c (assemble_alias): Avoid endless error reporting
42688 recursion by setting TREE_ASM_WRITTEN.
42690 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
42692 * config/s390/s390.md: Add a splitter for NOT rtx.
42694 2014-04-11 Jakub Jelinek <jakub@redhat.com>
42696 PR rtl-optimization/60663
42697 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
42699 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
42700 Jakub Jelinek <jakub@redhat.com>
42703 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
42704 flag from decl_node to node.
42706 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42709 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
42710 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
42711 ameliorating the cases where it can be.
42713 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
42716 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
42718 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
42719 (loadsync_<mode>): Change mode.
42720 (load_quadpti, store_quadpti): New.
42721 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
42722 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
42723 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
42725 2014-04-09 Cong Hou <congh@google.com>
42728 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
42731 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42733 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
42734 instead of vnor to exploit possible fusion opportunity in the
42736 (altivec_expand_vec_perm_const_le): Likewise.
42738 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
42740 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
42741 (loadsync_<mode>): Change mode.
42742 (load_quadpti, store_quadpti): New.
42743 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
42744 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
42746 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
42749 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
42750 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
42751 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
42753 2014-04-08 Richard Biener <rguenther@suse.de>
42755 PR middle-end/60706
42756 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
42757 a 64bit widest int print double-int similar to on HWI64 hosts.
42759 2014-04-08 Richard Biener <rguenther@suse.de>
42761 PR tree-optimization/60785
42762 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
42763 default defs properly.
42765 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
42767 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
42768 (Weffc++): Likewise.
42770 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
42772 * ipa-devirt.c (maybe_record_node): When node is not recorded,
42773 set completep to false rather than true.
42775 2014-04-07 Douglas B Rupp <rupp@adacore.com>
42778 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
42779 ARM_TARGET2_DWARF_FORMAT.
42781 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
42784 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
42785 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
42788 2014-04-07 Richard Biener <rguenther@suse.de>
42790 PR tree-optimization/60766
42791 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
42792 (may_eliminate_iv): Convert cand_value_at result to desired type.
42794 2014-04-07 Jason Merrill <jason@redhat.com>
42797 * common.opt (-fno-gnu-unique): Add.
42798 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
42800 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42802 * haifa-sched.c: Fix outdated function reference and minor
42803 grammar errors in introductory comment.
42805 2014-04-07 Richard Biener <rguenther@suse.de>
42807 PR middle-end/60750
42808 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
42809 for noreturn calls.
42810 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
42812 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
42815 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
42816 size accounting for thunks.
42817 (pa_asm_output_mi_thunk): Use final_start_function() and
42818 final_end_function() to output function start and end directives.
42820 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
42822 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
42823 device specific ISA/ feature information. Remove short_sp and
42824 errata_skip ds. Add avr_device_specific_features enum to have device
42826 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
42827 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
42828 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
42829 updated device specific info.
42830 * config/avr/avr-mcus.def: Merge device specific details to
42831 dev_attribute field.
42832 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
42834 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
42835 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
42836 assembler if RMW isa supported by current device.
42837 * config/avr/genmultilib.awk: Update as device info structure changed.
42838 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
42840 2014-04-04 Cong Hou <congh@google.com>
42842 PR tree-optimization/60656
42843 * tree-vect-stmts.c (supportable_widening_operation):
42844 Fix a bug that elements in a vector with vect_used_by_reduction
42845 property are incorrectly reordered when the operation on it is not
42846 consistant with the one in reduction operation.
42848 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
42850 PR rtl-optimization/60155
42851 * gcse.c (record_set_data): New function.
42852 (single_set_gcse): New function.
42853 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
42854 (hoist_code): Likewise.
42855 (get_pressure_class_and_nregs): Likewise.
42857 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
42859 * explow.c (probe_stack_range): Emit a final optimization blockage.
42861 2014-04-04 Anthony Green <green@moxielogic.com>
42863 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
42866 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
42869 * lto-cgraph.c (input_overwrite_node): Check that partitioning
42870 flags are set only during streaming.
42871 * ipa.c (process_references, walk_polymorphic_call_targets,
42872 symtab_remove_unreachable_nodes): Drop bodies of always inline
42873 after early inlining.
42874 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
42876 2014-04-04 Jakub Jelinek <jakub@redhat.com>
42877 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42880 * dwarf2out.c (const_ok_for_output_1): Reject expressions
42883 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42886 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
42888 (cortex_a53_fdivd): Likewise.
42890 2014-04-04 Martin Jambor <mjambor@suse.cz>
42893 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
42894 Adjust all callers.
42895 * cgraph.c (clone_of_p): Also return true if thunks match.
42896 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
42897 cgraph_function_or_thunk_node and an obsolete comment.
42898 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
42900 (build_function_decl_skip_args): Likewise.
42901 (set_new_clone_decl_and_node_flags): New function.
42902 (duplicate_thunk_for_node): Likewise.
42903 (redirect_edge_duplicating_thunks): Likewise.
42904 (cgraph_clone_node): New parameter args_to_skip, pass it to
42905 redirect_edge_duplicating_thunks which is called instead of
42906 cgraph_redirect_edge_callee.
42907 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
42908 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
42910 2014-04-04 Jeff Law <law@redhat.com>
42913 * config/arm/predicates.md (const_int_I_operand): New predicate.
42914 (const_int_M_operand): Similarly.
42915 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
42917 (insv_t2, extv_reg, extzv_t2): Likewise.
42918 (load_multiple_with_writeback): Similarly for const_int_I_operand.
42919 (pop_multiple_with_writeback_and_return): Likewise.
42920 (vfp_pop_multiple_with_writeback): Likewise
42922 2014-04-04 Richard Biener <rguenther@suse.de>
42925 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
42926 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
42928 * gimplify.h (gimple_add_tmp_var_fn): Declare.
42929 * gimplify.c (gimple_add_tmp_var_fn): New function.
42930 * gimple-expr.h (create_tmp_reg_fn): Declare.
42931 * gimple-expr.c (create_tmp_reg_fn): New function.
42932 * gimple-low.c (record_vars_into): Don't change cfun.
42933 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
42934 code generation without cfun.
42936 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
42939 * Makefile.in (install-driver): Fix shell scripting.
42941 2014-04-03 Cong Hou <congh@google.com>
42943 PR tree-optimization/60505
42944 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
42945 threshold of number of iterations below which no vectorization
42947 * tree-vect-loop.c (new_loop_vec_info):
42948 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
42949 * tree-vect-loop.c (vect_analyze_loop_operations):
42950 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
42951 * tree-vect-loop.c (vect_transform_loop):
42952 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
42953 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
42954 of iterations of the loop and see if we should build the epilogue.
42956 2014-04-03 Richard Biener <rguenther@suse.de>
42958 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
42959 (streamer_tree_cache_create): Adjust.
42960 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
42961 to allow optional nodes array.
42962 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
42963 (streamer_tree_cache_append): Likewise.
42964 (streamer_tree_cache_create): Create nodes array optionally
42965 as specified by parameter.
42966 * lto-streamer-out.c (create_output_block): Avoid maintaining
42967 the node array in the writer cache.
42968 (DFS_write_tree): Remove assertion.
42969 (produce_asm_for_decls): Free the out decl state hash table early.
42970 * lto-streamer-in.c (lto_data_in_create): Adjust for
42971 streamer_tree_cache_create prototype change.
42973 2014-04-03 Richard Biener <rguenther@suse.de>
42975 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
42976 set TREE_CHAIN to NULL_TREE.
42978 2014-04-03 Richard Biener <rguenther@suse.de>
42980 PR tree-optimization/60740
42981 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
42982 over all GIMPLE_COND operands.
42984 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
42986 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
42987 (Weffc++): Remove Scott's numbering, merge lists and reference
42990 2014-04-03 Nick Clifton <nickc@redhat.com>
42992 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
42995 2014-04-03 Martin Jambor <mjambor@suse.cz>
42997 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
42998 mention gcc_unreachable before failing.
42999 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
43002 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
43005 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
43006 inconsistent code and instead mark the context inconsistent.
43007 (possible_polymorphic_call_targets): For inconsistent contexts
43008 return empty complete list.
43010 2014-04-02 Anthony Green <green@moxielogic.com>
43012 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
43013 (extendqisi2, extendhisi2): Define.
43014 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
43015 (WCHAR_TYPE): Change to unsigned int.
43017 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43019 PR tree-optimization/60733
43020 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
43021 insertion point for PHI candidates to be the end of the feeding
43022 block for the PHI argument.
43024 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
43026 PR rtl-optimization/60650
43027 * lra-constraints.c (process_alt_operands): Decrease reject for
43028 earlyclobber matching.
43030 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43032 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
43034 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43036 * config/spu/spu.c (pad_bb): Do not crash when the last
43037 insn is CODE_FOR_blockage.
43039 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43041 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
43042 lies outside the target mode.
43044 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
43047 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
43048 software floating point or no floating point registers, do not
43049 allow any type in the FPRs. Eliminate a test for SPE SIMD types
43050 in GPRs that occurs after we tested for GPRs that would never be
43053 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
43054 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
43055 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
43056 specifically allow DDmode, since that does not use the SPE SIMD
43059 2014-04-02 Richard Biener <rguenther@suse.de>
43061 PR middle-end/60729
43062 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
43063 MODE_INTs. Properly use negv_optab.
43064 (expand_abs): Likewise.
43066 2014-04-02 Richard Biener <rguenther@suse.de>
43069 * Makefile.in (install-driver): Guard extra installs with special
43072 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
43074 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43075 Document vec_vgbbd.
43077 2014-04-01 Richard Henderson <rth@redhat.com>
43080 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
43081 alternative enabled before register allocation.
43083 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
43085 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
43086 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
43088 (nios2_large_got_address): Remove unneeded 'sym' parameter.
43089 (nios2_got_address): Update nios2_large_got_address call site.
43090 (nios2_delegitimize_address): New function.
43091 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
43092 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
43093 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
43095 2014-04-01 Martin Husemann <martin@duskware.de>
43097 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
43100 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
43102 PR rtl-optimization/60604
43103 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
43104 check from register_operand.
43105 (register_operand): Redefine in terms of general_operand.
43106 (nonmemory_operand): Use register_operand for the non-constant cases.
43108 2014-04-01 Richard Biener <rguenther@suse.de>
43110 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
43112 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
43114 * doc/invoke.texi (mapp-regs): Clarify.
43116 2014-03-31 Ulrich Drepper <drepper@gmail.com>
43118 * config/i386/avx512fintrin.h (__v32hi): Define type.
43119 (__v64qi): Likewise.
43120 (_mm512_set1_epi8): Define.
43121 (_mm512_set1_epi16): Define.
43122 (_mm512_set4_epi32): Define.
43123 (_mm512_set4_epi64): Define.
43124 (_mm512_set4_pd): Define.
43125 (_mm512_set4_ps): Define.
43126 (_mm512_setr4_epi64): Define.
43127 (_mm512_setr4_epi32): Define.
43128 (_mm512_setr4_pd): Define.
43129 (_mm512_setr4_ps): Define.
43130 (_mm512_setzero_epi32): Define.
43132 2014-03-31 Martin Jambor <mjambor@suse.cz>
43134 PR middle-end/60647
43135 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
43136 callsite_arguments_match_p. Updated all callers. Also check types of
43137 corresponding formal parameters and actual arguments.
43138 (not_all_callers_have_enough_arguments_p) Renamed to
43139 some_callers_have_mismatched_arguments_p.
43141 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
43143 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
43145 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
43148 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
43151 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
43153 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
43154 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
43156 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
43157 Use FMAMODE_NOVF512 mode iterator.
43158 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
43159 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
43160 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
43161 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
43163 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
43164 Use VF_128_256 mode iterator.
43165 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
43168 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
43170 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
43171 static chain if needed.
43173 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
43176 * lra-constraints.c (index_part_to_reg): New.
43177 (process_address): Use it.
43179 2014-03-27 Jeff Law <law@redhat.com>
43180 Jakub Jelinek <jakub@redhat.com>
43183 * expr.c (do_tablejump): Use simplify_gen_binary rather than
43184 gen_rtx_{PLUS,MULT} to build up the address expression.
43186 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
43187 creating non-canonical RTL.
43189 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
43192 * ipa-inline.c (want_inline_small_function_p): Short circuit large
43193 functions; reorganize to make cheap checks first.
43194 (inline_small_functions): Do not estimate growth when dumping;
43196 * ipa-inline.h (inline_summary): Add min_size.
43197 (growth_likely_positive): New function.
43198 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
43199 (set_cond_stmt_execution_predicate): Cleanup.
43200 (estimate_edge_size_and_time): Compute min_size.
43201 (estimate_calls_size_and_time): Likewise.
43202 (estimate_node_size_and_time): Likewise.
43203 (inline_update_overall_summary): Update min_size.
43204 (do_estimate_edge_time): Likewise.
43205 (do_estimate_edge_size): Update.
43206 (do_estimate_edge_hints): Update.
43207 (growth_likely_positive): New function.
43209 2014-03-28 Jakub Jelinek <jakub@redhat.com>
43212 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
43213 also if addr has VOIDmode.
43215 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43217 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
43218 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
43220 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
43221 instructions as well as AdvancedSIMD loads.
43223 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43225 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
43226 Use crypto_aese type.
43227 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
43228 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
43229 crypto_aese, crypto_aesmc. Move to types.md.
43230 * config/arm/types.md (crypto_aes): Split into crypto_aese,
43232 * config/arm/iterators.md (crypto_type): Likewise.
43234 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
43236 * cgraph.c: Include expr.h and tree-dfa.h.
43237 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
43240 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
43243 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
43244 regs from checking multi-reg pseudos.
43246 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
43248 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
43250 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43252 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
43253 if it would clobber the stack pointer, even temporarily.
43255 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
43257 * mode-switching.c: Make small adjustments to the top comment.
43259 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
43261 * config/rs6000/constraints.md (wD constraint): New constraint to
43262 match the constant integer to get the top DImode/DFmode out of a
43263 vector in a VSX register.
43265 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
43266 match the constant integer to get the top DImode/DFmode out of a
43267 vector in a VSX register.
43269 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
43272 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
43275 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
43276 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
43278 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
43279 Optimize vec_extract of 64-bit values, where the value being
43280 extracted is in the top word, where we can use scalar
43281 instructions. Add direct move and store support. Combine the big
43282 endian/little endian vector select load support into a single insn.
43283 (vsx_extract_<mode>_internal1): Likewise.
43284 (vsx_extract_<mode>_internal2): Likewise.
43285 (vsx_extract_<mode>_load): Likewise.
43286 (vsx_extract_<mode>_store): Likewise.
43287 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
43288 combined into vsx_extract_<mode>_load.
43289 (vsx_extract_<mode>_one_le): Likewise.
43291 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
43292 define the top 64-bit vector element.
43294 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
43297 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43298 Document vec_vbpermq builtin.
43301 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
43302 enable use of xxsldwi and xxpermdi builtin functions.
43303 (vec_xxpermdi): Likewise.
43305 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43306 Document use of vec_xxsldwi and vec_xxpermdi builtins.
43308 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
43310 PR rtl-optimization/60650
43311 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
43313 (find_spills_for): New.
43314 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
43315 Spill all pseudos on the second iteration.
43317 2014-03-27 Marek Polacek <polacek@redhat.com>
43320 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
43323 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43325 * config/s390/s390.c (s390_can_use_return_insn): Check for
43326 call-saved FPRs on 31 bit.
43328 2014-03-27 Jakub Jelinek <jakub@redhat.com>
43330 PR middle-end/60682
43331 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
43332 if they need regimplification, just drop them instead of
43333 calling gimple_regimplify_operands on them.
43335 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
43338 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
43339 (aarch64_frame_pointer_required): Adjust logic.
43340 (aarch64_can_eliminate): Adjust logic.
43341 (aarch64_override_options_after_change): Adjust logic.
43343 2014-03-27 Dehao Chen <dehao@google.com>
43345 * ipa-inline.c (early_inliner): Update node's inline info.
43347 2014-03-26 Dehao Chen <dehao@google.com>
43349 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
43350 compiler inserted conditional jumps for NAN float check.
43352 2014-03-26 Jakub Jelinek <jakub@redhat.com>
43354 * ubsan.h (ubsan_create_data): Change second argument's type
43355 to const location_t *.
43356 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
43358 (ubsan_create_data): Change second argument to const location_t *PLOC.
43359 Create Loc field whenever PLOC is non-NULL.
43360 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
43361 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
43365 * real.c (real_to_integer2): Change type of low to UHWI.
43367 2014-03-26 Tobias Burnus <burnus@net-b.de>
43369 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
43370 (CILK_SELF_SPECS): New define.
43371 (driver_self_specs): Use it.
43373 2014-03-26 Richard Biener <rguenther@suse.de>
43375 * tree-pretty-print.c (percent_K_format): Implement special
43376 case for LTO and its stripped down BLOCK tree.
43378 2014-03-26 Jakub Jelinek <jakub@redhat.com>
43381 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
43383 * tree-vrp.c (simplify_internal_call_using_ranges): If only
43384 one range is range_int_cst_p, but not both, at least optimize
43385 addition/subtraction of 0 and multiplication by 0 or 1.
43386 * gimple-fold.c (gimple_fold_call): Fold
43387 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
43388 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
43389 INTEGER_CSTs, try to fold at least x * 0 and y - y.
43391 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
43393 PR rtl-optimization/60452
43394 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
43395 <case REG>: Return 1 for invalid offsets from the frame pointer.
43397 2014-03-26 Marek Polacek <polacek@redhat.com>
43400 * doc/extend.texi (C Extensions): Mention variable-length arrays in
43403 2014-03-26 Marek Polacek <polacek@redhat.com>
43406 * doc/extend.texi (Designated Inits): Describe what happens to omitted
43409 2014-03-26 Marek Polacek <polacek@redhat.com>
43412 * ira-color.c (update_conflict_hard_regno_costs): Perform the
43413 multiplication in unsigned type.
43415 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
43417 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
43419 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
43421 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
43423 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
43426 * cif-code.def (UNREACHABLE) New code.
43427 * ipa-inline.c (inline_small_functions): Skip edges to
43428 __builtlin_unreachable.
43429 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
43430 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
43431 predicate to __bulitin_unreachable.
43432 (set_cond_stmt_execution_predicate): Fix issue when
43433 invert_tree_comparison returns ERROR_MARK.
43434 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
43435 propagate to inline clones.
43436 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
43438 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
43439 * cgraphclones.c (cgraph_clone_node): If call destination is already
43440 ureachable, do not redirect it back.
43441 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
43444 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
43446 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
43447 Do not modify inline clones.
43449 2014-03-25 Jakub Jelinek <jakub@redhat.com>
43451 * config/i386/i386.md (general_sext_operand): New mode attr.
43452 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
43453 don't generate (sign_extend (const_int)).
43454 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
43455 operands[2]. Use We constraint instead of <i> and
43456 <general_sext_operand> predicate instead of <general_operand>.
43457 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
43458 * config/i386/constraints.md (We): New constraint.
43459 * config/i386/predicates.md (x86_64_sext_operand,
43460 sext_operand): New predicates.
43462 2014-03-25 Martin Jambor <mjambor@suse.cz>
43465 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
43466 inconsistent devirtualizations to __builtin_unreachable.
43468 2014-03-25 Marek Polacek <polacek@redhat.com>
43471 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
43473 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
43475 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
43476 order of elements for big-endian.
43478 2014-03-25 Richard Biener <rguenther@suse.de>
43480 PR middle-end/60635
43481 * gimplify-me.c (gimple_regimplify_operands): Update the
43484 2014-03-25 Martin Jambor <mjambor@suse.cz>
43487 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
43488 (lto_output_varpool_node): Likewise.
43489 (input_overwrite_node): Likewise.
43490 (input_varpool_node): Likewise.
43492 2014-03-25 Richard Biener <rguenther@suse.de>
43494 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
43495 (run_gcc): Likewise.
43497 2014-03-25 Jakub Jelinek <jakub@redhat.com>
43499 * combine.c (simplify_compare_const): Add MODE argument.
43500 Handle mode_width 0 as very large mode_width.
43501 (try_combine, simplify_comparison): Adjust callers.
43503 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
43504 type to avoid signed integer overflow.
43505 * explow.c (plus_constant): Likewise.
43507 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
43509 * doc/generic.texi: Correct typos.
43511 2014-03-24 Tobias Burnus <burnus@net-b.de>
43513 * doc/invoke.texi (-flto): Expand section about
43514 using static libraries with LTO.
43516 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43518 PR rtl-optimization/60501
43519 * optabs.def (addptr3_optab): New optab.
43520 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
43521 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
43522 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
43524 * lra.c (emit_add3_insn): Use the addptr pattern if available.
43526 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
43528 2014-03-24 Ulrich Drepper <drepper@gmail.com>
43530 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
43533 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
43534 (_mm256_undefined_ps): Define.
43535 (_mm256_undefined_pd): Define.
43536 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
43537 (_mm_undefined_pd): Define.
43538 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
43539 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
43540 (_mm512_undefined_ps): Define.
43541 (_mm512_undefined_pd): Define.
43542 Use _mm*_undefined_*.
43543 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
43545 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
43547 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
43548 (lshr_simd): DI mode added.
43549 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
43550 (aarch64_ushr_simddi): Likewise.
43551 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
43552 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
43553 (vshrd_n_u64): Likewise.
43555 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
43557 * Makefile.in (s-macro_list): Depend on cc1.
43559 2014-03-23 Teresa Johnson <tejohnson@google.com>
43561 * ipa-utils.c (ipa_print_order): Use specified dump file.
43563 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
43565 PR rtl-optimization/60601
43566 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
43568 * gcc.c (eval_spec_function): Initialize save_growing_value.
43570 2014-03-22 Jakub Jelinek <jakub@redhat.com>
43573 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
43574 code == MINUS_EXPR, never swap op0 with op1.
43576 * toplev.c (init_local_tick): Avoid signed integer multiplication
43578 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
43579 shift by first operand's bitsize.
43581 2014-03-21 Jakub Jelinek <jakub@redhat.com>
43584 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
43585 redefine to 1 or 0.
43586 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
43587 TARGET_ISA_64BIT_P(x).
43589 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43591 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
43592 pattern for vector nor instead of subtract from splat(-1).
43593 (altivec_expand_vec_perm_const_le): Likewise.
43595 2014-03-21 Richard Henderson <rth@twiddle.net>
43598 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
43599 related insns after epilogue_completed.
43601 2014-03-21 Martin Jambor <mjambor@suse.cz>
43604 * cgraph.h (symtab_node): New flag body_removed.
43605 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
43606 when removing bodies.
43607 * symtab.c (dump_symtab_base): Dump body_removed flag.
43608 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
43609 had their bodies removed.
43611 2014-03-21 Martin Jambor <mjambor@suse.cz>
43614 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
43617 2014-03-21 Richard Biener <rguenther@suse.de>
43619 PR tree-optimization/60577
43620 * tree-core.h (struct tree_base): Document nothrow_flag use
43621 in DECL_NONALIASED.
43622 * tree.h (DECL_NONALIASED): New.
43623 (may_be_aliased): Adjust.
43624 * coverage.c (build_var): Set DECL_NONALIASED.
43626 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
43628 * expr.c (expand_expr_real_1): Remove outdated comment.
43630 2014-03-20 Jakub Jelinek <jakub@redhat.com>
43632 PR middle-end/60597
43633 * ira.c (adjust_cleared_regs): Call copy_rtx on
43634 *reg_equiv[REGNO (loc)].src_p before passing it to
43635 simplify_replace_fn_rtx.
43638 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
43639 into CONST, put pic register as first operand of PLUS. Use
43640 gen_const_mem for both 32-bit and 64-bit PIC got loads.
43642 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
43644 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
43646 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
43648 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
43649 around for store forwarding issue in the FPU on the UT699.
43650 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
43651 loads and operations if -mfix-ut699 is specified.
43652 (divtf3_hq): Tweak attribute.
43653 (sqrttf2_hq): Likewise.
43655 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
43657 * calls.c (store_one_arg): Remove incorrect const qualification on the
43658 type of the temporary.
43659 * cfgexpand.c (expand_return): Likewise.
43660 * expr.c (expand_constructor): Likewise.
43661 (expand_expr_real_1): Likewise.
43663 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
43665 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
43668 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
43671 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
43673 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
43675 * config/arm/aarch-common-protos.h
43676 (alu_cost_table): Fix spelling of "extend".
43677 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
43679 2014-03-19 Richard Biener <rguenther@suse.de>
43681 PR middle-end/60553
43682 * tree-core.h (tree_type_common): Re-order pointer members
43683 to reduce recursion depth during GC walks.
43685 2014-03-19 Marek Polacek <polacek@redhat.com>
43688 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
43689 before accessing it.
43691 2014-03-19 Richard Biener <rguenther@suse.de>
43694 * lto-streamer-in.c (input_function): In WPA stage do not drop
43697 2014-03-19 Jakub Jelinek <jakub@redhat.com>
43699 PR tree-optimization/60559
43700 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
43701 with build_zero_cst assignment.
43703 2014-03-18 Kai Tietz <ktietz@redhat.com>
43705 PR rtl-optimization/56356
43706 * sdbout.c (sdbout_parms): Verify that parms'
43707 incoming argument is valid.
43708 (sdbout_reg_parms): Likewise.
43710 2014-03-18 Richard Henderson <rth@redhat.com>
43713 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
43714 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
43715 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
43717 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
43719 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
43720 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
43721 Italicize plugin event names in description. Explain that
43722 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
43723 Remind that no GCC functions should be called after PLUGIN_FINISH.
43724 Explain what pragmas with expansion are.
43726 2014-03-18 Martin Liska <mliska@suse.cz>
43728 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
43729 gimple call statement is update.
43730 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
43731 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
43733 2014-03-18 Jakub Jelinek <jakub@redhat.com>
43736 * ubsan.c (ubsan_instrument_unreachable): Call
43737 initialize_sanitizer_builtins.
43738 (ubsan_pass): Likewise.
43741 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
43742 varpool_finalize_decl instead of rest_of_decl_compilation.
43744 2014-03-18 Richard Biener <rguenther@suse.de>
43746 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
43747 by using bitmap_and_compl instead of bitmap_and_compl_into.
43748 (df_rd_transfer_function): Likewise.
43750 2014-03-18 Richard Biener <rguenther@suse.de>
43752 * doc/lto.texi (fresolution): Fix typo.
43754 2014-03-18 Richard Biener <rguenther@suse.de>
43756 * doc/invoke.texi (flto): Update for changes in 4.9.
43758 2014-03-18 Richard Biener <rguenther@suse.de>
43760 * doc/loop.texi: Remove section on the removed lambda framework.
43761 Update loop docs with recent changes in preserving loop structure.
43763 2014-03-18 Richard Biener <rguenther@suse.de>
43765 * doc/lto.texi (-fresolution): Document.
43767 2014-03-18 Richard Biener <rguenther@suse.de>
43769 * doc/contrib.texi: Adjust my name.
43771 2014-03-18 Jakub Jelinek <jakub@redhat.com>
43774 * internal-fn.c: Include diagnostic-core.h.
43775 (expand_BUILTIN_EXPECT): New function.
43776 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
43777 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
43778 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
43779 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
43780 IFN_BUILTIN_EXPECT.
43781 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
43782 Revert 3 argument __builtin_expect code.
43783 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
43784 * gimple-fold.c (gimple_fold_call): Likewise.
43785 * tree.h (fold_builtin_expect): New prototype.
43786 * builtins.c (build_builtin_expect_predicate): Add predictor
43787 argument, if non-NULL, create 3 argument __builtin_expect.
43788 (fold_builtin_expect): No longer static. Add ARG2 argument,
43789 pass it through to build_builtin_expect_predicate.
43790 (fold_builtin_2): Adjust caller.
43791 (fold_builtin_3): Handle BUILT_IN_EXPECT.
43792 * internal-fn.def (BUILTIN_EXPECT): New.
43794 2014-03-18 Tobias Burnus <burnus@net-b.de>
43797 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
43798 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
43799 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
43801 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
43804 * predict.c (combine_predictions_for_bb): Fix up formatting.
43805 (expr_expected_value_1, expr_expected_value): Add predictor argument,
43806 fill what it points to if non-NULL.
43807 (tree_predict_by_opcode): Adjust caller, use the predictor.
43808 * predict.def (PRED_COMPARE_AND_SWAP): Add.
43810 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
43812 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
43813 proper constant for the store mode.
43815 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
43817 * symtab.c (change_decl_assembler_name): Fix transparent alias
43818 chain construction.
43820 2014-03-16 Renlin Li <Renlin.Li@arm.com>
43822 * config/aarch64/aarch64.c: Correct the comments about the
43823 aarch64 stack layout.
43825 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
43827 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
43828 check for GF_OMP_FOR_KIND_FOR.
43830 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
43832 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
43833 ymm and zmm register names.
43835 2014-03-17 Jakub Jelinek <jakub@redhat.com>
43838 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
43839 note creation for the 2010-08-31 changes.
43841 2014-03-17 Marek Polacek <polacek@redhat.com>
43843 PR middle-end/60534
43844 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
43845 as -fno-tree-loop-vectorize.
43846 (expand_omp_simd): Likewise.
43848 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
43850 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
43851 (eligible_for_call_delay): New prototype.
43852 * config/sparc/sparc.c (tls_call_delay): Rename into...
43853 (eligible_for_call_delay): ...this. Return false if the instruction
43854 cannot be put in the delay slot of a branch.
43855 (eligible_for_restore_insn): Simplify.
43856 (eligible_for_return_delay): Return false if the instruction cannot be
43857 put in the delay slot of a branch and simplify.
43858 (eligible_for_sibcall_delay): Return false if the instruction cannot be
43859 put in the delay slot of a branch.
43860 * config/sparc/sparc.md (fix_ut699): New attribute.
43861 (tls_call_delay): Delete.
43862 (in_call_delay): Reimplement.
43863 (eligible_for_sibcall_delay): Rename into...
43864 (in_sibcall_delay): ...this.
43865 (eligible_for_return_delay): Rename into...
43866 (in_return_delay): ...this.
43867 (in_branch_delay): Reimplement.
43868 (in_uncond_branch_delay): Delete.
43869 (in_annul_branch_delay): Delete.
43871 2014-03-14 Richard Henderson <rth@redhat.com>
43874 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
43875 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
43876 (*floathi<X87MODEF>2_i387_with_temp): Remove.
43877 (floathi splitters): Remove.
43878 (float<SWI48x>xf2): New pattern.
43879 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
43880 code that tried to handle DImode for 32-bit, but which was excluded
43881 by the pattern's condition. Drop allocation of stack temporary.
43882 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
43883 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
43884 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
43885 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
43886 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
43887 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
43888 (*float<SWI48><MODEF>2_sse_interunit): Remove.
43889 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
43890 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
43891 (*float<SWI48x><X87MODEF>2_i387): Remove.
43892 (all float _with_temp splitters): Remove.
43893 (*float<SWI48x><MODEF>2_i387): New pattern.
43894 (*float<SWI48><MODEF>2_sse): New pattern.
43895 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
43896 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
43898 2014-03-14 Jakub Jelinek <jakub@redhat.com>
43899 Marek Polacek <polacek@redhat.com>
43901 PR middle-end/60484
43902 * common.opt (dump_base_name_prefixed): New Variable.
43903 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
43904 if x_dump_base_name_prefixed is already set, set it at the end.
43906 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
43908 PR rtl-optimization/60508
43909 * lra-constraints.c (get_reload_reg): Add new parameter
43911 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
43912 Pass the new parameter values.
43914 2014-03-14 Richard Biener <rguenther@suse.de>
43916 * common.opt: Revert unintented changes from r205065.
43917 * opts.c: Likewise.
43919 2014-03-14 Richard Biener <rguenther@suse.de>
43921 PR middle-end/60518
43922 * cfghooks.c (split_block): Properly adjust all loops the
43923 block was a latch of.
43925 2014-03-14 Martin Jambor <mjambor@suse.cz>
43928 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
43931 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
43934 * config/avr/avr.c (avr_set_current_function): Pass function name
43935 through default_strip_name_encoding before sanity checking instead
43936 of skipping the first char of the assembler name.
43938 2014-03-13 Richard Henderson <rth@redhat.com>
43941 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
43942 (ix86_force_to_memory, ix86_free_from_memory): Remove.
43943 * config/i386/i386-protos.h: Likewise.
43944 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
43945 in the expander instead of a splitter.
43946 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
43947 any possibility of requiring a memory.
43948 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
43949 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
43950 (fp branch splitters): Update for ix86_split_fp_branch.
43951 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
43952 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
43953 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
43954 (*fop_<MODEF>_2_i387): Remove f/r alternative.
43955 (*fop_<MODEF>_3_i387): Likewise.
43956 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
43957 (splitters for the fop_* register patterns): Remove.
43958 (fscalexf4_i387): Rename from *fscalexf4_i387.
43959 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
43961 2014-03-13 Jakub Jelinek <jakub@redhat.com>
43963 PR tree-optimization/59779
43964 * tree-dfa.c (get_ref_base_and_extent): Use double_int
43965 type for bitsize and maxsize instead of HOST_WIDE_INT.
43967 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
43969 PR rtl-optimization/57320
43970 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
43971 the CFG after thread_prologue_and_epilogue_insns.
43973 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
43975 PR rtl-optimization/57189
43976 * lra-constraints.c (process_alt_operands): Disfavor spilling
43979 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
43981 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
43983 2014-03-13 Jakub Jelinek <jakub@redhat.com>
43985 PR tree-optimization/59025
43986 PR middle-end/60418
43987 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
43988 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
43990 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
43993 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
43994 calls of avr_out_plus_1.
43996 2014-03-13 Bin Cheng <bin.cheng@arm.com>
43998 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
43999 BB's single pred and update the father loop's latch info later.
44001 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
44003 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
44007 (VEC_base): Likewise.
44008 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
44009 registers, we need to swap double words in little endian mode.
44011 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
44012 to be a container mode for 128-bit integer operations added in ISA
44013 2.07. Unlike TImode and PTImode, the preferred register set is
44014 the Altivec/VMX registers for the 128-bit operations.
44016 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
44018 (rs6000_split_128bit_ok_p): Likewise.
44020 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
44021 macros for creating ISA 2.07 normal and overloaded builtin
44022 functions with 3 arguments.
44023 (BU_P8V_OVERLOAD_3): Likewise.
44024 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
44025 for use as overloaded functions.
44026 (VPERM_1TI_UNS): Likewise.
44027 (VSEL_1TI): Likewise.
44028 (VSEL_1TI_UNS): Likewise.
44029 (ST_INTERNAL_1ti): Likewise.
44030 (LD_INTERNAL_1ti): Likewise.
44031 (XXSEL_1TI): Likewise.
44032 (XXSEL_1TI_UNS): Likewise.
44033 (VPERM_1TI): Likewise.
44034 (VPERM_1TI_UNS): Likewise.
44035 (XXPERMDI_1TI): Likewise.
44036 (SET_1TI): Likewise.
44037 (LXVD2X_V1TI): Likewise.
44038 (STXVD2X_V1TI): Likewise.
44039 (VEC_INIT_V1TI): Likewise.
44040 (VEC_SET_V1TI): Likewise.
44041 (VEC_EXT_V1TI): Likewise.
44042 (EQV_V1TI): Likewise.
44043 (NAND_V1TI): Likewise.
44044 (ORC_V1TI): Likewise.
44045 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
44046 added in ISA 2.07. Add both normal 'altivec' builtins, and the
44047 overloaded builtin.
44048 (VADDUQM): Likewise.
44049 (VSUBCUQ): Likewise.
44050 (VADDEUQM): Likewise.
44051 (VADDECUQ): Likewise.
44052 (VSUBEUQM): Likewise.
44053 (VSUBECUQ): Likewise.
44055 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
44056 __int128_t and __uint128_t types.
44057 (__uint128_type): Likewise.
44058 (altivec_categorize_keyword): Add support for vector __int128_t,
44059 vector __uint128_t, vector __int128, and vector unsigned __int128
44060 as a container type for TImode operations that need to be done in
44061 VSX/Altivec registers.
44062 (rs6000_macro_to_expand): Likewise.
44063 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
44064 to support 128-bit integer instructions vaddcuq, vadduqm,
44065 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
44066 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
44068 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
44069 for V1TImode, and set up preferences to use VSX/Altivec registers.
44070 Setup VSX reload handlers.
44071 (rs6000_debug_reg_global): Likewise.
44072 (rs6000_init_hard_regno_mode_ok): Likewise.
44073 (rs6000_preferred_simd_mode): Likewise.
44074 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
44075 (easy_altivec_constant): Likewise.
44076 (output_vec_const_move): Likewise.
44077 (rs6000_expand_vector_set): Convert V1TImode set and extract to
44079 (rs6000_expand_vector_extract): Likewise.
44080 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
44082 (rs6000_const_vec): Add support for V1TImode.
44083 (rs6000_emit_le_vsx_load): Swap double words when loading or
44084 storing TImode/V1TImode.
44085 (rs6000_emit_le_vsx_store): Likewise.
44086 (rs6000_emit_le_vsx_move): Likewise.
44087 (rs6000_emit_move): Add support for V1TImode.
44088 (altivec_expand_ld_builtin): Likewise.
44089 (altivec_expand_st_builtin): Likewise.
44090 (altivec_expand_vec_init_builtin): Likewise.
44091 (altivec_expand_builtin): Likewise.
44092 (rs6000_init_builtins): Add support for V1TImode type. Add
44093 support for ISA 2.07 128-bit integer builtins. Define type names
44094 for the VSX/Altivec vector types.
44095 (altivec_init_builtins): Add support for overloaded vector
44096 functions with V1TImode type.
44097 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
44098 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
44100 (rs6000_split_128bit_ok_p): Likewise.
44101 (rs6000_handle_altivec_attribute): Create V1TImode from vector
44102 __int128_t and vector __uint128_t.
44104 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
44105 and mode attributes.
44107 (VSX_M2): Likewise.
44112 (VS_scalar): Likewise.
44113 (VS_double): Likewise.
44114 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
44116 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
44117 we support the ISA 2.07 128-bit integer arithmetic instructions.
44118 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
44119 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
44120 and TImode types for use with the builtin functions.
44121 (V1TI_type_node): Likewise.
44122 (unsigned_V1TI_type_node): Likewise.
44123 (intTI_type_internal_node): Likewise.
44124 (uintTI_type_internal_node): Likewise.
44126 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
44127 128-bit builtin functions.
44128 (UNSPEC_VADDEUQM): Likewise.
44129 (UNSPEC_VADDECUQ): Likewise.
44130 (UNSPEC_VSUBCUQ): Likewise.
44131 (UNSPEC_VSUBEUQM): Likewise.
44132 (UNSPEC_VSUBECUQ): Likewise.
44133 (VM): Add V1TImode to vector mode iterators.
44135 (VI_unit): Likewise.
44136 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
44137 (altivec_vaddcuq): Likewise.
44138 (altivec_vsubuqm): Likewise.
44139 (altivec_vsubcuq): Likewise.
44140 (altivec_vaddeuqm): Likewise.
44141 (altivec_vaddecuq): Likewise.
44142 (altivec_vsubeuqm): Likewise.
44143 (altivec_vsubecuq): Likewise.
44145 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
44147 (BOOL_128): Likewise.
44148 (BOOL_REGS_OUTPUT): Likewise.
44149 (BOOL_REGS_OP1): Likewise.
44150 (BOOL_REGS_OP2): Likewise.
44151 (BOOL_REGS_UNARY): Likewise.
44152 (BOOL_REGS_AND_CR0): Likewise.
44154 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
44155 128-bit integer builtin support.
44156 (vec_vadduqm): Likewise.
44157 (vec_vaddecuq): Likewise.
44158 (vec_vaddeuqm): Likewise.
44159 (vec_vsubecuq): Likewise.
44160 (vec_vsubeuqm): Likewise.
44161 (vec_vsubcuq): Likewise.
44162 (vec_vsubuqm): Likewise.
44164 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
44165 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
44166 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
44167 128-bit integer add/subtract to ISA 2.07.
44169 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
44171 * config/arc/arc.c (arc_predicate_delay_insns):
44172 Fix third argument passed to conditionalize_nonjump.
44174 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
44176 * config/aarch64/aarch64-builtins.c
44177 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
44178 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
44179 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
44180 instead of __builtin_lfloor.
44181 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
44183 2014-03-12 Jakub Jelinek <jakub@redhat.com>
44185 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
44186 (tree_ssa_ifcombine_bb_1): New function.
44187 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
44188 is an empty forwarder block to then_bb or vice versa and then_bb
44189 and else_bb are effectively swapped.
44191 2014-03-12 Christian Bruel <christian.bruel@st.com>
44194 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
44195 REG_CFA_DEF_CFA note.
44196 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
44197 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
44199 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
44201 PR tree-optimization/60454
44202 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
44204 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44206 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
44207 Do not define target_cpu_default2 to generic.
44208 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
44209 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
44210 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
44212 2014-03-12 Jakub Jelinek <jakub@redhat.com>
44213 Marc Glisse <marc.glisse@inria.fr>
44215 PR tree-optimization/60502
44216 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
44217 instead of build_low_bits_mask.
44219 2014-03-12 Jakub Jelinek <jakub@redhat.com>
44221 PR middle-end/60482
44222 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
44223 if there are multiple uses, but op doesn't live on E edge.
44224 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
44225 clobber stmts before __builtin_unreachable.
44227 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
44229 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
44230 hard_frame_pointer_rtx.
44231 * cse.c (cse_insn): Remove volatile check.
44232 * cselib.c (cselib_process_insn): Likewise.
44233 * dse.c (scan_insn): Likewise.
44235 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
44237 * config/arc/arc.c (conditionalize_nonjump): New function,
44239 (arc_ifcvt): ... this.
44240 (arc_predicate_delay_insns): Use it.
44242 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
44244 * config/arc/predicates.md (extend_operand): During/after reload,
44245 allow const_int_operand.
44246 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
44247 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
44248 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
44250 (umulsi3_highpart_i): Likewise.
44252 2014-03-11 Richard Biener <rguenther@suse.de>
44254 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
44255 Add asserts to guard possible wrong-code bugs.
44257 2014-03-11 Richard Biener <rguenther@suse.de>
44259 PR tree-optimization/60429
44260 PR tree-optimization/60485
44261 * tree-ssa-structalias.c (set_union_with_increment): Properly
44262 take into account all fields that overlap the shifted vars.
44263 (do_sd_constraint): Likewise.
44264 (do_ds_constraint): Likewise.
44265 (get_constraint_for_ptr_offset): Likewise.
44267 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
44269 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
44270 (nios2_compute_frame_layout):
44271 Add calculation of cfun->machine->fp_save_offset.
44272 (nios2_expand_prologue): Correct setting of frame pointer register
44274 (nios2_expand_epilogue): Update recovery of stack pointer from
44275 frame pointer accordingly.
44276 (nios2_initial_elimination_offset): Update calculation of offset
44277 for eliminating to HARD_FRAME_POINTER_REGNUM.
44279 2014-03-10 Jakub Jelinek <jakub@redhat.com>
44282 * ipa.c (symtab_remove_unreachable_nodes): Don't call
44283 cgraph_get_create_node on VAR_DECLs.
44285 2014-03-10 Richard Biener <rguenther@suse.de>
44287 PR middle-end/60474
44288 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
44290 2014-03-08 Douglas B Rupp <rupp@gnat.com>
44292 * config/vms/vms.opt (vms_float_format): New variable.
44294 2014-03-08 Tobias Burnus <burnus@net-b.de>
44296 * doc/invoke.texi (-fcilkplus): Update implementation status.
44298 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
44299 Richard Biener <rguenther@suse.de>
44301 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
44302 consistently accross all TUs.
44303 (run_gcc): Enable -fshort-double automatically at link at link-time
44304 and disallow override.
44306 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
44309 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
44310 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
44311 if they can't be used.
44313 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
44315 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
44316 for Solaris 11/x86 ld.
44317 * configure: Regenerate.
44319 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
44321 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
44322 (LIB_TLS_SPEC): Save as ld_tls_libs.
44323 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
44324 (HAVE_AS_IX86_TLSLDM): New test.
44325 * configure, config.in: Regenerate.
44326 * config/i386/i386.c (legitimize_tls_address): Fall back to
44327 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
44328 cannot support TLS_MODEL_LOCAL_DYNAMIC.
44329 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
44330 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
44332 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
44334 * common.opt (fira-loop-pressure): Mark as optimization.
44336 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
44338 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
44339 an OpenMP mappable type.
44341 2014-03-06 Matthias Klose <doko@ubuntu.com>
44343 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
44344 MULTILIB_OSDIRNAMES is not defined.
44346 2014-03-06 Jakub Jelinek <jakub@redhat.com>
44347 Meador Inge <meadori@codesourcery.com>
44350 * config/arm/arm.c (arm_tls_symbol_p): Remove.
44351 (arm_legitimize_address): Call legitimize_tls_address for any
44352 arm_tls_referenced_p expression, handle constant addend. Call it
44353 before testing for !TARGET_ARM.
44354 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
44356 2014-03-06 Richard Biener <rguenther@suse.de>
44358 PR middle-end/60445
44362 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
44364 * tree-streamer.c (record_common_node): Assert we don't record
44365 nodes with type double.
44366 (preload_common_node): Skip type double, complex double and double
44367 pointer since it is now frontend dependent due to fshort-double option.
44369 2014-03-06 Richard Biener <rguenther@suse.de>
44371 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
44372 or -fno-lto is specified and the linker has full plugin support.
44373 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
44374 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
44375 * lto-wrapper.c (merge_and_complain): Merge compile-time
44376 optimization levels.
44377 (run_gcc): And pass it through to the link options.
44379 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
44383 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44385 * cselib.c (remove_useless_values): Skip to avoid quadratic
44386 behavior if the condition moved from...
44387 (cselib_process_insn): ... here holds.
44389 2014-03-05 Jakub Jelinek <jakub@redhat.com>
44392 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
44393 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
44396 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
44397 (TM_H): Add x86-tune.def.
44399 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44401 * config/aarch64/aarch64.c (generic_tunings):
44402 Use cortexa57_extra_costs.
44404 2014-03-05 Jakub Jelinek <jakub@redhat.com>
44407 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
44408 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
44409 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
44412 2014-03-04 Heiher <r@hev.cc>
44414 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
44415 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
44417 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
44419 * config/i386/predicates.md (const2356_operand): Change to ...
44420 (const2367_operand): ... this.
44421 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
44423 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
44424 (*avx512pf_scatterpf<mode>sf): Ditto.
44425 (avx512pf_scatterpf<mode>df): Ditto.
44426 (*avx512pf_scatterpf<mode>df_mask): Ditto.
44427 (*avx512pf_scatterpf<mode>df): Ditto.
44428 * config/i386/i386.c (ix86_expand_builtin): Update
44429 incorrect hint operand error message.
44431 2014-03-04 Richard Biener <rguenther@suse.de>
44433 * lto-section-in.c (lto_get_section_data): Fix const cast.
44435 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
44437 * tree-streamer.c (record_common_node): Assert we don't record
44438 nodes with type double.
44439 (preload_common_node): Skip type double, complex double and double
44440 pointer since it is now frontend dependent due to fshort-double option.
44442 2014-03-04 Richard Biener <rguenther@suse.de>
44445 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
44446 (lto_input_toplevel_asms): Likewise.
44447 * lto-section-in.c (lto_get_section_data): Instead do it here
44450 2014-03-04 Richard Biener <rguenther@suse.de>
44452 PR tree-optimization/60382
44453 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
44454 dead PHIs a reduction.
44456 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
44458 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
44460 (_mm_prefetch): Move out of GCC target("sse") pragma.
44461 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
44462 GCC target("prfchw") pragma.
44463 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
44465 * config/i386/i386.c (ix86_option_override_internal): Enable
44466 -mprfchw with -mprefetchwt1.
44468 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
44470 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
44473 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
44475 * opts.h (CL_PCH_IGNORE): Define.
44476 * targhooks.c (option_affects_pch_p):
44477 Return false for options that have CL_PCH_IGNORE set.
44478 * opt-functions.awk: Process PchIgnore.
44479 * doc/options.texi: Document PchIgnore.
44481 * config/arc/arc.opt (misize): Add PchIgnore property.
44483 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44485 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
44486 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
44487 constraint on constants to permit them being loaded into
44488 GENERAL_REGS or BASE_REGS.
44490 2014-03-03 Nick Clifton <nickc@redhat.com>
44492 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
44493 anti-cacnonical alternatives.
44494 (negandhi3_real): New pattern.
44495 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
44497 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
44499 * config/avr/avr-mcus.def: Remove atxmega16x1.
44500 * config/avr/avr-tables.opt: Regenerate.
44501 * config/avr/t-multilib: Regenerate.
44502 * doc/avr-mmcu.texi: Regenerate.
44504 2014-03-03 Tobias Grosser <tobias@grosser.es>
44505 Mircea Namolaru <mircea.namolaru@inria.fr>
44507 PR tree-optimization/58028
44508 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
44511 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
44513 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
44514 not handled by recognizers.
44516 2014-03-03 Jakub Jelinek <jakub@redhat.com>
44518 PR middle-end/60175
44519 * function.c (expand_function_end): Don't emit
44520 clobber_return_register sequence if clobber_after is a BARRIER.
44521 * cfgexpand.c (construct_exit_block): Append instructions before
44522 return_label to prev_bb.
44524 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44526 * config/rs6000/constraints.md: Document reserved use of "wc".
44528 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
44531 * ipa.c (function_and_variable_visibility): When dissolving comdat
44532 group, also set all symbols to local.
44534 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
44539 2013-12-14 Jan Hubicka <jh@suse.cz>
44540 PR middle-end/58477
44541 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
44543 2014-03-02 Jon Beniston <jon@beniston.com>
44549 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
44550 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
44551 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
44552 (simple_return, *simple_return): New patterns
44553 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
44554 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
44556 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
44558 * dwarf2out.c (gen_subprogram_die): Tidy.
44560 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
44563 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
44564 (*mov_t_msb_neg_negc): ... this new insn.
44566 2014-02-28 Jason Merrill <jason@redhat.com>
44569 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
44572 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
44575 * dwarf2out.c (decltype_auto_die): New static.
44576 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
44577 (gen_type_die_with_usage): Handle 'decltype(auto)'.
44578 (is_cxx_auto): Likewise.
44580 2014-02-28 Ian Bolton <ian.bolton@arm.com>
44582 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
44583 we are not using general regs only.
44585 2014-02-28 Richard Biener <rguenther@suse.de>
44588 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
44589 previous fix and only allow to remove trivial pre-headers
44590 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
44591 (remove_forwarder_block): Properly update the latch of a loop.
44593 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44596 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
44597 (cselib_preserved_hash_table): New.
44598 (preserve_constants_and_equivs): Move preserved vals to it.
44599 (cselib_find_slot): Look it up first.
44600 (cselib_init): Initialize it.
44601 (cselib_finish): Release it.
44602 (dump_cselib_table): Dump it.
44604 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44607 * cselib.c (remove_useless_values): Skip to avoid quadratic
44608 behavior if the condition moved from...
44609 (cselib_process_insn): ... here holds.
44611 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44614 * var-tracking.c (vt_initialize): Apply the same condition to
44615 preserve the CFA base value.
44617 2014-02-28 Joey Ye <joey.ye@arm.com>
44620 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
44621 if reload in progress or completed.
44623 2014-02-28 Tobias Burnus <burnus@net-b.de>
44625 PR middle-end/60147
44626 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
44629 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
44631 * doc/tm.texi.in (Condition Code Status): Update documention for
44632 relative locations of cc0-setter and cc0-user.
44634 2014-02-27 Jeff Law <law@redhat.com>
44636 PR rtl-optimization/52714
44637 * combine.c (try_combine): When splitting an unrecognized PARALLEL
44638 into two independent simple sets, if I3 is a jump, ensure the
44639 pattern we place into I3 is a (set (pc) ...).
44641 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
44642 Jeff Law <law@redhat.com>
44644 PR rtl-optimization/49847
44645 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
44646 are in different blocks.
44647 * doc/tm.texi (Condition Code Status): Update documention for
44648 relative locations of cc0-setter and cc0-user.
44650 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
44653 * lra.c (lra_emit_add): Check SUBREG too.
44655 2014-02-27 Andreas Schwab <schwab@suse.de>
44657 * config/m68k/m68k.c (m68k_option_override): Disable
44658 -flive-range-shrinkage for classic m68k.
44659 (m68k_override_options_after_change): Likewise.
44661 2014-02-27 Marek Polacek <polacek@redhat.com>
44663 PR middle-end/59223
44664 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
44665 -Wmaybe-uninitialized.
44667 2014-02-27 Alan Modra <amodra@gmail.com>
44670 * reload1.c (emit_input_reload_insns): When reload_override_in,
44671 set old to rl->in_reg when rl->in_reg is a subreg.
44673 2014-02-26 Richard Biener <rguenther@suse.de>
44676 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
44678 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
44680 * common/config/i386/predicates.md (const1256_operand): Remove.
44681 (const2356_operand): New.
44682 (const_1_to_2_operand): Remove.
44683 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
44684 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
44685 (*avx512pf_gatherpf<mode>sf): Ditto.
44686 (avx512pf_gatherpf<mode>df): Ditto.
44687 (*avx512pf_gatherpf<mode>df_mask): Ditto.
44688 (*avx512pf_gatherpf<mode>df): Ditto.
44689 (avx512pf_scatterpf<mode>sf): Ditto.
44690 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
44691 (*avx512pf_scatterpf<mode>sf): Ditto.
44692 (avx512pf_scatterpf<mode>df): Ditto.
44693 (*avx512pf_scatterpf<mode>df_mask): Ditto.
44694 (*avx512pf_scatterpf<mode>df): Ditto.
44695 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
44697 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
44699 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
44700 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
44701 (_mm512_mask_testn_epi64_mask): Move to ...
44702 * config/i386/avx512cdintrin.h: Here.
44703 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
44704 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
44705 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
44706 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
44707 TARGET_AVX512F from TARGET_AVX512CD.
44709 2014-02-26 Richard Biener <rguenther@suse.de>
44712 * ipa.c (walk_polymorphic_call_targets): Properly guard
44713 call to inline_update_overall_summary.
44715 2014-02-26 Bin Cheng <bin.cheng@arm.com>
44718 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
44719 and latches only if requested. Fix latch if it is removed.
44720 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
44721 LOOPS_HAVE_PREHEADERS.
44723 2014-02-25 Andrew Pinski <apinski@cavium.com>
44725 * builtins.c (expand_builtin_thread_pointer): Create a new target
44726 when the target is NULL.
44728 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
44730 PR rtl-optimization/60317
44731 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
44732 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
44733 * lra-assigns.c: Include params.h.
44734 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
44735 other reload pseudos considerations.
44737 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44739 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
44740 to use canonical form for nor<mode>3.
44742 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44745 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
44748 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
44750 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
44751 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
44752 (ix86_handle_option): Handle OPT_mprefetchwt1.
44753 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
44754 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
44756 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
44757 OPTION_MASK_ISA_PREFETCHWT1.
44758 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
44759 (PTA_PREFETCHWT1): New.
44760 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
44761 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
44762 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
44763 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
44764 (*prefetch_avx512pf_<mode>_: Change into ...
44765 (*prefetch_prefetchwt1_<mode>: This.
44766 * config/i386/i386.opt (mprefetchwt1): New.
44767 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
44768 (_mm_prefetch): Handle intent to write.
44769 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
44771 2014-02-25 Richard Biener <rguenther@suse.de>
44773 PR middle-end/60291
44774 * emit-rtl.c (mem_attrs_htab): Remove.
44775 (mem_attrs_htab_hash): Likewise.
44776 (mem_attrs_htab_eq): Likewise.
44777 (set_mem_attrs): Always allocate new mem-attrs when something changed.
44778 (init_emit_once): Do not allocate mem_attrs_htab.
44780 2014-02-25 Richard Biener <rguenther@suse.de>
44783 * lto-opts.c (lto_write_options): Output non-explicit conservative
44784 -fwrapv, -fno-trapv and -fno-strict-overflow.
44785 * lto-wrapper.c (merge_and_complain): Handle merging those options.
44786 (run_gcc): And pass them through.
44788 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
44790 * sel-sched.c (calculate_new_fences): New parameter ptime.
44791 Calculate it as a maximum over all fence cycles.
44792 (sel_sched_region_2): Adjust the call to calculate_new_fences.
44793 Print the final schedule timing when sched_verbose.
44795 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
44797 PR rtl-optimization/60292
44798 * sel-sched.c (fill_vec_av_set): Do not reset target availability
44799 bit fot the fence instruction.
44801 2014-02-24 Alangi Derick <alangiderick@gmail.com>
44803 * calls.h: Fix typo in comment.
44805 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
44807 * config/pa/pa.c (pa_output_move_double): Don't valididate when
44808 adjusting offsetable addresses.
44810 2014-02-24 Guozhi Wei <carrot@google.com>
44812 * sparseset.h (sparseset_pop): Fix the wrong index.
44814 2014-02-24 Walter Lee <walt@tilera.com>
44816 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
44817 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
44819 * common/config/tilegx/tilegx-common.c
44820 (TARGET_DEFAULT_TARGET_FLAGS): Define.
44821 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
44822 (LINK_SPEC): Ditto.
44823 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
44824 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
44825 (tilegx_gimplify_va_arg_expr): Handle big endian.
44826 (tilegx_expand_unaligned_load): Ditto.
44827 (tilegx_expand_unaligned_store): Ditto.
44828 (TARGET_RETURN_IN_MSB): New.
44829 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
44830 (TARGET_ENDIAN_DEFAULT): New.
44831 (TARGET_BIG_ENDIAN): Handle big endian.
44832 (BYTES_BIG_ENDIAN): Ditto.
44833 (WORDS_BIG_ENDIAN): Ditto.
44834 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
44835 (ENDIAN_SPEC): New.
44836 (EXTRA_SPECS): New.
44837 * config/tilegx/tilegx.md (extv): Handle big endian.
44839 (insn_st<n>): Ditto.
44840 (insn_st<n>_add<bitsuffix>): Ditto.
44841 (insn_stnt<n>): Ditto.
44842 (insn_stnt<n>_add<bitsuffix>):Ditto.
44843 (vec_interleave_highv8qi): Handle big endian.
44844 (vec_interleave_highv8qi_be): New.
44845 (vec_interleave_highv8qi_le): New.
44846 (insn_v1int_h): Handle big endian.
44847 (vec_interleave_lowv8qi): Handle big endian.
44848 (vec_interleave_lowv8qi_be): New.
44849 (vec_interleave_lowv8qi_le): New.
44850 (insn_v1int_l): Handle big endian.
44851 (vec_interleave_highv4hi): Handle big endian.
44852 (vec_interleave_highv4hi_be): New.
44853 (vec_interleave_highv4hi_le): New.
44854 (insn_v2int_h): Handle big endian.
44855 (vec_interleave_lowv4hi): Handle big endian.
44856 (vec_interleave_lowv4hi_be): New.
44857 (vec_interleave_lowv4hi_le): New.
44858 (insn_v2int_l): Handle big endian.
44859 (vec_interleave_highv2si): Handle big endian.
44860 (vec_interleave_highv2si_be): New.
44861 (vec_interleave_highv2si_le): New.
44862 (insn_v4int_h): Handle big endian.
44863 (vec_interleave_lowv2si): Handle big endian.
44864 (vec_interleave_lowv2si_be): New.
44865 (vec_interleave_lowv2si_le): New.
44866 (insn_v4int_l): Handle big endian.
44867 * config/tilegx/tilegx.opt (mbig-endian): New option.
44868 (mlittle-endian): New option.
44869 * doc/install.texi: Document tilegxbe-linux.
44870 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
44872 2014-02-24 Martin Jambor <mjambor@suse.cz>
44875 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
44876 there are no parameter descriptors.
44878 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
44880 PR rtl-optimization/60268
44881 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
44882 initialization to ...
44883 (sched_rgn_init): ... here.
44884 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
44886 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
44888 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
44891 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
44893 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
44896 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
44898 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
44899 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
44901 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
44903 * config/microblaze/predicates.md: Add cmp_op predicate.
44904 * config/microblaze/microblaze.md: Add branch_compare instruction
44905 which uses cmp_op predicate and emits cmp insn before branch.
44906 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
44907 to microblaze_expand_conditional_branch and consolidate logic.
44908 (microblaze_expand_conditional_branch): emit branch_compare
44909 insn instead of handling cmp op separate from branch insn.
44911 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44913 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
44916 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44918 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
44919 define_insn with define_expand and new define_insn
44920 *altivec_lve<VI_char>x_internal.
44921 (altivec_stve<VI_char>x): Replace define_insn with define_expand
44922 and new define_insn *altivec_stve<VI_char>x_internal.
44923 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
44925 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
44927 (altivec_expand_stvex_be): New function.
44929 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
44931 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
44932 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
44933 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
44934 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
44936 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
44939 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
44940 instead of emit_move_insn.
44942 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44944 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
44945 vspltw with vsldoi.
44946 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
44947 gen_altivec_vsumsws.
44949 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44951 * config/rs6000/altivec.md (altivec_lvxl): Rename as
44952 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
44953 (altivec_lvxl_<mode>): New define_expand incorporating
44954 -maltivec=be semantics where needed.
44955 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
44956 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
44957 semantics where needed.
44958 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
44959 (altivec_stvx_<mode>): New define_expand incorporating
44960 -maltivec=be semantics where needed.
44961 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
44962 VM2 iterator instead of V4SI.
44963 (altivec_stvxl_<mode>): New define_expand incorporating
44964 -maltivec=be semantics where needed.
44965 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
44966 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
44967 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
44968 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
44969 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
44970 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
44971 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
44972 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
44973 ALTIVEC_BUILTIN_STVXL.
44974 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
44975 (altivec_expand_stvx_be): Likewise.
44976 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
44977 (altivec_expand_lvx_be): Likewise.
44978 (altivec_expand_stvx_be): Likewise.
44979 (altivec_expand_builtin): Add cases for
44980 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
44981 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
44982 (altivec_init_builtins): Add definitions for
44983 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
44984 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
44986 2014-02-21 Catherine Moore <clm@codesourcery.com>
44988 * doc/invoke.texi (mvirt, mno-virt): Document.
44989 * config/mips/mips.opt (mvirt): New option.
44990 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
44992 2014-02-21 Richard Biener <rguenther@suse.de>
44994 PR tree-optimization/60276
44995 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
44996 (STMT_VINFO_MIN_NEG_DIST): New macro.
44997 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
44998 STMT_VINFO_MIN_NEG_DIST.
44999 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
45000 made for negative dependence distances still hold.
45002 2014-02-21 Richard Biener <rguenther@suse.de>
45004 PR middle-end/60291
45005 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
45006 DECL_INITIAL for globals not in the current function context.
45008 2014-02-21 Jakub Jelinek <jakub@redhat.com>
45010 PR tree-optimization/56490
45011 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
45012 * tree-ssa-uninit.c: Include params.h.
45013 (compute_control_dep_chain): Add num_calls argument, return false
45014 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
45015 num_calls to recursive call.
45016 (find_predicates): Change dep_chain into normal array,
45017 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
45018 variable and adjust compute_control_dep_chain caller.
45019 (find_def_preds): Likewise.
45021 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
45023 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
45024 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
45026 2014-02-21 Nick Clifton <nickc@redhat.com>
45028 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
45029 (pushhi1): Likewise.
45030 (popqi1): Add mode to pre_dec.
45031 (pophi1): Likewise.
45033 2014-02-21 Jakub Jelinek <jakub@redhat.com>
45035 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
45036 mode for mask of V8SFmode permutation.
45038 2014-02-20 Richard Henderson <rth@redhat.com>
45041 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
45042 a new pseudo for OLDVAL.
45044 2014-02-20 Jakub Jelinek <jakub@redhat.com>
45047 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
45048 gen_reg_rtx if d->testing_p.
45049 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
45050 if d->testing_p and we will certainly return true.
45051 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
45054 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
45056 * emit-rtl.c (gen_reg_rtx): Assert that
45057 crtl->emit.regno_pointer_align_length is non-zero.
45059 2014-02-20 Richard Henderson <rth@redhat.com>
45062 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
45063 on failure the store back into EXPECT.
45065 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
45066 Sandra Loosemore <sandra@codesourcery.com>
45068 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
45069 * config/nios2/nios2.c (nios2_function_profiler): Add
45070 -fPIC (flag_pic == 2) support.
45071 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
45072 (nios2_large_offset_p): New function.
45073 (nios2_unspec_reloc_p): Move up position, update to use
45074 nios2_large_offset_p.
45075 (nios2_unspec_address): Remove function.
45076 (nios2_unspec_offset): New function.
45077 (nios2_large_got_address): New function.
45078 (nios2_got_address): Add large offset support.
45079 (nios2_legitimize_tls_address): Update usage of removed and new
45081 (nios2_symbol_binds_local_p): New function.
45082 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
45083 (nios2_legitimize_address): Update to use nios2_large_offset_p.
45084 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
45085 (nios2_print_operand): Merge H/L processing, add hiadj/lo
45086 processing for (const (unspec ...)).
45087 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
45089 2014-02-20 Richard Biener <rguenther@suse.de>
45091 * tree-cfg.c (replace_uses_by): Mark altered BBs before
45092 doing the substitution.
45093 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
45095 2014-02-20 Martin Jambor <mjambor@suse.cz>
45098 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
45099 info when checking whether lattices are bottom.
45101 2014-02-20 Richard Biener <rguenther@suse.de>
45103 PR middle-end/60221
45104 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
45107 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
45110 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
45111 parameter specifying the scaling.
45112 (inline_call): Update.
45113 (want_inline_recursively): Guard division by zero.
45114 (recursive_inlining): Update.
45115 * ipa-inline.h (clone_inlined_nodes): Update.
45117 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
45120 * config/i386/i386.c (classify_argument): Pass structures of size
45121 64 bytes or less in register.
45123 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
45124 Kirill Yukhin <kirill.yukhin@intel.com>
45126 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
45127 (_mm_rcp28_round_ss): Ditto.
45128 (_mm_rsqrt28_round_sd): Ditto.
45129 (_mm_rsqrt28_round_ss): Ditto.
45130 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
45131 (_mm_rcp14_round_ss): Ditto.
45132 (_mm_rsqrt14_round_sd): Ditto.
45133 (_mm_rsqrt14_round_ss): Ditto.
45134 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
45135 the first input operand, get rid of match_dup.
45136 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
45138 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
45140 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
45141 operand as the first input operand, set type attribute.
45142 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
45143 Set type attribute.
45144 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
45145 operand as the first input operand, set type attribute.
45147 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45149 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
45152 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
45155 * config/i386/i386.c (construct_container): Remove TFmode check
45156 for X86_64_INTEGER_CLASS.
45158 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
45161 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
45162 only when -Wpsabi is enabled.
45164 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
45167 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
45168 passing arrays in registers are the same as for structs, so remove the
45169 special case for them.
45171 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
45173 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
45174 destination type, extract only the valid bits if the source type is not
45175 integral and has a different mode.
45177 2014-02-19 Richard Biener <rguenther@suse.de>
45180 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
45183 2014-02-19 Richard Biener <rguenther@suse.de>
45186 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
45187 (ipa_modify_call_arguments): Emit an argument load explicitely and
45188 preserve virtual SSA form there and for the replacement call.
45189 Do not update SSA form nor free dominance info.
45191 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
45193 * ipa.c (function_and_variable_visibility): Also clear WEAK
45194 flag when disolving COMDAT_GROUP.
45196 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
45198 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
45199 * ipa-prop.c (ipa_set_jf_known_type): Return early when
45200 not devirtualizing.
45201 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
45202 do more sanity checks.
45203 (detect_type_change): Return true when giving up early.
45204 (compute_complex_assign_jump_func): Fix type parameter of
45205 ipa_set_ancestor_jf.
45206 (compute_complex_ancestor_jump_func): Likewise.
45207 (update_jump_functions_after_inlining): Fix updating of
45209 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
45211 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
45213 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
45214 inline clones when edge disappears.
45216 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
45219 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
45220 Split 64-bit moves into 2 patterns. Do not allow the use of
45221 direct move for TDmode in little endian, since the decimal value
45222 has little endian bytes within a word, but the 64-bit pieces are
45223 ordered in a big endian fashion, and normal subreg's of TDmode are
45225 (mov<mode>_64bit_dm): Likewise.
45226 (movtd_64bit_nodm): Likewise.
45228 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
45230 PR tree-optimization/60174
45231 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
45232 statement of an SSA_NAME that occurs in an abnormal PHI node.
45234 2014-02-18 Jakub Jelinek <jakub@redhat.com>
45237 * final.c (SEEN_BB): Remove.
45238 (SEEN_NOTE, SEEN_EMITTED): Renumber.
45239 (final_scan_insn): Don't force_source_line on second
45240 NOTE_INSN_BASIC_BLOCK.
45242 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
45245 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
45246 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
45247 (type_natural_mode): Warn ABI change when %zmm register is not
45248 available for AVX512F vector value passing.
45250 2014-02-18 Kai Tietz <ktietz@redhat.com>
45253 * config/i386/i386.c (ix86_expand_prologue): Use value in
45254 rax register as displacement when restoring %r10 or %rax.
45255 Fix wrong offset when restoring both registers.
45257 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
45259 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
45260 assertion with conditional return.
45262 2014-02-18 Jakub Jelinek <jakub@redhat.com>
45263 Uros Bizjak <ubizjak@gmail.com>
45266 * config/i386/driver-i386.c (host_detect_local_cpu): If
45267 YMM state is not saved by the OS, also clear has_f16c. Move
45268 CPUID 0x80000001 handling before YMM state saving checking.
45270 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
45272 PR rtl-optimization/58960
45273 * haifa-sched.c (alloc_global_sched_pressure_data): New,
45274 factored out from ...
45275 (sched_init): ... here.
45276 (free_global_sched_pressure_data): New, factored out from ...
45277 (sched_finish): ... here.
45278 * sched-int.h (free_global_sched_pressure_data): Declare.
45279 * sched-rgn.c (nr_regions_initial): New static global.
45280 (haifa_find_rgns): Initialize it.
45281 (schedule_region): Disable sched-pressure for the newly
45284 2014-02-17 Richard Biener <rguenther@suse.de>
45286 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
45287 release SSA defs of pattern stmts.
45289 2014-02-17 Richard Biener <rguenther@suse.de>
45291 * tree-inline.c (expand_call_inline): Release the virtual
45292 operand defined by the call we are about to inline.
45294 2014-02-17 Richard Biener <rguenther@suse.de>
45296 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
45298 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
45299 Ilya Tocar <ilya.tocar@intel.com>
45301 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
45302 arguments order in builtin.
45303 (_mm512_permutexvar_epi64): Ditto.
45304 (_mm512_mask_permutexvar_epi64): Ditto
45305 (_mm512_maskz_permutexvar_epi32): Ditto
45306 (_mm512_permutexvar_epi32): Ditto
45307 (_mm512_mask_permutexvar_epi32): Ditto
45309 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45311 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
45312 (p8_vmrgow): Likewise.
45314 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45316 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
45319 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
45322 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
45323 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
45324 into 64-bit and 32-bit moves. On 64-bit moves, add support for
45325 using direct move instructions on ISA 2.07. Also adjust
45326 instruction length for 64-bit.
45327 (mov<mode>_64bit, TFmode/TDmode): Likewise.
45328 (mov<mode>_32bit, TFmode/TDmode): Likewise.
45330 2014-02-15 Alan Modra <amodra@gmail.com>
45334 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
45335 find_replacement on parts of insn rtl that might be reloaded.
45337 2014-02-15 Richard Biener <rguenther@suse.de>
45339 PR tree-optimization/60183
45340 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
45341 (tree_ssa_phiprop): Calculate and free post-dominators.
45343 2014-02-14 Jeff Law <law@redhat.com>
45345 PR rtl-optimization/60131
45346 * ree.c (get_extended_src_reg): New function.
45347 (combine_reaching_defs): Use it rather than assuming location of REG.
45348 (find_and_remove_re): Verify first operand of extension is
45349 a REG before adding the insns to the copy list.
45351 2014-02-14 Roland McGrath <mcgrathr@google.com>
45353 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
45354 * configure: Regenerated.
45355 * config.in: Regenerated.
45356 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
45357 instead of ASM_SHORT.
45359 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
45360 Richard Earnshaw <rearnsha@arm.com>
45362 PR rtl-optimization/59535
45363 * lra-constraints.c (process_alt_operands): Encourage alternative
45364 when unassigned pseudo class is superset of the alternative class.
45365 (inherit_reload_reg): Don't inherit when optimizing for code size.
45366 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
45367 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
45368 modes not less than 4 for Thumb1.
45370 2014-02-14 Kyle McMartin <kyle@redhat.com>
45373 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
45375 2014-02-14 Richard Biener <rguenther@suse.de>
45377 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
45378 (get_frame_arg): Drop the assert with langhook types_compatible_p.
45379 Do not strip INDIRECT_REFs.
45381 2014-02-14 Richard Biener <rguenther@suse.de>
45384 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
45385 DECL_FUNCTION_SPECIFIC_TARGET.
45386 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
45387 * tree-streamer-out.c (pack_ts_target_option): Remove.
45388 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
45389 (write_ts_function_decl_tree_pointers): Do not stream
45390 DECL_FUNCTION_SPECIFIC_TARGET.
45391 * tree-streamer-in.c (unpack_ts_target_option): Remove.
45392 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
45393 (lto_input_ts_function_decl_tree_pointers): Do not stream
45394 DECL_FUNCTION_SPECIFIC_TARGET.
45396 2014-02-14 Jakub Jelinek <jakub@redhat.com>
45398 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
45399 (get_initial_def_for_induction, vectorizable_induction): Ignore
45400 debug stmts when looking for exit_phi.
45401 (vectorizable_live_operation): Fix up condition.
45403 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
45405 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
45406 nreverse() because it changes the content of original tree list.
45408 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
45410 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
45411 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
45413 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
45415 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
45416 GNU coding standards.
45418 2014-02-13 Jakub Jelinek <jakub@redhat.com>
45421 * dwarf2out.c (gen_subprogram_die): Don't call
45422 add_calling_convention_attribute if subr_die is old_die.
45424 2014-02-13 Sharad Singhai <singhai@google.com>
45426 * doc/optinfo.texi: Fix order of nodes.
45428 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
45430 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
45431 operands[2], not operands[3].
45433 2014-02-13 Richard Biener <rguenther@suse.de>
45436 * doc/install.texi (ISL): Update recommended version to 0.12.2,
45437 mention the possibility of an in-tree build.
45438 (CLooG): Update recommended version to 0.18.1, mention the
45439 possibility of an in-tree build and clarify that the ISL
45440 bundled with CLooG does not work.
45442 2014-02-13 Jakub Jelinek <jakub@redhat.com>
45445 * expr.c (compress_float_constant): If x is a hard register,
45446 extend into a pseudo and then move to x.
45448 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
45450 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
45451 caused by bad second argument to warning_at() with -mhotpatch and
45452 nested functions (e.g. with gfortran).
45454 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
45456 * opts.c (option_name): Remove "enabled by default" rider.
45458 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
45460 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
45462 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
45463 Uros Bizjak <ubizjak@gmail.com>
45466 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
45467 * configure: Regenerated.
45469 2014-02-12 Richard Biener <rguenther@suse.de>
45471 * vec.c (vec_prefix::calculate_allocation): Move as
45472 inline variant to vec.h.
45473 (vec_prefix::calculate_allocation_1): New out-of-line version.
45474 * vec.h (vec_prefix::calculate_allocation_1): Declare.
45475 (vec_prefix::m_has_auto_buf): Rename to ...
45476 (vec_prefix::m_using_auto_storage): ... this.
45477 (vec_prefix::calculate_allocation): Inline the easy cases
45478 and dispatch to calculate_allocation_1 which doesn't need the
45480 (va_heap::reserve): Use gcc_checking_assert.
45481 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
45482 m_using_auto_storage.
45483 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
45485 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
45486 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
45487 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
45489 2014-02-12 Richard Biener <rguenther@suse.de>
45491 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
45492 when we found a dependence.
45494 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
45496 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
45498 (maybe_fold_stmt): ... into this new function.
45499 * omp-low.c (lower_omp): Update comment.
45501 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
45504 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
45507 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
45509 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
45510 identifiers in comments.
45511 (cortexa53_extra_costs): Likewise.
45512 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
45513 (cortexa7_extra_costs): Likewise.
45514 (cortexa12_extra_costs): Likewise.
45515 (cortexa15_extra_costs): Likewise.
45516 (v7m_extra_costs): Likewise.
45518 2014-02-12 Richard Biener <rguenther@suse.de>
45520 PR middle-end/60092
45521 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
45522 of posix_memalign being successful.
45523 (lower_stmt): Restrict lowering of posix_memalign to when
45524 -ftree-bit-ccp is enabled.
45526 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
45528 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
45530 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
45532 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
45534 PR rtl-optimization/60116
45535 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
45536 other_insn once the combination has been validated.
45538 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
45541 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
45543 * ipa-devirt.c: Include demangle.h
45544 (odr_violation_reported): New static variable.
45545 (add_type_duplicate): Update odr_violations.
45546 (maybe_record_node): Add completep parameter; update it.
45547 (record_target_from_binfo): Add COMPLETEP parameter;
45548 update it as needed.
45549 (possible_polymorphic_call_targets_1): Likewise.
45550 (struct polymorphic_call_target_d): Add nonconstruction_targets;
45551 rename FINAL to COMPLETE.
45552 (record_targets_from_bases): Sanity check we found the binfo;
45553 fix COMPLETEP updating.
45554 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
45555 parameter, fix computing of COMPLETEP.
45556 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
45557 at LTO time do demangling.
45558 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
45559 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
45561 (gimple_get_virt_method_for_binfo): Likewise.
45562 * gimple-fold.h (gimple_get_virt_method_for_binfo,
45563 gimple_get_virt_method_for_vtable): Update prototypes.
45565 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
45568 * genautomata.c (add_presence_absence): Fix typo with
45569 {final_}presence_list.
45571 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
45574 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
45575 for VSX/Altivec vectors that land in GPR registers.
45577 2014-02-11 Richard Henderson <rth@redhat.com>
45578 Jakub Jelinek <jakub@redhat.com>
45581 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
45582 around drhs if type conversion to lacc->type is not useless.
45584 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45586 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
45588 (cortex-a57.cortex-a53): Likewise.
45589 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
45591 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45593 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
45596 2014-02-11 Renlin Li <Renlin.Li@arm.com>
45598 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
45599 add_options_for_arm_vfp3.
45601 2014-02-11 Jeff Law <law@redhat.com>
45603 PR middle-end/54041
45604 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
45605 object with an undesirable mode.
45607 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
45610 * config/i386/sol2-9.h: New file.
45611 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
45612 *-*-solaris2.9*): Use it.
45614 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
45616 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
45617 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
45619 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
45621 * config/microblaze/microblaze.c: Extend mcpu version format
45623 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
45625 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
45627 2014-02-10 Richard Henderson <rth@redhat.com>
45630 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
45631 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
45632 ms-abi vs -mno-accumulate-outgoing-args.
45633 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
45634 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
45637 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
45639 PR middle-end/60080
45640 * cfgexpand.c (expand_asm_operands): Attach source location to
45641 ASM_INPUT rtx objects.
45642 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
45644 2014-02-10 Nick Clifton <nickc@redhat.com>
45646 * config/mn10300/mn10300.c (popcount): New function.
45647 (mn10300_expand_prologue): Include saved registers in stack usage
45650 2014-02-10 Jeff Law <law@redhat.com>
45652 PR middle-end/52306
45653 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
45654 when changing the SET_DEST of a prior insn to avoid an input reload.
45656 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
45658 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
45659 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
45660 -mcall-openbsd, or -mcall-linux.
45661 (CC1_ENDIAN_BIG_SPEC): Remove.
45662 (CC1_ENDIAN_LITTLE_SPEC): Remove.
45663 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
45664 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
45665 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
45666 and %cc1_endian_default.
45667 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
45669 2014-02-10 Richard Biener <rguenther@suse.de>
45671 PR tree-optimization/60115
45672 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
45673 MEM_REF handling. Properly verify that the accesses are not
45674 out of the objects bound.
45676 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45678 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
45681 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
45683 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
45684 proper constants and fix formatting.
45685 (possible_polymorphic_call_targets): Fix formatting.
45687 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
45688 Ilya Tocar <ilya.tocar@intel.com>
45690 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
45691 (_mm512_loadu_epi32): Renamed into...
45692 (_mm512_loadu_si512): This.
45693 (_mm512_storeu_epi32): Renamed into...
45694 (_mm512_storeu_si512): This.
45695 (_mm512_maskz_ceil_ps): Removed.
45696 (_mm512_maskz_ceil_pd): Ditto.
45697 (_mm512_maskz_floor_ps): Ditto.
45698 (_mm512_maskz_floor_pd): Ditto.
45699 (_mm512_floor_round_ps): Ditto.
45700 (_mm512_floor_round_pd): Ditto.
45701 (_mm512_ceil_round_ps): Ditto.
45702 (_mm512_ceil_round_pd): Ditto.
45703 (_mm512_mask_floor_round_ps): Ditto.
45704 (_mm512_mask_floor_round_pd): Ditto.
45705 (_mm512_mask_ceil_round_ps): Ditto.
45706 (_mm512_mask_ceil_round_pd): Ditto.
45707 (_mm512_maskz_floor_round_ps): Ditto.
45708 (_mm512_maskz_floor_round_pd): Ditto.
45709 (_mm512_maskz_ceil_round_ps): Ditto.
45710 (_mm512_maskz_ceil_round_pd): Ditto.
45711 (_mm512_expand_pd): Ditto.
45712 (_mm512_expand_ps): Ditto.
45713 * config/i386/i386.c (ix86_builtins): Remove
45714 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
45715 (bdesc_args): Ditto.
45716 * config/i386/predicates.md (const1256_operand): New.
45717 (const_1_to_2_operand): Ditto.
45718 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
45719 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
45720 (*avx512pf_gatherpf<mode>sf): Ditto.
45721 (avx512pf_gatherpf<mode>df): Ditto.
45722 (*avx512pf_gatherpf<mode>df_mask): Ditto.
45723 (*avx512pf_gatherpf<mode>df): Ditto.
45724 (avx512pf_scatterpf<mode>sf): Ditto.
45725 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
45726 (*avx512pf_scatterpf<mode>sf): Ditto.
45727 (avx512pf_scatterpf<mode>df): Ditto.
45728 (*avx512pf_scatterpf<mode>df_mask): Ditto.
45729 (*avx512pf_scatterpf<mode>df): Ditto.
45730 (avx512f_expand<mode>): Removed.
45731 (<shift_insn><mode>3<mask_name>): Change predicate type.
45733 2014-02-08 Jakub Jelinek <jakub@redhat.com>
45735 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
45736 not at the end of datarefs vector use ordered_remove to avoid
45737 reordering datarefs vector.
45740 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
45741 mark local addressable non-static vars as GOVD_PRIVATE
45742 instead of GOVD_LOCAL.
45743 * omp-low.c (lower_omp_for): Move gimple_bind_vars
45744 and BLOCK_VARS of gimple_bind_block to new_stmt rather
45747 PR middle-end/60092
45748 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
45749 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
45750 assume_aligned or alloc_align attributes.
45751 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
45752 arguments. Handle also assume_aligned and alloc_align attributes.
45753 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
45754 calls to functions with assume_aligned or alloc_align attributes.
45755 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
45757 2014-02-08 Terry Guo <terry.guo@arm.com>
45759 * doc/invoke.texi: Document ARM -march=armv7e-m.
45761 2014-02-08 Jakub Jelinek <jakub@redhat.com>
45763 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
45764 flag on __cilkrts_rethrow builtin.
45767 * ipa-cp.c (determine_versionability): Fail at -O0
45768 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
45769 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
45772 2014-02-04 Jakub Jelinek <jakub@redhat.com>
45775 * tree-inline.c (copy_forbidden): Fail for
45776 __attribute__((optimize (0))) functions.
45778 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
45780 * varpool.c: Include pointer-set.h.
45781 (varpool_remove_unreferenced_decls): Variables in other partitions
45782 will not be output; be however careful to not lose information
45783 about partitioning.
45785 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
45787 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
45788 lookup in the vtable constructor.
45790 2014-02-07 Jeff Law <law@redhat.com>
45793 * config/m68k/m68k.md (ashldi_extsi): Turn into a
45794 define_insn_and_split.
45796 * ipa-inline.c (inline_small_functions): Fix typos.
45798 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45800 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
45801 (s390_can_use_return_insn): Declare.
45802 * config/s390/s390.h (EPILOGUE_USES): Define.
45803 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
45805 (s390_chunkify_start): Handle return JUMP_LABELs.
45806 (s390_early_mach): Emit a main_pool instruction on the entry edge.
45807 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
45808 (s390_can_use_return_insn): New functions.
45809 (s390_fix_long_loop_prediction): Handle conditional returns.
45810 (TARGET_SET_UP_BY_PROLOGUE): Define.
45811 * config/s390/s390.md (ANY_RETURN): New code iterator.
45812 (*creturn, *csimple_return, return, simple_return): New patterns.
45814 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45816 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
45817 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
45818 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
45819 REG_CFA_RESTORE list when deciding not to restore a register.
45821 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45823 * config/s390/s390.c: Include tree-pass.h and context.h.
45824 (s390_early_mach): New function, split out from...
45825 (s390_emit_prologue): ...here.
45826 (pass_data_s390_early_mach): New pass structure.
45827 (pass_s390_early_mach): New class.
45828 (s390_option_override): Create and register early_mach pass.
45829 Move to end of file.
45831 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45833 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
45834 to match for the exit block.
45836 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
45838 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
45839 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
45840 Reject misaligned operands.
45842 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
45844 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
45846 2014-02-07 Richard Biener <rguenther@suse.de>
45848 PR middle-end/60092
45849 * gimple-low.c (lower_builtin_posix_memalign): New function.
45850 (lower_stmt): Call it to lower posix_memalign in a way
45851 to make alignment info accessible.
45853 2014-02-07 Jakub Jelinek <jakub@redhat.com>
45856 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
45857 __builtin_setjmp_receiver.
45859 2014-02-07 Richard Biener <rguenther@suse.de>
45861 PR middle-end/60092
45862 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
45863 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
45864 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
45865 Handle BUILT_IN_POSIX_MEMALIGN.
45866 (find_func_clobbers): Likewise.
45867 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
45868 (call_may_clobber_ref_p_1): Likewise.
45870 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
45873 * ipa-devirt.c (record_target_from_binfo): Remove overactive
45876 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
45879 * lto-cgraph.c (lto_output_node): Use
45880 symtab_get_symbol_partitioning_class.
45881 (lto_output_varpool_node): likewise.
45882 (symtab_get_symbol_partitioning_class): Move here from
45883 lto/lto-partition.c
45884 * cgraph.h (symbol_partitioning_class): Likewise.
45885 (symtab_get_symbol_partitioning_class): Declare.
45887 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
45889 * ggc.h (ggc_internal_cleared_alloc): New macro.
45890 * vec.h (vec_safe_copy): Handle memory stats.
45891 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
45892 * target-globals.c (save_target_globals): Likewise.
45894 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
45897 * expr.c (emit_move_resolve_push): Export; be bit more selective
45898 on when to clear alias set.
45899 * expr.h (emit_move_resolve_push): Declare.
45900 * function.h (struct function): Add tail_call_marked.
45901 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
45902 * config/i386/i386-protos.h (ix86_expand_push): Remove.
45903 * config/i386/i386.md (TImode move expander): De not call
45905 (FP push expanders): Preserve memory attributes.
45906 * config/i386/sse.md (push<mode>1): Remove.
45907 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
45908 (ix86_expand_push): Remove.
45909 * config/i386/mmx.md (push<mode>1): Remove.
45911 2014-02-06 Jakub Jelinek <jakub@redhat.com>
45913 PR rtl-optimization/60030
45914 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
45915 lopart with paradoxical subreg before shifting it up by hprec.
45917 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45919 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
45920 Remove extra newline at end of file.
45921 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
45922 (arm_issue_rate): Handle cortexa57.
45923 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
45924 (cortex-a57.cortex-a53): Likewise.
45926 2014-02-06 Jakub Jelinek <jakub@redhat.com>
45929 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
45930 don't record in REG_FRAME_RELATED_EXPR registers not set in that
45932 (arm_expand_prologue): Adjust all callers.
45933 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
45934 info, registers also at the lowest numbered registers side. Use
45935 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
45939 * var-tracking.c (adjust_mems): Before adding a SET to
45940 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
45942 2014-02-06 Alan Modra <amodra@gmail.com>
45945 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
45946 change SDmode to DDmode when lra_in_progress.
45948 2014-02-06 Jakub Jelinek <jakub@redhat.com>
45950 PR middle-end/59150
45951 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
45952 free_data_ref on the dr first, and before goto again also set dr
45953 to the next dr. For simd_lane_access, free old datarefs[i] before
45954 overwriting it. For get_vectype_for_scalar_type failure, don't
45955 free_data_ref if simd_lane_access.
45957 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
45960 * tree.h (opts_for_fn): New inline function.
45961 (opt_for_fn): Define.
45962 * config/i386/i386.c (ix86_function_regparm): Use
45963 opt_for_fn (decl, optimize) instead of optimize.
45965 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
45967 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
45968 for SYMBOL_REF in large memory model.
45970 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45972 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
45973 and crypto support.
45974 (cortex-a57): Likewise.
45975 (cortex-a57.cortex-a53): Likewise.
45977 2014-02-06 Yury Gribov <y.gribov@samsung.com>
45978 Kugan Vivekanandarajah <kuganv@linaro.org>
45980 * config/arm/arm.c (arm_vector_alignment_reachable): Check
45982 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
45984 2014-02-06 Richard Biener <rguenther@suse.de>
45986 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
45987 set_loop_copy and initialize_original_copy_tables.
45989 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
45991 * config/aarch64/aarch64-simd.md
45992 (aarch64_ashr_simddi): Change QI to SI.
45994 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
45995 Jakub Jelinek <jakub@redhat.com>
45997 PR middle-end/60013
45998 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
46001 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46003 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
46004 CODE_FOR_altivec_vpku[hw]um to
46005 CODE_FOR_altivec_vpku[hw]um_direct.
46006 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
46007 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
46008 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
46009 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
46011 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46013 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
46014 generation for -maltivec=be.
46015 (altivec_vsumsws): Simplify redundant test.
46017 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46019 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
46020 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
46021 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
46022 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
46023 gen_altivec_vpkuwum.
46024 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
46026 (altivec_vpks<VI_char>ss): Likewise.
46027 (altivec_vpks<VI_char>us): Likewise.
46028 (altivec_vpku<VI_char>us): Likewise.
46029 (altivec_vpku<VI_char>um): Likewise.
46030 (altivec_vpku<VI_char>um_direct): New (copy of
46031 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
46033 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
46034 target is little endian and -maltivec=be is not specified.
46035 (*altivec_vupkhs<VU_char>_direct): New (copy of
46036 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
46037 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
46038 target is little endian and -maltivec=be is not specified.
46039 (*altivec_vupkls<VU_char>_direct): New (copy of
46040 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
46041 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
46042 little endian and -maltivec=be is not specified.
46043 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
46044 little endian and -maltivec=be is not specified.
46046 2014-02-05 Richard Henderson <rth@redhat.com>
46049 * combine-stack-adj.c: Revert r206943.
46050 * sched-int.h (struct deps_desc): Add last_args_size.
46051 * sched-deps.c (init_deps): Initialize it.
46052 (sched_analyze_insn): Add OUTPUT dependencies between insns that
46053 contain REG_ARGS_SIZE notes.
46055 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
46057 * lto-cgraph.c (asm_nodes_output): Make global.
46058 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
46059 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
46060 (driver_handle_option): Handle OPT_fwpa.
46062 2014-02-05 Jakub Jelinek <jakub@redhat.com>
46065 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
46066 a comment typo and formatting issue. If odr_hash hasn't been
46067 created, return vNULL and set *completep to false.
46069 PR middle-end/57499
46070 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
46071 bb with no successors.
46073 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
46076 * doc/invoke.texi (-march): Clarify documentation for ARM.
46077 (-mtune): Likewise.
46080 2014-02-05 Richard Biener <rguenther@suse.de>
46082 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
46083 when not vectorizing because of too many alias checks.
46084 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
46085 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
46087 2014-02-05 Nick Clifton <nickc@redhat.com>
46089 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
46090 accept extended registers in any mode when compiling for the MN10300.
46092 2014-02-05 Yury Gribov <y.gribov@samsung.com>
46094 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
46095 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
46096 sanitization attributes.
46097 (can_inline_edge_p): Likewise.
46098 (sanitize_attrs_match_for_inline_p): New function.
46100 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
46102 * ipa-prop.c (detect_type_change): Shor circuit testing of
46103 type changes on THIS pointer.
46105 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
46108 * config/pa/pa.c (legitimize_tls_address): Return original address
46109 if not passed a SYMBOL_REF rtx.
46110 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
46112 (pa_emit_move_sequence): Simplify TLS source operands.
46113 (pa_legitimate_constant_p): Reject all TLS constants.
46114 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
46115 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
46117 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
46119 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
46120 groups when we know they are controlled by LTO.
46121 * varasm.c (default_binds_local_p_1): If object is in other partition,
46122 it will be resolved locally.
46124 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
46126 * config/host-linux.c (linux_gt_pch_use_address): Don't
46127 use SSIZE_MAX because it is not always defined.
46129 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
46132 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
46133 threshold for pseudo splitting.
46134 (update_ebb_live_info): Process call argument hard registers and
46135 hard registers from insn definition too.
46136 (max_small_class_regs_num): New constant.
46137 (inherit_in_ebb): Update live hard regs through EBBs. Update
46138 reloads_num only for small register classes. Don't split for
46141 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
46144 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
46147 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
46149 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
46150 visibility is safe.
46152 2014-02-04 Marek Polacek <polacek@redhat.com>
46154 * gdbinit.in (pel): Define.
46156 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
46158 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
46161 2014-02-04 Richard Biener <rguenther@suse.de>
46164 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
46165 in function context local.
46166 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
46167 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
46168 similar to LTO_imported_decl_ref.
46170 2014-02-04 Jakub Jelinek <jakub@redhat.com>
46172 PR tree-optimization/60002
46173 * cgraphclones.c (build_function_decl_skip_args): Clear
46174 DECL_LANG_SPECIFIC.
46176 PR tree-optimization/60023
46177 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
46178 false to gsi_replace.
46179 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
46180 has been in some EH region and vec_stmt could throw, add
46181 vec_stmt into the same EH region.
46182 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
46183 has no lhs, ignore it.
46184 * internal-fn.c (expand_MASK_LOAD): Likewise.
46187 * tree-inline.c (copy_forbidden): Fail for
46188 __attribute__((optimize (0))) functions.
46191 * omp-low.c (simd_clone_struct_copy): If from->inbranch
46192 is set, copy one less argument.
46193 (expand_simd_clones): Don't subtract clone_info->inbranch
46194 from simd_clone_struct_alloc argument.
46196 PR rtl-optimization/57915
46197 * recog.c (simplify_while_replacing): If all unary/binary/relational
46198 operation arguments are constant, attempt to simplify those.
46200 PR middle-end/59261
46201 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
46202 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
46204 2014-02-04 Richard Biener <rguenther@suse.de>
46206 PR tree-optimization/60012
46207 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
46208 TBAA disambiguation to all DDRs.
46210 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
46213 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
46214 (LINK_SPEC): Use it for -shared, -shared-libgcc.
46216 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46219 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
46221 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46223 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
46224 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
46226 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46229 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
46230 to figure out targets of polymorphic calls with known decl.
46231 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
46232 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
46233 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
46234 (get_polymorphic_call_info): ... here.
46235 (get_polymorphic_call_info_from_invariant): New function.
46237 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46239 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
46240 lookup via vtable pointer; check for type consistency
46241 and turn inconsitent facts into UNREACHABLE.
46242 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
46243 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
46244 type inconsistent querries; return UNREACHABLE instead.
46246 2014-02-03 Richard Henderson <rth@twiddle.net>
46249 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
46250 already processed this node.
46251 (normalize_one_pred_1): Pass along mark_set.
46252 (normalize_one_pred): Create and destroy a pointer_set_t.
46253 (normalize_one_pred_chain): Likewise.
46255 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
46257 PR gcov-profile/58602
46258 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
46260 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46263 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
46264 -fno-devirtualize; try to devirtualize by the knowledge of
46265 virtual table pointer given by aggregate propagation.
46266 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
46267 (ipa_print_node_jump_functions): Dump also offset that
46268 is relevant for polymorphic calls.
46269 (determine_known_aggregate_parts): Add arg_type parameter; use it
46270 instead of determining the type from pointer type.
46271 (ipa_compute_jump_functions_for_edge): Update call of
46272 determine_known_aggregate_parts.
46273 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
46274 (gimple_get_virt_method_for_binfo): ... here; simplify using
46275 vtable_pointer_value_to_vtable.
46276 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
46277 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
46278 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
46279 (vtable_pointer_value_to_vtable): Break out from ...; handle also
46281 (vtable_pointer_value_to_binfo): ... here.
46282 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
46284 2014-02-03 Teresa Johnson <tejohnson@google.com>
46286 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
46287 redef of outer loop index variable.
46289 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
46293 * doc/extend.texi (Function Attributes): Typo.
46295 2014-02-03 Cong Hou <congh@google.com>
46297 PR tree-optimization/60000
46298 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
46299 if the vectorized statement is a store. A store statement can only
46300 appear at the end of pattern statements.
46302 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
46304 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
46305 (ix86_option_override_internal): Default long double to 64-bit for
46306 32-bit Bionic and to 128-bit for 64-bit Bionic.
46308 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
46309 TARGET_LONG_DOUBLE_128 is true.
46310 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
46312 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
46313 (mlong-double-64): Negate -mlong-double-128.
46314 (mlong-double-128): New option.
46316 * config/i386/i386-c.c (ix86_target_macros): Define
46317 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
46319 * doc/invoke.texi: Document -mlong-double-128.
46321 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
46323 PR rtl-optimization/60024
46324 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
46326 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
46328 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
46330 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
46332 PR rtl-optimization/57662
46333 * sel-sched.c (code_motion_path_driver): Do not mark already not
46334 existing blocks in the visiting bitmap.
46336 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
46338 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
46339 on the insn being emitted.
46341 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
46342 Will Deacon <will.deacon@arm.com>
46344 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
46346 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
46348 * config/arm/arm-tables.opt: Regenerate.
46350 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46352 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
46353 for vector types other than V16QImode.
46354 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
46355 define_expand, and call altivec_expand_vec_perm_le when producing
46356 code with little endian element order.
46357 (*altivec_vperm_<mode>_internal): New insn having previous
46358 behavior of altivec_vperm_<mode>.
46359 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
46360 altivec_expand_vec_perm_le when producing code with little endian
46362 (*altivec_vperm_<mode>_uns_internal): New insn having previous
46363 behavior of altivec_vperm_<mode>_uns.
46365 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46367 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
46368 (altivec_vsumsws): Add handling for -maltivec=be with a little
46370 (altivec_vsumsws_direct): New.
46371 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
46372 gen_altivec_vsumsws.
46374 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
46376 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
46377 vtable_pointer_value_to_binfo): New functions.
46378 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
46379 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
46381 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
46383 * config/nios2/nios2.md (load_got_register): Initialize GOT
46384 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
46385 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
46387 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
46389 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
46390 preserverd by passthrough, do not propagate the type.
46392 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
46394 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
46395 (mips_atomic_assign_expand_fenv): New function.
46396 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
46398 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
46400 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
46401 (__builtin_mips_set_fcsr): Likewise.
46402 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
46403 MIPS_USI_FTYPE_VOID.
46404 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
46405 (mips16_expand_set_fcsr): Likewise.
46406 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
46407 (mips16_set_fcsr_stub): Likewise.
46408 (mips16_get_fcsr_one_only_stub): New class.
46409 (mips16_set_fcsr_one_only_stub): Likewise.
46410 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
46411 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
46412 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
46413 (hard_float): New availability predicate.
46414 (mips_builtins): Add get_fcsr and set_fcsr.
46415 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
46416 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
46417 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
46418 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
46419 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
46422 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
46424 * config/mips/mips.c (mips_one_only_stub): New class.
46425 (mips_need_mips16_rdhwr_p): Replace with...
46426 (mips16_rdhwr_stub): ...this new variable.
46427 (mips16_stub_call_address): New function.
46428 (mips16_rdhwr_one_only_stub): New class.
46429 (mips_expand_thread_pointer): Use mips16_stub_call_address.
46430 (mips_output_mips16_rdhwr): Delete.
46431 (mips_finish_stub): New function.
46432 (mips_code_end): Use it to handle rdhwr stubs.
46434 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
46437 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
46438 when calculating size of integer atomic types.
46440 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
46442 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
46444 2014-02-01 Jakub Jelinek <jakub@redhat.com>
46446 PR tree-optimization/60003
46447 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
46448 * profile.c (branch_prob): Use gimple_call_builtin_p
46449 to check for BUILT_IN_SETJMP_RECEIVER.
46450 * tree-inline.c (copy_bb): Call notice_special_calls.
46452 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
46455 * lra-constraints.c (process_alt_operands): Update reload_sum only
46458 2014-01-31 Richard Henderson <rth@redhat.com>
46460 PR middle-end/60004
46461 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
46462 until after else_eh is processed.
46464 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
46466 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
46467 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
46468 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
46469 in smmintrin.h, remove them.
46470 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
46471 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
46472 * config/i386/i386.md (ROUND_SAE): Fix value.
46473 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
46474 (const48_operand): New.
46475 * config/i386/subst.md (round), (round_expand): Use
46476 const_4_or_8_to_11_operand.
46477 (round_saeonly), (round_saeonly_expand): Use const48_operand.
46479 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
46481 * config/i386/constraints.md (Yk): Swap meaning with k.
46482 * config/i386/i386.md (movhi_internal): Change Yk to k.
46483 (movqi_internal): Ditto.
46484 (*k<logic><mode>): Ditto.
46487 (kandn<mode>): Ditto.
46488 (*<code>hi_1): Ditto.
46489 (*<code>qi_1): Ditto.
46490 (kxnor<mode>): Ditto.
46491 (kortestzhi): Ditto.
46492 (kortestchi): Ditto.
46494 (*one_cmplhi2_1): Ditto.
46495 (*one_cmplqi2_1): Ditto.
46496 * config/i386/sse.md (): Change k to Yk.
46497 (avx512f_load<mode>_mask): Ditto.
46498 (avx512f_blendm<mode>): Ditto.
46499 (avx512f_store<mode>_mask): Ditto.
46500 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
46501 (avx512f_storedqu<mode>_mask): Ditto.
46502 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
46504 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
46505 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
46506 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
46507 (avx512f_maskcmp<mode>3): Ditto.
46508 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
46509 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
46510 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
46511 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
46512 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
46513 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
46514 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
46515 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
46516 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
46517 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
46518 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
46519 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
46520 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
46521 (vec_extract_lo_<mode>_maskm): Ditto.
46522 (vec_extract_hi_<mode>_maskm): Ditto.
46523 (avx512f_vternlog<mode>_mask): Ditto.
46524 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
46525 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
46526 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
46527 (avx512f_<code>v8div16qi2_mask): Ditto.
46528 (avx512f_<code>v8div16qi2_mask_store): Ditto.
46529 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
46530 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
46531 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
46532 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
46533 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
46534 (*avx512pf_gatherpf<mode>df_mask): Ditto.
46535 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
46536 (*avx512pf_scatterpf<mode>df_mask): Ditto.
46537 (avx512cd_maskb_vec_dupv8di): Ditto.
46538 (avx512cd_maskw_vec_dupv16si): Ditto.
46539 (avx512f_vpermi2var<mode>3_maskz): Ditto.
46540 (avx512f_vpermi2var<mode>3_mask): Ditto.
46541 (avx512f_vpermi2var<mode>3_mask): Ditto.
46542 (avx512f_vpermt2var<mode>3_maskz): Ditto.
46543 (*avx512f_gathersi<mode>): Ditto.
46544 (*avx512f_gathersi<mode>_2): Ditto.
46545 (*avx512f_gatherdi<mode>): Ditto.
46546 (*avx512f_gatherdi<mode>_2): Ditto.
46547 (*avx512f_scattersi<mode>): Ditto.
46548 (*avx512f_scatterdi<mode>): Ditto.
46549 (avx512f_compress<mode>_mask): Ditto.
46550 (avx512f_compressstore<mode>_mask): Ditto.
46551 (avx512f_expand<mode>_mask): Ditto.
46552 * config/i386/subst.md (mask): Change k to Yk.
46553 (mask_scalar_merge): Ditto.
46556 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
46558 * doc/extend.texi (Vector Extensions): Document ?: in C++.
46560 2014-01-31 Richard Biener <rguenther@suse.de>
46562 PR middle-end/59990
46563 * builtins.c (fold_builtin_memory_op): Make sure to not
46564 use a floating-point mode or a boolean or enumeral type for
46565 the copy operation.
46567 2014-01-30 DJ Delorie <dj@redhat.com>
46569 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
46570 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
46571 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
46572 whenever main() has an epilogue.
46574 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46576 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
46577 unused variable "field".
46578 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
46579 (vsx_mergeh_<mode>): Likewise.
46580 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
46581 (altivec_vmrghh): Likewise.
46582 (altivec_vmrghw): Likewise.
46583 (altivec_vmrglb): Likewise.
46584 (altivec_vmrglh): Likewise.
46585 (altivec_vmrglw): Likewise.
46586 (altivec_vspltb): Add missing uses.
46587 (altivec_vsplth): Likewise.
46588 (altivec_vspltw): Likewise.
46589 (altivec_vspltsf): Likewise.
46591 2014-01-30 Jakub Jelinek <jakub@redhat.com>
46594 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
46595 frame related instructions.
46597 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
46599 PR rtl-optimization/59959
46600 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
46601 any reload of register whose subreg is invalid.
46603 2014-01-30 Jakub Jelinek <jakub@redhat.com>
46605 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
46606 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
46607 Add missing return type - void.
46609 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46611 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
46612 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
46613 remove element index adjustment for endian (now handled in vsx.md
46615 (altivec_expand_vec_perm_const): Use
46616 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
46617 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
46618 (vsx_xxspltw_<mode>): Adjust element index for little endian.
46619 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
46620 define_expand and a new define_insn *altivec_vspltb_internal;
46621 adjust for -maltivec=be on a little endian target.
46622 (altivec_vspltb_direct): New.
46623 (altivec_vsplth): Divide into a define_expand and a new
46624 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
46625 little endian target.
46626 (altivec_vsplth_direct): New.
46627 (altivec_vspltw): Divide into a define_expand and a new
46628 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
46629 little endian target.
46630 (altivec_vspltw_direct): New.
46631 (altivec_vspltsf): Divide into a define_expand and a new
46632 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
46633 a little endian target.
46635 2014-01-30 Richard Biener <rguenther@suse.de>
46637 PR tree-optimization/59993
46638 * tree-ssa-forwprop.c (associate_pointerplus): Check we
46639 can propagate form the earlier stmt and avoid the transform
46640 when the intermediate result is needed.
46642 2014-01-30 Alangi Derick <alangiderick@gmail.com>
46644 * README.Portability: Fix typo.
46646 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
46648 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
46649 comparison_operator with ordered_comparison_operator.
46651 2014-01-30 Nick Clifton <nickc@redhat.com>
46653 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
46654 Rename to mn10300_store_multiple_regs.
46655 * config/mn10300/mn10300.c: Likewise.
46656 * config/mn10300/mn10300.md (store_movm): Fix typo: call
46657 store_multiple_regs.
46658 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
46659 Call mn10300_store_multiple_regs.
46661 2014-01-30 Nick Clifton <nickc@redhat.com>
46662 DJ Delorie <dj@redhat.com>
46664 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
46665 %fp 2 to keep registers after it properly word-aligned.
46666 (rl78_alloc_physical_registers_umul): Handle the case where both
46667 input operands are the same.
46669 2014-01-30 Richard Biener <rguenther@suse.de>
46671 PR tree-optimization/59903
46672 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
46675 2014-01-30 Jason Merrill <jason@redhat.com>
46678 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
46681 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
46683 2014-01-30 Richard Biener <rguenther@suse.de>
46685 PR tree-optimization/59951
46686 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
46688 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
46691 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
46692 SFmode to DFmode case.
46694 2014-01-29 DJ Delorie <dj@redhat.com>
46696 * config/msp430/msp430.opt (-minrt): New.
46697 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
46699 (ENDFILE_SPEC): Likewise.
46701 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
46703 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
46704 (estimate_function_body_sizes): Use it.
46706 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
46709 * dwarf2out.c (is_cxx_auto): New.
46710 (is_base_type): Use it.
46711 (gen_type_die_with_usage): Likewise.
46713 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46715 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
46716 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
46717 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
46718 -maltivec=be with LE targets.
46719 (vsx_mergeh_<mode>): Likewise.
46720 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
46721 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
46722 (altivec_vmrghb): Replace with define_expand and new
46723 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
46724 (altivec_vmrghb_direct): New define_insn.
46725 (altivec_vmrghh): Replace with define_expand and new
46726 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
46727 (altivec_vmrghh_direct): New define_insn.
46728 (altivec_vmrghw): Replace with define_expand and new
46729 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
46730 (altivec_vmrghw_direct): New define_insn.
46731 (*altivec_vmrghsf): Adjust for endianness.
46732 (altivec_vmrglb): Replace with define_expand and new
46733 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
46734 (altivec_vmrglb_direct): New define_insn.
46735 (altivec_vmrglh): Replace with define_expand and new
46736 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
46737 (altivec_vmrglh_direct): New define_insn.
46738 (altivec_vmrglw): Replace with define_expand and new
46739 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
46740 (altivec_vmrglw_direct): New define_insn.
46741 (*altivec_vmrglsf): Adjust for endianness.
46742 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
46743 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
46744 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
46745 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
46746 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
46747 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
46748 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
46749 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
46751 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
46753 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
46754 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
46757 2014-01-29 Richard Biener <rguenther@suse.de>
46759 PR tree-optimization/58742
46760 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
46761 associate_pointerplus_align.
46762 (associate_pointerplus_diff): New function.
46763 (associate_pointerplus): Likewise. Call associate_pointerplus_align
46764 and associate_pointerplus_diff.
46766 2014-01-29 Richard Biener <rguenther@suse.de>
46768 * lto-streamer.h (LTO_major_version): Bump to 3.
46769 (LTO_minor_version): Reset to 0.
46771 2014-01-29 Renlin Li <Renlin.Li@arm.com>
46773 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
46774 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
46775 (arm_file_start): Generate correct asm header for armv7ve.
46776 * config/arm/bpabi.h: Add multilib support for armv7ve.
46777 * config/arm/driver-arm.c: Change the architectures of cortex-a7
46778 and cortex-a15 to armv7ve.
46779 * config/arm/t-aprofile: Add multilib support for armv7ve.
46780 * doc/invoke.texi: Document -march=armv7ve.
46782 2014-01-29 Richard Biener <rguenther@suse.de>
46784 PR tree-optimization/58742
46785 * tree-ssa-forwprop.c (associate_plusminus): Return true
46786 if we changed sth, defer EH cleanup to ...
46787 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
46788 (simplify_mult): New function.
46790 2014-01-29 Jakub Jelinek <jakub@redhat.com>
46792 PR middle-end/59917
46793 PR tree-optimization/59920
46794 * tree.c (build_common_builtin_nodes): Remove
46795 __builtin_setjmp_dispatcher initialization.
46796 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
46797 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
46798 instead of gsi_after_labels + manually skipping debug stmts.
46799 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
46800 ignore bbs with IFN_ABNORMAL_DISPATCHER.
46801 * tree-inline.c (copy_edges_for_bb): Remove
46802 can_make_abnormal_goto argument, instead add abnormal_goto_dest
46803 argument. Ignore computed_goto_p stmts. Don't call
46804 make_abnormal_goto_edges. If a call might need abnormal edges
46805 for non-local gotos, see if it already has an edge to
46806 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
46807 with true argument, don't do anything then, otherwise add
46808 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
46809 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
46811 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
46812 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
46813 (lower_stmt): Don't set data->calls_builtin_setjmp.
46814 (lower_builtin_setjmp): Adjust comment.
46815 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
46816 * tree-cfg.c (found_computed_goto): Remove.
46817 (factor_computed_gotos): Remove.
46818 (make_goto_expr_edges): Return bool, true for computed gotos.
46819 Don't call make_abnormal_goto_edges.
46820 (build_gimple_cfg): Don't set found_computed_goto, don't call
46821 factor_computed_gotos.
46822 (computed_goto_p): No longer static.
46823 (make_blocks): Don't set found_computed_goto.
46824 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
46825 (make_edges): If make_goto_expr_edges returns true, push bb
46826 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
46827 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
46828 vector. Record mapping between bbs and OpenMP regions if there
46829 are any, adjust make_gimple_omp_edges caller. Call
46830 handle_abnormal_edges.
46831 (make_abnormal_goto_edges): Remove.
46832 * tree-cfg.h (make_abnormal_goto_edges): Remove.
46833 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
46834 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
46835 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
46836 * internal-fn.def (ABNORMAL_DISPATCHER): New.
46837 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
46838 filling *region also set *region_idx to (*region)->entry->index.
46841 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
46842 For REGs set ORIGINAL_REGNO.
46844 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
46846 * doc/md.texi: Mention that a target shouldn't implement
46847 vec_widen_(s|u)mul_even/odd pair if it is less efficient
46850 2014-01-29 Jakub Jelinek <jakub@redhat.com>
46852 PR tree-optimization/59594
46853 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
46854 a copy of the datarefs vector rather than the vector itself.
46856 2014-01-28 Jason Merrill <jason@redhat.com>
46859 * dwarf2out.c (auto_die): New static.
46860 (gen_type_die_with_usage): Handle C++1y 'auto'.
46861 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
46864 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
46867 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
46868 (SPEC_X32): Likewise.
46869 (SPEC_64): Likewise.
46870 * config/i386/i386.c (ix86_option_override_internal): Turn off
46871 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
46873 (x86_file_start): Output .code16gcc for TARGET_16BIT.
46874 * config/i386/i386.h (TARGET_16BIT): New macro.
46875 (TARGET_16BIT_P): Likewise.
46876 * config/i386/i386.opt: Add m16.
46877 * doc/invoke.texi: Document -m16.
46879 2014-01-28 Jakub Jelinek <jakub@redhat.com>
46881 PR preprocessor/59935
46882 * input.c (location_get_source_line): Bail out on when line number
46883 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
46885 2014-01-28 Richard Biener <rguenther@suse.de>
46887 PR tree-optimization/58742
46888 * tree-ssa-forwprop.c (associate_plusminus): Handle
46889 pointer subtraction of the form (T)(P + A) - (T)P.
46891 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
46893 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
46896 2014-01-28 Richard Biener <rguenther@suse.de>
46899 2014-01-28 Richard Biener <rguenther@suse.de>
46901 PR rtl-optimization/45364
46902 PR rtl-optimization/59890
46903 * var-tracking.c (local_get_addr_clear_given_value): Handle
46904 already cleared slot.
46905 (val_reset): Handle not allocated local_get_addr_cache.
46906 (vt_find_locations): Use post-order on the inverted CFG.
46908 2014-01-28 Richard Biener <rguenther@suse.de>
46910 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
46912 2014-01-28 Richard Biener <rguenther@suse.de>
46914 PR rtl-optimization/45364
46915 PR rtl-optimization/59890
46916 * var-tracking.c (local_get_addr_clear_given_value): Handle
46917 already cleared slot.
46918 (val_reset): Handle not allocated local_get_addr_cache.
46919 (vt_find_locations): Use post-order on the inverted CFG.
46921 2014-01-28 Alan Modra <amodra@gmail.com>
46923 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
46924 * configure.ac <recursive call for build != host>: Define
46925 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
46926 and LD_FOR_BUILD too.
46927 * configure: Regenerate.
46929 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
46931 * config/i386/i386.c (get_builtin_code_for_version): Separate
46932 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
46933 Broadwell from Haswell.
46935 2014-01-27 Steve Ellcey <sellcey@mips.com>
46937 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
46938 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
46939 * config/mips/mips.c (mips_option_override): Change setting
46941 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
46942 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
46943 Change from Mask to Var.
46945 2014-01-27 Jeff Law <law@redhat.com>
46947 * ipa-inline.c (inline_small_functions): Fix typo.
46949 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
46951 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
46952 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
46953 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
46954 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
46955 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
46956 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
46957 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
46958 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
46959 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
46960 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
46961 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
46962 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
46963 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
46964 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
46965 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
46966 (_mm512_storeu_epi64): Ditto.
46967 (_mm512_cmpge_epi32_mask): Ditto.
46968 (_mm512_cmpge_epu32_mask): Ditto.
46969 (_mm512_cmpge_epi64_mask): Ditto.
46970 (_mm512_cmpge_epu64_mask): Ditto.
46971 (_mm512_cmple_epi32_mask): Ditto.
46972 (_mm512_cmple_epu32_mask): Ditto.
46973 (_mm512_cmple_epi64_mask): Ditto.
46974 (_mm512_cmple_epu64_mask): Ditto.
46975 (_mm512_cmplt_epi32_mask): Ditto.
46976 (_mm512_cmplt_epu32_mask): Ditto.
46977 (_mm512_cmplt_epi64_mask): Ditto.
46978 (_mm512_cmplt_epu64_mask): Ditto.
46979 (_mm512_cmpneq_epi32_mask): Ditto.
46980 (_mm512_cmpneq_epu32_mask): Ditto.
46981 (_mm512_cmpneq_epi64_mask): Ditto.
46982 (_mm512_cmpneq_epu64_mask): Ditto.
46983 (_mm512_expand_pd): Ditto.
46984 (_mm512_expand_ps): Ditto.
46985 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
46986 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
46987 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
46988 * config/i386/i386.c (ix86_builtins): Add
46989 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
46990 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
46991 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
46992 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
46993 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
46994 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
46995 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
46996 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
46997 IX86_BUILTIN_PMOVUSQW512_MEM.
46998 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
46999 __builtin_ia32_pmovsqd512mem_mask,
47000 __builtin_ia32_pmovqd512mem_mask,
47001 __builtin_ia32_pmovusqw512mem_mask,
47002 __builtin_ia32_pmovsqw512mem_mask,
47003 __builtin_ia32_pmovqw512mem_mask,
47004 __builtin_ia32_pmovusdw512mem_mask,
47005 __builtin_ia32_pmovsdw512mem_mask,
47006 __builtin_ia32_pmovdw512mem_mask,
47007 __builtin_ia32_pmovqb512mem_mask,
47008 __builtin_ia32_pmovusqb512mem_mask,
47009 __builtin_ia32_pmovsqb512mem_mask,
47010 __builtin_ia32_pmovusdb512mem_mask,
47011 __builtin_ia32_pmovsdb512mem_mask,
47012 __builtin_ia32_pmovdb512mem_mask.
47013 (bdesc_args): Add __builtin_ia32_expanddf512,
47014 __builtin_ia32_expandsf512.
47015 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
47016 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
47017 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
47018 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
47019 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
47020 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
47021 (avx512f_<code>v8div16qi2_mask_store): This.
47022 (avx512f_expand<mode>): New.
47024 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
47026 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
47028 (_mm512_mask_prefetch_i64gather_pd): Ditto.
47029 (_mm512_prefetch_i32scatter_pd): Ditto.
47030 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
47031 (_mm512_prefetch_i64scatter_pd): Ditto.
47032 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
47033 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
47034 (_mm512_mask_prefetch_i64gather_ps): Ditto.
47035 (_mm512_prefetch_i32scatter_ps): Ditto.
47036 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
47037 (_mm512_prefetch_i64scatter_ps): Ditto.
47038 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
47039 * config/i386/i386-builtin-types.def: Define
47040 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
47041 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
47042 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
47043 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
47044 IX86_BUILTIN_SCATTERPFQPD.
47045 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
47046 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
47047 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
47048 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
47049 __builtin_ia32_scatterpfqps.
47050 (ix86_expand_builtin): Expand new built-ins.
47051 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
47052 fix memory access data type.
47053 (*avx512pf_gatherpf<mode>_mask): Ditto.
47054 (*avx512pf_gatherpf<mode>): Ditto.
47055 (avx512pf_scatterpf<mode>): Ditto.
47056 (*avx512pf_scatterpf<mode>_mask): Ditto.
47057 (*avx512pf_scatterpf<mode>): Ditto.
47058 (GATHER_SCATTER_SF_MEM_MODE): New.
47059 (avx512pf_gatherpf<mode>df): Ditto.
47060 (*avx512pf_gatherpf<mode>df_mask): Ditto.
47061 (*avx512pf_scatterpf<mode>df): Ditto.
47063 2014-01-27 Jakub Jelinek <jakub@redhat.com>
47066 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
47067 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
47070 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
47072 * common/config/arm/arm-common.c
47073 (arm_rewrite_mcpu): Handle multiple names.
47075 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
47077 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
47079 * gimple-builder.h (create_gimple_tmp): Delete.
47081 2014-01-27 Christian Bruel <christian.bruel@st.com>
47083 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
47086 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
47088 * config/pa/pa.md (call): Generate indirect long calls to non-local
47089 functions when outputing 32-bit code.
47090 (call_value): Likewise except for special call to buggy powf function.
47092 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
47093 portable runtime and PIC indirect calls.
47094 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
47095 and PIC call sequences. Use ldo instead of blr to set return register
47096 in PIC call sequence.
47098 2014-01-25 Walter Lee <walt@tilera.com>
47100 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
47101 avoid clobbering a live register.
47103 2014-01-25 Walter Lee <walt@tilera.com>
47105 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
47106 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
47107 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
47108 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
47110 2014-01-25 Walter Lee <walt@tilera.com>
47112 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
47113 arguments on even registers.
47114 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
47116 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
47117 (BIGGEST_ALIGNMENT): Ditto.
47118 (BIGGEST_FIELD_ALIGNMENT): Ditto.
47120 2014-01-25 Walter Lee <walt@tilera.com>
47122 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
47123 insns before bundling.
47124 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
47126 2014-01-25 Walter Lee <walt@tilera.com>
47128 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
47129 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
47130 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
47132 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
47134 * config/mips/constraints.md (kl): Delete.
47135 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
47136 define expands, using...
47137 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
47138 instructions for MIPS16.
47139 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
47140 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
47142 2014-01-25 Walter Lee <walt@tilera.com>
47144 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
47148 2014-01-25 Walter Lee <walt@tilera.com>
47150 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
47151 (TARGET_EXPAND_TO_RTL_HOOK): Define.
47153 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
47155 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
47158 2014-01-25 Jakub Jelinek <jakub@redhat.com>
47160 * print-rtl.c (in_call_function_usage): New var.
47161 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
47162 EXPR_LIST mode as mode and not as reg note name.
47164 PR middle-end/59561
47165 * cfgloopmanip.c (copy_loop_info): If
47166 loop->warned_aggressive_loop_optimizations, make sure
47167 the flag is set in target loop too.
47169 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
47171 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
47173 * builtins.def: Likewise.
47174 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
47175 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
47176 * ira.c (ira_setup_eliminable_regset): Likewise.
47177 * omp-low.c (gate_expand_omp): Likewise.
47178 (execute_lower_omp): Likewise.
47179 (diagnose_sb_0): Likewise.
47180 (gate_diagnose_omp_blocks): Likewise.
47181 (simd_clone_clauses_extract): Likewise.
47184 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
47186 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
47187 correction for little endian...
47188 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
47191 2014-01-24 Jeff Law <law@redhat.com>
47193 PR tree-optimization/59919
47194 * tree-vrp.c (find_assert_locations_1): Do not register asserts
47195 for non-returning calls.
47197 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
47199 * common/config/aarch64/aarch64-common.c
47200 (aarch64_rewrite_mcpu): Handle multiple names.
47201 * config/aarch64/aarch64.h
47202 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
47204 2014-01-24 Dodji Seketeli <dodji@redhat.com>
47206 * input.c (add_file_to_cache_tab): Handle the case where fopen
47209 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
47212 * config/i386/i386.md (pushsf splitter): Get stack adjustment
47213 from push operand if code of push isn't PRE_DEC.
47215 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
47218 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
47219 -mquad-memory-atomic. Update -mquad-memory documentation to say
47220 it is only used for non-atomic loads/stores.
47222 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
47223 -mquad-memory or -mquad-memory-atomic switches.
47225 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
47226 -mquad-memory-atomic to ISA 2.07 support.
47228 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
47229 to separate support of normal quad word memory operations (ldq, stq)
47230 from the atomic quad word memory operations.
47232 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
47233 support to separate non-atomic quad word operations from atomic
47234 quad word operations. Disable non-atomic quad word operations in
47235 little endian mode so that we don't have to swap words after the
47236 load and before the store.
47237 (quad_load_store_p): Add comment about atomic quad word support.
47238 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
47239 options printed with -mdebug=reg.
47241 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
47242 -mquad-memory-atomic as the test for whether we have quad word
47243 atomic instructions.
47244 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
47245 or -mp8-vector are used, allow byte/half-word atomic operations.
47247 * config/rs6000/sync.md (load_lockedti): Insure that the address
47248 is a proper indexed or indirect address for the lqarx instruction.
47249 On little endian systems, swap the hi/lo registers after the lqarx
47251 (load_lockedpti): Use indexed_or_indirect_operand predicate to
47252 insure the address is valid for the lqarx instruction.
47253 (store_conditionalti): Insure that the address is a proper indexed
47254 or indirect address for the stqcrx. instruction. On little endian
47255 systems, swap the hi/lo registers before doing the stqcrx.
47257 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
47258 insure the address is valid for the stqcrx. instruction.
47260 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
47261 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
47262 type of quad memory support is available.
47264 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
47266 PR regression/59915
47267 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
47268 there is a danger of looping.
47270 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
47272 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
47273 force flag_ira_loop_pressure if set via command line.
47275 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
47277 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
47278 (ashr_simd): New builtin handling DI mode.
47279 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
47280 (aarch64_sshr_simddi): New match pattern.
47281 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
47282 (vshrd_n_s64): Likewise.
47283 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
47285 2014-01-23 Nick Clifton <nickc@redhat.com>
47287 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
47288 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
47289 favour of mcu specific scripts.
47290 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
47293 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
47294 Alex Velenko <Alex.Velenko@arm.com>
47296 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
47297 (vaddv_s16): Likewise.
47298 (vaddv_s32): Likewise.
47299 (vaddv_u8): Likewise.
47300 (vaddv_u16): Likewise.
47301 (vaddv_u32): Likewise.
47302 (vaddvq_s8): Likewise.
47303 (vaddvq_s16): Likewise.
47304 (vaddvq_s32): Likewise.
47305 (vaddvq_s64): Likewise.
47306 (vaddvq_u8): Likewise.
47307 (vaddvq_u16): Likewise.
47308 (vaddvq_u32): Likewise.
47309 (vaddvq_u64): Likewise.
47310 (vaddv_f32): Likewise.
47311 (vaddvq_f32): Likewise.
47312 (vaddvq_f64): Likewise.
47313 (vmaxv_f32): Likewise.
47314 (vmaxv_s8): Likewise.
47315 (vmaxv_s16): Likewise.
47316 (vmaxv_s32): Likewise.
47317 (vmaxv_u8): Likewise.
47318 (vmaxv_u16): Likewise.
47319 (vmaxv_u32): Likewise.
47320 (vmaxvq_f32): Likewise.
47321 (vmaxvq_f64): Likewise.
47322 (vmaxvq_s8): Likewise.
47323 (vmaxvq_s16): Likewise.
47324 (vmaxvq_s32): Likewise.
47325 (vmaxvq_u8): Likewise.
47326 (vmaxvq_u16): Likewise.
47327 (vmaxvq_u32): Likewise.
47328 (vmaxnmv_f32): Likewise.
47329 (vmaxnmvq_f32): Likewise.
47330 (vmaxnmvq_f64): Likewise.
47331 (vminv_f32): Likewise.
47332 (vminv_s8): Likewise.
47333 (vminv_s16): Likewise.
47334 (vminv_s32): Likewise.
47335 (vminv_u8): Likewise.
47336 (vminv_u16): Likewise.
47337 (vminv_u32): Likewise.
47338 (vminvq_f32): Likewise.
47339 (vminvq_f64): Likewise.
47340 (vminvq_s8): Likewise.
47341 (vminvq_s16): Likewise.
47342 (vminvq_s32): Likewise.
47343 (vminvq_u8): Likewise.
47344 (vminvq_u16): Likewise.
47345 (vminvq_u32): Likewise.
47346 (vminnmv_f32): Likewise.
47347 (vminnmvq_f32): Likewise.
47348 (vminnmvq_f64): Likewise.
47350 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
47352 * config/aarch64/aarch64-simd.md
47353 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
47354 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
47355 (*aarch64_mul3_elt<mode>): Likewise.
47356 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
47357 (*aarch64_mul3_elt_to_64v2df): Likewise.
47358 (*aarch64_mla_elt<mode>): Likewise.
47359 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
47360 (*aarch64_mls_elt<mode>): Likewise.
47361 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
47362 (*aarch64_fma4_elt<mode>): Likewise.
47363 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
47364 (*aarch64_fma4_elt_to_64v2df): Likewise.
47365 (*aarch64_fnma4_elt<mode>): Likewise.
47366 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
47367 (*aarch64_fnma4_elt_to_64v2df): Likewise.
47368 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
47369 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
47370 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
47371 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
47372 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
47373 (aarch64_sqdmull_lane<mode>_internal): Likewise.
47374 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
47376 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
47378 * config/aarch64/aarch64-simd.md
47379 (aarch64_be_checked_get_lane<mode>): New define_expand.
47380 * config/aarch64/aarch64-simd-builtins.def
47381 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
47382 New builtin definition.
47383 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
47384 Use new safe be builtin.
47386 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
47388 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
47390 (aarch64_be_st1<mode>): Likewise.
47391 (aarch_ld1<VALL:mode>): Define_expand modified.
47392 (aarch_st1<VALL:mode>): Likewise.
47393 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
47394 (UNSPEC_ST1): Likewise.
47396 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
47398 * config/microblaze/microblaze.md: Add trap insn and attribute
47400 2014-01-23 Dodji Seketeli <dodji@redhat.com>
47402 PR preprocessor/58580
47403 * input.h (location_get_source_line): Take an additional line_size
47405 (void diagnostics_file_cache_fini): Declare new function.
47406 * input.c (struct fcache): New type.
47407 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
47408 New static constants.
47409 (diagnostic_file_cache_init, total_lines_num)
47410 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
47411 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
47412 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
47413 (get_next_line, read_next_line, goto_next_line, read_line_num):
47414 New static function definitions.
47415 (diagnostic_file_cache_fini): New function.
47416 (location_get_source_line): Take an additional output line_len
47417 parameter. Re-write using lookup_or_add_file_to_cache_tab and
47419 * diagnostic.c (diagnostic_finish): Call
47420 diagnostic_file_cache_fini.
47421 (adjust_line): Take an additional input parameter for the length
47422 of the line, rather than calculating it with strlen.
47423 (diagnostic_show_locus): Adjust the use of
47424 location_get_source_line and adjust_line with respect to their new
47425 signature. While displaying a line now, do not stop at the first
47426 null byte. Rather, display the zero byte as a space and keep
47427 going until we reach the size of the line.
47428 * Makefile.in: Add vec.o to OBJS-libcommon
47430 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
47431 Ilya Tocar <ilya.tocar@intel.com>
47433 * config/i386/avx512fintrin.h (_mm512_kmov): New.
47434 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
47435 (__builtin_ia32_kmov16): Ditto.
47436 * config/i386/i386.md (UNSPEC_KMOV): New.
47439 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
47441 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
47442 (_mm512_storeu_si512): Ditto.
47444 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
47447 * rtl.h (get_referenced_operands): Declare.
47448 * recog.c (get_referenced_operands): New function.
47449 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
47450 operands have been referenced when recording LO_SUM references.
47452 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
47454 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
47456 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
47458 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
47459 Enable for generic and recent AMD targets.
47461 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
47463 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
47464 ARG_SIZE note when adjustment was eliminated.
47466 2014-01-22 Jeff Law <law@redhat.com>
47468 PR tree-optimization/59597
47469 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
47470 in file. Accept new argument REGISTERING and use it to modify
47471 dump output appropriately.
47472 (register_jump_thread): Corresponding changes.
47473 (mark_threaded_blocks): Reinstate code to cancel unprofitable
47474 thread paths involving joiner blocks. Add code to dump cancelled
47475 jump threading paths.
47477 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
47479 PR rtl-optimization/59477
47480 * lra-constraints.c (inherit_in_ebb): Process call for living hard
47481 regs. Update reloads_num and potential_reload_hard_regs for all insns.
47483 2014-01-22 Tom Tromey <tromey@redhat.com>
47485 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
47487 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
47489 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
47491 PR rtl-optimization/59896
47492 * lra-constraints.c (process_alt_operands): Check unused note for
47493 matched operands of insn with no output reloads.
47495 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
47497 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
47498 (mips_move_from_gpr_cost): Likewise.
47500 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
47502 PR rtl-optimization/59858
47503 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
47504 ira_class_hard_regs_num.
47505 (process_alt_operands): Increase reject for dying matched operand.
47507 2014-01-21 Jakub Jelinek <jakub@redhat.com>
47510 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
47511 smaller than size, perform several stores or loads and stores
47512 at dst + count - size to store or copy all of size bytes, rather
47513 than just last modesize bytes.
47515 2014-01-20 DJ Delorie <dj@redhat.com>
47517 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
47518 that CLOBBERs are REGs before propogating their values.
47520 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
47522 PR middle-end/59789
47523 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
47524 (cgraph_inline_failed_type): New function.
47525 * cgraph.h (DEFCIFCODE): Add type.
47526 (cgraph_inline_failed_type_t): New enum.
47527 (cgraph_inline_failed_type): New prototype.
47528 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
47529 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
47530 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
47531 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
47532 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
47533 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
47534 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
47535 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
47536 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
47537 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
47538 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
47539 OPTIMIZATION_MISMATCH.
47540 * tree-inline.c (expand_call_inline): Emit errors during
47541 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
47543 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
47546 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
47547 mode attribute in insn output.
47549 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
47551 * output.h (output_constant): Delete.
47552 * varasm.c (output_constant): Make private.
47554 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
47556 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
47558 2014-01-20 Jakub Jelinek <jakub@redhat.com>
47560 PR middle-end/59860
47561 * tree.h (fold_builtin_strcat): New prototype.
47562 * builtins.c (fold_builtin_strcat): No longer static. Add len
47563 argument, if non-NULL, don't call c_strlen. Optimize
47564 directly into __builtin_memcpy instead of __builtin_strcpy.
47565 (fold_builtin_2): Adjust fold_builtin_strcat caller.
47566 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
47568 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
47570 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
47571 for SImode_address_operand operands, having only a REG argument.
47573 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
47575 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
47576 loader name using mbig-endian.
47577 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
47579 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
47581 * doc/invoke.texi (-march): Clarify documentation for AArch64.
47582 (-mtune): Likewise.
47585 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
47587 * config/aarch64/aarch64-protos.h
47588 (aarch64_cannot_change_mode_class_ptr): Declare.
47589 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
47590 aarch64_cannot_change_mode_class_ptr): New.
47591 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
47592 backend hook aarch64_cannot_change_mode_class.
47594 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
47596 * common/config/aarch64/aarch64-common.c
47597 (aarch64_handle_option): Don't handle any option order logic here.
47598 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
47599 selected_cpu, warn on architecture version mismatch.
47600 (aarch64_override_options): Fix parsing order for option strings.
47602 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
47603 Iain Sandoe <iain@codesourcery.com>
47606 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
47607 warning. Amend comment to reflect current functionality.
47609 2014-01-20 Richard Biener <rguenther@suse.de>
47611 PR middle-end/59860
47612 * builtins.c (fold_builtin_strcat): Remove case better handled
47613 by tree-ssa-strlen.c.
47615 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
47617 * config/aarch64/aarch64.opt
47618 (mcpu, march, mtune): Make case-insensitive.
47620 2014-01-20 Jakub Jelinek <jakub@redhat.com>
47623 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
47624 if operands[1] is a REG or ZERO_EXTEND of a REG.
47626 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
47628 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
47630 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
47632 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
47633 long non-pic millicode calls.
47635 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
47637 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
47639 2014-01-19 Kito Cheng <kito@0xlab.org>
47641 * builtins.c (expand_movstr): Check movstr expand done or fail.
47643 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
47644 H.J. Lu <hongjiu.lu@intel.com>
47647 * config/i386/i386.md (*lea<mode>): Zero-extend return register
47648 to DImode for zero-extended addresses.
47650 2014-01-19 Jakub Jelinek <jakub@redhat.com>
47652 PR rtl-optimization/57763
47653 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
47654 on the new indirect jump_insn and increment LABEL_NUSES (label).
47656 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
47660 * config.gcc (x86_archs): New variable.
47661 (x86_64_archs): Likewise.
47662 (x86_cpus): Likewise.
47663 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
47664 --with-arch/--with-cpu= options.
47665 Support --with-arch=/--with-cpu={nehalem,westmere,
47666 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
47668 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
47670 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
47671 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
47673 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
47675 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
47677 2014-01-18 Jakub Jelinek <jakub@redhat.com>
47680 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
47681 clear cpp_get_options (parse_in)->warn_unused_macros for
47682 ix86_target_macros_internal with cpp_define.
47684 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
47686 * jump.c (delete_related_insns): Keep (use (insn))s.
47687 * reorg.c (redundant_insn): Check for barriers too.
47689 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
47691 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
47693 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
47695 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
47696 call to $$dyncall when TARGET_LONG_CALLS is true.
47698 2014-01-17 Jeff Law <law@redhat.com>
47700 * ree.c (combine_set_extension): Temporarily disable test for
47701 changing number of hard registers.
47703 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
47705 PR middle-end/58125
47706 * ipa-inline-analysis.c (inline_free_summary):
47707 Do not free summary of aliases.
47709 2014-01-17 Jakub Jelinek <jakub@redhat.com>
47711 PR middle-end/59706
47712 * gimplify.c (gimplify_expr): Use create_tmp_var
47713 instead of create_tmp_var_raw. If cond doesn't have
47714 integral type, don't add the IFN_ANNOTATE builtin at all.
47716 2014-01-17 Martin Jambor <mjambor@suse.cz>
47719 * ipa-cp.c (prev_edge_clone): New variable.
47720 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
47721 Also resize prev_edge_clone vector.
47722 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
47723 (ipcp_edge_removal_hook): New function.
47724 (ipcp_driver): Register ipcp_edge_removal_hook.
47726 2014-01-17 Andrew Pinski <apinski@cavium.com>
47727 Steve Ellcey <sellcey@mips.com>
47730 * config/mips/mips.c (mips_print_operand): Check operand mode instead
47733 2014-01-17 Jeff Law <law@redhat.com>
47735 PR middle-end/57904
47736 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
47737 so that pass_ccp runs first.
47739 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
47741 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
47742 (ix86_adjust_cost): Use !TARGET_XXX.
47743 (do_reorder_for_imul): Likewise.
47744 (swap_top_of_ready_list): Likewise.
47745 (ix86_sched_reorder): Likewise.
47747 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
47749 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
47750 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
47751 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
47752 (intel_memset): New. Duplicate slm_memset.
47753 (intel_cost): New. Duplicate slm_cost.
47754 (m_INTEL): New macro.
47755 (processor_target_table): Add "intel".
47756 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
47757 with PROCESSOR_INTEL for "intel".
47758 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
47759 PROCESSOR_SILVERMONT.
47760 (ix86_issue_rate): Likewise.
47761 (ix86_adjust_cost): Likewise.
47762 (ia32_multipass_dfa_lookahead): Likewise.
47763 (swap_top_of_ready_list): Likewise.
47764 (ix86_sched_reorder): Likewise.
47765 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
47766 instead of TARGET_OPT_AGU.
47767 * config/i386/i386.h (TARGET_INTEL): New.
47768 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
47769 (processor_type): Add PROCESSOR_INTEL.
47770 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
47771 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
47773 2014-01-17 Marek Polacek <polacek@redhat.com>
47776 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
47779 2014-01-17 Richard Biener <rguenther@suse.de>
47781 PR tree-optimization/46590
47782 * opts.c (default_options_table): Add entries for
47783 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
47784 all enabled at -O1 but not for -Og.
47785 * common.opt (fbranch-count-reg): Remove Init(1).
47786 (fmove-loop-invariants): Likewise.
47787 (ftree-pta): Likewise.
47789 2014-01-17 Jakub Jelinek <jakub@redhat.com>
47791 * config/i386/i386.c (ix86_data_alignment): For compatibility with
47792 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
47793 decls to at least the GCC 4.8 used alignments.
47796 * tree-nested.c (convert_nonlocal_reference_stmt,
47797 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
47798 of GIMPLE_BIND stmts, adjust associated decls.
47800 2014-01-17 Richard Biener <rguenther@suse.de>
47802 PR tree-optimization/46590
47803 * vec.h (vec<>::bseach): New member function implementing
47804 binary search according to C89 bsearch.
47805 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
47806 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
47807 bitmap pointer again. Make accesses_in_loop a flat array.
47808 (mem_ref_obstack): New global.
47809 (outermost_indep_loop): Adjust for mem_ref->stored changes.
47810 (mark_ref_stored): Likewise.
47811 (ref_indep_loop_p_2): Likewise.
47812 (set_ref_stored_in_loop): New helper function.
47813 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
47814 (memref_free): Adjust.
47815 (record_mem_ref_loc): Simplify.
47816 (gather_mem_refs_stmt): Adjust.
47817 (sort_locs_in_loop_postorder_cmp): New function.
47818 (analyze_memory_references): Sort accesses_in_loop after
47819 loop postorder number.
47820 (find_ref_loc_in_loop_cmp): New function.
47821 (for_all_locs_in_loop): Find relevant cluster of locs in
47822 accesses_in_loop and iterate without recursion.
47823 (execute_sm): Avoid uninit warning.
47824 (struct ref_always_accessed): Simplify.
47825 (ref_always_accessed::operator ()): Likewise.
47826 (ref_always_accessed_p): Likewise.
47827 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
47828 loop postorder numbers here.
47829 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
47832 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
47835 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
47836 on decls for which assemble_alias has been called.
47838 2014-01-17 Nick Clifton <nickc@redhat.com>
47840 * config/msp430/msp430.opt: (mcpu): New option.
47841 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
47842 (msp430_option_override): Parse target_cpu. If the MCU name
47843 matches a generic string, clear target_mcu.
47844 (msp430_attr): Allow numeric interrupt values up to 63.
47845 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
47846 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
47848 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
47850 * config/msp430/msp430.md (popm): Use %J rather than %I.
47851 (addsi3): Use msp430_nonimmediate_operand for operand 2.
47852 (addhi_cy_i): Use immediate_operand for operand 2.
47853 * doc/invoke.texi: Document -mcpu option.
47855 2014-01-17 Richard Biener <rguenther@suse.de>
47857 PR rtl-optimization/38518
47858 * df.h (df_analyze_loop): Declare.
47859 * df-core.c: Include cfgloop.h.
47860 (df_analyze_1): Split out main part of df_analyze.
47861 (df_analyze): Adjust.
47862 (loop_inverted_post_order_compute): New function.
47863 (loop_post_order_compute): Likewise.
47864 (df_analyze_loop): New function avoiding whole-function
47865 postorder computes.
47866 * loop-invariant.c (find_defs): Use df_analyze_loop.
47867 (find_invariants): Adjust.
47868 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
47870 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
47872 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
47873 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
47875 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
47877 * ipa-ref.c (ipa_remove_stmt_references): Fix references
47878 traversal when removing references.
47880 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
47883 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
47885 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
47887 PR middle-end/56791
47888 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
47889 pushing a reload for an autoinc when we had previously reloaded an
47890 inner part of the address.
47892 2014-01-16 Jakub Jelinek <jakub@redhat.com>
47894 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
47896 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
47897 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
47898 when not giving up or versioning for alias only because of
47900 (vect_analyze_data_ref_dependences): Set to true.
47901 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
47903 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
47904 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
47907 PR middle-end/58344
47908 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
47911 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
47912 operand 0 predicate for gathers, use a new pseudo as subtarget.
47914 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
47916 PR middle-end/59609
47917 * lra-constraints.c (process_alt_operands): Add printing debug info.
47918 Check absence of input/output reloads for matched operands too.
47920 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
47922 PR rtl-optimization/59835
47923 * ira.c (ira_init_register_move_cost): Increase cost for
47926 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
47928 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
47930 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
47933 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
47934 non-register objects. Use gen_(high/low)part more consistently.
47937 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
47940 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
47941 endian support, remove tests for WORDS_BIG_ENDIAN.
47942 (p8_mfvsrd_3_<mode>): Likewise.
47943 (reload_gpr_from_vsx<mode>): Likewise.
47944 (reload_gpr_from_vsxsf): Likewise.
47945 (p8_mfvsrd_4_disf): Likewise.
47947 2014-01-16 Richard Biener <rguenther@suse.de>
47949 PR rtl-optimization/46590
47950 * lcm.c (compute_antinout_edge): Use postorder iteration.
47951 (compute_laterin): Use inverted postorder iteration.
47953 2014-01-16 Nick Clifton <nickc@redhat.com>
47955 PR middle-end/28865
47956 * varasm.c (output_constant): Return the number of bytes actually
47958 (output_constructor_array_range): Update the field size with the
47959 number of bytes emitted by output_constant.
47960 (output_constructor_regular_field): Likewise. Also do not
47961 complain if the total number of bytes emitted is now greater
47962 than the expected fieldpos.
47963 * output.h (output_constant): Update prototype and descriptive comment.
47965 2014-01-16 Marek Polacek <polacek@redhat.com>
47967 PR middle-end/59827
47968 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
47969 it is error_mark_node.
47971 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
47973 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
47974 VALID_AVX256_REG_OR_OI_MODE.
47976 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
47978 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
47979 current procedure should be profiled.
47981 2014-01-15 Andrew Pinski <apinski@cavium.com>
47983 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
47984 of moving from/to the STACK_REG register class.
47986 2014-01-15 Richard Henderson <rth@redhat.com>
47989 * reginfo.c (global_regs_decl): Globalize.
47990 * rtl.h (global_regs_decl): Declare.
47991 * ira.c (do_reload): Diagnose frame_pointer_needed and it
47992 reserved via global_regs.
47994 2014-01-15 Teresa Johnson <tejohnson@google.com>
47996 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
47998 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
48000 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
48001 and vmulosh rather than call gen_vec_widen_smult_*.
48002 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
48003 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
48004 (vec_widen_smult_even_v16qi): Likewise.
48005 (vec_widen_umult_even_v8hi): Likewise.
48006 (vec_widen_smult_even_v8hi): Likewise.
48007 (vec_widen_umult_odd_v16qi): Likewise.
48008 (vec_widen_smult_odd_v16qi): Likewise.
48009 (vec_widen_umult_odd_v8hi): Likewise.
48010 (vec_widen_smult_odd_v8hi): Likewise.
48011 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
48012 vmuloub rather than call gen_vec_widen_umult_*.
48013 (vec_widen_umult_lo_v16qi): Likewise.
48014 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
48015 vmulosb rather than call gen_vec_widen_smult_*.
48016 (vec_widen_smult_lo_v16qi): Likewise.
48017 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
48018 rather than call gen_vec_widen_umult_*.
48019 (vec_widen_umult_lo_v8hi): Likewise.
48020 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
48021 rather than call gen_vec_widen_smult_*.
48022 (vec_widen_smult_lo_v8hi): Likewise.
48024 2014-01-15 Jeff Law <law@redhat.com>
48026 PR tree-optimization/59747
48027 * ree.c (find_and_remove_re): Properly handle case where a second
48028 eliminated extension requires widening a copy created for elimination
48029 of a prior extension.
48030 (combine_set_extension): Ensure that the number of hard regs needed
48031 for a destination register does not change when we widen it.
48033 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
48035 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
48036 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
48037 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
48038 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
48039 (avr-*-rtems*): Likewise.
48040 (bfin*-rtems*): Likewise.
48041 (moxie-*-rtems*): Likewise.
48042 (h8300-*-rtems*): Likewise.
48043 (i[34567]86-*-rtems*): Likewise.
48044 (lm32-*-rtems*): Likewise.
48045 (m32r-*-rtems*): Likewise.
48046 (m68k-*-rtems*): Likewise.
48047 (microblaze*-*-rtems*): Likewise.
48048 (mips*-*-rtems*): Likewise.
48049 (powerpc-*-rtems*): Likewise.
48050 (sh-*-rtems*): Likewise.
48051 (sparc-*-rtems*): Likewise.
48052 (sparc64-*-rtems*): Likewise.
48053 (v850-*-rtems*): Likewise.
48054 (m32c-*-rtems*): Likewise.
48056 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
48058 PR rtl-optimization/59511
48059 * ira.c (ira_init_register_move_cost): Use memory costs for some
48060 cases of register move cost calculations.
48061 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
48062 instead of BB frequency.
48063 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
48064 * lra-assigns.c (find_hard_regno_for): Ditto.
48066 2014-01-15 Richard Biener <rguenther@suse.de>
48068 PR tree-optimization/59822
48069 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
48070 (vectorizable_load): Use it to hoist defs of uses of invariant
48071 loads out of the loop.
48073 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
48074 Kugan Vivekanandarajah <kuganv@linaro.org>
48077 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
48080 2014-01-15 Richard Biener <rguenther@suse.de>
48082 PR rtl-optimization/59802
48083 * lcm.c (compute_available): Use inverted postorder to seed
48084 the initial worklist.
48086 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
48089 * config/s390/s390.c (s390_preferred_reload_class): Don't return
48090 ADDR_REGS for invalid symrefs in non-PIC code.
48092 2014-01-15 Jakub Jelinek <jakub@redhat.com>
48095 * builtins.c (determine_block_size): Initialize *probable_max_size
48096 even if len_rtx is CONST_INT.
48098 2014-01-14 Andrew Pinski <apinski@cavium.com>
48100 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
48101 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
48102 (cortexa53_tunings): Likewise.
48103 (aarch64_sched_issue_rate): New function.
48104 (TARGET_SCHED_ISSUE_RATE): Define.
48106 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
48108 * ira-costs.c (find_costs_and_classes): Add missed
48109 ira_init_register_move_cost_if_necessary.
48111 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
48114 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
48116 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
48119 * config/i386/i386.c (type_natural_mode): Add a bool parameter
48120 to indicate if type is used for function return value. Warn ABI
48121 change if the vector mode isn't available for function return value.
48122 (ix86_function_arg_advance): Pass false to type_natural_mode.
48123 (ix86_function_arg): Likewise.
48124 (ix86_gimplify_va_arg): Likewise.
48125 (function_arg_32): Don't warn ABI change.
48126 (ix86_function_value): Pass true to type_natural_mode.
48127 (ix86_return_in_memory): Likewise.
48128 (ix86_struct_value_rtx): Removed.
48129 (TARGET_STRUCT_VALUE_RTX): Likewise.
48131 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
48133 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
48134 converting a conditional jump into a conditional return.
48136 2014-01-14 Richard Biener <rguenther@suse.de>
48138 PR tree-optimization/58921
48139 PR tree-optimization/59006
48140 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
48141 hoisting invariant stmts.
48142 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
48143 invariant loads on the preheader edge if possible.
48145 2014-01-14 Joey Ye <joey.ye@arm.com>
48147 * doc/plugin.texi (Building GCC plugins): Update to C++.
48149 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
48151 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
48152 (_mm_rcp28_round_ss): Ditto.
48153 (_mm_rsqrt28_round_sd): Ditto.
48154 (_mm_rsqrt28_round_ss): Ditto.
48155 (_mm_rcp28_sd): Ditto.
48156 (_mm_rcp28_ss): Ditto.
48157 (_mm_rsqrt28_sd): Ditto.
48158 (_mm_rsqrt28_ss): Ditto.
48159 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
48160 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
48161 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
48162 (IX86_BUILTIN_RCP28SD): Ditto.
48163 (IX86_BUILTIN_RCP28SS): Ditto.
48164 (IX86_BUILTIN_RSQRT28SD): Ditto.
48165 (IX86_BUILTIN_RSQRT28SS): Ditto.
48166 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
48167 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
48168 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
48169 (ix86_expand_special_args_builtin): Expand new FTYPE.
48170 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
48171 (srcp14<mode>): Make insn unary.
48172 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
48173 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
48174 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
48175 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
48176 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
48177 Fix rounding: make it SAE only.
48178 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
48180 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
48182 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
48183 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
48184 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
48185 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
48186 (round_saeonly_mask_scalar_operand4): Ditto.
48187 (round_saeonly_mask_scalar_op3): Ditto.
48188 (round_saeonly_mask_scalar_op4): Ditto.
48190 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48192 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
48193 Implement -maltivec=be for vec_insert and vec_extract.
48195 2014-01-10 DJ Delorie <dj@redhat.com>
48197 * config/msp430/msp430.md (call_internal): Don't allow memory
48198 references with SP as the base register.
48199 (call_value_internal): Likewise.
48200 * config/msp430/constraints.md (Yc): New. For memory references
48201 that don't use SP as a base register.
48203 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
48204 "an integer without a # prefix"
48205 * config/msp430/msp430.md (epilogue_helper): Use it.
48207 2014-01-13 Jakub Jelinek <jakub@redhat.com>
48210 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
48211 AVX512F gather builtins.
48212 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
48213 on gather decls with INTEGER_TYPE masktype.
48214 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
48215 directly into the builtin rather than hoisting it before loop.
48217 PR tree-optimization/59387
48218 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
48219 (scev_const_prop): If folded_casts and type has undefined overflow,
48220 use force_gimple_operand instead of force_gimple_operand_gsi and
48221 for each added stmt if it is assign with
48222 arith_code_with_undefined_signed_overflow, call
48223 rewrite_to_defined_overflow.
48224 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
48225 gimple-fold.h instead.
48226 (arith_code_with_undefined_signed_overflow,
48227 rewrite_to_defined_overflow): Moved to ...
48228 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
48229 rewrite_to_defined_overflow): ... here. No longer static.
48230 Include gimplify-me.h.
48231 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
48232 rewrite_to_defined_overflow): New prototypes.
48234 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48236 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
48238 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
48240 * builtins.c (get_object_alignment_2): Minor tweak.
48241 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
48243 2014-01-13 Christian Bruel <christian.bruel@st.com>
48245 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
48246 optimized non constant lengths.
48248 2014-01-13 Jakub Jelinek <jakub@redhat.com>
48251 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
48252 load as __atomic_load_N if possible.
48254 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
48256 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
48258 (rs6000_expand_builtin): Adjust call.
48260 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
48263 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
48264 * config/rs6000/rs6000.c: Include target-globals.h.
48265 (rs6000_set_current_function): Instead of doing target_reinit
48266 unconditionally, use save_target_globals_default_opts and
48267 restore_target_globals.
48269 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
48271 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
48272 (rs6000_expand_builtin): Handle mffs and mtfsf.
48273 (rs6000_init_builtins): Define mffs and mtfsf.
48274 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
48275 (rs6000_mffs): New pattern.
48276 (rs6000_mtfsf): New pattern.
48278 2014-01-11 Bin Cheng <bin.cheng@arm.com>
48280 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
48281 Start narrowing with START. Apply candidate-use pair
48282 and check overall cost in narrowing.
48283 (iv_ca_prune): Pass new argument.
48285 2014-01-10 Jeff Law <law@redhat.com>
48287 PR middle-end/59743
48288 * ree.c (combine_reaching_defs): Ensure the defining statement
48289 occurs before the extension when optimizing extensions with
48290 different source and destination hard registers.
48292 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
48295 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
48296 vtables into the type inheritance graph.
48298 2014-01-10 Jakub Jelinek <jakub@redhat.com>
48300 PR rtl-optimization/59754
48301 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
48302 modes in the REGNO != REGNO case.
48304 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48306 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
48308 2014-01-10 Jakub Jelinek <jakub@redhat.com>
48310 PR tree-optimization/59745
48311 * tree-predcom.c (tree_predictive_commoning_loop): Call
48312 free_affine_expand_cache if giving up because components is NULL.
48314 * target-globals.c (save_target_globals): Allocate < 4KB structs using
48315 GC in payload of target_globals struct instead of allocating them on
48316 the heap and the larger structs separately using GC.
48317 * target-globals.h (struct target_globals): Make regs, hard_regs,
48318 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
48319 of GTY((skip)) and change type to void *.
48320 (reset_target_globals): Cast loads from those fields to corresponding
48323 2014-01-10 Steve Ellcey <sellcey@mips.com>
48326 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
48327 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
48328 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
48330 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
48333 * aarch64-modes.def (CC_Zmode): New flags mode.
48334 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
48335 represents an equality.
48336 (aarch64_get_condition_code): Handle CC_Zmode.
48337 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
48339 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
48341 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
48342 extraction in good case.
48344 2014-01-10 Richard Biener <rguenther@suse.de>
48346 PR tree-optimization/59374
48347 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
48348 checking after SLP discovery. Mark stmts not participating
48349 in any SLP instance properly.
48351 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48353 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
48354 when handling a SET rtx.
48356 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48358 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
48359 (cortex-a57): Likewise.
48360 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
48362 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48364 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
48365 non-iwmmxt builtins.
48367 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
48371 * ipa-devirt.c record_target_from_binfo): Take as argument
48372 stack of binfos and lookup matching one for virtual inheritance.
48373 (possible_polymorphic_call_targets_1): Update.
48375 2014-01-10 Huacai Chen <chenhc@lemote.com>
48377 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
48378 kernel strings for Loongson-2E/2F/3A.
48380 2014-01-10 Jakub Jelinek <jakub@redhat.com>
48382 PR middle-end/59670
48383 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
48384 is_gimple_call before calling gimple_call_internal_p.
48386 2014-01-09 Steve Ellcey <sellcey@mips.com>
48388 * Makefile.in (TREE_FLOW_H): Remove.
48389 (TREE_SSA_H): Add file names from tree-flow.h.
48390 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
48391 * tree.h: Remove tree-flow.h reference.
48392 * hash-table.h: Remove tree-flow.h reference.
48393 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
48394 reference with tree-ssa-loop.h.
48396 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48398 * doc/invoke.texi: Add -maltivec={be,le} options, and document
48399 default element-order behavior for -maltivec.
48400 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
48401 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
48402 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
48403 when targeting big endian, at least for now.
48404 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
48406 2014-01-09 Jakub Jelinek <jakub@redhat.com>
48408 PR middle-end/47735
48409 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
48410 var satisfies use_register_for_decl, just take into account type
48411 alignment, rather than decl alignment.
48413 PR tree-optimization/59622
48414 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
48415 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
48416 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
48417 Don't devirtualize for inplace at all. For targets.length () == 1,
48418 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
48420 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
48422 * config/i386/i386.md (cpu): Remove the unused btver1.
48424 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
48426 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
48428 2014-01-09 Jakub Jelinek <jakub@redhat.com>
48431 * tree-core.h (struct target_globals): New forward declaration.
48432 (struct tree_target_option): Add globals field.
48433 * tree.h (TREE_TARGET_GLOBALS): Define.
48434 (prepare_target_option_nodes_for_pch): New prototype.
48435 * target-globals.h (struct target_globals): Define even if
48436 !SWITCHABLE_TARGET.
48437 * tree.c (prepare_target_option_node_for_pch,
48438 prepare_target_option_nodes_for_pch): New functions.
48439 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
48440 * config/i386/i386.c: Include target-globals.h.
48441 (ix86_set_current_function): Instead of doing target_reinit
48442 unconditionally, use save_target_globals_default_opts and
48443 restore_target_globals.
48445 2014-01-09 Richard Biener <rguenther@suse.de>
48447 PR tree-optimization/59715
48448 * tree-cfg.h (split_critical_edges): Declare.
48449 * tree-cfg.c (split_critical_edges): Export.
48450 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
48452 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
48454 * cfgexpand.c (expand_stack_vars): Optionally disable
48455 asan stack protection.
48456 (expand_used_vars): Likewise.
48457 (partition_stack_vars): Likewise.
48458 * asan.c (asan_emit_stack_protection): Optionally disable
48459 after return stack usage.
48460 (instrument_derefs): Optionally disable memory access instrumentation.
48461 (instrument_builtin_call): Likewise.
48462 (instrument_strlen_call): Likewise.
48463 (asan_protect_global): Optionally disable global variables protection.
48464 * doc/invoke.texi: Added doc for new options.
48465 * params.def: Added new options.
48466 * params.h: Likewise.
48468 2014-01-09 Jakub Jelinek <jakub@redhat.com>
48470 PR rtl-optimization/59724
48471 * ifcvt.c (cond_exec_process_if_block): Don't call
48472 flow_find_head_matching_sequence with 0 longest_match.
48473 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
48474 non-active insns if !stop_after.
48475 (try_head_merge_bb): Revert 2014-01-07 changes.
48477 2014-01-08 Jeff Law <law@redhat.com>
48479 * ree.c (get_sub_rtx): New function, extracted from...
48480 (merge_def_and_ext): Here.
48481 (combine_reaching_defs): Use get_sub_rtx.
48483 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
48485 * cgraph.h (varpool_variable_node): Do not choke on null node.
48487 2014-01-08 Catherine Moore <clm@codesourcery.com>
48489 * config/mips/mips.md (simple_return): Attempt to use JRC
48491 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
48493 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
48495 PR rtl-optimization/59137
48496 * reorg.c (steal_delay_list_from_target): Call update_block for
48498 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
48500 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48502 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
48503 two duplicate entries.
48505 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
48508 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
48510 * config/mips/mips.c (mips_truncated_op_cost): New function.
48511 (mips_rtx_costs): Adjust test for BADDU.
48512 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
48514 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
48516 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
48517 (*baddu_si): ...this new pattern.
48519 2014-01-08 Jakub Jelinek <jakub@redhat.com>
48522 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
48524 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
48526 PR middle-end/57748
48527 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
48529 (expand_expr, expand_normal): Adjust.
48530 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
48531 inner_reference_p. Use inner_reference_p to expand inner references.
48532 (store_expr): Adjust.
48533 * cfgexpand.c (expand_call_stmt): Adjust.
48535 2014-01-08 Rong Xu <xur@google.com>
48537 * gcov-io.c (gcov_var): Move from gcov-io.h.
48538 (gcov_position): Ditto.
48539 (gcov_is_error): Ditto.
48540 (gcov_rewrite): Ditto.
48541 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
48542 only part to libgcc/libgcov.h.
48544 2014-01-08 Marek Polacek <polacek@redhat.com>
48546 PR middle-end/59669
48547 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
48549 2014-01-08 Marek Polacek <polacek@redhat.com>
48552 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
48554 2014-01-08 Jakub Jelinek <jakub@redhat.com>
48556 PR rtl-optimization/59649
48557 * stor-layout.c (get_mode_bounds): For BImode return
48558 0 and STORE_FLAG_VALUE.
48560 2014-01-08 Richard Biener <rguenther@suse.de>
48562 PR middle-end/59630
48563 * gimple.h (is_gimple_builtin_call): Remove.
48564 (gimple_builtin_call_types_compatible_p): New.
48565 (gimple_call_builtin_p): New overload.
48566 * gimple.c (is_gimple_builtin_call): Remove.
48567 (validate_call): Rename to ...
48568 (gimple_builtin_call_types_compatible_p): ... this and export. Also
48569 check return types.
48570 (validate_type): New static function.
48571 (gimple_call_builtin_p): New overload and adjust.
48572 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
48573 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
48574 (gimple_fold_stmt_to_constant_1): Likewise.
48575 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
48577 2014-01-08 Richard Biener <rguenther@suse.de>
48579 PR middle-end/59471
48580 * gimplify.c (gimplify_expr): Gimplify register-register type
48581 VIEW_CONVERT_EXPRs to separate stmts.
48583 2014-01-07 Jeff Law <law@redhat.com>
48585 PR middle-end/53623
48586 * ree.c (combine_set_extension): Handle case where source
48587 and destination registers in an extension insn are different.
48588 (combine_reaching_defs): Allow source and destination registers
48589 in extension to be different under limited circumstances.
48590 (add_removable_extension): Remove restriction that the
48591 source and destination registers in the extension are the same.
48592 (find_and_remove_re): Emit a copy from the extension's
48593 destination to its source after the defining insn if
48594 the source and destination registers are different.
48596 PR middle-end/59285
48597 * ifcvt.c (merge_if_block): If we are merging a block with more than
48598 one successor with a block with no successors, remove any BARRIER
48599 after the second block.
48601 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
48603 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
48605 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
48608 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
48609 for 14-bit register offsets when INT14_OK_STRICT is false.
48611 2014-01-07 Roland Stigge <stigge@antcom.de>
48612 Michael Meissner <meissner@linux.vnet.ibm.com>
48615 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
48616 Only check TFmode for SPE constants. Don't check TImode or TDmode.
48618 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
48620 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
48623 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
48625 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
48626 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
48627 rtx is const0_rtx or not.
48629 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
48632 * target-globals.c (save_target_globals): Remove this_fn_optab
48634 * toplev.c: Include optabs.h.
48635 (target_reinit): Temporarily restore the global options if another
48636 set of options are in force.
48638 2014-01-07 Jakub Jelinek <jakub@redhat.com>
48640 PR rtl-optimization/58668
48641 * cfgcleanup.c (flow_find_cross_jump): Don't count
48642 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
48643 to determine what is counted.
48644 (flow_find_head_matching_sequence): Use active_insn_p to determine
48646 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
48648 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
48649 determine what is counted.
48651 PR tree-optimization/59643
48652 * tree-predcom.c (split_data_refs_to_components): If one dr is
48653 read and one write, determine_offset fails and the write isn't
48654 in the bad component, just put the read into the bad component.
48656 2014-01-07 Mike Stump <mikestump@comcast.net>
48657 Jakub Jelinek <jakub@redhat.com>
48660 * tree-core.h (struct tree_optimization_option): Change optabs
48661 type from unsigned char * to void *.
48662 * optabs.c (init_tree_optimization_optabs): Adjust
48663 TREE_OPTIMIZATION_OPTABS initialization.
48665 2014-01-06 Jakub Jelinek <jakub@redhat.com>
48668 * config/i386/i386.h (struct machine_function): Add
48669 no_drap_save_restore field.
48670 * config/i386/i386.c (ix86_save_reg): Use
48671 !cfun->machine->no_drap_save_restore instead of
48672 crtl->stack_realign_needed.
48673 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
48674 this function clears frame_pointer_needed. Set
48675 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
48676 and DRAP reg is needed.
48678 2014-01-06 Marek Polacek <polacek@redhat.com>
48681 * doc/implement-c.texi: Mention that other integer types are
48682 permitted as bit-field types in strictly conforming mode.
48684 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
48686 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
48687 is newly allocated.
48689 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
48691 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
48693 2014-01-06 Martin Jambor <mjambor@suse.cz>
48696 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
48698 * ipa-prop.c (ipa_print_node_params): Fix indentation.
48700 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
48704 * var-tracking.c (add_stores): Preserve the value of the source even if
48705 we don't record the store.
48707 2014-01-06 Terry Guo <terry.guo@arm.com>
48709 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
48711 2014-01-05 Iain Sandoe <iain@codesourcery.com>
48714 * config/darwin.c (darwin_function_section): Adjust return values to
48715 correspond to optimisation changes made in r206070.
48717 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
48719 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
48720 from prefetch_block tune setting.
48721 (nocona_cost): Correct size of prefetch block to 64.
48723 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
48725 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
48726 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
48727 used to save the static chain register in the computation of the offset
48728 from which the FP registers need to be restored.
48730 2014-01-04 Jakub Jelinek <jakub@redhat.com>
48732 PR tree-optimization/59519
48733 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
48734 ICE if get_current_def (current_new_name) is already non-NULL, as long
48735 as it is a phi result of some other phi in *new_exit_bb that has
48738 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
48739 or vmovdqu* for misaligned_operand.
48740 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
48741 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
48742 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
48743 aligned_mem for AVX512F masked aligned load and store builtins and for
48744 non-temporal moves.
48746 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
48748 PR tree-optimization/59651
48749 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
48750 Address range for negative step should be added by TYPE_SIZE_UNIT.
48752 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
48754 * config/m68k/m68k.c (handle_move_double): Handle pushes with
48755 overlapping registers also for registers other than the stack pointer.
48757 2014-01-03 Marek Polacek <polacek@redhat.com>
48760 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
48763 2014-01-03 Jakub Jelinek <jakub@redhat.com>
48766 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
48769 * config/i386/i386.md (MODE_SIZE): New mode attribute.
48770 (push splitter): Use <P:MODE_SIZE> instead of
48771 GET_MODE_SIZE (<P:MODE>mode).
48772 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
48773 (mov -1, reg peephole2): Likewise.
48774 * config/i386/sse.md (*mov<mode>_internal,
48775 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
48776 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
48777 *<code><mode>3, *andnot<mode>3<mask_name>,
48778 <mask_codefor><code><mode>3<mask_name>): Likewise.
48779 * config/i386/subst.md (mask_mode512bit_condition,
48780 sd_mask_mode512bit_condition): Likewise.
48782 2014-01-02 Xinliang David Li <davidxl@google.com>
48784 PR tree-optimization/59303
48785 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
48786 (dump_predicates): Better output format.
48787 (pred_equal_p): New function.
48788 (is_neq_relop_p): Ditto.
48789 (is_neq_zero_form_p): Ditto.
48790 (pred_expr_equal_p): Ditto.
48791 (pred_neg_p): Ditto.
48792 (simplify_pred): Ditto.
48793 (simplify_preds_2): Ditto.
48794 (simplify_preds_3): Ditto.
48795 (simplify_preds_4): Ditto.
48796 (simplify_preds): Ditto.
48797 (push_pred): Ditto.
48798 (push_to_worklist): Ditto.
48799 (get_pred_info_from_cmp): Ditto.
48800 (is_degenerated_phi): Ditto.
48801 (normalize_one_pred_1): Ditto.
48802 (normalize_one_pred): Ditto.
48803 (normalize_one_pred_chain): Ditto.
48804 (normalize_preds): Ditto.
48805 (normalize_cond_1): Remove function.
48806 (normalize_cond): Ditto.
48807 (is_gcond_subset_of): Ditto.
48808 (is_subset_of_any): Ditto.
48809 (is_or_set_subset_of): Ditto.
48810 (is_and_set_subset_of): Ditto.
48811 (is_norm_cond_subset_of): Ditto.
48812 (pred_chain_length_cmp): Ditto.
48813 (convert_control_dep_chain_into_preds): Type change.
48814 (find_predicates): Ditto.
48815 (find_def_preds): Ditto.
48816 (destroy_predicates_vecs): Ditto.
48817 (find_matching_predicates_in_rest_chains): Ditto.
48818 (use_pred_not_overlap_with_undef_path_pred): Ditto.
48819 (is_pred_expr_subset): Ditto.
48820 (is_pred_chain_subset_of): Ditto.
48821 (is_included_in): Ditto.
48822 (is_superset_of): Ditto.
48824 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
48826 Update copyright years.
48828 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
48830 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
48831 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
48832 config/arc/arc.md, config/arc/arc.opt,
48833 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
48834 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
48835 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
48836 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
48837 config/linux-protos.h, config/linux.c, config/winnt-c.c,
48838 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
48839 vtable-verify.c, vtable-verify.h: Use the standard form for the
48842 2014-01-02 Tobias Burnus <burnus@net-b.de>
48844 * gcc.c (process_command): Update copyright notice dates.
48845 * gcov-dump.c: Ditto.
48847 * doc/cpp.texi: Bump @copying's copyright year.
48848 * doc/cppinternals.texi: Ditto.
48849 * doc/gcc.texi: Ditto.
48850 * doc/gccint.texi: Ditto.
48851 * doc/gcov.texi: Ditto.
48852 * doc/install.texi: Ditto.
48853 * doc/invoke.texi: Ditto.
48855 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
48857 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
48859 2014-01-01 Jakub Jelinek <jakub@redhat.com>
48861 * config/i386/sse.md (*mov<mode>_internal): Guard
48862 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
48864 PR rtl-optimization/59647
48865 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
48866 new_rtx into UNSIGNED_FLOAT rtxes.
48868 Copyright (C) 2014 Free Software Foundation, Inc.
48870 Copying and distribution of this file, with or without modification,
48871 are permitted in any medium without royalty provided the copyright
48872 notice and this notice are preserved.